/* Festie AI landing: the ad lands here. Light, mobile first (390px), desktop from 900px. */

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

:root {
  --cream: #FBF6EE;
  --ink: #1C1B22;
  --mute: rgba(28, 27, 34, .72);
  --line: rgba(28, 27, 34, .1);
  --mint: #6FD3B0;
  --mint-deep: #3FB58F;
  --clay: #D23A45;
  --clay-deep: #B92F3A;
  --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);
  --shadow: 0 1px 2px rgba(28, 27, 34, .05), 0 8px 24px -12px rgba(28, 27, 34, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 16px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.top, main, .foot { width: min(100% - 32px, 1200px); margin-inline: auto; }

/* Wordmark row */
.top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo {
  font-family: var(--f-clay); font-size: 26px; line-height: 1; text-decoration: none;
  display: inline-flex; align-items: center; gap: .22em; min-height: 44px;
}
.logo span { color: var(--mint-deep); }
.signin {
  font-weight: 700; font-size: 15px; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px;
}

/* First screen */
.hero { padding-bottom: 8px; }
h1 {
  margin: 6px 0 18px; text-align: center;
  font: 700 clamp(34px, 10vw, 80px)/1 var(--f-head); letter-spacing: -.035em;
}
h1 em {
  display: block; margin-top: .02em;
  font: italic 400 1.14em/.95 var(--f-accent); letter-spacing: -.01em; color: var(--clay);
}

.try { max-width: 560px; margin: 0 auto; }
.field {
  display: flex; align-items: center; gap: 10px;
  height: 60px; padding: 6px 6px 6px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.field:focus-within { border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(63, 181, 143, .25), var(--shadow); }
.globe { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--mute); stroke-width: 1.6; }
.field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: 600 17px var(--f-ui); color: var(--ink);
}
.field input::placeholder { color: rgba(28, 27, 34, .5); }
.go {
  flex: none; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--cream); font: 700 16px var(--f-ui);
}
.go:disabled { opacity: .6; cursor: progress; }
.try-msg { margin: 10px 8px 0; font-size: 14px; color: var(--mute); text-align: center; }
.try-msg:empty { display: none; }

/* The four looks */
.stage { position: relative; margin-top: 16px; }
.mascot {
  position: absolute; z-index: 3; right: -26px; bottom: calc(100% - 62px); width: 92px; height: auto;
  rotate: -8deg; pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(28, 27, 34, .18));
}
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 8px 8px 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  transition: translate .2s ease, box-shadow .2s ease;
}
.tile:hover { translate: 0 -2px; box-shadow: 0 1px 2px rgba(28, 27, 34, .05), 0 14px 30px -14px rgba(28, 27, 34, .28); }
.dots { align-self: flex-start; display: flex; gap: 4px; padding: 0 0 6px 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #E6A397; }
.dots i:nth-child(2) { background: #EBCB8B; }
.dots i:nth-child(3) { background: #A9D7BF; }
.view {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
  border-radius: 12px; background: #F3EEE6;
}
.view iframe {
  position: absolute; left: 0; top: 0; width: 400px; height: 400px; border: 0;
  transform: scale(var(--s, .4)); transform-origin: 0 0; pointer-events: none;
}
.tile.loading .view::after { content: ""; position: absolute; inset: 0; background: rgba(251, 246, 238, .55); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 5px 12px; border-radius: 999px;
  font: 700 14px/1.3 var(--f-ui); white-space: nowrap;
}
.pill svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
[data-h="thanksgiving"] .pill { background: #F6ECDE; color: #8C4A22; }
[data-h="christmas"] .pill { background: #E4F1E9; color: #2F6B4F; }
[data-h="valentines"] .pill { background: #FBEAEC; color: #9E2A48; }
[data-h="halloween"] .pill { background: #EEE8F4; color: #54386F; }
.hit { position: absolute; inset: 0; border-radius: 20px; z-index: 2; }

.autopilot {
  position: sticky; z-index: 4; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  height: 58px; margin-top: 16px; border-radius: 999px; text-decoration: none;
  background: var(--clay); color: #fff; font: 700 20px var(--f-head); letter-spacing: -.01em;
  box-shadow: 0 12px 26px -12px rgba(210, 58, 69, .6);
}
.autopilot:hover { background: var(--clay-deep); }

/* Below the fold */
.plans, .watch { margin-top: 64px; text-align: center; }
h2 { margin: 0 0 14px; font: 700 28px/1.1 var(--f-head); letter-spacing: -.03em; }
h2 em { font: italic 400 1.14em var(--f-accent); color: var(--clay); letter-spacing: 0; }
.plans ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.plans li { padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.plans li strong { font-weight: 700; margin-right: 4px; }
.plans p { margin: 4px 0 0; font-size: 15px; color: var(--mute); }
.watch video {
  width: min(280px, 72vw); height: auto; margin: 0 auto;
  border: 8px solid var(--ink); border-radius: 36px; background: var(--ink);
}

.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 64px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: 14px; color: var(--mute);
}
.foot nav { display: flex; gap: 16px; }
.foot a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; color: var(--ink); }

/* Tablet: same stack, roomier */
@media (min-width: 600px) {
  .grid { gap: 16px; max-width: 640px; margin-inline: auto; }
  .stage { max-width: 640px; margin-inline: auto; }
  .mascot { width: 120px; right: -60px; bottom: calc(100% - 60px); }
  .autopilot { max-width: 420px; margin-inline: auto; }
}

/* Desktop: four across, mascot sits on the grid edge beside the field */
@media (min-width: 900px) {
  .top { height: 76px; }
  .logo { font-size: 30px; }
  h1 { margin: 18px 0 26px; }
  .stage { max-width: none; margin-top: 40px; }
  .grid { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .mascot { width: clamp(120px, 11vw, 150px); right: 0; bottom: calc(100% - 20px); rotate: -4deg; }
  .autopilot { position: static; width: 420px; margin: 32px auto 0; height: 62px; font-size: 21px; }
  .plans, .watch { margin-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:hover { translate: none; }
}
