/* Fancy That website. Brand colours and fonts as in the app (src/styles/app.css).
   One deliberate look in every theme: cream days, ink nights, coral for the moment. */
:root {
  --coral: #ff6b5b;
  --deep: #c4392a;
  --cream: #fff7f1;
  --ink: #111111;
  --ink2: #2a2624;
  --sand: #e8e1d9;
  --blue: #8ec5ff;
  --mint: #7fd6a0;
  --sun: #ffd166;
  --lilac: #c9b6ff;
  --body: #3a3634;
  --muted: #5c5654;
  --ondark: #c9bfb8;
  --display: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep); margin-bottom: 14px; }
section h2 { font-size: clamp(36px, 5.6vw, 68px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--coral); background: var(--coral); color: var(--ink); font: 700 16px var(--text); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn.ink:hover { box-shadow: 4px 4px 0 var(--coral); }
.btn.line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.ghost { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn.ghost:hover { box-shadow: 4px 4px 0 var(--coral); }

/* Ticker */
.ticker { background: var(--coral); overflow: hidden; white-space: nowrap; border-bottom: 2px solid var(--ink); padding-top: env(safe-area-inset-top); }
.ticker-track { display: inline-flex; gap: 0; animation: tick 38s linear infinite; }
.ticker span { font: 800 14px var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 9px 22px; }
.ticker span::after { content: '✦'; margin-left: 44px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 247, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sand); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.04em; text-decoration: none; line-height: .9; display: inline-flex; flex-direction: column; }
.wordmark i { color: var(--coral); font-style: normal; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--deep); }

/* 1. Hero */
.hero { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(17,17,17,.92) 0%, rgba(17,17,17,.6) 55%, rgba(17,17,17,.15) 100%); }
.hero-in { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 150px) clamp(64px, 10vw, 120px); display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero h1 { font-size: clamp(56px, 11vw, 148px); letter-spacing: -0.05em; line-height: .92; }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero-lead { font-size: clamp(18px, 2vw, 21px); max-width: 33em; color: #efe7e1; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.sticker { position: absolute; z-index: 2; font: 800 15px var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 10px 16px; border-radius: 14px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.sticker.s1 { right: 6%; top: 18%; background: var(--sun); color: var(--ink); transform: rotate(6deg); }
.sticker.s2 { right: 16%; top: 34%; background: var(--blue); color: var(--ink); transform: rotate(-5deg); }
@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: bob 5s ease-in-out infinite; }
  .sticker.s2 { animation-delay: -2.5s; }
  @keyframes bob { 50% { translate: 0 -8px; } }
}

/* 2. The moment: words light up as you scroll (all readable without it) */
.moment { padding-block: clamp(80px, 12vw, 150px); }
.moment-text { font: 800 clamp(28px, 4.2vw, 54px)/1.15 var(--display); letter-spacing: -0.03em; max-width: 22em; }
.moment-text strong { color: var(--deep); }
.moment-text .w { transition: opacity .25s; }
.moment-text.lit-ready .w { opacity: .18; }
.moment-text.lit-ready .w.on { opacity: 1; }

/* 3. Story: night before, morning after */
.story { background: var(--ink); color: var(--cream); padding-block: 96px 120px; transition: background .6s; }
.story.morning { background: #2b1f1c; }
.story .eyebrow { color: var(--coral); }
.story-title span { color: var(--sun); }
.story-in { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(32px, 6vw, 96px); margin-top: 56px; align-items: start; }
.story-stage { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.clock { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 800; }
.clock-day { font-size: 18px; text-transform: uppercase; color: var(--coral); letter-spacing: .06em; }
.clock-time { font-size: 56px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.phone { width: 100%; max-width: 320px; aspect-ratio: 9 / 17; background: var(--cream); color: var(--ink); border: 10px solid #000; border-radius: 44px; position: relative; overflow: hidden; box-shadow: 0 30px 80px rgba(255, 107, 91, .25); }
.screen { position: absolute; inset: 0; padding: 30px 20px 22px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; }
.screen.on { opacity: 1; transform: none; }
.p-eyebrow { font: 700 11px var(--text); text-transform: uppercase; letter-spacing: .08em; color: var(--deep); }
.p-event { border-radius: 18px; overflow: hidden; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; }
.p-event img { aspect-ratio: 16 / 9; object-fit: cover; }
.p-event b { font: 800 19px var(--display); padding: 10px 12px 0; }
.p-event span { font-size: 13px; padding: 0 12px 12px; color: var(--ondark); }
.p-count { background: #fff; border: 1.5px solid var(--sand); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; font-size: 14px; }
.p-count b { font: 800 34px var(--display); line-height: 1; }
.p-count small { color: var(--muted); }
.p-btn { margin-top: auto; text-align: center; padding: 12px; border-radius: 999px; background: var(--coral); font-weight: 700; font-size: 14px; }
.p-btn.line { background: transparent; border: 2px solid var(--ink); }
.p-btn.ink { background: var(--ink); color: var(--cream); }
.p-pin { width: 96px; height: 96px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; margin: 26px auto 6px; color: var(--ink); box-shadow: 0 0 0 14px rgba(127, 214, 160, .3), 0 0 0 30px rgba(127, 214, 160, .14); }
.p-big { font: 800 28px var(--display); letter-spacing: -0.03em; text-align: center; }
.screen small { font-size: 13px; color: var(--muted); text-align: center; }
.p-ring { width: 130px; height: 130px; border-radius: 50%; border: 10px solid var(--mint); display: grid; place-content: center; text-align: center; margin: 24px auto 6px; }
.p-ring span { font: 800 44px/1 var(--display); }
.p-photo { border-radius: 18px; aspect-ratio: 1; object-fit: cover; }
.p-name { font: 800 22px var(--display); }
.p-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.p-choices span { flex: 1 1 auto; text-align: center; padding: 9px 6px; border-radius: 999px; font-weight: 700; font-size: 12px; border: 2px solid var(--ink); }
.p-choices .c1 { background: var(--coral); border-color: var(--coral); }
.p-choices .c2 { background: var(--ink); color: var(--cream); }
.p-mutual { position: absolute; inset: 0; background: var(--coral); padding: 30px 20px 22px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.p-mutual small { color: var(--ink); }
.p-avatars { display: flex; justify-content: center; }
.p-avatars span, .p-avatars img { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--cream); object-fit: cover; }
.p-avatars span { background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 800; margin-right: -14px; position: relative; z-index: 1; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18vh; padding-block: 6vh 20vh; }
.step { opacity: .35; transition: opacity .3s; max-width: 30em; }
.step.on { opacity: 1; }
.step .when { display: inline-block; font: 800 14px var(--display); letter-spacing: .06em; text-transform: uppercase; background: var(--ink2); color: var(--coral); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.step h3 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 12px; }
.step p { color: var(--ondark); font-size: 18px; }

/* 4. Try it */
.try { padding-block: 110px; background: var(--sun); }
.try .eyebrow { color: var(--ink); }
.try-in { display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.try-copy { display: flex; flex-direction: column; gap: 18px; }
.try-copy p { font-size: 19px; max-width: 30em; }
.try-copy .note { font-size: 14px; color: var(--body); }
.deck { position: relative; background: var(--cream); border: 3px solid var(--ink); border-radius: 32px; box-shadow: 10px 10px 0 var(--ink); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 560px; }
.deck-card { display: none; flex-direction: column; gap: 12px; }
.deck-card.on { display: flex; animation: deal .35s ease-out; }
@keyframes deal { from { opacity: 0; transform: translateX(30px) rotate(3deg); } }
.deck-card img { border-radius: 22px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.deck-info { display: flex; flex-direction: column; gap: 2px; }
.deck-info b { font: 800 26px var(--display); letter-spacing: -0.03em; }
.deck-info span { color: var(--body); font-size: 15px; }
.deck-info .ask { margin-top: 6px; font-weight: 600; color: var(--ink); }
.deck-buttons { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.deck-buttons .btn { flex: 1 1 auto; }
.deck-done { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; flex: 1; padding: 30px 10px; }
.deck.finished .deck-done { display: flex; }
.deck.finished .deck-buttons { display: none; }
.deck-result { font: 800 34px/1.05 var(--display); letter-spacing: -0.03em; }
.deck-sub { color: var(--body); }
.deck-toast { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-4deg) scale(.6); background: var(--coral); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 14px 22px; border-radius: 18px; font: 800 26px var(--display); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.deck-toast.show { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(1); }

/* 5. Friends first */
.intent { padding-block: 110px; }
.intent h2 span { color: var(--deep); }
.intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.intent-card { border-radius: 32px; padding: 36px; border: 3px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.intent-card b { font: 800 clamp(26px, 3vw, 36px) var(--display); letter-spacing: -0.03em; }
.intent-card p { font-size: 18px; }
.intent-card.mint { background: var(--mint); }
.intent-card.coral { background: var(--coral); }

/* 6. Places */
.places { padding-block: 100px; background: var(--ink); color: var(--cream); overflow: hidden; }
.places .eyebrow { color: var(--coral); }
.place-rows { margin-block: 44px 28px; }
.place-row { display: flex; gap: 14px; width: max-content; padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px)); }
@media (prefers-reduced-motion: no-preference) { .place-row { animation: drift 40s linear infinite alternate; } }
@keyframes drift { to { transform: translateX(calc(-1 * (100% - 100vw))); } }
.place { flex: none; height: 220px; border-radius: 28px; margin: 0; position: relative; overflow: hidden; }
.place.photo { width: 300px; }
.place.photo img { width: 100%; height: 100%; object-fit: cover; }
.place figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--cream); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; }
.place.tile { width: 220px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: var(--ink); font: 800 28px/1 var(--display); letter-spacing: -0.03em; }
.place.tile small { font: 700 12px var(--text); text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.place.sun { background: var(--sun); } .place.blue { background: var(--blue); } .place.lilac { background: var(--lilac); } .place.mint { background: var(--mint); }
.places-note { color: var(--ondark); max-width: 44em; }

/* 7. Different */
.different { padding-block: 110px; }
.vs { margin-top: 44px; border: 3px solid var(--ink); border-radius: 28px; overflow: hidden; }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; }
.vs-row span { padding: 18px 24px; border-top: 1.5px solid var(--sand); min-width: 0; }
.vs-row span:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(196, 57, 42, .6); }
.vs-row span:last-child { font-weight: 700; background: #fff; }
.vs-head span { border-top: 0; font: 800 14px var(--display); text-transform: uppercase; letter-spacing: .08em; text-decoration: none !important; color: var(--ink) !important; }
.vs-head span:last-child { background: var(--coral); }

/* 8. Safety */
.safety { background: var(--blue); padding-block: 110px; }
.safety .eyebrow { color: var(--ink); }
.promises { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promises li { background: var(--cream); border: 3px solid var(--ink); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pi { font: 800 14px var(--display); color: var(--deep); }
.promises b { font: 800 22px var(--display); letter-spacing: -0.02em; }
.promises span:last-child { color: var(--body); }

/* 9. Questions */
.faq { padding-block: 110px; }
.faq-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.faq details { border: 2px solid var(--ink); border-radius: 20px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font: 800 19px var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: .8; color: var(--deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--body); }

/* 10. Join */
.join { background: var(--coral); padding-block: 120px; border-top: 3px solid var(--ink); }
.join-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.join h2 { font-size: clamp(44px, 8vw, 104px); letter-spacing: -0.05em; }
.join h2 span { color: var(--cream); }
.join-in > p { font-size: 20px; max-width: 30em; }
.join-form { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.join-row { display: flex; gap: 8px; background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; padding: 6px; box-shadow: 6px 6px 0 var(--ink); }
.join-row input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 17px var(--text); padding: 0 16px; color: var(--ink); }
.join-row input:focus { outline: none; }
.join-row:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.consent { display: flex; gap: 10px; text-align: left; font-size: 15px; align-items: flex-start; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.join-msg { min-height: 1.5em; font-weight: 700; }
.join-msg.ok { font: 800 24px var(--display); }

/* Footer */
.foot { background: var(--ink); color: var(--ondark); padding-block: 64px calc(48px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-direction: column; gap: 28px; }
.wordmark.big { font-size: clamp(64px, 14vw, 180px); color: var(--cream); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 14px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .sticker.s1 { right: 4%; top: 6%; } .sticker.s2 { right: 10%; top: 13%; }
  .hero-in { padding-top: 140px; }
  .story-in { grid-template-columns: 1fr; }
  .story-stage { top: 76px; z-index: 2; flex-direction: row; justify-content: space-between; background: var(--ink); padding-block: 10px; }
  .story.morning .story-stage { background: #2b1f1c; }
  .phone { max-width: 150px; border-width: 6px; border-radius: 26px; }
  .screen { padding: 16px 10px; gap: 6px; transform: scale(.47); transform-origin: top left; width: 213%; height: 213%; }
  .screen.on { transform: scale(.47); }
  .clock-time { font-size: 44px; }
  .steps { gap: 40vh; padding-block: 4vh 30vh; }
  .try-in, .faq-in, .intent-grid { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .vs-row span { padding: 14px; font-size: 15px; }
  .place { height: 170px; } .place.photo { width: 230px; } .place.tile { width: 170px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .screen, .step, .moment-text .w { transition: none; }
}
