/* Neala — design system mirrors the app (src/theme/colors.ts, CLAUDE.md Design System).
   Japandi minimalism: no pure white, no pure black, every colour warm. 8px spacing grid. */

:root {
  /* Palette — identical to the app's tokens so site and product feel like one thing. */
  --bg: #FAF7F2;          /* Warm Parchment */
  --surface: #F0EBE3;     /* Soft Warm Grey */
  --primary: #C4795A;     /* Muted Terracotta */
  --primary-press: #A8644A;
  --mauve: #A67F8E;       /* Dusty Mauve */
  --sage: #8A9E85;        /* Sage Green */
  --water: #8BA8B9;
  --ink: #2C2825;         /* Warm Charcoal */
  --muted: #8C7B6E;       /* Muted Taupe */
  --line: #E8E0D8;
  --error: #C0504A;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container: 1120px;
  --header-h: 72px;
  /* Body sits at 17px — deliberately large, the audience is 45-65. */
  --step-0: 17px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(44, 40, 37, .04), 0 8px 24px rgba(44, 40, 37, .05);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A barely-there paper grain over the whole page — the warmth that keeps
   large flat parchment areas from reading as flat grey. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 10px;
  font: 500 15px var(--sans); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout primitives ---------- */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.eyebrow {
  font: 500 13px/1.4 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 16px;
}

h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 22px; font-weight: 600; }

.lead { color: var(--muted); font-size: 18px; margin-top: 16px; }

.prose { max-width: 62ch; }

/* ---------- Icons ---------- */

.icon { width: 28px; height: 28px; stroke: var(--primary); stroke-width: 1.5; fill: none;
        stroke-linecap: round; stroke-linejoin: round; }
.icon--sage { stroke: var(--sage); }
.icon--mauve { stroke: var(--mauve); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 24px; border: 0; border-radius: 14px;
  background: var(--primary); color: #FFFDFB;
  font: 500 16px var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--primary-press); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }

/* Store buttons follow the official badge look: black, thin grey rim,
   small line over the store name. */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px;
  background: #000; color: #fff;
  border: 1px solid #A6A6A6; border-radius: 10px;
  font: 500 23px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.01em; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.store-badge:hover { background: #1F1F1F; }
.store-badge:active { transform: translateY(1px); }
.store-badge svg { width: 30px; height: 30px; flex: 0 0 auto; fill: currentColor; }
.store-badge span { display: grid; gap: 2px; }
.store-badge small { font-size: 12px; font-weight: 400; letter-spacing: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) {
  /* Smaller on phones so both fit side by side; they wrap only below ~330px. */
  .cta-row { gap: 8px; }
  .store-badge { height: 46px; padding: 0 12px 0 10px; gap: 8px; font-size: 17px; border-radius: 8px; }
  .store-badge svg { width: 22px; height: 22px; }
  .store-badge small { font-size: 10px; }
  .band-cta, .closing .cta-row { justify-content: center; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(250, 247, 242, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header .container { display: flex; align-items: center; gap: 24px; height: 100%; }

.brand {
  font: 600 24px var(--serif); letter-spacing: .06em;
  text-decoration: none; color: var(--ink); margin-right: auto;
}

.nav { display: flex; gap: 28px; }
.nav a {
  font: 500 15px var(--sans); color: var(--muted); text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }

@media (max-width: 900px) { .nav { display: none; } }

/* Header download: one label, two store chips, sized to sit with the nav links. */
.nav-download { display: flex; align-items: center; gap: 8px; }
.nav-download-label { font: 500 15px var(--sans); color: var(--ink); margin-right: 4px; }
/* The store badges cut down to their logos. */
.store-chip {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: #000; color: #fff; border: 1px solid #A6A6A6;
  transition: background .2s ease, transform .2s ease;
}
.store-chip:hover { background: #1F1F1F; }
.store-chip:active { transform: translateY(1px); }
.store-chip svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }

/* minmax(0, …): the video's intrinsic 1920px width must not size the track. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }

/* On desktop the whole hero — copy, buttons and video — fits the first screen:
   the section fills the viewport under the header. The video is 16:9, so it
   takes the wider column to keep its on-screen text legible. */
@media (min-width: 881px) {
  .hero {
    min-height: calc(100svh - var(--header-h));
    display: flex; align-items: center;
    padding: 24px 0 32px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 4vw, 56px);
  }
}

.hero h1 {
  font-size: clamp(36px, min(4.8vw, 7.4svh), 56px);
  text-wrap: balance;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}
/* A thin dark edge so it reads as a video, not another illustration. */
.hero-media {
  position: relative;
  padding: 1px; border-radius: 20px;
  background: var(--ink);
  box-shadow: 0 12px 32px rgba(44, 40, 37, .12);
}
.hero-media video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: 19px; background: var(--ink);
}
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--primary); color: var(--bg);
  box-shadow: 0 8px 24px rgba(44, 40, 37, .25);
  transition: transform .2s ease, background .2s ease;
}
.video-play:hover { background: var(--primary-press); transform: translate(-50%, -50%) scale(1.06); }
.video-play:focus-visible { outline: 3px solid var(--bg); outline-offset: 3px; }
.video-play svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }
.video-play[hidden] { display: none; }
@media (max-width: 720px) {
  .video-play { width: 64px; height: 64px; }
  .video-play svg { width: 26px; height: 26px; }
}

.hero p.lead { font-size: 19px; max-width: 36ch; margin-bottom: 28px; }

/* Phones and tablets: headline and lead, then the video, then the buttons and
   badges. The copy wrapper dissolves so its children can be reordered around
   the video; spacing comes from margins, not the grid gap. */
@media (max-width: 880px) {
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero p.lead { max-width: none; font-size: 17px; }
  .hero-media { order: 1; margin-bottom: 28px; }
  .hero .cta-row, .hero .badges { order: 2; }
  .hero .cta-row { justify-content: center; }
}

/* ---------- Photo placeholders ----------
   Deliberately visible: the layout is final, the asset gap should be obvious
   in review. Remove .ph and drop in an <img> at the same aspect ratio. */

.ph {
  position: relative;
  background: var(--surface);
  border: 1.5px dashed var(--line);
  border-radius: 20px;
  display: grid; place-items: center;
  padding: 24px;
  text-align: center;
}
.ph::after {
  content: attr(data-label);
  font: 500 13px/1.5 var(--sans);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  max-width: 28ch;
}
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--wide { aspect-ratio: 3 / 2; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card .icon { margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

.card--plain { background: transparent; padding: 0; }

/* Quick look: more air between heading and items, less dead space below. */
#quick-look { padding-bottom: 56px; }
#quick-look .section-head { margin-bottom: 80px; }
@media (max-width: 720px) {
  #quick-look { padding-bottom: 40px; }
  #quick-look .section-head { margin-bottom: 48px; }
}

/* Pain-point cards sit on a mauve tint, per the design notes. */
.pains { background: rgba(166, 127, 142, .09); }
.pains .card { background: var(--bg); box-shadow: var(--shadow); }

/* ---------- Quote bands ---------- */

.band { background: var(--sage); color: #FFFDFB; }
.band--terracotta { background: var(--primary); }

.band blockquote {
  margin: 0 auto; max-width: 760px; text-align: center;
  font: italic 500 clamp(24px, 3.4vw, 36px)/1.35 var(--serif);
}
.band cite {
  display: block; margin-top: 24px;
  font: 500 14px var(--sans); font-style: normal;
  letter-spacing: .08em; text-transform: uppercase; opacity: .85;
}

/* ---------- Two-column feature ---------- */

.split {
  display: grid; gap: clamp(32px, 6vw, 72px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.adjust-graphic { width: 100%; height: auto; overflow: visible; }
.adjust-graphic .jagged { stroke: var(--muted); }
.adjust-graphic .smooth { stroke: var(--primary); }
.adjust-graphic path {
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.adjust-graphic .axis { stroke: var(--muted); stroke-width: 1.25; opacity: .55; }
.adjust-graphic text {
  font: 500 11px var(--sans); letter-spacing: .1em;
  text-transform: uppercase; fill: var(--muted);
}

/* ---------- Steps timeline ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.step {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding-bottom: 40px;
}
.step:last-child { padding-bottom: 0; }

/* The connecting line runs behind the numbered discs. */
.step::before {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 0;
  width: 1.5px; background: var(--line);
}
.step:last-child::before { display: none; }

.step-num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line);
  display: grid; place-items: center;
  font: 500 20px var(--serif); color: var(--primary);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; max-width: 54ch; }

/* ---------- Won't-do list ---------- */

.wont { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; max-width: 70ch; }
.wont li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; }
.wont .icon { width: 22px; height: 22px; margin: 4px 0 0; stroke: var(--mauve); }
.wont strong { font-weight: 500; }
.wont span { color: var(--muted); }

/* ---------- Founder ---------- */

.founder-quote {
  font: italic 500 clamp(22px, 3vw, 30px)/1.4 var(--serif);
  margin-bottom: 24px;
}
.founder-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; }
.founder-name { font: 500 15px var(--sans); }
.founder-role { color: var(--muted); font-size: 15px; }

.community-note {
  display: flex; align-items: center; gap: 20px;
  margin-top: 56px; padding: 28px 32px;
  background: var(--surface); border-left: 3px solid var(--sage); border-radius: var(--radius);
}
.community-note p { font: 500 clamp(19px, 2.2vw, 24px)/1.4 var(--serif); color: var(--ink); max-width: 60ch; }
.community-note .icon { flex: 0 0 auto; width: 32px; height: 32px; }
@media (max-width: 520px) { .community-note { flex-direction: column; align-items: flex-start; padding: 24px; } }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; margin: 0 auto; }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font: 500 18px var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  flex: 0 0 auto; width: 20px; height: 20px;
  stroke: var(--muted); stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease;
}
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 66ch; }
.faq .answer p + p { margin-top: 12px; }

/* ---------- Closing CTA ---------- */

.closing { background: var(--primary); color: #FFFDFB; text-align: center; }
.closing h2 { margin-bottom: 20px; }
.closing p { color: rgba(255, 253, 251, .82); max-width: 52ch; margin: 0 auto 32px; font-size: 18px; }
.closing .cta-row { justify-content: center; }

/* ---------- Waitlist ---------- */

.updates { background: var(--surface); text-align: center; }
.waitlist { max-width: 560px; margin: 0 auto; }
.waitlist h2 { margin-bottom: 12px; }
.waitlist-label { font-size: 17px; color: var(--muted); margin-bottom: 28px; }

.waitlist form { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) {
  .waitlist form { flex-direction: row; }
  .waitlist input { flex: 1; }
}

.waitlist input {
  height: 56px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--ink);
  font: 400 17px var(--sans); width: 100%;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist input:focus { outline: none; border-color: var(--primary); }

.waitlist button { flex: 0 0 auto; }
.waitlist button:disabled { opacity: .5; cursor: default; }

.msg { font-size: 15px; min-height: 24px; margin-top: 12px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; gap: 24px; margin-left: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { width: 100%; font-size: 13px; }
@media (max-width: 620px) {
  .site-footer { padding: 40px 0; }
  .site-footer .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer nav { margin-left: 0; flex-wrap: wrap; gap: 8px 20px; }
  .site-footer .legal { margin-top: 8px; }
}

/* ---------- Scroll reveal ----------
   Dominika specifically called out the gradual reveal on the wedding site.
   Opacity + a short rise, staggered by --i within a group. */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary .chev { transition: none; }
}

/* ---------- Hero trust badges ---------- */

.badges { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.badges li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.badges .icon { width: 20px; height: 20px; flex: 0 0 auto; stroke: var(--sage); }

/* ---------- Closing line under the pain-point cards ---------- */

.pains-note {
  max-width: 62ch; margin: 48px auto 0; text-align: center;
  font: 500 19px/1.55 var(--sans); color: var(--ink);
}

/* ---------- CTA inside a coloured band ---------- */

.band-cta { justify-content: center; margin-top: 40px; }

/* ---------- Testimonial cards ---------- */

.quote-card { display: flex; flex-direction: column; margin: 0; }
.quote-card blockquote {
  margin: 0 0 24px; flex: 1;
  font: italic 400 17px/1.6 var(--sans); color: var(--ink);
}
.quote-card figcaption { display: grid; gap: 2px; }
.q-name { font: 500 16px var(--sans); }
.q-role { font-size: 15px; color: var(--muted); }

/* ---------- Story ---------- */

.story-intro { max-width: 62ch; margin: 0 0 56px; }


/* ---------- Legal pages (/privacy, /terms) ---------- */

.legal-doc { padding: 64px 0 96px; }
.legal-doc .container { max-width: 760px; }
.legal-doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.legal-doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.legal-doc h2 { font-size: 26px; margin: 48px 0 12px; }
.legal-doc h3 { font: 500 17px var(--sans); margin: 24px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--ink); }
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul { padding-left: 22px; margin: 8px 0 0; display: grid; gap: 6px; }
.legal-doc a { color: var(--primary); }
.legal-doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.legal-doc th { font-weight: 500; color: var(--muted); }
.legal-doc .table-wrap { overflow-x: auto; }
