/* Palette is the app's Sky & Midnight (docs/llm/ios-contrast-tokens-design.md §9), light and dark. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/fraunces-variable.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/karla-variable.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --page: #FFFFFF;
  --card: #EFF4F9;
  --ink: #0B1F3A;
  --ink-2: #3D4B60;
  --accent: #1899F0;
  --on-accent: #0B1F3A;
  --link: #08519E;
  --line: rgba(11, 31, 58, 0.12);
  --hero-a: #092A60;
  --hero-b: #0D4A9E;
  --shadow: rgba(11, 31, 58, 0.45);
  --gutter: clamp(1rem, 4vw, 2rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0A1424;
    --card: #15233A;
    --ink: #E8EEF6;
    --ink-2: #B8C5D8;
    --accent: #4DB4FF;
    --on-accent: #0A1424;
    --link: #7CC8FF;
    --line: rgba(255, 255, 255, 0.15);
    --hero-a: #0A2550;
    --hero-b: #1767C9;
    --shadow: rgba(0, 0, 0, 0.65);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.125rem)/1.6 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-family: 'Fraunces', Georgia, serif; text-wrap: balance; margin: 0; }
p { margin: 0 0 1rem; }

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.narrow { max-width: 46rem; }
.center { text-align: center; }

/* Hero */
.hero {
  background: linear-gradient(to bottom right, var(--hero-a), var(--hero-b));
  color: #FFFFFF;
  padding-bottom: clamp(3rem, 8vw, 5rem);
  border-bottom: 2px solid var(--accent);
  overflow: hidden;
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top)); padding-bottom: 1rem;
}
.nav-brand img { height: clamp(2.2rem, 7vw, 2.9rem); width: auto; }
.nav-links { display: flex; gap: clamp(0.25rem, 2vw, 1.25rem); }
.nav-links a {
  color: rgba(255, 255, 255, 0.92); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 0.7rem 0.5rem; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover { text-decoration: underline; }

.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: clamp(1.5rem, 5vw, 3rem);
}
.kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9FD6FF; margin-bottom: 1rem; }
.hero h1 { font-weight: 700; font-size: clamp(2.3rem, 7.5vw + 0.5rem, 4.4rem); line-height: 1.04; letter-spacing: -0.015em; }
.hero h1 em { font-style: italic; color: #9FD6FF; }
.hero-sub { margin: 1.25rem 0 0; font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); max-width: 34rem; color: rgba(255, 255, 255, 0.92); }
.status {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 1.5rem 0 0; padding: 0.45rem 1rem 0.45rem 0.85rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.92rem; font-weight: 600; color: #FFFFFF;
}
.status::before { content: ''; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #5BE3A0; box-shadow: 0 0 0 4px rgba(91, 227, 160, 0.28); }
.status + .cta-row { margin-top: 1.25rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 14px;
  font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.75); color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.hero-stage { position: relative; display: grid; place-items: center; padding-bottom: 3rem; }
.phone {
  margin: 0; width: min(100%, 17rem);
  border-radius: 2.4rem; padding: 0.55rem;
  background: #05101F; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}
.phone img { border-radius: 1.9rem; width: 100%; }
.phone video { display: block; width: 100%; height: auto; border-radius: 1.9rem; background: #FFFFFF; }
.hero-stage .phone { transform: rotate(3deg); }
.float-card {
  position: absolute; left: 0; bottom: 0; width: min(78%, 17rem);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Sections */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.band { background: var(--card); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin-bottom: 0.75rem; }
.section h2 { font-size: clamp(1.7rem, 4.2vw + 0.5rem, 2.8rem); line-height: 1.12; margin-bottom: 1.25rem; }
.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--ink-2); max-width: 36rem; }
.center .lede { margin-left: auto; margin-right: auto; }
.fine { font-size: 0.9rem; color: var(--ink-2); }

.prose p { color: var(--ink-2); max-width: 40rem; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); }
.prose .pull {
  font: 700 clamp(1.35rem, 1rem + 1.6vw, 1.9rem)/1.25 'Fraunces', Georgia, serif;
  color: var(--ink); margin: 1.75rem 0; padding-left: 1.1rem; border-left: 4px solid var(--accent);
}

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.split-media { display: grid; place-items: center; }
.split.top { align-items: start; }
.split-media .phone { width: min(100%, 19rem); }

.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink-2); }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 0.1rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 0.8rem; font-weight: 700;
}
.ticks strong { color: var(--ink); }

.chips { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.chips li { padding: 0.55rem 1.1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.chips.left { justify-content: flex-start; margin-top: 1.5rem; }
.band .chips li { background: var(--page); }

.invite { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.25rem); }
.invite h3 { font: 700 1.4rem/1.2 'Fraunces', Georgia, serif; margin: 0; }
.invite .fine { margin: 1.5rem 0 1.25rem; }

.card-shot { margin: 0; width: 100%; max-width: 30rem; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 48px -24px var(--shadow); border: 1px solid var(--line); }
.card-shot img { width: 100%; }

.steps { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.steps:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.step { display: grid; justify-items: center; align-content: start; gap: 0.6rem; text-align: center; }
.step .phone { width: min(100%, 15rem); margin-bottom: 0.9rem; }
.step h3 { font: 700 1.25rem/1.2 'Fraunces', Georgia, serif; margin: 0; }
.step p { margin: 0; color: var(--ink-2); max-width: 17rem; }
.together-add { margin-top: clamp(3rem, 8vw, 5.5rem); }
.together-add h3 { font: 700 clamp(1.4rem, 1rem + 1.6vw, 1.9rem)/1.2 'Fraunces', Georgia, serif; margin: 0 0 1rem; }
.together-note { text-align: center; margin: 2.5rem 0 0; }

.lock { width: 100%; max-width: 26rem; padding: clamp(1.1rem, 4vw, 1.75rem); border-radius: 28px; background: linear-gradient(to bottom right, var(--hero-a), var(--hero-b)); box-shadow: 0 24px 48px -24px var(--shadow); }
.pings { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ping-label { margin: 0 0 0.4rem 0.35rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.ping { display: flex; gap: 0.75rem; padding: 0.8rem 0.9rem; border-radius: 20px; background: rgba(255, 255, 255, 0.92); color: #0B1F3A; }
.ping img { width: 2.5rem; height: 2.5rem; border-radius: 22%; flex: none; }
.ping-text { flex: 1; min-width: 0; }
.ping-head { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.95rem; }
.ping-head span { color: #5A6679; font-size: 0.85rem; }
.ping p { margin: 0.1rem 0 0; font-size: 0.95rem; line-height: 1.35; }

.get { text-align: center; background: linear-gradient(to bottom right, var(--hero-a), var(--hero-b)); color: #FFFFFF; }
.get .lede { color: rgba(255, 255, 255, 0.9); }
.get .cta-row { justify-content: center; }
.get .fine { color: rgba(255, 255, 255, 0.85); margin: 1.5rem 0 0; }
.get .maker { margin-top: 0.5rem; }
.get .maker a { color: #FFFFFF; font-weight: 700; }
.get-icon { margin: 0 auto 1.5rem; border-radius: 22%; box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.6); }

.footer { border-top: 1px solid var(--line); padding: 1.75rem 0 max(2.5rem, env(safe-area-inset-bottom)); font-size: 0.92rem; color: var(--ink-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-links a { padding: 0.35rem 0; }

/* Scroll reveal; script.js adds .js-ready only when motion is allowed */
.js-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* Tablet and below: single column */
@media (max-width: 860px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-stage { padding-bottom: 2.5rem; }
  .hero-stage .phone { transform: none; }
  .split.reverse .split-media { order: 2; }
  .steps {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
    gap: 1.25rem; padding: 0.5rem var(--gutter) 2.5rem; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
  }
  .step { flex: 0 0 min(72%, 16rem); scroll-snap-align: start; }
}
/* Phones */
@media (max-width: 520px) {
  .nav-links a:nth-child(n+4) { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .float-card { width: 70%; }
}
/* Large screens */
@media (min-width: 1500px) {
  body { font-size: 1.1875rem; }
  .wrap { max-width: 78rem; }
}
