/* Flipnik website styles.
   Colors match the iPhone app: navy, cream, pink, gold and sage, with groovy triple stripes.
   Dark mode is sage and green-charcoal, never blue. */

@font-face {
  font-family: "Righteous";
  src: url("/assets/fonts/Righteous-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* Everyday surfaces (text pages and bright chapters) */
  --bg: #F5EFE6;
  --day: #F7F1E7;
  --day-tint: #F6DCD8;
  --surface: #FFFFFF;
  --border: #E8DFD2;
  --ink: #1E2A4A;
  --ink-2: #4F566A;
  --accent: #A8545F;
  --button: #1E2A4A;
  --button-ink: #FFFFFF;

  /* Night chapters */
  --sky-top: #0F1529;
  --sky-mid: #1E2A4A;
  --sky-low: #2E3D66;
  --city-back: #26345C;
  --city-front: #141C33;
  --night-body: #DCE6D6;

  /* The drab "bored" chapter */
  --drab: #DDD8D0;
  --drab-ink: #5E5C59;
  --drab-title: #4A4845;

  /* Sunset ending */
  --dusk-top: #F6DCD8;
  --dusk-low: #F3E3BF;
  --town-back: #B7CFB3;
  --town-front: #1E2A4A;
  --road: #2E3D66;

  /* Rays behind the card */
  --ray-a: #F8E3DF;
  --ray-b: #F7F1E7;

  /* Sunrise and sunset blends between night and day */
  --dawn-1: #3B3556;
  --dawn-2: #8C6A8A;
  --dawn-3: #E3A9A6;

  /* Brand colors that stay the same in both modes */
  --cream: #F7F1E7;
  --sand: #E6D5BC;
  --pink: #EDB8B4;
  --pink-pale: #F6DCD8;
  --rose: #A8545F;
  --coral: #E27D8A;
  --sage: #9DB59A;
  --sage-pale: #DCE6D6;
  --sage-deep: #3F5E3C;
  --gold: #E3C17E;
  --gold-pale: #F3E3BF;
  --navy: #1E2A4A;
  --navy-deep: #141C33;

  --groovy: linear-gradient(90deg, #E3C17E 0%, #E27D8A 55%, #EDB8B4 100%);
  --frame: linear-gradient(155deg, #F6DCD8 0%, #EDB8B4 22%, #E6D5BC 46%, #9DB59A 72%, #F7F1E7 100%);
  --heading: "Righteous", ui-rounded, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #121714;
    --day: #121714;
    --day-tint: #1C231F;
    --surface: #1C231F;
    --border: #2D3730;
    --ink: #F3EDE3;
    --ink-2: #B5BCB2;
    --accent: #F1B6B1;
    --button: #9DB59A;
    --button-ink: #15201A;

    --sky-top: #0B0F0D;
    --sky-mid: #121714;
    --sky-low: #1C2621;
    --city-back: #24302A;
    --city-front: #101512;
    --night-body: #B7CFB3;

    --drab: #1E201F;
    --drab-ink: #8F928E;
    --drab-title: #A9ACA7;

    --dusk-top: #2A1F27;
    --dusk-low: #3A3221;
    --town-back: #2C4436;
    --town-front: #101512;
    --road: #1C2621;

    --ray-a: #1A201C;
    --ray-b: #121714;

    --dawn-1: #151A17;
    --dawn-2: #1B1B1C;
    --dawn-3: #211D20; } }
:root[data-theme="dark"] { --bg: #121714;
    --day: #121714;
    --day-tint: #1C231F;
    --surface: #1C231F;
    --border: #2D3730;
    --ink: #F3EDE3;
    --ink-2: #B5BCB2;
    --accent: #F1B6B1;
    --button: #9DB59A;
    --button-ink: #15201A;

    --sky-top: #0B0F0D;
    --sky-mid: #121714;
    --sky-low: #1C2621;
    --city-back: #24302A;
    --city-front: #101512;
    --night-body: #B7CFB3;

    --drab: #1E201F;
    --drab-ink: #8F928E;
    --drab-title: #A9ACA7;

    --dusk-top: #2A1F27;
    --dusk-low: #3A3221;
    --town-back: #2C4436;
    --town-front: #101512;
    --road: #1C2621;

    --ray-a: #1A201C;
    --ray-b: #121714;

    --dawn-1: #151A17;
    --dawn-2: #1B1B1C;
    --dawn-3: #211D20; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.06; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

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

.site-header { position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .3s ease;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.home .site-header { position: fixed; left: 0; right: 0; }
.home .site-header:not(.scrolled)::before { opacity: 0; }
.home .site-header:not(.scrolled) .wordmark { color: var(--cream); }
.home .site-header:not(.scrolled) .wordmark span { color: var(--pink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 40px; height: 40px; }
.wordmark { font-family: var(--heading); font-size: 30px; letter-spacing: -.02em; display: inline-block; transform: skewX(-12deg); padding-right: .1em; color: var(--ink); transition: color .3s ease; }
.wordmark span { color: var(--accent); transition: color .3s ease; }

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

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--button); color: var(--button-ink);
  font: 700 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(20, 28, 51, .55);
  transition: transform .15s ease, opacity .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: default; transform: none; }
.button.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.button.groovy { background: var(--pink); color: var(--navy); box-shadow: 0 10px 28px -10px rgba(226, 125, 138, .7); }
.button.groovy:hover { background: #F1C3BF; }

/* ---------- Home: shared pieces ---------- */

.home { background: var(--sky-top); overflow-x: hidden; }
.chapter { position: relative; overflow: hidden; }
.kicker { font: 800 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.chapter h1, .chapter h2 { font-size: clamp(44px, 7vw, 84px); }
.chapter .body { font-size: clamp(18px, 2vw, 21px); margin-top: 18px; max-width: 34rem; }

/* The app's triple stripe */
.stripes { display: grid; gap: 4px; width: 56px; margin-bottom: 18px; }
.stripes i { display: block; height: 5px; border-radius: 3px; }
.stripes i:nth-child(1) { background: var(--coral); }
.stripes i:nth-child(2) { background: var(--gold); }
.stripes i:nth-child(3) { background: var(--sage); }
.center .stripes { margin-inline: auto; }

.next {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; opacity: .7;
}
.next:hover { opacity: 1; }
.next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 4px; } }

.reveal { opacity: 0; translate: 0 18px; transition: opacity .7s ease, translate .7s ease; }
.on .reveal { opacity: 1; translate: 0 0; }
.on .reveal.d1 { transition-delay: .12s; }
.on .reveal.d2 { transition-delay: .24s; }
.on .reveal.d3 { transition-delay: .36s; }
.on .reveal.d4 { transition-delay: .48s; }

.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; border-radius: 50%; animation: twinkle var(--t, 3s) ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 50% { opacity: .15; scale: .5; } }
.sparkle { clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); border-radius: 0 !important; }

/* Groovy wave: three stripes that ride over the seam between chapters */
.wave { position: relative; z-index: 6; height: 110px; margin: -55px 0; pointer-events: none; }
.wave svg { width: 100%; height: 100%; overflow: visible; }
.wave path { fill: none; stroke-width: 22px; vector-effect: non-scaling-stroke; }

/* Progress rail: one dot per chapter, the current one stretches into a pink bar */
.rail {
  position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 25; display: grid; gap: 10px; padding: 12px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
}
.rail a { display: block; width: 8px; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 30%, transparent); transition: height .3s ease, background .3s ease; }
.rail a:hover { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.rail a.active { height: 24px; background: var(--coral); }
@media (max-width: 860px) { .rail { display: none; } }

/* Small detail rows used in Meet Flipnik and the venues chapter */
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; max-width: 32rem; }
.points li { display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; align-items: start; text-align: left; }
.points .badge { grid-row: span 2; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: var(--navy); rotate: -4deg; box-shadow: 0 8px 18px -10px rgba(20, 28, 51, .5); }
.points li:nth-child(2) .badge { rotate: 3deg; }
.points b { font: 21px/1.2 var(--heading); font-weight: 400; }
.points b + span { font-size: 16px; }

/* Postcards (both reels) */
.reel { display: grid; gap: 26px; }
.strip { display: flex; width: max-content; gap: 26px; padding: 10px 0; animation: drift-left var(--dur, 80s) linear infinite; }
.strip.reverse { animation-name: drift-right; }
@keyframes drift-left { to { translate: -50% 0; } }
@keyframes drift-right { from { translate: -50% 0; } to { translate: 0 0; } }
.postcard {
  flex: none; width: clamp(230px, 24vw, 300px); margin: 0; padding: 10px 10px 0; border-radius: 16px; background: #FFFDF8;
  box-shadow: 0 22px 36px -18px rgba(20, 28, 51, .45); rotate: var(--r, -2deg); color: var(--navy);
}
.postcard:nth-child(even) { --r: 2.5deg; }
.postcard:nth-child(3n) { --r: -1deg; }
.postcard .pic { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 5 / 3; background: var(--sand); }
.postcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.postcard .stamp { position: absolute; right: 8px; top: 8px; width: 34px; height: 42px; padding: 3px; background: #FFFDF8; border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.postcard .stamp i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 2px; background: var(--c, var(--pink)); }
.postcard .stamp svg { width: 72%; }
.postcard figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 6px 13px; }
.postcard figcaption b { font: 21px/1 var(--heading); font-weight: 400; transform: skewX(-8deg); }
.postcard figcaption small { font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #8B7F70; }
.strip.mini .postcard { width: clamp(170px, 16vw, 210px); padding: 8px 8px 0; }
.strip.mini .postcard figcaption { padding: 9px 4px 11px; }
.strip.mini .postcard figcaption b { font-size: 17px; }

/* ---------- 1. The sky started beeping (night) ---------- */

.ch-sky { min-height: 100svh; background: linear-gradient(var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%); color: var(--cream); }
.ch-sky .copy { position: relative; z-index: 4; text-align: center; padding: clamp(190px, 24vh, 240px) 16px 0; display: grid; justify-items: center; align-content: start; }
.ch-sky h1 { color: var(--cream); margin-top: 16px; }
.ch-sky .body { color: var(--night-body); margin-inline: auto; }
.planet { position: absolute; left: -5%; top: 50%; width: min(380px, 38vw); z-index: 1; translate: 0 calc(var(--p, 0) * -120px); rotate: -8deg; }
.moon { position: absolute; right: 8%; top: 15%; width: clamp(54px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 35%, var(--cream), var(--sand) 60%, #CDBB9C); box-shadow: 0 0 60px rgba(247, 241, 231, .25); translate: 0 calc(var(--p, 0) * -60px); }
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(160, 140, 110, .3); }
.moon::before { width: 22%; height: 22%; left: 52%; top: 28%; }
.moon::after { width: 14%; height: 14%; left: 30%; top: 60%; }
.satellite { position: absolute; left: 0; top: 0; z-index: 2; width: var(--sat, 72px); height: var(--sat, 72px); margin: calc(var(--sat, 72px) / -2) 0 0 calc(var(--sat, 72px) / -2); will-change: transform; opacity: 0; transition: opacity .6s ease; }
.satellite.ready { opacity: 1; }
/* On computers, the satellite becomes the mouse cursor over the night sky */
html.sat-cursor, html.sat-cursor * { cursor: none !important; }
.satellite.following { z-index: 40; pointer-events: none; }
.satellite.pointing img { scale: 1.2; }
.satellite img { transition: scale .2s ease; }
.satellite.pointing::before, .satellite.pointing::after { animation-duration: .6s; }
.satellite { pointer-events: none; }
.satellite img { width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(243, 227, 191, .7)); }
.satellite::before, .satellite::after { content: ""; position: absolute; left: 50%; top: 45%; width: 60%; height: 60%; translate: -50% -50%; border-radius: 50%; border: 2px solid rgba(247, 241, 231, .6); animation: ping 1.2s ease-out infinite; }
.satellite::after { animation-delay: .6s; }
.satellite .beep { position: absolute; left: 50%; top: -22px; translate: -50% 0; font: 900 14px/1 ui-rounded, var(--body); letter-spacing: .04em; color: var(--gold); animation: blink 1.2s steps(1) infinite; }
@keyframes ping { to { width: 170%; height: 170%; opacity: 0; } }
@keyframes blink { 45% { opacity: 0; } }
.city { position: absolute; left: 0; right: 0; bottom: 0; height: min(34vh, 320px); z-index: 3; }
.city svg { width: 100%; height: 100%; }
.city .back { fill: var(--city-back); }
.city .front { fill: var(--city-front); }
.city .win { fill: var(--gold); opacity: 0; }
.on .city .win { animation: light-on .4s ease forwards; }
@keyframes light-on { to { opacity: .92; } }
.city .person { transform-box: fill-box; transform-origin: bottom center; scale: 0; }
.on .city .person { animation: pop .3s ease-out forwards; }
@keyframes pop { to { scale: 1; } }
.ch-sky .next { position: absolute; left: 50%; bottom: 30px; translate: -50% 0; z-index: 5; margin: 0; padding: 10px 16px; border-radius: 999px; color: var(--cream);
  background: color-mix(in srgb, var(--sky-top) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.tune-in { margin-top: 30px; min-height: 52px; padding: 0 28px 0 30px; font-size: 17px; animation: tune-glow 2.4s ease-in-out infinite; }
.tune-in svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes tune-glow {
  0%, 100% { box-shadow: 0 10px 28px -10px rgba(226, 125, 138, .7), 0 0 0 0 rgba(237, 184, 180, .55); }
  50% { box-shadow: 0 10px 28px -10px rgba(226, 125, 138, .7), 0 0 0 12px rgba(237, 184, 180, 0); }
}

/* ---------- 2. Everyone went exploring (sunny) ---------- */

.ch-explore {
  padding: 180px 0 110px; color: var(--ink);
  background: linear-gradient(var(--city-front) 0, var(--dawn-1) 35px, var(--dawn-2) 75px, var(--dawn-3) 115px, var(--day-tint) 160px, var(--day) 100%);
}
.ch-explore .dawn-stars { position: absolute; left: 0; right: 0; top: 0; height: 90px; -webkit-mask: linear-gradient(#000 30%, transparent); mask: linear-gradient(#000 30%, transparent); }
.ch-explore .copy { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; }
.ch-explore .body { color: var(--ink-2); }
.ch-explore .reel { margin-top: 44px; position: relative; z-index: 2; }

/* ---------- 3. And then we got bored (drab) ---------- */

.ch-bored { padding: 150px 0 140px; background: var(--drab); }
.ch-bored .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.ch-bored h2 { color: var(--drab-title); }
.ch-bored .body { color: var(--drab-ink); }
.ch-bored .stripes { filter: grayscale(1); opacity: .5; }
.ch-bored .next { color: var(--drab-title); }
.couch-scene { position: relative; padding-bottom: 150px; }

.tv { width: min(440px, 88%); display: grid; justify-items: center; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .25)) grayscale(.8); }
.tv .ears { position: relative; width: 120px; height: 58px; margin-bottom: -6px; z-index: 1; }
.tv .ear { position: absolute; left: 50%; bottom: 8px; width: 3px; height: 52px; margin-left: -1.5px; border-radius: 2px; background: #8F8B85; transform-origin: bottom center; }
.tv .ear::before { content: ""; position: absolute; top: -8px; left: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.tv .ear.l { rotate: -28deg; animation: wiggle-l 2.9s ease-in-out infinite; }
.tv .ear.r { rotate: 28deg; animation: wiggle-r 2.9s ease-in-out infinite; }
.tv .ears::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 36px; height: 14px; margin-left: -18px; border-radius: 999px; background: var(--cream); }
@keyframes wiggle-l { 50% { rotate: -22deg; } }
@keyframes wiggle-r { 50% { rotate: 22deg; } }
.tv .set { width: 100%; padding: 12px 12px 10px; border-radius: 34px; background: var(--cream); box-shadow: inset 0 0 0 3px var(--pink); }
.tv .glass { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--navy-deep); box-shadow: 0 0 0 4px var(--navy-deep); container-type: inline-size; }
.tv .glass::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 40%), repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .08) 2px 3px); }
.tv .controls { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 0; }
.tv .grille { display: grid; gap: 4px; }
.tv .grille i { display: block; width: 120px; height: 3px; border-radius: 2px; background: rgba(30, 42, 74, .25); }
.tv .knobs { display: flex; gap: 10px; }
.tv .knob { position: relative; width: 22px; height: 22px; border-radius: 50%; }
.tv .knob::after { content: ""; position: absolute; left: 50%; top: 3px; width: 3px; height: 9px; margin-left: -1.5px; border-radius: 2px; background: rgba(30, 42, 74, .6); }
.tv .knob.gold { background: var(--gold); rotate: 140deg; }
.tv .knob.sage { background: var(--sage); rotate: 30deg; }
.tv .legs { display: flex; justify-content: space-between; width: 62%; margin-top: -4px; }
.tv .legs i { width: 12px; height: 20px; border-radius: 999px; background: var(--cream); }
.test-pattern { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; }
.test-pattern .bars { display: grid; grid-template-columns: repeat(7, 1fr); }
.test-pattern .bars i:nth-child(1) { background: #F7F1E7; }
.test-pattern .bars i:nth-child(2) { background: #E3C17E; }
.test-pattern .bars i:nth-child(3) { background: #9DB59A; }
.test-pattern .bars i:nth-child(4) { background: #DCE6D6; }
.test-pattern .bars i:nth-child(5) { background: #EDB8B4; }
.test-pattern .bars i:nth-child(6) { background: #E27D8A; }
.test-pattern .bars i:nth-child(7) { background: #2E3D66; }
.test-pattern .base { height: 22%; display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; }
.test-pattern .base i:nth-child(1), .test-pattern .base i:nth-child(4) { background: #141C33; }
.test-pattern .base i:nth-child(2) { background: #F7F1E7; }
.test-pattern .base i:nth-child(3) { background: #2E3D66; }
.test-pattern .plate { position: absolute; left: 50%; top: 42%; translate: -50% -50%; padding: 3cqw 5cqw; border-radius: 3cqw; background: #141C33; color: #F7F1E7; font: 7cqw/1 var(--heading); white-space: nowrap; box-shadow: 0 0 0 1cqw #F7F1E7; }
.zz { position: absolute; left: 34%; top: 2%; font: 28px/1 var(--heading); color: var(--drab-title); animation: rise 3s linear infinite; opacity: 0; }
.zz:nth-of-type(2) { animation-delay: 1s; font-size: 22px; left: 38%; }
.zz:nth-of-type(3) { animation-delay: 2s; font-size: 18px; left: 42%; }
@keyframes rise { 0% { opacity: 0; translate: 0 40px; } 20% { opacity: .9; } 100% { opacity: 0; translate: 30px -80px; } }
.chat { position: absolute; right: 0; bottom: 0; width: min(300px, 74%); padding: 14px; border-radius: 26px; background: rgba(60, 62, 66, .9); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .45); }
.chat header { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 12px; }
.chat .faces { display: flex; }
.chat .faces i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #44464B; margin-left: -8px; }
.chat .faces i:first-child { margin-left: 0; }
.chat header b { font: 700 14px/1.2 var(--body); color: #E7E5E1; }
.chat header small { display: block; font-size: 12px; color: #A5A7AB; font-weight: 500; }
.chat .log { display: grid; gap: 8px; height: 250px; overflow: hidden; align-content: end; -webkit-mask: linear-gradient(transparent, #000 16%); mask: linear-gradient(transparent, #000 16%); }
.chat .msg { justify-self: start; max-width: 85%; padding: 8px 13px; border-radius: 18px; background: #55585F; color: #EFEDEA; font-size: 15px; line-height: 1.3; animation: msg-in .3s ease; }
.chat .msg.mine { justify-self: end; background: #7C808A; }
.chat .msg.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.chat .msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #A5A7AB; animation: dot 1s ease-in-out infinite; }
.chat .msg.typing i:nth-child(2) { animation-delay: .15s; }
.chat .msg.typing i:nth-child(3) { animation-delay: .3s; }
.chat .seen { justify-self: end; font-size: 12px; color: #A5A7AB; }
.chat .stamp { justify-self: center; font: 600 11px/1 var(--body); letter-spacing: .04em; color: #9A9DA3; padding: 4px 0 2px; animation: msg-in .3s ease; }
.ch-bored .body + .body { margin-top: 12px; color: var(--drab-title); font-weight: 600; }
.wall-clock { position: absolute; right: 8%; top: 0; width: 64px; height: 64px; border-radius: 50%; background: #EEEAE3; box-shadow: inset 0 0 0 4px #A9A49C, 0 8px 16px -8px rgba(0, 0, 0, .3); }
.wall-clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #6E6A64; }
.wall-clock .hand { position: absolute; left: 50%; bottom: 50%; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #6E6A64; transform-origin: bottom center; animation: tick linear infinite; }
.wall-clock .hour { height: 15px; animation-duration: 18s; }
.wall-clock .minute { height: 23px; width: 2px; margin-left: -1px; animation-duration: 1.5s; }
@keyframes tick { to { rotate: 360deg; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wall-clock { background: #2A2C2B; box-shadow: inset 0 0 0 4px #4A4D4B; } :root:not([data-theme="light"]) .wall-clock::after, :root:not([data-theme="light"]) .wall-clock .hand { background: #A9ACA7; } }
:root[data-theme="dark"] .wall-clock { background: #2A2C2B; box-shadow: inset 0 0 0 4px #4A4D4B; }
:root[data-theme="dark"] .wall-clock::after, :root[data-theme="dark"] .wall-clock .hand { background: #A9ACA7; }
@keyframes msg-in { from { opacity: 0; translate: 0 8px; } }
@keyframes dot { 50% { translate: 0 -3px; opacity: .5; } }

/* ---------- 4. Meet Flipnik (sunburst) ---------- */

.ch-meet { padding: 150px 0 50px; background: var(--day); color: var(--ink); }
.rays {
  position: absolute; left: 50%; top: 50%; width: 1200px; height: 1200px; translate: -50% -50%; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(var(--ray-a) 0 7.5deg, var(--ray-b) 7.5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 22%, transparent 52%); mask: radial-gradient(closest-side, #000 22%, transparent 52%);
  animation: turn 120s linear infinite;
}
@keyframes turn { to { rotate: 360deg; } }
.ch-meet .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.ch-meet .body { color: var(--ink-2); }
.ch-meet .points b + span { color: var(--ink-2); }
.ch-meet .table { position: relative; display: grid; justify-items: center; }
.ch-meet .table .float { position: relative; z-index: 1; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -12px; rotate: 1.5deg; } }

.flipcard { position: relative; width: min(320px, 74vw); aspect-ratio: 300 / 430; }
.flipcard .face { position: absolute; inset: 0; border-radius: 11.3% / 7.9%; background: var(--frame); padding: 1.7%; box-shadow: 0 34px 60px -24px rgba(20, 28, 51, .55), 0 0 70px -14px rgba(226, 125, 138, .55); }
.flipcard .face[hidden] { display: none; }
.flipcard .inner { position: relative; width: 100%; height: 100%; border-radius: 10% / 6.9%; overflow: hidden; container-type: inline-size; isolation: isolate; }
.card-back .inner {
  background:
    linear-gradient(#1E2A4A 0 56%, transparent 82%),
    repeating-radial-gradient(circle at 50% 120%, #EDB8B4 0 6cqw, #1E2A4A 6cqw 10cqw, #E6D5BC 10cqw 15.3cqw, #1E2A4A 15.3cqw 19.3cqw, #9DB59A 19.3cqw 24.7cqw, #1E2A4A 24.7cqw 28.7cqw);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-back .inner { background: linear-gradient(#1C2621 0 56%, transparent 82%), repeating-radial-gradient(circle at 50% 120%, #EDB8B4 0 6cqw, #1C2621 6cqw 10cqw, #E6D5BC 10cqw 15.3cqw, #1C2621 15.3cqw 19.3cqw, #9DB59A 19.3cqw 24.7cqw, #1C2621 24.7cqw 28.7cqw); } }
:root[data-theme="dark"] .card-back .inner { background: linear-gradient(#1C2621 0 56%, transparent 82%), repeating-radial-gradient(circle at 50% 120%, #EDB8B4 0 6cqw, #1C2621 6cqw 10cqw, #E6D5BC 10cqw 15.3cqw, #1C2621 15.3cqw 19.3cqw, #9DB59A 19.3cqw 24.7cqw, #1C2621 24.7cqw 28.7cqw); }
.card-back .inner::before { content: ""; position: absolute; inset: 4.1%; border-radius: 7.6% / 5.2%; border: 1.5px solid rgba(247, 241, 231, .42); }
.card-back .corner { position: absolute; left: 9.3%; top: 3.5%; font: 10.3cqw/1 var(--heading); color: var(--pink); transform: skewX(-12deg); }
.card-back .corner-star { position: absolute; left: 9.3%; top: 12.9%; width: 4.8cqw; height: 4.8cqw; background: var(--pink); }
.card-back .orbit { position: absolute; width: 80%; aspect-ratio: 1; left: 10%; top: calc(36.9% - 40cqw); border-radius: 50%; border: 1px dashed rgba(247, 241, 231, .3); animation: spin 9s linear infinite; }
.card-back .orbit::after { content: ""; position: absolute; width: 4.2cqw; height: 4.2cqw; left: 50%; top: -2.1cqw; margin-left: -2.1cqw; border-radius: 50%; background: var(--pink); box-shadow: 0 0 2.4cqw var(--pink); }
@keyframes spin { to { rotate: 360deg; } }
.card-back .brand-stack { position: absolute; left: 0; right: 0; top: 17%; display: grid; justify-items: center; gap: 3cqw; }
.card-back .brand-stack svg { width: 22cqw; height: 22cqw; }
.card-back .brand-stack b { font: 18cqw/1 var(--heading); font-weight: 400; color: #fff; letter-spacing: -.03em; transform: skewX(-12deg); text-shadow: 0 .7cqw 3cqw rgba(20, 28, 51, .8); }
.card-back .brand-stack small { font: 800 4.5cqw/1 var(--body); letter-spacing: .06em; color: var(--cream); }
.card-back .stars i { background: var(--cream); }
.card-back .shine { position: absolute; top: 0; bottom: 0; width: 40%; left: -45%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg); animation: shine 3.6s ease-in-out infinite 1.2s; }
@keyframes shine { 0% { left: -45%; opacity: 0; } 15% { opacity: 1; } 100% { left: 125%; opacity: 0; } }
.card-front .inner { background: #FFFDF8; display: grid; grid-template-rows: 56% 1fr; }
.card-front img { width: 100%; height: 100%; object-fit: cover; }
.card-front .question { position: absolute; left: 50%; top: 28%; translate: -50% -50%; font: 30cqw/1 var(--heading); color: var(--cream); text-shadow: 0 2cqw 6cqw rgba(20, 28, 51, .7); transform: skewX(-10deg); }
.card-front .redacted { padding: 7cqw 8cqw; display: grid; align-content: start; gap: 3.4cqw; }
.card-front .redacted i { display: block; height: 4.6cqw; border-radius: 1.4cqw; background: #1E2A4A; }
.card-front .redacted i:first-child { height: 7.4cqw; width: 78%; }
.card-front .redacted i:nth-child(2) { width: 92%; opacity: .85; }
.card-front .redacted i:nth-child(3) { width: 64%; opacity: .85; }
.card-front .sticker { position: absolute; right: 7%; bottom: 7%; white-space: nowrap; padding: 3.2cqw 5cqw; border-radius: 999px; rotate: -4deg; background: var(--coral); color: #fff; font: 800 4.2cqw/1 var(--body); letter-spacing: .02em; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .25); }
.burst { position: absolute; left: 50%; top: 45%; pointer-events: none; z-index: 3; }
.burst i { position: absolute; width: 18px; height: 18px; opacity: 0; translate: -50% -50%; }
.burst.go i { animation: burst .8s ease-out forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(calc(var(--x) * .55), calc(var(--y) * .55)) scale(.6); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.1); } }

.meet-title { font: 400 clamp(44px, 7vw, 84px)/1.06 var(--heading); color: var(--ink); }
.scramble { display: inline-flex; align-items: center; gap: 4px; font: clamp(52px, 7vw, 80px)/1 var(--heading); transform: skewX(-12deg); margin-top: 10px; }
.scramble .flip { position: relative; padding: .06em .16em .14em; border-radius: 14px; color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); outline: 2px dashed color-mix(in srgb, var(--ink) 40%, transparent); outline-offset: -2px; transition: background .4s ease, color .4s ease, box-shadow .4s ease; }
.scramble .flip .ghost { visibility: hidden; }
.scramble .flip .live { position: absolute; inset: .06em .16em .14em; text-align: center; }
.scramble.locked .flip { background: var(--navy); color: var(--cream); outline-color: transparent; box-shadow: 0 12px 30px -10px rgba(226, 125, 138, .8); }
.scramble .nik { color: var(--coral); padding: .06em .04em .14em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scramble.locked .flip { background: var(--cream); color: var(--navy); } :root:not([data-theme="light"]) .scramble .nik { color: var(--pink); } }
:root[data-theme="dark"] .scramble.locked .flip { background: var(--cream); color: var(--navy); }
:root[data-theme="dark"] .scramble .nik { color: var(--pink); }

.deck-line { position: relative; z-index: 2; text-align: center; margin-top: 64px; font: clamp(24px, 3vw, 32px)/1.2 var(--heading); }
.deck-line em { color: var(--coral); }
.ch-meet .reel { margin-top: 30px; position: relative; z-index: 2; }

/* ---------- 5. Mission Control (venues, night out) ---------- */

.ch-venues {
  padding: 150px 0 140px; color: var(--cream);
  background: linear-gradient(var(--day) 0, var(--dawn-3) 30px, var(--dawn-2) 65px, var(--dawn-1) 100px, var(--sky-mid) 135px, var(--sky-mid) calc(100% - 125px), var(--dawn-1) calc(100% - 95px), var(--dawn-2) calc(100% - 62px), var(--dawn-3) calc(100% - 28px), var(--dusk-top) 100%);
}
.ch-venues .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.ch-venues h2 { color: var(--cream); }
.ch-venues .body { color: var(--night-body); }
.ch-venues .points b + span { color: rgba(247, 241, 231, .75); }
.storefront { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 400 / 330; box-shadow: 0 0 0 8px var(--cream), 0 0 0 11px var(--gold), 0 40px 80px -24px rgba(0, 0, 0, .7); }
.storefront > img { width: 100%; height: 115%; object-fit: cover; object-position: bottom; }
.marquee {
  position: absolute; left: 50%; top: 9%; translate: -50% 0; width: 78%; padding: 16px 18px; border-radius: 18px; text-align: center;
  background: var(--navy); color: var(--cream); box-shadow: 0 16px 30px -12px rgba(20, 28, 51, .7);
}
.marquee .bulbs { position: absolute; inset: 6px; border-radius: 13px; pointer-events: none; }
.marquee .bulbs i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: chase 1.2s steps(1) infinite; }
.marquee .bulbs i:nth-child(3n+1) { animation-delay: -.4s; }
.marquee .bulbs i:nth-child(3n+2) { animation-delay: -.8s; }
@keyframes chase { 0% { opacity: 1; } 33% { opacity: .25; box-shadow: none; } }
.marquee b { display: block; font: clamp(22px, 3vw, 34px)/1 var(--heading); font-weight: 400; letter-spacing: .02em; }
.marquee small { display: block; margin-top: 6px; font: 800 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.venue-form { margin-top: 30px; }

/* ---------- 6. Let's get you outside (sunset) ---------- */

.ch-outside { padding: 40px 0 0; background: linear-gradient(var(--dusk-top), var(--dusk-low) 80%); color: var(--ink); }
.ch-outside .copy { position: relative; z-index: 3; text-align: center; display: grid; justify-items: center; }
.ch-outside .body { color: var(--ink-2); margin-inline: auto; }
.town { position: relative; z-index: 2; height: 300px; margin-top: 30px; }
.town svg { z-index: 1; }
.town svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.town .back { fill: var(--town-back); }
.town .front { fill: var(--town-front); }
.town .win { fill: var(--gold); }
.town .road { fill: var(--road); }
.town .dash { fill: var(--pink); opacity: .8; }
.town .walker { animation: stroll var(--dur) linear infinite; animation-delay: var(--delay); }
.town .walker.left { animation-name: stroll-left; }
.town .walker .bob { animation: bob .5s ease-in-out infinite alternate; }
.town .walker .leg { transform-box: fill-box; transform-origin: top center; animation: step .5s ease-in-out infinite alternate; }
.town .walker .leg.b { animation-direction: alternate-reverse; }
@keyframes stroll { from { transform: translateX(-80px); } to { transform: translateX(1520px); } }
@keyframes stroll-left { from { transform: translateX(1520px) scaleX(-1); } to { transform: translateX(-80px) scaleX(-1); } }
@keyframes bob { to { transform: translateY(-1.5px); } }
@keyframes step { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.town .confetti rect { animation: drop var(--s) linear infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
@keyframes drop { from { transform: translateY(-60px) rotate(0deg); opacity: 1; } 90% { opacity: 1; } to { transform: translateY(240px) rotate(540deg); opacity: 0; } }

/* Waitlist forms */
.waitlist { margin-top: 30px; display: grid; gap: 12px; width: min(31rem, 100%); }
.waitlist .row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 54px; padding: 0 22px; border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); background: var(--surface); color: var(--ink);
  font: 500 17px/1 var(--body); outline: none; box-shadow: 0 8px 20px -14px rgba(20, 28, 51, .4);
}
.waitlist input[type="email"]::placeholder { color: color-mix(in srgb, var(--ink) 45%, transparent); }
.waitlist input[type="email"]:focus { border-color: var(--coral); }
.waitlist .button { min-height: 54px; }
.waitlist .fine { font-size: 14px; color: var(--ink-2); text-wrap: balance; }
.waitlist .status { min-height: 1.5em; font-weight: 600; color: var(--sage-deep); }
.waitlist .status.error { color: var(--rose); }
.waitlist.done .row { display: none; }
.waitlist .done-card { display: none; padding: 20px 22px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--gold), 0 18px 30px -18px rgba(20, 28, 51, .4); text-align: left; }
.waitlist.done .done-card { display: block; animation: msg-in .4s ease; }
.waitlist .done-card b { display: block; font: 26px/1.1 var(--heading); font-weight: 400; color: var(--ink); }
.waitlist .done-card span { color: var(--ink-2); }
.on-night input[type="email"] { background: rgba(247, 241, 231, .08); color: var(--cream); border-color: rgba(247, 241, 231, .3); box-shadow: none; }
.on-night input[type="email"]::placeholder { color: rgba(247, 241, 231, .5); }
.on-night .fine { color: rgba(247, 241, 231, .62); }
.on-night .status { color: var(--gold); }
.on-night .status.error { color: var(--pink); }
.on-night .done-card { background: rgba(247, 241, 231, .08); }
.on-night .done-card b { color: var(--cream); }
.on-night .done-card span { color: var(--night-body); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .waitlist .status { color: var(--sage); } :root:not([data-theme="light"]) .waitlist .status.error { color: var(--pink); } }
:root[data-theme="dark"] .waitlist .status { color: var(--sage); }
:root[data-theme="dark"] .waitlist .status.error { color: var(--pink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 860px) {
  .chapter { padding-top: 120px; }
  .ch-explore, .ch-bored { padding-bottom: 110px; }
  .ch-explore { padding-top: 170px; }
  .ch-venues { padding-top: 150px; }
  .ch-outside { padding-top: 30px; }
  .ch-sky { padding-top: 0; }
  .ch-bored .wrap, .ch-meet .wrap, .ch-venues .wrap { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .ch-bored .copy, .ch-meet .copy, .ch-venues .copy { display: grid; justify-items: center; }
  .ch-bored .copy, .ch-meet .copy, .ch-venues .copy { order: -1; }
  .stripes { margin-inline: auto; }
  .points { margin-inline: auto; }
  .couch-scene { width: min(480px, 100%); margin-inline: auto; padding-bottom: 170px; }
  .tv { margin-inline: auto; }
  .waitlist { margin-inline: auto; }
  .waitlist .button { flex: 1 1 100%; }
  .city { height: 170px; }
  .planet { top: auto; bottom: 140px; left: -14%; width: 50vw; }
  .moon { top: 84px; right: 6%; }
  .ch-sky .copy { padding-bottom: 300px; }
  .ch-sky .next { bottom: 24px; }
  .rays { width: 760px; height: 760px; }
  .town { height: 220px; }
  .town { margin-top: 20px; }
  .deck-line { margin-top: 56px; }
}

/* ---------- Text pages (Privacy, Terms, Support) ---------- */

.page { padding: 48px 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(40px, 7vw, 60px); }
.page .intro { font-size: 19px; color: var(--ink-2); margin-top: 14px; }
.cards { display: grid; gap: 14px; margin-top: 32px; }
.text-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px 22px; }
.text-card h2 { font: 700 18px/1.3 var(--body); letter-spacing: 0; margin-bottom: 6px; }
.text-card p { color: var(--ink-2); font-size: 16px; }
.text-card a { color: var(--accent); font-weight: 600; }
.updated { text-align: center; color: var(--ink-2); font-size: 14px; margin-top: 28px; }
.mail-card {
  margin-top: 32px; border-radius: 26px; padding: 32px 28px 84px; color: var(--cream);
  background:
    linear-gradient(var(--sky-mid) 0 45%, transparent 100%),
    repeating-radial-gradient(circle at 85% 190%, #EDB8B4 0 16px, var(--sky-mid) 16px 26px, #E6D5BC 26px 40px, var(--sky-mid) 40px 50px, #9DB59A 50px 64px, var(--sky-mid) 64px 74px);
}
.mail-card h2 { font-size: 30px; color: #fff; }
.mail-card p { margin: 8px 0 22px; color: rgba(247, 241, 231, .82); max-width: 40ch; }
.mail-card .button { white-space: normal; }

/* ---------- Contact form (Support page) ---------- */

.contact { margin-top: 32px; display: grid; gap: 20px; }
.contact fieldset { border: 0; margin: 0; padding: 0; }
.contact legend, .field > span { font: 700 15px/1.3 var(--body); color: var(--ink); margin-bottom: 10px; padding: 0; }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic-card {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; border-radius: 18px; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--border); font: 600 15px/1.25 var(--body); color: var(--ink);
  transition: box-shadow .2s ease, transform .15s ease;
}
.topic-card .badge { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--navy); }
.topic-card .badge .icon { width: 20px; height: 20px; }
.topic:hover .topic-card { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--coral) 50%, var(--border)); }
.topic input:checked + .topic-card { box-shadow: inset 0 0 0 2.5px var(--coral), 0 10px 22px -14px rgba(226, 125, 138, .8); }
.topic input:focus-visible + .topic-card { outline: 3px solid color-mix(in srgb, var(--coral) 45%, transparent); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 0; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--border); font: 500 16px/1.4 var(--body); outline: none; transition: box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--coral); }
.field textarea::placeholder { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.send-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.captcha { min-height: 65px; }
.send-row .button { min-height: 54px; }
.send-row .button .icon { width: 18px; height: 18px; }
.contact .status { min-height: 1.4em; font-weight: 600; color: var(--sage-deep); }
.contact .status.error { color: var(--rose); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact .status { color: var(--sage); } :root:not([data-theme="light"]) .contact .status.error { color: var(--pink); } }
:root[data-theme="dark"] .contact .status { color: var(--sage); }
:root[data-theme="dark"] .contact .status.error { color: var(--pink); }
.sent-card { margin-top: 32px; padding: 28px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--gold); }
.sent-card h2 { font-size: 30px; }
.sent-card p { margin: 8px 0 20px; color: var(--ink-2); }
@media (max-width: 640px) {
  .topics { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .send-row .button { flex: 1 1 100%; }
}

/* ---------- A Note from Flipnik Labs (70s Chicago postcard) ---------- */

.labs-note { padding: 0; border: 0; background: transparent; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: visible; color: #1E2A4A; }
.labs-note::backdrop { background: rgba(14, 18, 30, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.labs-note[open] { animation: labs-in .38s cubic-bezier(.2, 1.3, .4, 1); }
.labs-note[open]::backdrop { animation: labs-fade .3s ease; }
.labs-note.closing { animation: labs-out .18s ease forwards; }
@keyframes labs-in { from { opacity: 0; translate: 0 26px; scale: .94; rotate: -2deg; } }
@keyframes labs-out { to { opacity: 0; translate: 0 14px; scale: .97; } }
@keyframes labs-fade { from { opacity: 0; } }
.labs-card {
  position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 28px; background: #FBF5EA;
  box-shadow: 0 0 0 6px #F7F1E7, 0 0 0 9px #B0426F, 0 40px 80px -20px rgba(0, 0, 0, .6); rotate: -.6deg;
}
.labs-hero { position: relative; aspect-ratio: 320 / 150; overflow: hidden; background: #2A1140; }
.labs-hero-stripes { position: absolute; left: 0; right: 0; bottom: 0; display: grid; }
.labs-hero-stripes i { display: block; height: 5px; }
.labs-hero-stripes i:nth-child(1) { background: #E27D8A; }
.labs-hero-stripes i:nth-child(2) { background: #E3C17E; }
.labs-hero-stripes i:nth-child(3) { background: #9DB59A; }
.labs-hero svg { width: 100%; height: 100%; }
.labs-stamp { position: absolute; right: 16px; top: -48px; z-index: 1; width: 96px; height: 96px; rotate: 12deg; filter: drop-shadow(0 6px 10px rgba(42, 17, 64, .25)); }
.labs-body { position: relative; padding: 26px 30px 22px; }
.labs-body h2 { font-size: clamp(28px, 6vw, 36px); color: #1E2A4A; padding-right: 70px; }
.labs-body p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #3E4559; }
.labs-body .labs-hi { margin-top: 14px; font: 400 21px/1.2 var(--heading); color: #8E3566; }
.labs-body .labs-kicker { font-weight: 700; color: #1E2A4A; }
.labs-sign { display: grid; margin-top: 18px !important; }
.labs-sign b { font: 400 40px/1 var(--heading); font-weight: 400; color: #E27D8A; transform: skewX(-12deg); transform-origin: left; }
.labs-sign span { margin-top: 4px; font: 700 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #6B6F7E; }
.labs-stripes { display: grid; }
.labs-stripes i { display: block; height: 9px; }
.labs-stripes i:nth-child(1) { background: #E27D8A; }
.labs-stripes i:nth-child(2) { background: #E3C17E; }
.labs-stripes i:nth-child(3) { background: #9DB59A; }
.labs-close {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(42, 17, 64, .7); color: #F7F1E7; box-shadow: inset 0 0 0 1.5px rgba(247, 213, 127, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.labs-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.labs-close:hover { background: #5E2463; }
/* The Flipnik Labs logo: the Flipnik mark and wordmark, plus a "labs" tag */
.labs-logo { display: inline-flex; align-items: center; gap: .3em; font-size: 15px; color: var(--ink); text-decoration: none; }
.labs-logo img { width: 1.75em; height: 1.75em; margin-right: .05em; }
.labs-logo .wordmark { font-size: 1.55em; color: inherit; padding-right: 0; letter-spacing: -.03em; }
.labs-logo .wordmark span { color: var(--accent); }
.labs-tag {
  display: inline-block; transform: skewX(-12deg) rotate(-3deg); margin-left: -.05em; padding: .14em .5em .26em; border-radius: .55em;
  font: 400 1.15em/1 var(--heading); letter-spacing: .01em; background: #9DB59A; color: #22361F;
  box-shadow: inset 0 0 0 2px #3F5E3C, 0 3px 0 #3F5E3C;
}
a.labs-logo:hover .labs-tag { transform: skewX(-12deg) rotate(2deg); }
.labs-tag { transition: transform .2s ease; }
.home .site-footer .labs-logo { color: var(--cream); }
.home .site-footer .labs-logo .wordmark span { color: var(--pink); }
.made-in { gap: 8px; }
.labs-body .labs-logo { font-size: 17px; color: #1E2A4A; margin-bottom: 12px; }
.labs-body .labs-logo .wordmark span { color: #A8545F; }
.labs-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.labs-link:hover { text-decoration-color: var(--coral); }
@media (max-width: 520px) {
  .labs-body { padding: 22px 22px 18px; }
  .labs-stamp { width: 76px; height: 76px; top: -38px; right: 10px; }
  .labs-body h2 { padding-right: 50px; }
}

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

.site-footer { padding: 32px 0 44px; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--border); }
.home .site-footer { background: var(--navy); color: rgba(247, 241, 231, .7); border-top: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home .site-footer { background: var(--sky-top); } }
:root[data-theme="dark"] .home .site-footer { background: var(--sky-top); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: .75; transition: opacity .2s ease, transform .2s ease;
}
.theme-toggle:hover { opacity: 1; transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
.is-dark .theme-toggle .icon-sun { display: block; }
.is-dark .theme-toggle .icon-moon { display: none; }
.site-footer nav { align-items: center; }
.made-in { display: grid; justify-items: start; gap: 6px; }
.made-in > span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.made-in .heart { width: 11px; height: 11px; fill: var(--pink); }
.made-in small { font-size: 13px; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: 0 0; }
  .city .win { opacity: .92; }
  .city .person { scale: 1; }
  .town .walker, .town .confetti { display: none; }
  .strip { flex-wrap: wrap; width: auto; justify-content: center; }
  .strip > :nth-child(n+7) { display: none; }
}
