/* Festie AI landing page. Port of ad/src/ui/FestieSite.tsx: a 1000 px design page,
   scaled to the viewport with container units (1 design px = var(--u)). */

@font-face {
  font-family: "Festie Clay";
  src: url("/fonts/FestieClay.woff2") format("woff2");
  font-display: swap;
}

:root {
  --u: 0.1cqw;
  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-accent: "Instrument Serif", Georgia, serif;
  --f-ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-clay: "Festie Clay", var(--f-head);
  --mint: #6FD3B0;
  --mint-deep: #3FB58F;
  --clay: #D23A45;
  --ink0: #1C1B22;
  --cream: #FBF6EE;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Look tokens, one block per holiday (festieLooks.ts). */
[data-look="base"] {
  --bg: #FBF6EE; --ink: #1C1B22; --mute: rgba(28,27,34,.74); --accent: #2C8C6D;
  --line: rgba(28,27,34,.1); --pill: rgba(28,27,34,.06); --card: #FFFFFF; --cardLine: rgba(28,27,34,.1);
  --chrome: #F4EFE7; --button: #1C1B22; --buttonInk: #FBF6EE; --navButton: #1C1B22; --navButtonInk: #FBF6EE;
  --shop: #FFFFFF; --shopInk: #1C1B22; --banner: #DDF3EA; --bannerInk: #1F5E4A; --tile: #F3EEE6;
  --glyph: #3FB58F; --glyph2: #2C8C6D; --heroA: #2C8C6D; --heroB: #F2B544; --dotc: #3FB58F;
  --logoAI: var(--mint-deep); --motif: #3FB58F; --theme: #FBF6EE;
}
[data-look="thanksgiving"] {
  --bg: #F6ECDE; --ink: #2B1D14; --mute: rgba(43,29,20,.74); --accent: #B5602D;
  --line: rgba(43,29,20,.1); --pill: rgba(43,29,20,.07); --card: #FFFCF7; --cardLine: rgba(43,29,20,.12);
  --chrome: #F1E5D3; --button: #B5602D; --buttonInk: #FFF8EE; --navButton: #2B1D14; --navButtonInk: #F6ECDE;
  --shop: #FFFCF7; --shopInk: #2B1D14; --banner: #E7C49A; --bannerInk: #5A2E14; --tile: #F4E7D5;
  --glyph: #C06A32; --glyph2: #8C4A22; --heroA: #A8532A; --heroB: #FFF3DF; --dotc: #B5602D;
  --logoAI: var(--mint-deep); --motif: #B5602D; --theme: #F6ECDE;
}
[data-look="valentines"] {
  --bg: #FBEEEF; --ink: #3A1622; --mute: rgba(58,22,34,.74); --accent: #C4456A;
  --line: rgba(58,22,34,.1); --pill: rgba(58,22,34,.06); --card: #FFFFFF; --cardLine: rgba(58,22,34,.1);
  --chrome: #F8E6E8; --button: #C4456A; --buttonInk: #FFF6F7; --navButton: #3A1622; --navButtonInk: #FBEEEF;
  --shop: #FFFFFF; --shopInk: #3A1622; --banner: #F6D0D8; --bannerInk: #8E2240; --tile: #FBEAEC;
  --glyph: #D2557A; --glyph2: #9E2A48; --heroA: #C4456A; --heroB: #FFF6F7; --dotc: #C4456A;
  --logoAI: var(--mint-deep); --motif: #C4456A; --theme: #FBEEEF;
}
[data-look="halloween"] {
  --bg: #1E1628; --ink: #F5ECDF; --mute: rgba(245,236,223,.76); --accent: #F08A3C;
  --line: rgba(245,236,223,.12); --pill: rgba(245,236,223,.09); --card: #2A2036; --cardLine: rgba(245,236,223,.12);
  --chrome: #241B2F; --button: #F08A3C; --buttonInk: #1E1628; --navButton: #F5ECDF; --navButtonInk: #1E1628;
  --shop: #2A2036; --shopInk: #F5ECDF; --banner: #3E2B57; --bannerInk: #F6A35E; --tile: #33283F;
  --glyph: #F08A3C; --glyph2: #B9A4D6; --heroA: #F08A3C; --heroB: #5A3D7A; --dotc: #F08A3C;
  --logoAI: var(--mint); --motif: #6A5288; --theme: #1E1628;
}
[data-look="christmas"] {
  --bg: #173D30; --ink: #F8F1E4; --mute: rgba(248,241,228,.78); --accent: #F07B6E;
  --line: rgba(248,241,228,.12); --pill: rgba(248,241,228,.1); --card: #FFFDF8; --cardLine: rgba(0,0,0,.08);
  --chrome: #F3EDE2; --button: #D23A45; --buttonInk: #FFF7EE; --navButton: #F8F1E4; --navButtonInk: #173D30;
  --shop: #FFFDF8; --shopInk: #1C1B22; --banner: #D23A45; --bannerInk: #FFF7EE; --tile: #F4EEE4;
  --glyph: #D23A45; --glyph2: #2F6B4F; --heroA: #2F6B4F; --heroB: #FBF6EE; --dotc: #F07B6E;
  --logoAI: var(--mint); --motif: #F07B6E; --theme: #173D30;
}

*, *::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-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
body, .hero, .plan, .card, .nav-btn, .cta, .chips button, .pill, input {
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg); overflow: clip; }
.page { position: relative; max-width: 1000px; margin: 0 auto; container-type: inline-size; }

.motifs { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1000 / 900; pointer-events: none; }
.motif { color: var(--motif); fill: currentColor; }
.motif-banner { color: var(--bannerInk); fill: currentColor; }
#m-christmas { fill: none; stroke: currentColor; }
[data-look="christmas"] .motifs { display: none; }

.bob { animation: bob 5.8s ease-in-out infinite; animation-delay: calc(var(--i) * -1.27s); }
@keyframes bob { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }

.snow { position: absolute; inset: 0; pointer-events: none; display: none; }
[data-look="christmas"] .snow { display: block; }
.flake-col { position: absolute; top: 0; height: 100%; animation: fall var(--d) linear infinite; animation-delay: var(--delay); }
.flake-col::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: var(--r); height: var(--r); border-radius: 50%; background: #fff; opacity: .5;
}
@keyframes fall { from { transform: translateY(-3%); } to { transform: translateY(100%); } }

.nav {
  position: relative; z-index: 2;
  height: max(64px, calc(108 * var(--u)));
  padding: 0 max(16px, calc(52 * var(--u)));
  display: flex; align-items: center; justify-content: space-between;
}
.nav::after {
  content: ""; position: absolute; left: calc(50% - 50vw); width: 100vw; bottom: 0;
  height: max(1px, calc(1.5 * var(--u))); background: var(--line);
}
.logo {
  font-family: var(--f-clay); font-size: max(26px, calc(54 * var(--u))); line-height: 1;
  color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: .22em;
  min-height: 44px; align-items: center;
}
.logo span { color: var(--logoAI); }
.nav-links {
  display: flex; align-items: center; gap: max(14px, calc(34 * var(--u)));
  font-weight: 700; font-size: max(15px, calc(32 * var(--u))); letter-spacing: -.01em;
}
.nav-links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-btn {
  background: var(--navButton); color: var(--navButtonInk);
  padding: 0 max(16px, calc(28 * var(--u))); border-radius: 999px;
  min-height: max(44px, calc(62 * var(--u))) !important;
}

.hero-copy {
  position: relative; z-index: 1;
  padding: max(18px, calc(18 * var(--u))) 16px 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.pill {
  margin: 0; display: inline-flex; align-items: center; gap: max(9px, calc(14 * var(--u)));
  padding: max(7px, calc(12 * var(--u))) max(16px, calc(28 * var(--u)));
  border-radius: 999px; background: var(--pill);
  font-weight: 700; font-size: max(14px, calc(34 * var(--u))); letter-spacing: -.015em; line-height: 1.2;
}
.dot {
  flex: none; width: max(9px, calc(14 * var(--u))); height: max(9px, calc(14 * var(--u)));
  border-radius: 50%; background: var(--dotc);
  box-shadow: 0 0 0 max(4px, calc(6 * var(--u))) var(--pill);
}
h1 { margin: max(14px, calc(26 * var(--u))) 0 0; font-weight: 400; }
.h-a {
  display: block; font-family: var(--f-head); font-weight: 700;
  font-size: max(38px, calc(94 * var(--u))); letter-spacing: -.045em; line-height: 1;
}
.h-b {
  display: block; font-family: var(--f-accent); font-style: italic; font-weight: 400;
  font-size: max(48px, calc(116 * var(--u))); letter-spacing: -.015em; line-height: .96; color: var(--accent);
}
.sub {
  margin: max(10px, calc(18 * var(--u))) 0 0; color: var(--mute);
  font-weight: 600; font-size: max(18px, calc(48 * var(--u))); letter-spacing: -.025em; line-height: 1.15;
}
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: max(10px, calc(14 * var(--u)));
  margin-top: max(18px, calc(26 * var(--u)));
  min-height: 52px; padding: calc(24 * var(--u)) max(26px, calc(46 * var(--u)));
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--button); color: var(--buttonInk); text-decoration: none;
  font: 700 max(19px, calc(34 * var(--u)))/1.2 var(--f-ui); letter-spacing: -.015em;
  box-shadow: 0 12px 26px rgba(20,14,10,.16);
}
.cta svg { width: max(20px, calc(30 * var(--u))); height: auto; }
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: translateY(1px); }

.chips {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: max(8px, calc(10 * var(--u)));
  margin: max(20px, calc(34 * var(--u))) auto 0; padding: 0 12px; max-width: 980px;
}
.chips button {
  min-height: max(44px, calc(58 * var(--u))); padding: 0 max(16px, calc(26 * var(--u))); border-radius: 999px; cursor: pointer;
  font: 700 max(15px, calc(22 * var(--u)))/1 var(--f-ui); letter-spacing: -.01em;
  color: var(--ink); background: transparent; border: 1.5px solid var(--line);
}
.chips button:hover { background: var(--pill); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Stage: mascot, bubble and shop card, all in design px. Card top sits 302 below the CTA in the design. */
.stage { position: relative; height: calc((300 + 480 + 56) * var(--u)); margin-top: calc(6 * var(--u)); }
.card {
  position: absolute; left: calc(70 * var(--u)); top: calc(300 * var(--u)); width: calc(860 * var(--u));
  border-radius: calc(26 * var(--u)); overflow: hidden;
  background: var(--shop); border: max(1px, calc(1.5 * var(--u))) solid var(--cardLine);
  box-shadow: 0 calc(40 * var(--u)) calc(80 * var(--u)) rgba(20,14,10,.18), 0 calc(8 * var(--u)) calc(20 * var(--u)) rgba(20,14,10,.08);
}
.card svg { width: 100%; height: auto; }
.mascot {
  position: absolute; z-index: 2; left: calc(548 * var(--u)); top: calc((300 - 297) * var(--u));
  width: calc(380 * var(--u)); height: calc(330 * var(--u));
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 calc(16 * var(--u)) calc(18 * var(--u)) rgba(20,14,10,.24));
}
.mascot.pop { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: translateY(10%) scale(.92); } 100% { transform: none; } }
.bubble {
  position: absolute; z-index: 3; right: calc(456 * var(--u)); top: calc(130 * var(--u));
  display: flex; align-items: center; gap: max(8px, calc(14 * var(--u)));
  padding: max(10px, calc(20 * var(--u))) max(14px, calc(28 * var(--u)));
  border-radius: max(14px, calc(26 * var(--u))); background: #fff; color: var(--ink0);
  box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(20,14,10,.18);
  font-weight: 700; font-size: max(13px, calc(30 * var(--u))); letter-spacing: -.015em; white-space: nowrap; line-height: 1.2;
}
.bubble .dot { background: var(--mint-deep); box-shadow: 0 0 0 max(4px, calc(6 * var(--u))) rgba(63,181,143,.2); }
.bubble::after {
  content: ""; position: absolute; right: calc(-18 * var(--u)); top: 50%;
  width: calc(22 * var(--u)); height: calc(26 * var(--u)); background: #fff;
  clip-path: polygon(0 0, 100% 77%, 0 100%); transform: translateY(-50%);
}

/* SVG paints that follow the look */
.f-chrome { fill: var(--chrome); } .f-cardline { fill: var(--cardLine); } .f-card { fill: var(--shop); }
.s-cardline { stroke: var(--cardLine); } .s-shopink { stroke: var(--shopInk); }
.f-banner { fill: var(--banner); } .f-bannerink { fill: var(--bannerInk); }
.f-tile { fill: var(--tile); } .f-shop { fill: var(--shop); }
.pa { fill: var(--a); } .pb { fill: var(--b); } .pc { fill: var(--c); }
.psa { stroke: var(--a); } .psc { stroke: var(--c); }
.t-url { font: 600 24px var(--f-ui); fill: var(--shopInk); }
.t-banner { font: 700 56px var(--f-head); letter-spacing: -.04em; fill: var(--bannerInk); }
.t-shopnow { font: 700 22px var(--f-ui); fill: var(--banner); }
.t-price { font: 700 20px var(--f-ui); fill: var(--shopInk); }
.t-name { font: 600 22px var(--f-ui); fill: var(--shopInk); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
h2 {
  margin: 0; font-family: var(--f-head); font-weight: 700;
  font-size: clamp(34px, 6vw, 60px); letter-spacing: -.04em; line-height: 1.02;
}
h2 em { font-family: var(--f-accent); font-weight: 400; font-size: 1.16em; letter-spacing: -.01em; color: var(--accent); }
h3 { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 22px; letter-spacing: -.025em; line-height: 1.15; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { padding: 22px; border-radius: 22px; background: var(--pill); }
.steps p { margin: 6px 0 0; color: var(--mute); }
.num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--button); color: var(--buttonInk);
  font: 700 18px/1 var(--f-ui);
}

.watch-wrap { display: grid; gap: 28px; justify-items: center; text-align: center; }
.watch-copy p { margin: 10px 0 0; color: var(--mute); font-weight: 600; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 16;
  border-radius: 32px; overflow: hidden; background: #0d0d10;
  border: 6px solid var(--ink); box-shadow: 0 30px 60px rgba(20,14,10,.22);
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.vid-btn {
  position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(20,14,10,.55); color: #fff;
}
.vid-btn svg { width: 18px; height: 18px; fill: currentColor; }
.vid-btn .i-play, .vid-btn[data-state="paused"] .i-pause { display: none; }
.vid-btn[data-state="paused"] .i-play { display: block; }

.offer {
  margin: 28px 0 0; padding: 18px 20px; border-radius: 20px;
  background: var(--ink); color: var(--bg);
}
.offer strong { font-family: var(--f-head); font-size: 20px; letter-spacing: -.02em; }
.offer ul { margin: 8px 0 0; padding-left: 20px; font-weight: 600; }
.plans { display: grid; gap: 14px; margin-top: 18px; }
.plan {
  display: flex; flex-direction: column; padding: 24px; border-radius: 24px;
  background: var(--shop); color: var(--shopInk); border: 1.5px solid var(--cardLine);
}
.plan h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag {
  font: 700 12.5px/1 var(--f-ui); letter-spacing: 0; padding: 6px 10px; border-radius: 999px;
  background: var(--tile); color: var(--shopInk);
}
.price { margin: 10px 0 0; font-weight: 600; }
.price span { font-family: var(--f-head); font-weight: 700; font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.plan ul { margin: 14px 0 20px; padding-left: 18px; font-size: 15.5px; }
.plan li + li { margin-top: 6px; }
.plan-btn {
  margin-top: auto; min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  border: 1.5px solid currentColor;
}
.plan-btn.primary { background: var(--shopInk); color: var(--shop); border-color: var(--shopInk); }

.join-wrap { display: grid; gap: 24px; justify-items: center; }
.badge { width: 150px; height: auto; }
.join-box { width: 100%; max-width: 520px; text-align: center; }
.join-sub { margin: 10px 0 0; color: var(--mute); font-weight: 600; }
form { margin-top: 26px; text-align: left; display: grid; gap: 8px; }
label { font-weight: 700; font-size: 15px; }
input {
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 16px;
  border: 1.5px solid var(--cardLine); background: var(--shop); color: var(--shopInk);
  font: 600 17px var(--f-ui);
}
input::placeholder { color: color-mix(in srgb, var(--shopInk) 45%, transparent); }
input + label { margin-top: 8px; }
input[aria-invalid="true"] { border-color: #E0483F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-btn { width: 100%; margin-top: 14px; padding: 0 28px; font-size: 19px; }
.join-btn[disabled] { opacity: .7; cursor: progress; }
.form-msg { margin: 4px 0 0; min-height: 1.5em; font-weight: 700; }
.fine { margin: 0; font-size: 14px; color: var(--mute); }
.joined { margin-top: 26px; padding: 28px 22px; border-radius: 24px; background: var(--shop); color: var(--shopInk); }
.joined h3 { font-size: 28px; }
.joined p { margin: 8px 0 0; }

.footer { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--mute); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 6px; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .section { padding: 104px 0; }
  .wrap { padding: 0 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .watch-wrap { grid-template-columns: 1fr auto; text-align: left; justify-items: start; align-items: center; gap: 64px; }
  .join-wrap { grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 56px; max-width: 860px; }
  .join-box { text-align: left; }
  .badge { width: 220px; }
}
@media (min-width: 1100px) {
  .plans { grid-template-columns: repeat(4, 1fr); }
}

/* Motion off: everything stays, nothing moves. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .bob, .mascot.pop { animation: none; }
  .flake-col { animation: none; transform: translateY(var(--y0)); }
}

/* ---------- Legal pages ---------- */
.legal-top { border-bottom: 1px solid var(--line); }
.legal-top .wrap { height: 72px; display: flex; align-items: center; }
.legal-top .logo { font-size: 30px; }
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { margin: 0; font-family: var(--f-head); font-size: clamp(38px, 7vw, 56px); letter-spacing: -.04em; line-height: 1; }
.legal h2 { margin-top: 36px; font-size: 26px; }
.legal p, .legal li { color: var(--mute); }
.legal a { color: var(--accent); font-weight: 700; }
.updated { margin-top: 14px; font-size: 15px; }
