/* BUILT website. Brand tokens first. */
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-ExtraBoldItalic.ttf") format("truetype"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-BlackItalic.ttf") format("truetype"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #000;
  --card: #121212;
  --card-2: #1a1a1a;
  --line: #333;
  --muted: #8c8c8c;
  --text: #ededed;
  --white: #fff;
  --lime: #c6ff00;
  --lime-ink: #c6ff00; /* lime reads fine as text on black */
  --gold: #ffc83d;
  --purple: #b98cff;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --radius: 18px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--lime); text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Display type */
.display { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.92; margin: 0; color: var(--white); }
.lime { color: var(--lime); }
.muted { color: var(--muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: #1c1c1c; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; color: var(--lime); text-decoration: none; }
.logo svg { height: 22px; width: auto; }

/* Pill: "Coming soon to the App Store" */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--lime); color: #000; font-weight: 600; font-size: 17px; line-height: 1; text-decoration: none; white-space: nowrap; }
.pill svg { width: 20px; height: 20px; flex: none; }
.pill small { display: block; font-size: 12px; font-weight: 500; opacity: .7; margin-bottom: 3px; }
.pill.sm { height: 38px; padding: 0 14px 0 12px; font-size: 14px; gap: 8px; }
.pill.sm svg { width: 16px; height: 16px; }
.pill.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(64px, 9vw, 124px); }
.hero .lede { font-size: 21px; color: var(--text); max-width: 30ch; margin: 22px 0 30px; }
.hero .lede b { color: var(--white); font-weight: 600; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-photo { max-width: 460px; width: 100%; justify-self: end; }

/* Before/after slider */
.ba { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--card); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; --pos: 46%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--lime); box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.ba .knob { position: absolute; top: 60%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.4); pointer-events: none; }
.ba .knob svg { width: 22px; height: 22px; color: #000; }
.ba .tag { position: absolute; top: 14px; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 26px; line-height: 1; text-shadow: 0 1px 10px rgba(0,0,0,.45); pointer-events: none; }
.ba .tag.l { left: 16px; color: var(--white); }
.ba .tag.r { right: 16px; color: var(--lime); }
.ba .ex { position: absolute; bottom: 12px; right: 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 6px; pointer-events: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ba .hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: #000; background: var(--lime); padding: 6px 12px; border-radius: 999px; pointer-events: none; transition: opacity .3s; white-space: nowrap; }
.ba.touched .hint { opacity: 0; }
.ba.sm .tag { font-size: 18px; top: 10px; }
.ba.sm .tag.l { left: 10px; } .ba.sm .tag.r { right: 10px; }
.ba.sm .knob { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.ba.sm .knob svg { width: 18px; height: 18px; }
.ba.sm .ex { bottom: 8px; right: 8px; font-size: 10px; }

/* Sections */
section { padding: 72px 0; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin: 0 0 14px; }
.h2 { font-size: clamp(44px, 6vw, 76px); }
.sub { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 18px 0 0; }
.head { margin-bottom: 40px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid #1f1f1f; border-radius: 22px; padding: 14px 14px 22px; }
.step .pic { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--card-2); }
.step .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step h3 { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 32px; line-height: 1; color: var(--white); margin: 20px 8px 6px; }
.step h3 span { color: var(--lime); margin-right: 8px; }
.step p { margin: 0 8px; color: var(--muted); font-size: 17px; }

/* Step 1: camera viewfinder */
.vf::before, .vf::after { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255,255,255,.0); z-index: 2; }
.vf .corners { position: absolute; inset: 14px; z-index: 2; background:
  linear-gradient(var(--lime),var(--lime)) top left / 28px 3px no-repeat,
  linear-gradient(var(--lime),var(--lime)) top left / 3px 28px no-repeat,
  linear-gradient(var(--lime),var(--lime)) top right / 28px 3px no-repeat,
  linear-gradient(var(--lime),var(--lime)) top right / 3px 28px no-repeat,
  linear-gradient(var(--lime),var(--lime)) bottom left / 28px 3px no-repeat,
  linear-gradient(var(--lime),var(--lime)) bottom left / 3px 28px no-repeat,
  linear-gradient(var(--lime),var(--lime)) bottom right / 28px 3px no-repeat,
  linear-gradient(var(--lime),var(--lime)) bottom right / 3px 28px no-repeat; }
.vf .cue { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); z-index: 3; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--lime); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.vf .shutter { position: absolute; bottom: 22px; left: 50%; width: 58px; height: 58px; margin-left: -29px; border-radius: 50%; border: 4px solid #fff; z-index: 3; }
.vf .shutter::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.vf .timer { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 64px; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); animation: count 3s steps(1) infinite; }

/* Step 2: ghost overlay lining up */
.ghost .over { opacity: .5; mix-blend-mode: normal; animation: ghost 4s ease-in-out infinite; }
.ghost .chip { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: var(--lime); color: #000; font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; }
.ghost .dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid var(--lime); border-radius: 50%; z-index: 2; }

/* Step 3: looping wipe */
.wipe .before { animation: wipe 4.4s ease-in-out infinite; }
.wipe .line { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--lime); z-index: 2; animation: wipeline 4.4s ease-in-out infinite; }
.wipe .count { position: absolute; top: 12px; right: 14px; z-index: 2; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 28px; line-height: 1; color: var(--lime); text-transform: uppercase; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.wipe .wm { position: absolute; bottom: 14px; left: 14px; z-index: 2; color: var(--lime); }
.wipe .wm svg { height: 14px; width: auto; }

@keyframes ghost { 0%, 100% { opacity: .55; transform: translate(4%, 2%) scale(1.06) rotate(-2deg); } 45%, 80% { opacity: .5; transform: none; } }
@keyframes wipe { 0%, 15% { clip-path: inset(0 0 0 0); } 55%, 85% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes wipeline { 0%, 15% { left: 100%; } 55%, 85% { left: 0%; } 100% { left: 100%; } }
@keyframes count { 0% { content: "3"; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.gallery figcaption b { color: var(--text); font-weight: 600; }

/* Unlock ladder */
.ladder { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-s { display: inline-flex; align-items: baseline; gap: 10px; background: var(--card); border: 1px solid #222; border-radius: 12px; padding: 10px 14px; }
.chip-s b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 24px; line-height: 1; color: var(--lime); min-width: 1.6ch; }
.chip-s span { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 20px; line-height: 1; color: var(--text); }
.chip-s.rare b { color: var(--lime); }
.chip-s.epic b { color: var(--purple); }
.chip-s.legend { border-color: rgba(255,200,61,.5); }
.chip-s.legend b, .chip-s.legend span { color: var(--gold); }
.chip-s.dim span { color: #bdbdbd; }
.ladder-foot { margin-top: 22px; color: var(--muted); font-size: 17px; }

/* Split rows (goal, privacy) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 480px; }
.pair .pic { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--card); }
.pair .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair .lab { position: absolute; top: 10px; left: 12px; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 20px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.pair .lab.g { color: var(--lime); }
.pair .ai { position: absolute; bottom: 10px; left: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; padding: 4px 8px; border-radius: 6px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; }
.ticks li svg { flex: none; width: 22px; height: 22px; color: var(--lime); margin-top: 3px; }
.ticks li b { color: var(--white); font-weight: 600; }

.phone-lock { background: var(--card); border: 1px solid #1f1f1f; border-radius: 28px; padding: 30px; display: grid; gap: 14px; max-width: 480px; }
.phone-lock .row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card-2); border-radius: 14px; }
.phone-lock .row svg { width: 26px; height: 26px; color: var(--lime); flex: none; }
.phone-lock .row b { display: block; color: var(--white); font-weight: 600; }
.phone-lock .row span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid #222; }
.faq details:last-child { border-bottom: 1px solid #222; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 20px; font-weight: 600; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; color: var(--lime); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: #bdbdbd; max-width: 64ch; }

/* Final CTA */
.cta { text-align: center; padding: 96px 0 104px; }
.cta .display { font-size: clamp(56px, 9vw, 120px); }
.cta p { color: var(--muted); margin: 16px 0 30px; font-size: 19px; }

/* Footer */
.foot { border-top: 1px solid #1c1c1c; padding: 32px 0 40px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--lime); }
.foot .logo svg { height: 16px; }

/* Legal / support pages */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.doc h1 { font-size: clamp(52px, 8vw, 84px); margin-bottom: 10px; }
.doc .date { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc .intro { font-size: 20px; color: var(--text); }
.doc h2 { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1; color: var(--lime); margin: 44px 0 12px; }
.doc p, .doc li { color: #cfcfcf; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--white); font-weight: 600; }
.mailcard { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid #222; border-radius: 20px; padding: 22px 24px; margin: 8px 0 12px; }
.mailcard b { display: block; color: var(--white); font-size: 20px; font-weight: 600; }
.mailcard span { color: var(--muted); font-size: 15px; }
.doc .faq summary { font-size: 18px; }

/* 404 */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.nf .display { font-size: clamp(88px, 18vw, 180px); }
.nf p { color: var(--muted); font-size: 19px; margin: 16px 0 28px; }

/* Phones */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { justify-self: center; max-width: 440px; }
  .steps { grid-template-columns: 1fr; max-width: 440px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split .pair, .split .phone-lock { justify-self: start; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .top .wrap { height: 56px; }
  .logo svg { height: 18px; }
  .hero { padding: 24px 0 48px; }
  .hero .lede { font-size: 19px; margin: 16px 0 24px; }
  section { padding: 52px 0; }
  .head { margin-bottom: 28px; }
  .sub { font-size: 17px; }
  .gallery { gap: 10px; }
  .gallery figcaption { font-size: 13px; }
  .chip-s { padding: 8px 11px; }
  .chip-s b { font-size: 20px; } .chip-s span { font-size: 17px; }
  .faq summary { font-size: 18px; padding: 18px 0; }
  .doc { padding: 32px 16px 64px; }
  .doc h2 { font-size: 26px; }
  .pill { height: 50px; font-size: 16px; }
  .pill.sm { height: 34px; font-size: 13px; padding: 0 12px 0 10px; }
  .phone-lock { padding: 18px; }
  .steps { gap: 12px; }
  .step { display: grid; grid-template-columns: 42% 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: 18px; }
  .step .pic { border-radius: 10px; }
  .step h3 { margin: 0 0 6px; font-size: 26px; }
  .step p { margin: 0; font-size: 15px; }
  .vf .cue { top: 12px; font-size: 11px; padding: 4px 8px; }
  .vf .corners { inset: 8px; }
  .vf .shutter { width: 34px; height: 34px; margin-left: -17px; bottom: 12px; border-width: 3px; }
  .vf .shutter::after { inset: 3px; }
  .ghost .chip { font-size: 9px; padding: 4px 7px; left: 8px; bottom: 8px; }
  .wipe .count { font-size: 20px; top: 8px; right: 10px; }
  .wipe .wm svg { height: 10px; }
  .ba .tag { font-size: 22px; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}
@media (hover: none) { .foot a:hover { color: var(--text); } }
@media (prefers-reduced-motion: reduce) {
  .ghost .over, .wipe .before, .wipe .line, .vf .timer { animation: none; }
}

/* ---- Round 2 ---- */
/* App Store badge: Apple artwork unmodified, >=40px tall, clear space >= 1/4 height */
.get { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: -14px; }
.get .badge { display: inline-block; padding: 14px; line-height: 0; border-radius: 10px; }
.get .badge img { height: 54px; width: auto; }
.get .soon { font-size: 15px; color: var(--muted); padding: 0 14px; }
.cta .get { justify-content: center; flex-direction: column; margin: 0 auto; }
.foot .tm { flex-basis: 100%; margin: 6px 0 0; font-size: 12px; color: #666; line-height: 1.5; }

/* Camera roll vs BUILT */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 520px; }
.vs figure { margin: 0; }
.vs figcaption { margin-top: 10px; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 22px; line-height: 1; color: var(--muted); }
.vs figcaption.lime { color: var(--lime); }
.mess { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--card); overflow: hidden; }
.mess img { position: absolute; width: 74%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.6); border: 3px solid #fff; }
.mess .m1 { left: 4%; top: 6%; transform: rotate(-7deg); filter: brightness(.82) sepia(.35) saturate(1.2); }
.mess .m2 { right: 2%; bottom: 4%; width: 62%; transform: rotate(5deg); filter: brightness(1.12) contrast(.9) hue-rotate(-8deg); }

/* Style clips */
.clips { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.clips::-webkit-scrollbar { display: none; }
.clip { margin: 0; flex: 0 0 210px; scroll-snap-align: center; }
.phone { position: relative; aspect-ratio: 540 / 1174; border-radius: 30px; overflow: hidden; background: #111; border: 3px solid #2a2a2a; box-shadow: 0 0 0 1px #000, 0 20px 50px rgba(0,0,0,.6); }
.phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.clip figcaption { margin-top: 12px; text-align: center; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 24px; line-height: 1; color: var(--lime); text-shadow: 0 0 14px rgba(198,255,0,.35); }

/* Habit */
.habit { position: relative; width: 100%; max-width: 380px; padding-top: 34px; }
.habit .pic { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--card); }
.habit .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.notif { position: absolute; z-index: 4; top: 0; left: -18px; right: -18px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(40,40,40,.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif div { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
.notif b { display: block; color: #fff; font-weight: 600; }
.notif span { color: #d6d6d6; }
.notif em { font-style: normal; font-size: 13px; color: var(--muted); align-self: flex-start; }

@media (max-width: 900px) {
  .split .vs, .split .habit { justify-self: start; }
}
@media (max-width: 640px) {
  .get .badge img { height: 48px; }
  .get { margin: -12px; } .get .badge { padding: 12px; } .get .soon { padding: 0 12px; }
  .cta .get { margin: 0 auto; }
  .clips { gap: 12px; padding: 4px 16px 14px; }
  .clip { flex-basis: 56vw; max-width: 240px; }
  .vs { gap: 10px; }
  .vs figcaption { font-size: 18px; }
  .notif { left: -6px; right: -6px; }
  .habit { max-width: 340px; }
}

.phone .ex { position: absolute; top: 12px; left: 14px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); background: rgba(0,0,0,.45); padding: 3px 7px; border-radius: 6px; pointer-events: none; }

/* ---- Round 3 ---- */
.gallery.g3 { grid-template-columns: repeat(3, 1fr); max-width: 860px; }
.ptab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pcard { margin: 0; }
.pcard .phone { max-width: 300px; margin: 0 auto; }
.pcard figcaption { margin: 18px auto 0; max-width: 300px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.pcard figcaption b { display: block; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 26px; line-height: 1; color: var(--white); margin-bottom: 6px; }
.phone.shot { aspect-ratio: 540 / 1174; background: #000; }
.phone.shot > img { position: absolute; inset: 0; width: 100%; height: auto; }
.phone .ex { z-index: 3; }
/* Stats mock (drawn in HTML, same look as the app) */
.stats { padding: 44px 10px 10px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.st-card { background: #141414; border: 1px solid #222; border-radius: 14px; padding: 10px 12px; }
.st-k { display: block; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.st-row { display: flex; align-items: baseline; justify-content: space-between; }
.st-big { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 48px; line-height: 1; color: var(--lime); }
.st-mid { display: block; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 26px; line-height: 1.1; color: var(--lime); margin-top: 2px; }
.st-m { color: var(--muted); font-size: 11px; }
.st-week { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--white); font-size: 12px; margin-top: 6px; }
.st-dots { display: flex; justify-content: space-between; margin-top: 8px; }
.st-dots i { width: 11%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #3a3a3a; }
.st-dots i.on { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 8px rgba(198,255,0,.4); }
.st-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; margin-top: 8px; }
.st-grid i { aspect-ratio: 1; border-radius: 2px; background: #262626; }
.st-grid i.on { background: var(--lime); }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spark { width: 100%; height: 22px; color: var(--lime); margin-top: 4px; }
@media (max-width: 900px) {
  .ptab { grid-template-columns: 1fr; gap: 40px; max-width: 420px; }
  .pcard { display: grid; grid-template-columns: 46% 1fr; gap: 18px; align-items: center; }
  .pcard .phone, .pcard figcaption { margin: 0; max-width: none; }
}
@media (max-width: 640px) {
  .gallery.g3 { grid-template-columns: 1fr 1fr; }
  .gallery.g3 figure:last-child { display: none; }
  .pcard figcaption { font-size: 15px; }
  .pcard figcaption b { font-size: 22px; }
  .stats { padding: 30px 6px 6px; gap: 5px; }
  .st-card { padding: 7px 8px; border-radius: 10px; }
  .st-big { font-size: 32px; } .st-mid { font-size: 18px; }
  .st-k { font-size: 7px; } .st-week { font-size: 9px; margin-top: 3px; } .st-m { font-size: 8px; }
  .st-grid { gap: 2px; }
}
.pcard .phone .ex { top: 9%; left: 10px; }
.pcard .phone .ex { top: auto; bottom: 3%; left: 50%; transform: translateX(-50%); }

/* ---- Round 4 ---- */
.hero .lede { font-size: 19px; font-weight: 400; color: var(--muted); max-width: 34ch; margin: 18px 0 28px; }
.h2 { font-size: clamp(34px, 4.6vw, 64px); }
.hero h1 { font-size: clamp(56px, 8vw, 112px); }
.cta .display { font-size: clamp(40px, 7vw, 96px); }

/* Alignment demo */
.align { position: relative; aspect-ratio: 3 / 4; width: 100%; max-width: 420px; border-radius: var(--radius); overflow: hidden; background: #0b0b0b; justify-self: end; }
.align .ghost-d1 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(1); }
.align .today { position: absolute; inset: 0; transform-origin: 50% 50%; animation: snap 7s cubic-bezier(.65,0,.35,1) infinite; }
.align .today img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: relight 7s ease-in-out infinite; }
.align .pt { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px rgba(198,255,0,.8); z-index: 2; }
.align .ring { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); z-index: 3; animation: ring 7s ease-in-out infinite; }
.align .a-lab { position: absolute; top: 12px; left: 14px; z-index: 4; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 20px; color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.align .a-state { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.align .a-state.raw { background: rgba(0,0,0,.6); color: #fff; animation: rawlab 7s linear infinite; }
.align .a-state.ok { background: var(--lime); color: #000; animation: oklab 7s linear infinite; }
.align .a-state svg { width: 16px; height: 16px; }
.align .ex { z-index: 4; bottom: auto; top: 12px; }
.align-steps { list-style: none; counter-reset: s; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.align-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; font-size: 17px; color: var(--text); }
.align-steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1d1d1d; border: 1px solid #333; color: var(--lime); font-family: var(--display); font-weight: 900; font-style: italic; display: grid; place-items: center; font-size: 15px; }
@keyframes snap {
  0% { transform: translate(9%, 6%) rotate(-9deg) scale(.76); opacity: 0; }
  4%, 16% { transform: translate(9%, 6%) rotate(-9deg) scale(.76); opacity: 1; }
  44%, 92% { transform: none; opacity: 1; }
  98%, 100% { transform: none; opacity: 0; }
}
@keyframes relight { 0%, 46% { filter: brightness(.68) sepia(.55) saturate(1.4) hue-rotate(-10deg); } 60%, 100% { filter: none; } }
@keyframes ring { 0%, 40% { border-color: rgba(255,255,255,.75); transform: scale(1); } 46% { border-color: var(--lime); transform: scale(1.35); } 52%, 92% { border-color: var(--lime); transform: scale(1); } 100% { border-color: rgba(255,255,255,.75); } }
@keyframes rawlab { 0%, 2% { opacity: 0; } 5%, 28% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes oklab { 0%, 58% { opacity: 0; transform: translateX(-50%) scale(.85); } 62%, 92% { opacity: 1; transform: translateX(-50%) scale(1); } 96%, 100% { opacity: 0; } }

/* Styles marquee */
.marquee { display: grid; gap: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 60s linear infinite; }
.mq.rev .mq-track { animation-direction: reverse; animation-duration: 66s; }
.mq-set { display: flex; gap: 18px; padding-right: 18px; }
.mq-item { margin: 0; width: 180px; flex: none; }
.mq-item .phone { border-radius: 24px; border-width: 2px; }
.mq-item figcaption { margin-top: 10px; text-align: center; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 20px; line-height: 1; color: var(--lime); text-shadow: 0 0 12px rgba(198,255,0,.35); }
.marquee:hover .mq-track, .marquee.off .mq-track { animation-play-state: paused; }
.mq-note { margin-top: 22px; color: var(--muted); font-size: 14px; }
@keyframes mq { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .align { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 20px 0 40px; }
  .hero .wrap { gap: 26px; }
  .hero h1 { font-size: 52px; }
  .hero .lede { font-size: 16px; margin: 12px 0 20px; }
  .hero-photo { max-width: 340px; justify-self: start; }
  section { padding: 44px 0; }
  .head { margin-bottom: 22px; }
  .kicker { font-size: 12px; margin-bottom: 10px; }
  .h2 { font-size: 34px; }
  .sub { font-size: 16px; margin-top: 12px; }
  .split { gap: 26px; }
  .ba .tag { font-size: 18px; top: 10px; } .ba .tag.l { left: 12px; } .ba .tag.r { right: 12px; }
  .ba .knob { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .ba .hint { font-size: 12px; bottom: 12px; }
  .ba.sm .tag { font-size: 15px; }
  .get .badge img { height: 44px; }
  .get .badge { padding: 11px; } .get { margin: -11px; } .get .soon { font-size: 13px; padding: 0 11px; }
  .align { max-width: 320px; }
  .align .a-lab { font-size: 16px; }
  .align-steps li { font-size: 15px; }
  .gallery figcaption { font-size: 12px; }
  .ptab { gap: 26px; }
  .pcard { grid-template-columns: 40% 1fr; gap: 14px; }
  .pcard figcaption { font-size: 14px; }
  .pcard figcaption b { font-size: 19px; }
  .phone { border-radius: 20px; border-width: 2px; }
  .marquee { gap: 14px; }
  .mq-item { width: 118px; }
  .mq-set { gap: 10px; padding-right: 10px; }
  .mq-item .phone { border-radius: 16px; }
  .mq-item figcaption { font-size: 14px; margin-top: 7px; }
  .mq-note { font-size: 13px; margin-top: 16px; }
  .habit { max-width: 300px; padding-top: 30px; }
  .notif { padding: 9px 11px; border-radius: 16px; gap: 10px; }
  .notif img { width: 30px; height: 30px; } .notif div { font-size: 13px; }
  .ticks { gap: 10px; margin-top: 18px; } .ticks li { font-size: 15px; gap: 10px; }
  .phone-lock { padding: 14px; gap: 10px; border-radius: 20px; }
  .phone-lock .row { padding: 11px 12px; } .phone-lock .row span { font-size: 13px; }
  .pair { max-width: 320px; }
  .pair .lab { font-size: 16px; }
  .faq summary { font-size: 16px; padding: 15px 0; }
  .faq summary::after { font-size: 24px; }
  .faq details p { font-size: 15px; margin-bottom: 16px; }
  .cta { padding: 60px 0 68px; }
  .cta .display { font-size: 40px; }
  .cta p { font-size: 16px; margin: 10px 0 22px; }
  .doc h1 { font-size: 46px; }
  .doc .intro { font-size: 17px; }
  .doc h2 { font-size: 22px; margin-top: 32px; }
  .foot { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .align .today, .align .today img, .align .ring, .align .a-state { animation: none; }
  .align .a-state.raw { opacity: 0; }
  .mq-track { animation: none; width: auto; }
  .mq-set { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .mq-set[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
.align .ex { position: absolute; top: 12px; right: 12px; left: auto; bottom: auto; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 6px; }
.align .ring { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.align .pt { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
@media (min-width: 641px) { .hero .lede { max-width: none; white-space: nowrap; } } @media (max-width: 1100px) { .hero .lede { white-space: normal; } }

/* No white flash while a clip loads or is paused. */
video { background: #000; }
