@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/fonts/Fredoka_600SemiBold.ttf) format("truetype"); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(/fonts/Fredoka_700Bold.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(/fonts/Outfit_400Regular.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(/fonts/Outfit_500Medium.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(/fonts/Outfit_600SemiBold.ttf) format("truetype"); }

:root {
  --cream: #F6EEDC;
  --paper: #FBF6EC;
  --paper-muted: #F1E1C6;
  --line: #E3CDB1;
  --brown: #462B1F;
  --brown-muted: #735647;
  --mustard: #EEB154;
  --orange: #E07937;
  --rust: #BB4D2A;
  --olive: #677332;
  --midnight: #0D1029;
  --ink: var(--cream);
  --ink-soft: rgba(246, 238, 220, 0.13);
  --ink-muted: rgba(246, 238, 220, 0.8);
  --display: Fredoka, ui-rounded, system-ui, sans-serif;
  --body: Outfit, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #3E2A63; }
body { margin: 0; background: var(--cream); color: var(--brown); font: 400 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg, video { display: block; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mustard);
}

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--mustard); color: var(--midnight);
  font: 600 17px/1.2 var(--display); text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease;
}
.button:hover { background: #F4C276; transform: translateY(-1px); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

/* Night sections: the app's moods, stars and waves */
.night { position: relative; overflow: hidden; color: var(--ink); isolation: isolate; }
.night .stars { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; pointer-events: none; }
.plum { background: #3E2A63; --chip: #4C3676; --tile: #22163A; }
.eve { background: #1D2C5E; --chip: #283B74; --tile: #0F1834; }
.late { background: var(--midnight); --chip: #1A1F45; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }

/* Header */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 0;
  color: var(--ink); max-width: 1200px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); text-decoration: none; }
.coin { width: 34px; height: 34px; border-radius: 50%; background: var(--mustard); display: grid; place-items: center; }
.coin svg { width: 20px; height: 20px; fill: var(--brown); }
.bar-link { font: 600 16px/1 var(--display); text-decoration: none; color: var(--ink-muted); }
.bar-link:hover { color: var(--ink); }

/* Hero */
.hero { padding: 104px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 12vw, 84px); line-height: 0.98; margin: 14px 0 18px; }
.lede { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; color: var(--ink-muted); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.quiet { font: 600 16px/1 var(--body); color: var(--mustard); text-decoration: none; }
.quiet:hover { text-decoration: underline; }

.hero-film { margin: 0; display: grid; gap: 14px; justify-items: center; }
.film {
  width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--chip);
  border-radius: 34px; box-shadow: 0 0 0 1px var(--ink-soft), 0 30px 60px -20px rgba(5, 6, 26, 0.6);
}
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  border-radius: 999px; background: var(--chip); font-size: 15px; color: var(--ink);
}
.chip b { font-weight: 600; }
.chip-icon { width: 18px; height: 18px; fill: var(--ink); }

/* How it works: the trail */
.how { padding: 88px 0 96px; }
.how h2 { font-size: clamp(32px, 6vw, 52px); line-height: 1.05; margin: 12px 0 36px; max-width: 16ch; }
.how-grid { display: grid; gap: 56px; }
.trail { list-style: none; margin: 0; padding: 0; }
.stop { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; }
.time {
  width: 76px; height: 76px; border-radius: 50%; background: var(--mustard); color: var(--tile);
  display: grid; place-items: center; font: 700 22px/1 var(--display);
  box-shadow: 0 0 0 5px var(--tile);
}
.stop h3 { font-size: 24px; line-height: 1.15; margin: 8px 0 6px; }
.stop p { color: var(--ink-muted); }
.squiggle {
  width: 20px; height: 58px; margin: 10px 0 10px 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 54'%3E%3Cpath d='M10 2 C 2 11, 18 20, 10 27 S 2 43, 10 52' fill='none' stroke='%23F6EEDC' stroke-width='3' stroke-dasharray='1 7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.evening { display: grid; gap: 12px; align-content: start; }
.thread { display: grid; gap: 10px; margin-bottom: 10px; }
.bubble { max-width: 86%; padding: 14px 18px; border-radius: 22px; font-size: 16px; line-height: 1.4; }
.bubble.winston { background: var(--chip); box-shadow: inset 0 0 0 1px var(--ink-soft); }
.bubble.you { justify-self: end; background: var(--mustard); color: var(--tile); }

.card { background: var(--chip); border-radius: 30px; overflow: hidden; }
.drawings { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3px; height: 132px; }
.tile { width: 100%; height: 100%; padding: 22px 0; }
.t-orange { background: #E07937; }
.t-blue { background: #3C5BA8; }
.t-deep { background: var(--tile); }
.t-orange g > ellipse:first-child { fill: #BB4D2A; }
.t-blue path:first-child { fill: #E07937; }
.card-body { padding: 16px 18px 18px; }
.card .kicker { font-size: 12px; letter-spacing: 0.13em; }
.headline { font-size: clamp(23px, 3vw, 30px); line-height: 1.1; margin: 6px 0 10px; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ink-soft); font-size: 16px; }
.stops .t { width: 44px; color: var(--mustard); font-weight: 600; font-variant-numeric: tabular-nums; }
.stops .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stops .s { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.stops .booked { color: var(--ink); }
.stops svg { width: 11px; height: 11px; fill: var(--mustard); }
.actions { display: flex; gap: 8px; margin-top: 14px; }
.act {
  flex: 1; min-height: 48px; display: grid; place-items: center; border-radius: 16px;
  background: var(--ink-soft); font-weight: 600; font-size: 16px; text-align: center; padding: 0 8px;
}
.act.filled { background: var(--mustard); color: var(--tile); }
.sitter-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: var(--chip); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font: 700 16px/1 var(--display); flex: none; }

/* Cream paper */
.paper { background: var(--cream); color: var(--brown); }
.paper .kicker { color: var(--rust); }
.plans { padding: 88px 0 96px; }
.plans h2 { font-size: clamp(32px, 6vw, 52px); line-height: 1.05; margin: 12px 0 36px; max-width: 18ch; }
.tickets { display: grid; gap: 16px; }
.ticket {
  position: relative; padding: 24px 26px; border-radius: 24px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  --notch: radial-gradient(circle at 0 50%, transparent 13px, #000 13.5px) left / 51% 100% no-repeat,
           radial-gradient(circle at 100% 50%, transparent 13px, #000 13.5px) right / 51% 100% no-repeat;
  -webkit-mask: var(--notch); mask: var(--notch);
}
.ticket { padding-right: 112px; }
.ticket::after { content: ""; position: absolute; top: 20px; bottom: 20px; right: 88px; border-left: 2px dashed var(--line); }
.ticket.pick { background: var(--brown); color: var(--cream); box-shadow: none; }
.ticket.pick::after { border-color: rgba(246, 238, 220, 0.25); }
.ticket .term { font: 600 14px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); }
.ticket.pick .term { color: var(--mustard); }
.price { font: 700 clamp(44px, 9vw, 56px)/1 var(--display); margin: 10px 0 8px; letter-spacing: -0.02em; }
.price small { font: 500 17px/1 var(--body); letter-spacing: 0; margin-left: 4px; opacity: 0.75; }
.ticket p:last-child { color: var(--brown-muted); max-width: 22ch; }
.ticket.pick p:last-child { color: rgba(246, 238, 220, 0.8); }
.fine { margin-top: 24px; max-width: 60ch; color: var(--brown-muted); }

.sitters { margin-top: 56px; border-radius: 36px; padding: 32px 26px; display: grid; gap: 28px; }
.sitters h2 { font-size: clamp(32px, 6vw, 52px); line-height: 1.05; margin: 10px 0 14px; }
.sitters-copy p:not(.kicker) { color: var(--ink-muted); max-width: 48ch; }
.sitters-copy p + p { margin-top: 10px; }
.sitters-copy b { color: var(--mustard); font-weight: 600; }
.tally { display: grid; gap: 10px; margin: 0; align-content: center; }
.tally div { background: var(--chip); border-radius: 22px; padding: 16px 20px; }
.tally dt { font: 600 12.5px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.tally dd { margin: 8px 0 0; font: 700 30px/1 var(--display); color: var(--ink); }

/* Coming soon: the icon's rainbow, rising */
.soon { position: relative; overflow: hidden; background: #3F2A1F; color: var(--cream); padding: 88px 0 0; text-align: center; }
.soon-copy { position: relative; display: grid; justify-items: center; gap: 14px; }
.soon h2 { font-size: clamp(34px, 7vw, 60px); line-height: 1.04; max-width: 14ch; }
.soon p { color: rgba(246, 238, 220, 0.8); font-size: 18px; }
.soon .button { margin-top: 10px; }
.rainbow { width: 100%; height: clamp(220px, 34vw, 480px); margin-top: 8px; }

.foot { background: #2E1E16; color: rgba(246, 238, 220, 0.75); padding: 28px 0 max(28px, env(safe-area-inset-bottom)); font-size: 15px; }
.foot-row { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; color: var(--cream); }
.foot a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .hero { padding: 140px 0 110px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .how-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .evening { padding-top: 24px; }
  .tickets { grid-template-columns: repeat(3, 1fr); }
  .ticket::after { display: none; }
  .ticket { padding: 30px 30px 28px; }
  .sitters { grid-template-columns: 1.5fr 1fr; padding: 48px; }
  .foot-row { grid-template-columns: 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
