/* Mr. White site. Tokens mirror the app's design system (store/listing.md, DS artifact). */
:root {
  --paper: #ffffff; --surface: #f5f5f5; --line: #e5e5e5; --bezel: #111111;
  --ink: #0a0a0a; --ink-hover: #2a2a2a; --ink-muted: #6b6b6b; --accent: #e10600; --on-ink: #ffffff;
  --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --wrap: 1180px; --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* type */
.display { font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(46px, 6.5vw, 94px); }
.h2 { font-weight: 900; letter-spacing: -0.035em; line-height: 0.98; font-size: clamp(40px, 6.4vw, 84px); }
.h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(22px, 2.4vw, 28px); }
.lede { color: var(--ink-muted); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; max-width: 34em; }
.caps { font-weight: 700; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-muted); }
em, .red { font-style: normal; color: var(--accent); }
.split .w { display: inline-block; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
       border-radius: var(--r-md); font: 700 16px/1 var(--font); text-decoration: none; border: 2px solid var(--ink);
       transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-line { background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
  .btn-line:hover { background: var(--surface); }
}
.btn[aria-disabled="true"] { cursor: default; }
.btn small { font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--ink-muted); }
.btn-ink small { color: rgba(255,255,255,.6); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
       -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -0.02em; font-size: 20px; }
.brand img { width: 30px; height: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) { .nav ul a:hover { background: var(--surface); } }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 719px) { .nav .links { display: none; } }

/* hero */
.hero { position: relative; padding: clamp(36px, 7vw, 96px) 0 clamp(56px, 8vw, 120px); overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.25fr 0.75fr; } }
.hero .lede { margin-top: 24px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.laurels { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; }
.laurels svg { width: 34px; height: 62px; color: var(--ink); flex: none; }
.laurels .flip { transform: scaleX(-1); }
.laurels span { display: grid; justify-items: center; text-align: center; gap: 4px; }
.laurels small, .laurels b { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.laurels strong { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.laurels b { color: var(--accent); }
@media (max-width: 420px) { .laurels { gap: 6px; } .laurels b { letter-spacing: .1em; } .laurels small { letter-spacing: .14em; } }

/* the hold-to-reveal card */
.stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rings i { position: absolute; border: 2px solid var(--line); border-radius: 50%; }
.rings i:nth-child(1) { width: 380px; height: 380px; }
.rings i:nth-child(2) { width: 500px; height: 500px; opacity: .7; }
.rings i:nth-child(3) { width: 620px; height: 620px; opacity: .45; }
.card { position: relative; width: min(300px, 78vw); aspect-ratio: 3 / 4; perspective: 1200px; border: 0; padding: 0; background: none;
        cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; font: inherit; color: inherit; }
.card .face { position: absolute; inset: 0; border-radius: var(--r-xl); display: grid; place-content: center; justify-items: center; gap: 10px;
              padding: 24px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
              transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.card .front { background: var(--surface); border: 1.5px solid var(--line); box-shadow: 0 1px 2px rgba(10,10,10,.06), 0 8px 24px rgba(10,10,10,.06); }
.card .front img { width: 108px; }
.card .front strong { font-size: 19px; font-weight: 800; }
.card .front span { font-size: 13px; color: var(--ink-muted); }
.card .back { background: var(--ink); color: var(--on-ink); transform: rotateY(180deg); }
.card .back span { font-size: 14px; color: rgba(255,255,255,.6); font-weight: 600; }
.card .back strong { font-size: clamp(34px, 4vw, 44px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.card.white .back { background: var(--accent); }
.card.white .back span { color: rgba(255,255,255,.85); }
.card.revealed .front { transform: rotateY(-180deg); }
.card.revealed .back { transform: rotateY(0deg); box-shadow: 0 30px 80px rgba(10,10,10,.22); }
.card.revealed .face { transition-duration: 420ms; }
.card-hint { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) {
  .card .face, .card.revealed .face { transition: opacity 200ms ease; transform: none !important; }
  .card .back { opacity: 0; }
  .card.revealed .back { opacity: 1; }
  .card.revealed .front { opacity: 0; }
}

/* devices: every bezel and corner is sized from the device's own width (container units), so a phone looks the same at
   any size, and the screen's corners sit exactly inside the frame's */
.phone, .tablet { position: relative; container-type: inline-size; }
.phone img, .tablet img { width: 100%; background: var(--bezel); border: solid var(--bezel); box-shadow: 0 30px 80px rgba(10,10,10,.16); }
.phone img { border-width: 3.2cqw; border-radius: 15cqw; }
.tablet img { border-width: 2.8cqw; border-radius: 6cqw; }
.phone::after { content: ""; position: absolute; left: 50%; top: 5.2cqw; width: 26cqw; height: 7.6cqw; translate: -50% 0;
                border-radius: 8cqw; background: #000; } /* the Dynamic Island */
.phone.android::after { width: 3.8cqw; height: 3.8cqw; top: 6.2cqw; } /* the camera hole */
.window { border-radius: 0.9cqw; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px rgba(10,10,10,.1), 0 30px 90px rgba(10,10,10,.18); }

/* how it plays */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { max-width: 760px; }
.section-head .lede { margin-top: 20px; }
.steps { display: grid; gap: 56px; margin-top: 64px; }
@media (min-width: 960px) { .steps { grid-template-columns: 1fr 380px; gap: 80px; } }
.step { padding: 8px 0; }
@media (min-width: 960px) { .step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; } }
.step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-ink);
             font-weight: 800; font-size: 15px; margin-bottom: 18px; transition: background-color 200ms ease; }
.step.active .num { background: var(--accent); }
.step p { color: var(--ink-muted); font-size: 18px; margin-top: 12px; max-width: 28em; }
.step .phone { width: min(300px, 74vw); margin-top: 28px; }
@media (min-width: 960px) { .step .phone { display: none; } }
.sticky-phone { display: none; }
@media (min-width: 960px) {
  .sticky-phone { display: block; position: sticky; top: calc(50vh - 340px); height: 680px; }
  .sticky-phone .phone { width: 314px; margin: 0 auto; }
  .sticky-phone .screens { position: relative; }
  .sticky-phone .screens img + img { position: absolute; inset: 0; }
  .sticky-phone .screens img { opacity: 0; transition: opacity 260ms ease; }
  .sticky-phone .screens img.on { opacity: 1; }
}

/* drama */
.drama { background: var(--ink); color: var(--on-ink); border-radius: clamp(24px, 4vw, 40px); margin: 0 var(--gutter); overflow: hidden; }
.drama .wrap { display: grid; gap: 48px; align-items: center; padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
@media (min-width: 900px) { .drama .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.drama .lede { color: rgba(255,255,255,.66); margin-top: 22px; }
.drama .phone { width: min(320px, 74vw); margin: 0 auto; --bezel: #262626; }
.drama .phone img { box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.drama .caps { color: rgba(255,255,255,.5); }

/* platform row */
.platforms { display: flex; flex-wrap: wrap; gap: 20px clamp(14px, 3vw, 28px); list-style: none; padding: 0; margin: 36px 0 0; }
.platforms li { display: grid; justify-items: center; gap: 10px; font-weight: 700; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.platforms span { display: grid; place-items: center; width: clamp(60px, 16vw, 72px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: clamp(26px, 7vw, 32px); }

/* devices composite: the Mac at the back, the handhelds standing in front of it, each with its name underneath (in the
   same figure, so the parallax moves a device and its name together) */
.devices { margin-top: 64px; }
.devices figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.devices .mac { width: min(84%, 960px); margin: 0 auto; container-type: inline-size; }
.devices .mac .window { width: 100%; }
.devices .handhelds { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(20px, 4vw, 56px); margin-top: -15%; }
.devices .ipad { flex: 0 0 30%; }
.devices .iphone, .devices .android { flex: 0 0 14.5%; }
.devices .phone, .devices .tablet { width: 100%; }
@media (max-width: 719px) {
  .devices .mac { width: 100%; }
  .devices .handhelds { margin-top: 28px; gap: 12px; }
  .devices .ipad { flex-basis: 42%; }
  .devices .iphone, .devices .android { flex-basis: 22%; }
  .devices figcaption { font-size: 10px; letter-spacing: .14em; }
}

/* facts */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; margin-top: 56px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--paper); padding: 28px; }
.fact iconify-icon { font-size: 28px; color: var(--ink); display: block; height: 28px; }
.fact .h3 { margin-top: 18px; font-size: 21px; }
.fact p { color: var(--ink-muted); font-size: 16px; margin-top: 8px; }

/* download */
.final { text-align: center; }
.final img.mascot { width: 140px; margin: 0 auto 28px; }
.final .lede { margin: 22px auto 0; }
.final .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* App Store waitlist (home and /get) */
.waitlist { max-width: 460px; margin: 36px auto 0; }
.waitlist label { display: block; margin-bottom: 12px; font-weight: 700; }
.waitlist .row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input { flex: 999 1 220px; min-width: 0; min-height: 50px; padding: 0 16px; border: 2px solid var(--line); border-radius: var(--r-md);
                  background: var(--paper); color: var(--ink); font: 500 16px var(--font); text-align: left; }
.waitlist input:focus { outline: none; border-color: var(--ink); }
.waitlist button { flex: 1 0 auto; cursor: pointer; }
.waitlist button:disabled { opacity: .6; cursor: default; }
.waitlist .note { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.waitlist.done label, .waitlist.done .row { display: none; }
.waitlist.done .note { color: var(--ink); font-size: 17px; font-weight: 700; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; font-weight: 600; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration: underline; } }

/* document pages (privacy, support) */
.doc { padding: clamp(40px, 7vw, 96px) 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin-bottom: 14px; }
.doc .meta { color: var(--ink-muted); margin-bottom: 44px; }
.doc h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; margin: 44px 0 12px; }
.doc p, .doc li { color: #2a2a2a; font-size: 17px; line-height: 1.65; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0 0; }
.doc li + li { margin-top: 8px; }
.doc a { font-weight: 600; }
.qa { border-top: 1px solid var(--line); padding: 26px 0; }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa h2 { margin: 0 0 10px; font-size: 21px; }
.contact { margin-top: 48px; background: var(--surface); border-radius: var(--r-xl); padding: 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.contact p { margin: 0; }

/* play with bots */
.bots-grid { display: grid; gap: 56px; margin-top: 64px; align-items: center; }
@media (min-width: 960px) { .bots-grid { grid-template-columns: 1.05fr 0.95fr; gap: 72px; } }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; }
.perks li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.perks li > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); font-size: 26px; }
.perks li > span iconify-icon { display: block; height: 26px; }
.perks .h3 { font-size: 22px; }
.perks p { color: var(--ink-muted); font-size: 17px; margin-top: 6px; max-width: 30em; }
.bots-phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 28px); align-items: start; max-width: 560px; margin: 0 auto; width: 100%; }
.bots-phones .phone:last-child { margin-top: clamp(32px, 7vw, 72px); }
.doc h2.group { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); margin: 56px 0 4px; }
.doc h2.group:first-of-type { margin-top: 8px; }
.doc ul + p, .doc ol + p { margin-top: 14px; }

/* the 1.1 news: a pill in the hero, the "New in 1.1" list in two columns on wide screens */
.news { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.news b { background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 3px 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .news:hover { background: var(--surface); } }
@media (max-width: 420px) { .news { font-size: 13px; gap: 8px; } }
.news-list { margin: 56px 0 40px; }
@media (min-width: 960px) { .news-list { grid-template-columns: 1fr 1fr; gap: 40px 64px; } }
