/* Made My Day landing page.
   Layout: one column of full-width bands; the hero splits a speech-bubble headline and a phone.
   Colors and type come from the iOS app's Brand.swift. The app is dark by design, so dark is
   the default here and light is offered to people whose system is set to light. */

:root {
  --navy: #060a17;
  --surface: #0e1326;
  --teal: #00949e;
  --deep: #065a75;
  --lime: #b6c13c;
  --turq: #6eafba;
  --purple: #6f6096;
  --offwhite: #f0f0f0;

  --bg: var(--navy);
  --fg: var(--offwhite);
  --muted: rgba(255, 255, 255, .72);
  --panel: var(--surface);
  --line: rgba(255, 255, 255, .12);
  --link: var(--turq);
  --glow-a: rgba(0, 148, 158, .30);
  --glow-b: rgba(111, 96, 150, .32);
  --glow-c: rgba(182, 193, 60, .14);
  --head-bg: rgba(14, 19, 38, .74);
  --menu-bg: rgba(14, 19, 38, .97);
  --sheet-bg: rgba(6, 10, 23, .97);
  --btn-shadow: rgba(0, 0, 0, .55);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font: Avenir, "Avenir Next", "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f5e7;
    --fg: #060a17;
    --muted: rgba(6, 10, 23, .74);
    --panel: #ffffff;
    --line: rgba(6, 10, 23, .12);
    --link: #065a75;
    --glow-a: rgba(0, 148, 158, .20);
    --glow-b: rgba(111, 96, 150, .07);
    --glow-c: rgba(182, 193, 60, .38);
    --head-bg: rgba(255, 255, 255, .78);
    --menu-bg: rgba(255, 255, 255, .98);
    --sheet-bg: rgba(243, 245, 231, .98);
    --btn-shadow: rgba(110, 120, 20, .6);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: rgba(110, 175, 186, .45) var(--bg);
  accent-color: var(--teal);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
::selection { background: var(--lime); color: var(--navy); }
p { text-wrap: pretty; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--teal);
}
img { max-width: 100%; height: auto; }
/* soft glows behind the phones may spread past the screen edge; never let them scroll the page */
main { overflow-x: clip; }
a { color: var(--link); }
a:hover { color: var(--fg); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--lime); color: var(--navy); font-weight: 800;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 16px; color: var(--navy); }

/* Atmosphere: soft brand-colored light behind the page */
.sky {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60rem 40rem at 88% -6%, var(--glow-a), transparent 62%),
    radial-gradient(48rem 36rem at -12% 22%, var(--glow-b), transparent 60%),
    radial-gradient(40rem 30rem at 70% 54%, var(--glow-c), transparent 64%),
    radial-gradient(50rem 34rem at 10% 92%, var(--glow-a), transparent 64%);
}
.sky::after {
  content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Type scale: Avenir Heavy for display, Book for body, as in the app */
.h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.h3 { font-size: 22px; line-height: 1.2; font-weight: 800; margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 36em; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 26px; border-radius: 14px;
  background: var(--lime); color: var(--navy);
  font-weight: 800; font-size: 18px; text-decoration: none;
  box-shadow: 0 6px 16px -10px var(--btn-shadow), inset 0 -2px 0 rgba(6, 10, 23, .12);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s ease;
}
a.btn, a.btn:hover { color: var(--navy); }
.btn:hover { transform: translateY(-2px); background: #c3cd4c; box-shadow: 0 14px 28px -14px var(--btn-shadow), inset 0 -2px 0 rgba(6, 10, 23, .12); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: 0 4px 10px -8px var(--btn-shadow); transition-duration: .08s; }
/* Apple's official "Download on the App Store" badge, used unaltered */
.store-badge { display: inline-flex; flex: none; border-radius: 10px; transition: transform .2s var(--ease-out), opacity .2s ease; }
.store-badge:hover { transform: translateY(-2px); opacity: .92; }
.store-badge:active { transform: translateY(0) scale(.98); }
.store-badge img { display: block; width: auto; height: 54px; }
.store-badge--nav img, .store-badge--foot img { height: 40px; }

/* Header: a rounded glass bar inset from the window edges. It slides away while you
   scroll down and comes back on a small scroll up (main.js). The outer band only
   positions it, so clicks pass through around the bar. */
.site-head {
  position: sticky; top: 0; z-index: 15; pointer-events: none;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  transition: transform .35s var(--ease-out);
}
.site-head.is-away { transform: translateY(calc(-100% - 24px)); }
.head-in { position: relative; max-width: 1168px; margin: 0 auto; pointer-events: auto; }
.pill {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 8px 7px 9px; border-radius: 18px;
  background: var(--head-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto; padding: 2px; border-radius: 11px;
  color: var(--fg); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.01em; white-space: nowrap;
}
.brand:hover { color: var(--fg); }
.brand img { width: 34px; height: 34px; border-radius: 9px; transition: transform .3s var(--ease-out); }
.brand:hover img { transform: rotate(-6deg); }

.pill-links { display: flex; align-items: center; gap: 2px; }
.pill-links a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 16px;
  transition: color .2s ease, background-color .2s ease;
}
.pill-links a:hover, .menu-trigger[aria-expanded="true"] { color: var(--fg); background: var(--line); }
/* the page you're on: brighter, with a small teal dot under it */
.pill-links a[aria-current="page"],
.head-in:has(#more-menu [aria-current="page"]) [aria-controls="more-menu"],
.head-in:has(#features-menu [aria-current="page"]) [aria-controls="features-menu"] { color: var(--fg); }
.pill-links a[aria-current="page"]::after,
.head-in:has(#more-menu [aria-current="page"]) [aria-controls="more-menu"]::after,
.head-in:has(#features-menu [aria-current="page"]) [aria-controls="features-menu"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--teal);
}
.chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.menu-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pill-end { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); }

/* Menus drop down under the bar: Features (wide, grouped) and More (a short list) */
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 330px;
  display: grid; gap: 2px; padding: 8px; border-radius: 18px;
  background: var(--menu-bg); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
  animation: drop-in .22s var(--ease-out);
}
.menu-panel[hidden] { display: none; }
.more-panel a {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px;
  color: var(--fg); text-decoration: none; transition: background-color .2s ease;
}
.more-panel a:hover, .more-panel a[aria-current="page"] { background: var(--line); color: var(--fg); }
.more-panel strong { font-weight: 800; font-size: 16px; }
.more-panel span { font-size: 14px; color: var(--muted); }
.features-panel { width: min(100%, 860px); padding: 14px; gap: 10px; }
.fm-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; }
.fm-group { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fm-h { margin: 4px 10px 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.fm-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: 12px; color: var(--fg); text-decoration: none; transition: background-color .2s ease;
}
.fm-item:hover, .fm-item[aria-current="page"] { background: var(--line); color: var(--fg); }
.fm-item strong { display: block; font-weight: 800; font-size: 15px; line-height: 1.25; }
.fm-item span span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
.fm-ico, .fcard-ico, .fp-badge {
  display: grid; place-items: center; flex: none; background: var(--surface); color: var(--offwhite);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.fm-ico { width: 40px; height: 40px; border-radius: 12px; }
.fm-all {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px;
  background: var(--line); color: var(--fg); font-weight: 800; font-size: 15px; text-decoration: none;
}
.fm-all:hover { color: var(--fg); background: rgba(0, 148, 158, .25); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* Phones: the links move into a full-screen menu */
.menu-btn {
  display: none; align-items: center; justify-content: center; gap: 9px;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15px; background: var(--line);
}
.menu-btn:hover { color: var(--fg); }
.menu-bars { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.sheet {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  animation: sheet-in .25s var(--ease-out);
}
.sheet[hidden] { display: none; }
.sheet > * { width: 100%; max-width: 560px; margin-inline: auto; }
html.sheet-open { overflow: hidden; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px); } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 18px 10px; }
.sheet-close { position: relative; flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--line); cursor: pointer; }
.sheet-close::before, .sheet-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px;
  border-radius: 2px; background: var(--fg); transform: rotate(45deg);
}
.sheet-close::after { transform: rotate(-45deg); }
.sheet-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sheet-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 6px;
  color: var(--fg); text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: -.01em;
  border-bottom: 1px solid var(--line);
}
.sheet-links--small a { font-weight: 700; font-size: 19px; padding-block: 13px; }
.sheet-links--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.sheet-links--grid a { font-size: 17px; }
.sheet-links a::after, .link-list a::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--teal); border-top: 2px solid var(--teal); transform: rotate(45deg);
}
.sheet-links a[aria-current="page"] { color: var(--link); }
.sheet-h { margin: 30px 6px 10px; font-size: 15px; font-weight: 800; color: var(--muted); }
.sheet-cta { display: flex; justify-content: center; margin-top: auto; padding-top: 32px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 48px; align-items: center; padding-block: 40px 96px;
}
.hero-copy { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.bubble {
  position: relative; align-self: flex-start; max-width: 100%;
  background: var(--teal); color: #fff;
  border-radius: 48px; padding: 34px 46px 40px;
  animation: pop .7s var(--ease-out) both;
}
.bubble h1 { margin: 0; font-size: clamp(48px, 6.4vw, 92px); line-height: .94; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.bubble .tail { position: absolute; left: 64px; bottom: -46px; width: 78px; height: 56px; color: var(--teal); }

/* The hero is a conversation: the app's question, then someone's answer typing in. */
.chat { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.reply {
  position: relative; align-self: flex-end; margin: 0 6px 0 0;
  width: min(100%, 25rem); min-height: 6.4rem;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--purple); color: #fff;
  border-radius: 28px; padding: 16px 22px 18px;
  font-size: 19px; line-height: 1.35; font-weight: 700;
  box-shadow: 0 18px 36px -24px rgba(6, 10, 23, .8);
  /* backwards, not both: once the entrance ends, .swap can move it again */
  animation: pop .7s .35s var(--ease-out) backwards;
  transition: opacity .25s ease, transform .25s var(--ease-out);
}
.reply.swap { opacity: 0; transform: translateY(6px) scale(.98); }
.reply .tail { position: absolute; right: 40px; bottom: -30px; width: 46px; height: 34px; color: var(--purple); transform: scaleX(-1); }
.reply-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .86); }
.reply-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em;
  background: var(--lime); border-radius: 1px; opacity: 0;
}
.reply.typing .caret { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reply:not(.typing) .caret { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.hero-sub { font-size: clamp(19px, 1.7vw, 22px); color: var(--muted); max-width: 30em; margin: 8px 0 0; }
.hero-sub strong { color: var(--fg); font-weight: 800; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }
.fine { line-height: 1.5; }

/* Phone mockup: the app's own Latest feed. Always dark, like the app. */
.phone-wrap { display: flex; justify-content: center; min-width: 0; animation: rise .9s .15s cubic-bezier(.2, .9, .3, 1) both; }
.phone-lift {
  position: relative; transform-origin: 50% 0;
  transform: perspective(1200px) rotateX(calc(var(--p, 0) * 10deg)) scale(calc(1 - var(--p, 0) * .08));
  opacity: calc(1 - var(--p, 0) * .6);
}
/* soft light from the screen onto the page behind the phone */
.phone-lift::before {
  content: ""; position: absolute; inset: 10% -16% 4%; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 50% at 50% 45%, rgba(0, 148, 158, .42), transparent 70%);
  filter: blur(40px);
}
.phone-float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.phone {
  position: relative;
  width: 320px; max-width: 100%; border-radius: 52px; padding: 11px;
  background: linear-gradient(160deg, #2a3150, #0b0f1f 60%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  transform: rotate(2.5deg);
}
.phone::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, .04) 24%, transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 0 0 1px rgba(110, 175, 186, .22);
}
.screen { position: relative; border-radius: 42px; overflow: hidden; background: var(--navy); height: 640px; display: flex; flex-direction: column; }
.home-bar { position: absolute; left: 50%; bottom: 8px; width: 112px; height: 5px; margin-left: -56px; border-radius: 3px; background: rgba(255, 255, 255, .55); z-index: 2; }
.island { width: 96px; height: 28px; border-radius: 20px; background: #000; margin: 10px auto 0; flex: none; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 8px; flex: none; }
.app-head .ico { width: 24px; height: 24px; }
.app-head .app-logo { height: 46px; width: auto; }
.strip {
  display: flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  background: var(--teal); color: var(--offwhite); font-weight: 800; font-size: 15px;
  min-height: 40px; border-radius: 6px 6px 0 0;
}
.strip img { width: 18px; height: 18px; }
.feed-window { flex: 1; overflow: hidden; position: relative; }
.feed-window::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, var(--navy)); pointer-events: none; }
.feed-window::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34px; z-index: 1; background: linear-gradient(var(--navy), transparent); pointer-events: none; }
.feed-track { animation: drift 46s linear infinite; }
.phone:hover .feed-track { animation-play-state: paused; }
.row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px; padding-right: 16px; border-bottom: 1px solid rgba(255, 192, 203, .2); }
.row-side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 18px; }
.av { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex: none; }
.av { overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the stock icon (no photo) keeps its small inset size */
.av img[src$="user.png"] { width: 60%; height: 60%; margin: 20%; }
.row-side .i { width: 21px; height: 21px; display: block; }
.vote { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.count {
  font-weight: 800; font-size: 11px; color: var(--offwhite); background: var(--surface);
  border-radius: 4px; padding: 2px 7px; min-width: 30px; text-align: center; font-variant-numeric: tabular-nums;
}
.count.on { color: var(--lime); }
.row-body { padding-block: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.row-author { font-weight: 800; font-size: 12px; color: rgba(255, 255, 255, .85); }
.row-time { font-weight: 300; font-size: 11px; color: rgba(255, 255, 255, .72); }
.row-rule { height: 1px; background: rgba(255, 255, 255, .2); }
.row-text { font-size: 13.5px; line-height: 1.45; color: #fff; margin: 0; }

/* Sections */
.section { padding-block: 96px; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }

/* How it works: the phone stays pinned while the three steps scroll past it */
@property --glow-c { syntax: '<color>'; inherits: true; initial-value: rgba(0, 148, 158, .5); }
.story { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.story-stage {
  position: sticky; top: max(96px, calc(50vh - 320px)); align-self: start;
  display: grid; place-items: center; padding-block: 12px 32px;
  --glow-c: rgba(0, 148, 158, .5); transition: --glow-c .8s ease;
}
.story-glow {
  position: absolute; inset: -4% -34%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 46% at 50% 50%, var(--glow-c), transparent 72%);
  filter: blur(34px);
}
.story-phone { width: 300px; transform: none; }
.story-screens { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); height: 610px; }
.story-screens .island { position: absolute; top: 10px; left: 50%; margin: 0 0 0 -48px; z-index: 2; }
.story-screen {
  grid-area: 1 / 1; position: relative; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; padding-top: 44px;
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .5s ease, transform .7s var(--ease-out);
}
.story-screen.is-active { opacity: 1; transform: none; }
.story-rows { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.story-rows::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(transparent, var(--navy)); }

/* the app's compose screen (ComposeView) */
.app-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 6px; flex: none; }
.nav-round { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--offwhite); display: grid; place-items: center; }
.nav-round svg { width: 15px; height: 15px; }
.nav-title { font-weight: 800; font-size: 15px; color: var(--offwhite); }
.nav-post { background: var(--lime); color: var(--navy); font-weight: 800; font-size: 14px; padding: 7px 15px; border-radius: 999px; }
.compose { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.compose-prompt { margin: 0; font-weight: 800; font-size: 18px; color: rgba(255, 255, 255, .75); }
.compose-box { min-height: 150px; padding: 12px 13px; border-radius: 10px; background: var(--surface); color: var(--offwhite); font-size: 14px; line-height: 1.45; }
.compose-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: var(--lime); border-radius: 1px; animation: blink 1.1s steps(1) infinite; }
.compose-count { margin: 0; text-align: right; font-size: 11px; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.compose-link { margin: 0; font-size: 11px; color: rgba(255, 255, 255, .72); }
/* the app's success toast (ToastView): a green capsule */
.app-toast {
  position: absolute; left: 50%; bottom: 30px; z-index: 2; transform: translateX(-50%); white-space: nowrap;
  background: #42875c; color: var(--offwhite); font-weight: 300; font-size: 13px;
  padding: 9px 18px; border-radius: 999px; box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
}
.story-screen.is-active .app-toast { animation: toast-in .55s .45s var(--ease-out) backwards; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 18px); } }

.story-steps { position: relative; padding-left: clamp(28px, 3vw, 44px); }
.story-track { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); }
.story-fill {
  position: absolute; inset: 0; border-radius: 2px; transform-origin: top; transform: scaleY(1);
  background: linear-gradient(180deg, var(--teal), var(--purple) 50%, var(--lime));
}
.js .story-fill { transform: scaleY(var(--p, 0)); }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-step {
  min-height: min(62vh, 520px); max-width: 34em;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 40px;
}
.story-step .h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.01em; }
.story-step p { margin: 0; color: var(--muted); font-size: 18px; }
.js .story-step { opacity: .32; transition: opacity .5s ease; }
.js .story-step.is-active { opacity: 1; }
.num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 28px; color: #fff;
  transition: transform .25s var(--ease-out);
}
.n1 { background: var(--teal); }
.n2 { background: var(--purple); }
.n3 { background: var(--lime); color: var(--navy); }
.prompt { font-weight: 800; color: var(--fg); }

/* Features */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.big { background: var(--panel); border: 1px solid var(--line); border-radius: 32px; padding: 44px; display: flex; flex-direction: column; gap: 20px; }
.big p { margin: 0; color: var(--muted); }
.big .h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.015em; }
.limit { position: relative; background: var(--lime); color: var(--navy); border-radius: 26px; padding: 22px 26px; font-weight: 700; font-size: 18px; line-height: 1.45; margin: 6px 0 18px; }
.limit .tail { position: absolute; right: 52px; bottom: -26px; width: 44px; height: 30px; color: var(--lime); transform: scaleX(-1); }
.flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fitem { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; padding-block: 22px; border-bottom: 1px solid var(--line); }
.fitem:first-child { padding-top: 6px; }
.fitem:last-child { border-bottom: 0; }
.fitem p { margin: 4px 0 0; color: var(--muted); }
.badge { width: 52px; height: 52px; border-radius: 16px; background: var(--surface); display: grid; place-items: center; }
.badge img { width: 28px; height: 28px; }

.safety {
  margin-top: 28px; background: var(--deep); color: #fff; border-radius: 32px; padding: 44px;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 36px;
}
.safety .h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.08; }
.safety-intro { display: flex; flex-direction: column; gap: 12px; }
.safety-intro p { margin: 0; color: rgba(255, 255, 255, .86); }
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.sitem { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.sitem svg { width: 28px; height: 28px; color: var(--lime); }
.sitem h4 { margin: 0; font-size: 18px; font-weight: 800; }
.sitem p { margin: 4px 0 0; color: rgba(255, 255, 255, .86); font-size: 16px; }

/* Sample feed: a wall of MMDs, each a speech bubble */
.wall { column-count: 3; column-gap: 28px; }
.post {
  break-inside: avoid; display: inline-flex; flex-direction: column; gap: 14px;
  width: 100%; margin: 0 0 40px; position: relative;
  background: var(--pb); color: var(--pf);
  border-radius: 26px; padding: 22px 22px 14px;
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.post:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.post::after { content: ""; position: absolute; left: 34px; bottom: -17px; width: 30px; height: 18px; background: var(--pb); clip-path: polygon(0 0, 100% 0, 8% 100%); }
.tone-ink { --pb: var(--surface); --pf: var(--offwhite); --pm: rgba(255, 255, 255, .72); }
.tone-purple { --pb: var(--purple); --pf: #fff; --pm: #fff; }
.tone-deep { --pb: var(--deep); --pf: #fff; --pm: rgba(255, 255, 255, .86); }
.tone-lime { --pb: var(--lime); --pf: var(--navy); --pm: rgba(6, 10, 23, .78); }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .av { width: 34px; height: 34px; background: rgba(6, 10, 23, .35); }
.post-name { font-weight: 800; font-size: 15px; }
.post-time { margin-left: auto; font-weight: 300; font-size: 13px; color: var(--pm); }
.post-text { margin: 0; font-size: 18px; line-height: 1.45; }
.post-acts { display: flex; align-items: center; gap: 4px; margin-left: -10px; }
.act {
  appearance: none; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer;
  min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s ease, background .15s ease;
}
.act:hover { background: rgba(6, 10, 23, .18); }
.act:active { transform: scale(.9); }
.act img { width: 24px; height: 24px; display: block; }
.act { position: relative; }
.act[aria-pressed="true"] img { animation: boing .45s var(--ease-out); }
.act .count { font-size: 13px; padding: 3px 9px; background: var(--navy); display: inline-block; }
.count.bump { animation: bump .35s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }
/* A small ring from the heart when a post is kept */
.act.burst::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; border: 2px solid #f0566a; pointer-events: none;
  animation: ring .5s var(--ease-out) forwards;
}
@keyframes ring { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }

/* Why small joys matter */
.claim h3 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.claim p { margin: 8px 0 0; color: var(--muted); font-size: 18px; max-width: 34em; }
.dot { width: 22px; height: 22px; border-radius: 50% 50% 50% 4px; }
.d1 { background: var(--teal); }
.d2 { background: var(--purple); }
.d3 { background: var(--lime); }


/* Home: "A day in the app", a phone pinned beside five moments (story machinery above).
   On phones the moments become a row of swipeable cards, each with its own phone. */
.story--show .story-step { min-height: min(44vh, 400px); gap: 12px; }
/* inactive beats stay readable (dimmed, not disabled-looking) */
.js .story--show .story-step { opacity: .5; }
.js .story--show .story-step.is-active { opacity: 1; }
.story--show .story-glow { inset: -10% -48%; filter: blur(28px); }
.beat-tag { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: var(--muted); }
.beat-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface); color: var(--offwhite); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.beat-ico .ficon { width: 20px; height: 20px; }
.beat .h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.beat-text { margin: 0; color: var(--muted); font-size: 18px; }
.beat-link { align-self: flex-start; font-weight: 800; text-decoration: none; }
.beat-link::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); transition: transform .2s var(--ease-out); }
.beat-link:hover::after { transform: rotate(45deg) translate(2px, -3px); }
.beat-phone, .beat-dots { display: none; }
.story-screen .app-dim, .story-screen .cm { transition: opacity .4s ease .25s; }
.story-screen:not(.is-active) .cm, .story-screen:not(.is-active) .app-dim { opacity: 0; }

/* Why: one sentence, lit word by word as it crosses the screen (main.js sets --p) */
.quote {
  margin: 0 0 64px; max-width: 22em; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.05;
  font-weight: 800; letter-spacing: -.025em; text-wrap: balance;
}
.quote.is-scrub span { opacity: clamp(.16, calc(var(--p, 0) * (var(--n) + 4) - var(--i)), 1); transition: opacity .15s linear; }
.claims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.claim { display: flex; flex-direction: column; gap: 10px; }
.claim .dot { margin: 0 0 6px; }

.act.hint { animation: hint 1.4s var(--ease-out); }
@keyframes hint {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 193, 60, 0); }
  20% { box-shadow: 0 0 0 4px rgba(182, 193, 60, .6); transform: scale(1.12); }
  45% { transform: scale(1); }
  70% { box-shadow: 0 0 0 12px rgba(182, 193, 60, 0); }
}

/* Download dock (phones): slides up once the hero's badge has scrolled away */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 14;
  display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
  background: var(--head-bg); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
  transform: translateY(140%); transition: transform .4s var(--ease-out);
}
.dock.is-on { transform: none; }
.dock > img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.dock-t { display: flex; flex-direction: column; margin-right: auto; font-weight: 800; font-size: 15px; line-height: 1.2; min-width: 0; }
.dock-t small { font-weight: 400; font-size: 13px; color: var(--muted); }
.dock .store-badge img { height: 40px; }

/* Final call to action */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding-block: 72px 112px; }
.final .h2 { max-width: 14em; }
.final .lede { text-align: center; }
.final-icon {
  width: 132px; height: 132px; border-radius: 30px;
  box-shadow: 0 26px 60px -22px rgba(0, 148, 158, .8);
  transform: rotate(-6deg); transition: transform .35s var(--ease-out);
}
.final-icon:hover { transform: rotate(4deg) scale(1.04); }

/* Footer: the brand and the badge, then the site's pages in three titled columns */
.foot { border-top: 1px solid var(--line); padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px 56px; }
.foot-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 20px; border-radius: 12px; }
a.foot-brand:hover { color: var(--fg); }
.foot-brand img { width: 44px; height: 44px; border-radius: 11px; transition: transform .3s var(--ease-out); }
.foot-brand:hover img { transform: rotate(-6deg); }
.foot-blurb { margin: 0; color: var(--muted); font-size: 15px; max-width: 22em; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.foot-h { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--fg); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.foot-col a { display: inline-block; padding-block: 7px; color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s ease; }
.foot-col a:hover { color: var(--fg); }
.foot-legal { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

a.on-deep { color: #fff; text-decoration-color: var(--lime); text-underline-offset: 3px; }
a.on-deep:hover { color: var(--lime); }

/* Guidelines and other reading pages */
.doc { max-width: 760px; padding-block: 32px 96px; }
.doc-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.doc-title { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.doc-date { margin: 0; font-size: 15px; color: var(--muted); }
.doc section { scroll-margin-top: 24px; }
.doc section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.doc h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.doc h3 { margin: 30px 0 6px; font-size: 20px; line-height: 1.25; font-weight: 800; }
.doc h2 + h3 { margin-top: 18px; }
.doc p, .doc li { color: var(--muted); max-width: 40em; }
.doc p { margin: 0 0 12px; }
.doc strong { color: var(--fg); font-weight: 800; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.doc li::marker { color: var(--teal); }

.short {
  position: relative; background: var(--lime); color: var(--navy);
  border-radius: 30px; padding: 30px 34px 26px; margin-bottom: 64px;
}
.short::after {
  content: ""; position: absolute; left: 56px; bottom: -22px; width: 40px; height: 24px;
  background: var(--lime); clip-path: polygon(0 0, 100% 0, 8% 100%);
}
.doc .short h2 { font-size: 22px; margin-bottom: 12px; }
.doc .short li { color: var(--navy); font-weight: 700; }
.doc .short li::marker { color: var(--navy); }

.toc { margin-bottom: 8px; }
.doc .toc h2 { font-size: 18px; margin-bottom: 10px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.doc .toc ol { gap: 6px; }
.doc .toc li { color: var(--muted); }
.toc a { color: var(--fg); text-decoration-color: var(--teal); text-underline-offset: 3px; font-weight: 700; }
.toc a:hover { color: var(--link); }
.doc .toc + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }


/* Feature grids (home and Features): grouped cards that open each feature's page */
.fgrid { display: flex; flex-direction: column; gap: 36px; }
.fgroup { display: flex; flex-direction: column; gap: 14px; }
.fgroup-h { margin: 0; font-size: 18px; font-weight: 800; color: var(--muted); }
.fcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.fcard {
  height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--line); color: var(--fg); text-decoration: none;
  transition: transform .25s var(--ease-out), border-color .25s ease, box-shadow .25s ease;
}
.fcard:hover { color: var(--fg); transform: translateY(-3px); border-color: rgba(0, 148, 158, .6); box-shadow: 0 18px 36px -26px rgba(0, 0, 0, .7); }
.fcard-ico { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 6px; }
.fcard-t { font-weight: 800; font-size: 20px; line-height: 1.2; }
.fcard-d { color: var(--muted); font-size: 16px; line-height: 1.45; }
.see-all { margin: 32px 0 0; font-size: 18px; }

.safety-teaser {
  margin-top: 40px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 28px 32px; border-radius: 28px; background: var(--deep); color: #fff; text-decoration: none;
  transition: transform .25s var(--ease-out);
}
.safety-teaser:hover { color: #fff; transform: translateY(-3px); }
.safety-teaser svg { width: 44px; height: 44px; color: var(--lime); }
.st-copy { display: flex; flex-direction: column; gap: 4px; }
.st-t { font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.st-d { color: rgba(255, 255, 255, .86); }
.st-go { font-weight: 800; color: var(--lime); white-space: nowrap; }

/* Feature pages: breadcrumb, every feature as chips, then the phone and the words */
.fx { padding-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); font-weight: 700; text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); font-weight: 800; }
.fx-index { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 6px 16px; }
.fx-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 10px; }
.fx-row + .fx-row { border-top: 1px solid var(--line); }
.fx-h { margin: 8px 0 0; font-size: 14px; font-weight: 800; color: var(--muted); }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 8px; border-radius: 10px;
  color: var(--fg); text-decoration: none; font-weight: 700; font-size: 14px; transition: background-color .2s ease;
}
.chip .ficon { width: 20px; height: 20px; padding: 2px; border-radius: 6px; background: var(--surface); color: var(--offwhite); box-sizing: content-box; }
.chip:hover { color: var(--fg); background: var(--line); }
.chip[aria-current="page"] { background: var(--deep); color: #fff; }

.fp { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: center; padding-block: 64px 72px; }
.fp-stage, .show-stage { position: relative; display: grid; place-items: center; }
.fp-glow {
  position: absolute; inset: 0 -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 46% at 50% 50%, rgba(0, 148, 158, .45), transparent 72%); filter: blur(34px);
}
.fp-phone { transform: none; }
.fp-screen { height: 640px; }
.fp-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.fp-badge { width: 60px; height: 60px; border-radius: 18px; }
.fp-title { margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: .98; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.fp-lede { margin: 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.35; font-weight: 700; max-width: 26em; }
.fp-body p { margin: 0 0 12px; color: var(--muted); font-size: 18px; max-width: 34em; }
.fp-points { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; max-width: 34em; border-top: 1px solid var(--line); }
.fp-points li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); font-weight: 700; }
.fp-points li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 14px; height: 2px; border-radius: 2px; background: var(--teal); }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 8px 24px; }
.pager a {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--fg); text-decoration: none; transition: border-color .2s ease, background-color .2s ease;
}
.pager a:hover { color: var(--fg); border-color: rgba(0, 148, 158, .6); background: var(--panel); }
.pager-next { text-align: right; align-items: flex-end; }
.pager-k { font-size: 14px; font-weight: 700; color: var(--muted); }
.pager-t { font-size: 22px; font-weight: 800; }

.cta-band {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  margin-block: 64px 112px; padding-block: 56px 60px;
}
.cta-band .h2 { max-width: 14em; }
.cta-icon { width: 88px; height: 88px; border-radius: 22px; transform: rotate(-6deg); box-shadow: 0 22px 50px -20px rgba(0, 148, 158, .8); }

/* Safety: alternating phone and words */
.show { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; padding-block: 64px; }
.show--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.show--flip .show-stage { order: 2; }
.show-copy { display: flex; flex-direction: column; gap: 14px; max-width: 34em; }
.show-t { margin: 0; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.show-copy p { margin: 0; color: var(--muted); font-size: 18px; }
.rules-band {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  margin-top: 40px; padding: 36px 40px; border-radius: 30px; background: var(--lime); color: var(--navy);
}
.rules-band p { margin: 0; font-size: 18px; font-weight: 700; max-width: 34em; }
.rules-band .btn { background: var(--navy); color: var(--offwhite); }
.rules-band a.btn:hover { color: var(--offwhite); background: #18203d; }

/* Phone screens drawn from the app (always dark, like the app) */
.ficon { display: block; }
.app-toast--on { animation: none; }
.compose-error { margin: 0; font-size: 12px; line-height: 1.4; color: #e2645f; }
.app-dim { position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, .55); }
.app-dim--blur { background: rgba(6, 10, 23, .45); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.app-alert {
  position: absolute; left: 26px; right: 26px; top: 50%; z-index: 4; transform: translateY(-50%);
  border-radius: 20px; overflow: hidden; text-align: center; color: var(--offwhite);
  background: rgba(30, 34, 52, .97); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.app-alert-msg { margin: 0; padding: 22px 20px; font-size: 14px; line-height: 1.5; font-weight: 700; }
.app-alert-title { margin: 18px 18px 0; font-weight: 800; font-size: 15px; }
.app-alert-btn { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--lime); font-weight: 800; font-size: 15px; }
.cm {
  position: absolute; left: 58px; right: 34px; top: 200px; z-index: 4;
  border-radius: 14px; overflow: hidden; background: rgba(36, 40, 58, .96); box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.cm-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 14px; color: var(--offwhite); }
.cm-item + .cm-item { border-top: 1px solid rgba(255, 255, 255, .1); }
.cm-item svg { width: 18px; height: 18px; flex: none; }
.cm-red { color: #ff5a52; }
.as { position: absolute; left: 10px; right: 10px; bottom: 26px; z-index: 4; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.as-card, .as-cancel { border-radius: 16px; background: rgba(36, 40, 58, .97); color: var(--offwhite); }
.as-title { margin: 0; padding: 14px 16px 2px; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .72); }
.as-msg { margin: 0; padding: 2px 18px 14px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.as-btn { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 17px; }
.as-red { color: #ff5a52; }
.as-cancel { padding: 14px; font-size: 17px; font-weight: 800; color: var(--lime); }

.auth { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 46px 26px 30px; text-align: center; color: var(--offwhite); }
.auth-logo { width: 190px; height: auto; margin-bottom: 30px; }
.auth-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px;
  font-weight: 800; font-size: 15px; border: 1.5px solid rgba(255, 255, 255, .9);
}
.auth-apple svg { width: 16px; height: 16px; margin-top: -2px; }
.auth-email { border-color: rgba(255, 255, 255, .35); }
.auth-link { margin: 0; font-size: 14px; font-weight: 700; color: var(--lime); }
.auth-browse { margin: 18px 0 0; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; color: var(--offwhite); background: rgba(255, 255, 255, .1); }
.auth-fine { margin: auto 0 0; font-size: 11px; color: rgba(255, 255, 255, .6); }

.list-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 16px 8px; color: var(--offwhite); }
.ln-title { font-weight: 800; font-size: 16px; }
.ln-side { font-size: 15px; color: var(--lime); }
.ln-right { text-align: right; font-weight: 800; }
.list-body { flex: 1; min-height: 0; overflow: hidden; padding: 6px 14px 30px; display: flex; flex-direction: column; gap: 18px; }
.ls-h { margin: 0 14px 6px; font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .6); }
.ls-f { margin: 6px 14px 0; font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, .6); }
.ls-card { border-radius: 14px; background: #161b31; overflow: hidden; }
.li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 8px 14px; font-size: 14px; color: var(--offwhite); }
.li + .li { border-top: 1px solid rgba(255, 255, 255, .08); }
.li-val { color: rgba(255, 255, 255, .6); }
.li-btn { color: var(--lime); }
.li-red { color: #ff5a52; }
.li-field { color: rgba(255, 255, 255, .4); min-height: 60px; align-items: flex-start; }
.li-av { display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin: 6px auto; }
.li-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.li:has(.li-av) { justify-content: center; }
.li-toggle { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--teal); }
.li-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.li-check { flex: none; width: 8px; height: 14px; margin-right: 4px; border-right: 2.5px solid var(--lime); border-bottom: 2.5px solid var(--lime); transform: rotate(45deg) translate(-2px, -2px); }

/* Page heads for wide pages (Features, Safety) */
.page-head { display: flex; flex-direction: column; gap: 16px; padding-block: 40px 0; }
.page-title { margin: 0; font-size: clamp(44px, 7vw, 84px); line-height: .98; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.page-head + .section { padding-top: 64px; }
.final--compact { padding-block: 24px 112px; }

/* FAQ: jump to a topic */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 44px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15px;
  transition: border-color .2s ease;
}
.jump a:hover { color: var(--fg); border-color: rgba(0, 148, 158, .6); }

/* Support: lists of links that read as rows */
.doc .link-list { list-style: none; padding: 0; margin: 0 0 16px; gap: 0; border-top: 1px solid var(--line); }
.doc .link-list li { max-width: none; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px;
  color: var(--fg); text-decoration: none; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--line);
  transition: color .2s ease;
}
.link-list a:hover { color: var(--link); }
.more-link { font-weight: 800; text-decoration: none; }

/* Support: a contact card, then questions that open in place */
.btn { font-family: inherit; }
.contact {
  position: relative; display: flex; flex-direction: column; gap: 12px; margin-bottom: 64px;
  padding: 30px 34px; border-radius: 30px; background: var(--lime); color: var(--navy);
}
.contact::after {
  content: ""; position: absolute; left: 56px; bottom: -22px; width: 40px; height: 24px;
  background: var(--lime); clip-path: polygon(0 0, 100% 0, 8% 100%);
}
.doc .contact h2 { margin: 0; font-size: 20px; color: var(--navy); }
.doc .contact-mail { margin: 0; color: var(--navy); font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-mail a { color: var(--navy); text-decoration: none; }
.contact-mail a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn-dark { background: var(--navy); color: var(--offwhite); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .6); }
a.btn.btn-dark, a.btn.btn-dark:hover { color: var(--offwhite); }
.btn-dark:hover { background: #18203d; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7); }
.btn-quiet-dark { appearance: none; border: 0; cursor: pointer; background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(6, 10, 23, .35); }
.btn-quiet-dark:hover { background: rgba(6, 10, 23, .08); box-shadow: inset 0 0 0 1.5px rgba(6, 10, 23, .45); }
.doc .contact-tip { margin: 0; color: rgba(6, 10, 23, .78); font-size: 15px; }

.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; transition: border-color .25s ease; scroll-margin-top: 24px; }
.faq details[open] { border-color: rgba(0, 148, 158, .55); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 18px 20px; border-radius: 17px; color: var(--fg); font-weight: 800; font-size: 18px;
  transition: background-color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq summary:hover { background: var(--line); }
.faq details[open] summary { border-radius: 17px 17px 0 0; }
.doc .faq p { margin: 0; padding: 16px 20px 20px; }
.faq details[open] p { animation: faq-in .35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* 404: the missing page told as a post, with a tally that rolls up to 404 */
.nf { min-height: calc(100svh - 120px); display: grid; place-items: center; padding-block: 56px 72px; }
.nf-inner { width: min(100%, 32rem); display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.nf-logo { display: block; border-radius: 12px; transition: transform .25s var(--ease-out); }
.nf-logo:hover { transform: rotate(-2deg) scale(1.03); }
.nf-logo img { display: block; width: auto; height: 48px; }
.nf-feed { width: 100%; text-align: left; }
.nf .post { margin: 0; padding: 26px 26px 16px; animation: pop .7s .1s var(--ease-out) backwards; }
.nf-title { margin: 0; font-size: clamp(26px, 5vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.nf .act .count { min-width: 48px; padding: 4px 10px; font-size: 15px; }
.nf-lede { margin: 0; max-width: 26em; color: var(--muted); font-size: 18px; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-quiet { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
a.btn-quiet, a.btn-quiet:hover { color: var(--fg); }
.btn-quiet:hover { background: var(--line); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Toast, like the app's confirmation messages */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  background: var(--surface); color: var(--offwhite); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 12px 20px 12px 14px; font-weight: 700; font-size: 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  transform: translate(-50%, 160%); opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease-out), opacity .2s ease, visibility 0s .35s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .35s var(--ease-out), opacity .2s ease; }
.toast svg { width: 22px; height: 22px; color: #42875c; flex: none; }

/* Motion */
@keyframes pop { from { transform: scale(.9) translateY(14px); } to { transform: none; } }
@keyframes rise { from { transform: translateY(36px); } to { transform: none; } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes boing { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-10deg); } 100% { transform: scale(1); } }
@keyframes reveal { from { transform: translateY(30px); opacity: .25; } to { transform: none; opacity: 1; } }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
/* Browsers without scroll-driven CSS: main.js adds .no-sda and reveals with IntersectionObserver */
.js.no-sda .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease-out); }
.js.no-sda .reveal.in { opacity: 1; transform: none; }
/* Groups arrive one after another instead of all at once (main.js sets --i and adds .in) */
.js .stagger:not(.in) > * { opacity: 0; }
.js .stagger.in > * { animation: rise-in .6s var(--ease-out) backwards; animation-delay: calc(min(var(--i, 0), 6) * 80ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } }

/* Reduced motion: nothing moves through space; fades and color changes that confirm an action stay. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color !important; }
  .toast, .toast.show { transform: none; }
  .toast { left: 16px; right: 16px; margin: 0 auto; width: max-content; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 72px; padding-block: 24px 72px; }
  .feat, .safety { grid-template-columns: minmax(0, 1fr); }
  .wall { column-count: 2; }
}
@media (max-width: 860px) {
  .pill-links { display: none; }
  .pill-end { padding-left: 0; border-left: 0; }
  .menu-btn { display: inline-flex; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .story--show .story-steps { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); }
  .story--show .beats {
    flex-direction: row; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 4px max(16px, env(safe-area-inset-left, 0px)) 18px; scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
    scrollbar-width: none;
  }
  .story--show .beats::-webkit-scrollbar { display: none; }
  .story--show .story-step {
    flex: 0 0 min(82%, 340px); scroll-snap-align: start; min-height: 0; padding: 18px; justify-content: flex-start;
    border-radius: 26px; background: var(--panel); border: 1px solid var(--line);
  }
  .beat-phone { display: grid; place-items: center; margin: 2px 0 6px; }
  .beat-phone .phone { zoom: .66; }
  .claims { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .js .story--show .story-step { opacity: 1; }
  .beat-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
  .beat-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background-color .25s ease, transform .25s var(--ease-out); }
  .beat-dots span.on { background: var(--teal); transform: scale(1.3); }
  .fp, .show, .show--flip { grid-template-columns: minmax(0, 1fr); padding-block: 40px; }
  .fp-copy, .show-copy { order: -1; }
  .show--flip .show-stage { order: 0; }
  .fx-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fx-h { margin: 0; }
  .fm-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-stage, .story-track { display: none; }
  .story-steps { padding-left: 0; }
  .story-list { display: flex; flex-direction: column; gap: 36px; }
  .story-step { min-height: 0; padding-block: 0; }
  .js .story-step { opacity: 1; }
}
@media (max-width: 720px) {
  .sgrid { grid-template-columns: minmax(0, 1fr); }
  .chat { gap: 46px; }
  .reply { width: 86%; font-size: 17px; border-radius: 24px; }
  .wall { column-count: 1; }
  .dock { display: flex; }
  body:has(.dock.is-on) .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .quote { margin-bottom: 44px; }
  .section { padding-block: 72px; }
  .big, .safety { padding: 28px; border-radius: 26px; }
  .bubble { border-radius: 34px; padding: 24px 28px 30px; }
  .bubble .tail { left: 40px; bottom: -38px; width: 62px; height: 44px; }
  .phone { transform: none; }
  .phone-lift::before { inset: 10% 0 4%; }
}
@media (max-width: 560px) {
  .pill { gap: 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .store-badge--nav img { height: 36px; }
  /* the Menu button keeps its label for screen readers, shown as an icon only */
  .menu-btn { padding: 0; width: 40px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-col a { padding-block: 10px; }
  .safety-teaser { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .pager-t { font-size: 18px; }
  .pager a { padding: 18px; }
  .rules-band { padding: 28px; }
}
@media (max-width: 370px) {
  .store-badge--nav { display: none; }
}
