/* UntitledChaos site. One stylesheet, no scripts. The ink palette and lime accent are shared with
   Mura. Motion is transform-only and switched off for people who prefer reduced motion. */

:root {
  color-scheme: dark;
  --ink: #0a0a0e;
  --surface: #121219;
  --surface-2: #1d1d27;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --text-2: #ababbc;
  --text-3: #8a8a9e;
  --lime: #d4f53c;
  --lime-lip: #566f00;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 11vw, 136px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body { margin: 0; color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }

ul { list-style: none; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(10, 10, 14, 0.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }

.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }

.brand img { border-radius: 7px; outline: 1px solid var(--line); outline-offset: -1px; }

.nav { display: flex; align-items: center; gap: 30px; color: var(--text-2); font-size: 15px; font-weight: 500; }

.nav a { transition: color 0.15s; }

.nav a:hover, .nav a[aria-current] { color: var(--text); }

.nav .btn { color: var(--text); }

.menu { display: none; position: relative; }

.menu summary { list-style: none; cursor: pointer; padding: 6px 12px; border-radius: 10px; background: var(--surface-2); font-size: 15px; font-weight: 600; }

.menu summary::-webkit-details-marker { display: none; }

.menu ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }

.menu li a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 500; }

.menu li a:hover { background: rgba(255, 255, 255, 0.06); }

/* Buttons: the hard lip comes from Mura's button style. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; transition: transform 0.12s, box-shadow 0.12s; }

.btn:active { transform: translateY(2px); }

.btn-primary { color: #15170a; background: var(--lime); box-shadow: 0 4px 0 var(--lime-lip); }

.btn-primary:active { box-shadow: 0 2px 0 var(--lime-lip); }

.btn-dark { color: var(--text); background: var(--surface-2); box-shadow: 0 4px 0 #050507; }

.btn-dark:active { box-shadow: 0 2px 0 #050507; }

.btn-small { min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: 14px; box-shadow: 0 3px 0 #050507; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Type */
.eyebrow { margin-bottom: 14px; color: var(--lime); font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }

.display { font-size: clamp(44px, 7.2vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }

.title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }

.subtitle { font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.14; letter-spacing: -0.02em; text-wrap: balance; }

.lede { color: var(--text-2); font-size: clamp(18px, 2vw, 21px); line-height: 1.45; letter-spacing: -0.01em; }

.body { color: var(--text-2); }

.text-link { display: inline-flex; gap: 6px; font-weight: 650; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; transition: text-decoration-color 0.15s; }

.text-link:hover { text-decoration-color: currentColor; }

/* Phones */
.phone { flex: none; width: var(--w); padding: calc(var(--w) * 0.018); background: #24242f; border-radius: calc(var(--w) * 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 70px rgba(0, 0, 0, 0.55); }

.phone img { width: 100%; height: auto; border-radius: calc(var(--w) * 0.125); }

/* Hero: the phones sit slightly out of line, like the letters of the wordmark. */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(50% 60% at 78% 62%, rgba(90, 80, 255, 0.2), transparent 70%), radial-gradient(34% 46% at 92% 30%, rgba(255, 90, 170, 0.11), transparent 70%); }

.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; min-height: 680px; }

.hero-text { padding-block: 72px; }

.hero .display { font-size: clamp(44px, 6.4vw, 80px); }

.hero .lede { max-width: 25em; margin-top: 24px; }

.hero .actions { margin-top: 34px; }

.stage { position: relative; align-self: end; height: 620px; }

.stage .phone { position: absolute; left: 54%; bottom: -150px; }

.stage .phone:nth-child(1) { --w: 232px; margin-left: -282px; bottom: -90px; transform: rotate(-7deg); }

.stage .phone:nth-child(2) { --w: 232px; margin-left: 50px; bottom: -110px; transform: rotate(8deg); }

.stage .phone:nth-child(3) { --w: 272px; margin-left: -136px; }

/* Commitments */
.pledges { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }

.pledges li { padding: 30px 28px 32px 0; }

.pledges li + li { padding-left: 28px; border-left: 1px solid var(--line); }

.pledges strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

.pledges span { display: block; color: var(--text-2); font-size: 15px; line-height: 1.4; }

/* Sections */
.section { padding-block: var(--section); }

.section + .section { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }

.section-head .lede { margin-top: 18px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 7vw, 96px); }

.feature + .feature { margin-top: clamp(40px, 7vw, 88px); }

.feature:nth-child(even) .media { order: -1; }

.feature p { margin-top: 14px; }

.media { --glow: #5a50ff; position: relative; display: flex; justify-content: center; gap: 20px; height: clamp(420px, 44vw, 560px); padding-top: clamp(32px, 5vw, 56px); overflow: hidden; border-radius: 28px; background: radial-gradient(90% 80% at 50% 110%, color-mix(in srgb, var(--glow) 42%, transparent), transparent 75%), var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.media .phone { --w: clamp(220px, 24vw, 290px); }

.media.pair .phone { --w: clamp(170px, 20vw, 240px); }

.media.pair .phone:first-child { transform: translateY(26px) rotate(-3deg); }

.media.pair .phone:last-child { transform: rotate(3deg); }

.glow-orange { --glow: #ff7a2f; }

.glow-pink { --glow: #d6389a; }

.glow-lime { --glow: #8fbf1f; }

.more { margin-top: 24px; }

.cards-section { padding-top: clamp(32px, 5vw, 56px); }

.note { margin-top: 28px; color: var(--text-3); font-size: 14px; }

/* Statement rows */
.stack { border-top: 1px solid var(--line); }

.stack > * { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px clamp(24px, 6vw, 80px); padding-block: clamp(24px, 3.4vw, 36px); border-bottom: 1px solid var(--line); }

.stack h3 { font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

/* Grid of smaller features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; background: var(--line); border-radius: 24px; box-shadow: 0 0 0 1px var(--line); }

.grid li { padding: 28px; background: var(--surface); }

.grid h3 { margin-bottom: 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.grid p { color: var(--text-2); font-size: 16px; line-height: 1.45; }

/* Facts table */
.facts { border-top: 1px solid var(--line); }

.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }

.facts dt { color: var(--text-2); }

.facts dd { overflow-wrap: anywhere; font-weight: 500; }

.facts a, .prose a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }

.facts a:hover, .prose a:hover { text-decoration-color: currentColor; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(32px, 7vw, 96px); }

.split .lede { margin-top: 18px; }

.split .text-link { margin-top: 22px; }

/* Closing panel */
.cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; padding: clamp(32px, 5.4vw, 64px); color: #15170a; background: var(--lime); border-radius: 28px; }

.cta p { max-width: 30em; margin-top: 12px; font-size: 18px; line-height: 1.4; }

.cta .btn { color: var(--text); background: #15170a; box-shadow: 0 4px 0 var(--lime-lip); }

/* Inner pages */
.page-head { padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px); }

.page-head + .wrap > .sec:first-child { border-top: 1px solid var(--line); }

.page-head .lede { max-width: 34em; margin-top: 22px; }

.page-head .actions { margin-top: 30px; }

.page-head .meta { margin-top: 18px; color: var(--text-3); font-size: 15px; }

.product-mark { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }

.product-mark img { border-radius: 18px; }

.pill { display: inline-block; padding: 5px 12px; color: var(--lime); background: rgba(212, 245, 60, 0.11); border-radius: 999px; font-size: 14px; font-weight: 600; }

.sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px clamp(24px, 6vw, 80px); padding-block: clamp(32px, 4.4vw, 52px); border-bottom: 1px solid var(--line); }

.sec:last-child { padding-bottom: var(--section); border-bottom: 0; }

.sec h2 { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }

.prose { max-width: 40em; color: var(--text-2); }

.prose p + p, .prose ul + p, .prose p + ul, .prose .facts { margin-top: 14px; }

.prose strong { color: var(--text); font-weight: 600; }

.prose a { color: var(--text); }

.prose ul { display: grid; gap: 8px; }

.prose li { position: relative; padding-left: 20px; }

.prose li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; background: var(--lime); border-radius: 2px; transform: rotate(20deg); }

.prose .facts dd { color: var(--text); }

/* Contact cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card { display: flex; flex-direction: column; gap: 8px; padding: 28px; background: var(--surface); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); }

.card h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }

.card p { flex: 1; color: var(--text-2); font-size: 16px; line-height: 1.45; }

.card a { margin-top: 12px; overflow-wrap: anywhere; font-weight: 650; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }

/* Questions */
.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; cursor: pointer; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; list-style: none; }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; flex: none; color: var(--text-2); font-size: 24px; font-weight: 400; line-height: 1; transition: transform 0.2s; }

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { max-width: 42em; padding-bottom: 22px; color: var(--text-2); }

/* Footer */
.foot { padding-top: clamp(40px, 6vw, 64px); overflow: hidden; border-top: 1px solid var(--line); }

.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }

.foot-about { max-width: 22em; color: var(--text-2); font-size: 15px; line-height: 1.45; }

.foot-about .brand { margin-bottom: 12px; color: var(--text); }

.foot h2 { margin-bottom: 12px; color: var(--text-3); font-size: 14px; font-weight: 500; }

.foot li + li { margin-top: 8px; }

.foot li a { color: var(--text-2); font-size: 15px; transition: color 0.15s; }

.foot li a:hover { color: var(--text); }

.legal-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: clamp(40px, 6vw, 64px); color: var(--text-3); font-size: 14px; }

/* The closing wordmark: "chaos" tumbles out of line once and stays that way. */
.wordmark { display: flex; gap: 0.2em; margin-top: 22px; padding-bottom: 0.18em; color: var(--text); font-size: clamp(38px, 11.4vw, 146px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }

.chaos { display: inline-block; }

.chaos i { display: inline-block; font-style: normal; transform: var(--end); animation: tumble 0.8s cubic-bezier(0.3, 1.3, 0.5, 1) 0.25s both; }

.chaos i:nth-child(1) { --end: translateY(-0.02em) rotate(-5deg); }
.chaos i:nth-child(2) { --end: translateY(0.09em) rotate(7deg); animation-delay: 0.3s; }
.chaos i:nth-child(3) { --end: translateY(-0.07em) rotate(-13deg); animation-delay: 0.35s; }
.chaos i:nth-child(4) { --end: translate(0.03em, 0.11em) rotate(16deg); animation-delay: 0.4s; }
.chaos i:nth-child(5) { --end: translate(0.1em, -0.04em) rotate(31deg); animation-delay: 0.45s; }

@keyframes tumble {
  from { transform: none; }
  to { transform: var(--end); }
}

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero { background: radial-gradient(90% 40% at 50% 92%, rgba(90, 80, 255, 0.24), transparent 75%); }
  .hero-text { padding-block: 56px 44px; }
  .stage { height: 330px; align-self: auto; }
  .stage .phone { left: 50%; }
  .stage .phone:nth-child(1) { --w: 190px; margin-left: -232px; bottom: -150px; }
  .stage .phone:nth-child(2) { --w: 190px; margin-left: 42px; bottom: -170px; }
  .stage .phone:nth-child(3) { --w: 216px; margin-left: -108px; bottom: -190px; }
  .pledges { grid-template-columns: repeat(2, 1fr); }
  .pledges li { padding: 22px 20px 24px 0; }
  .pledges li + li { padding-left: 0; border-left: 0; }
  .pledges li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .pledges li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .grid, .cards { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
  .feature, .split, .sec, .stack > * { grid-template-columns: 1fr; }
  .feature:nth-child(even) .media { order: 0; }
  .media { height: 440px; }
  .media .phone { --w: 240px; }
  .media.pair .phone { --w: 158px; }
  .media.pair { gap: 12px; }
  .grid, .cards { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 96px 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .stage { height: 290px; }
  .stage .phone:nth-child(1) { --w: 164px; margin-left: -186px; bottom: -130px; }
  .stage .phone:nth-child(2) { --w: 164px; margin-left: 24px; bottom: -150px; }
  .stage .phone:nth-child(3) { --w: 196px; margin-left: -98px; bottom: -180px; }
  .actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chaos i { animation: none; }
  .btn, .faq summary::after { transition: none; }
}
