/* Same tokens as apps/mobile/src/theme/tokens.ts */
:root {
  --forest: #244b3c;
  --cream: #f4eedf;
  --coral: #e77b55;
  --yellow: #e9bb55;
  --blue: #789b9a;
  --paper-deep: #e9e1cd;
  --card: #fbf8f0;
  --ink: #244b3c;
  --ink-soft: #5e7068;
  --line: #dad3bf;
  --sticker: #f5e3b5;
  --shadow: 26 46 37;

  --display: 'Nunito Sans', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; }
.brand .word { height: 20px; width: auto; }

.langs {
  display: flex;
  background: var(--paper-deep);
  border-radius: 999px;
  padding: 3px;
}
.langs button {
  border: 0;
  background: none;
  padding: 6px 11px;
  border-radius: 999px;
  font: 600 13px var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
}
.langs button[aria-pressed='true'] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(var(--shadow) / 0.12); }

/* Hero: copy on the left, the live Today screen on the right */
.hero {
  display: grid;
  gap: 28px;
  padding: 20px 0 8px;
}
.hero h1 {
  font: 700 clamp(38px, 10vw, 64px)/1.02 var(--display);
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero .lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 24px; max-width: 30em; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 2px dashed var(--line);
  color: var(--ink-soft);
  font: 600 15px var(--sans);
}
.store svg { width: 18px; height: 18px; fill: currentColor; }


/* The Today screen */
.today {
  --bg: #dae3e1;
  --today-ink: #1d3a38;
  --today-soft: #53686a;
  position: relative;
  background: var(--bg);
  border-radius: 30px;
  padding: 20px 16px 22px;
  overflow: hidden;
  transition: background-color 0.6s ease;
  isolation: isolate;
}
.today canvas {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 260px;
  z-index: -1;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
  pointer-events: none;
}
.today-head { color: var(--today-ink); transition: color 0.6s; max-width: 340px; margin: 0 auto; }
.today-meta { display: flex; justify-content: space-between; align-items: center; font: 500 14px var(--sans); color: var(--today-soft); }
.pill {
  background: rgb(255 255 255 / 0.55);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--today-ink);
  font-weight: 600;
  white-space: nowrap;
}
.today-title { font: 700 26px/1.15 var(--display); letter-spacing: -0.015em; margin: 12px 0 14px; min-height: 2.3em; }

/* Handwritten hint pointing down at the weather chips */
.try {
  font: 700 22px/1 var(--hand);
  color: var(--coral);
  margin: 0 0 4px 6px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.try svg { width: 30px; height: 24px; flex: none; transform: scaleX(-1) rotate(10deg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgb(255 255 255 / 0.5);
  color: var(--today-ink);
  font: 600 14px var(--sans);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  transition: transform 0.12s, background-color 0.2s;
}
.chip:active { transform: scale(0.95); }
.chip[aria-pressed='true'] { background: var(--today-ink); color: var(--card); }

.hand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: calc(212px * 3 + 16px);
}

.deal {
  display: block;
  margin: 18px auto 0;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  background: var(--forest);
  color: var(--cream);
  font: 700 16px var(--display);
  cursor: pointer;
  transition: transform 0.12s;
}
.deal:active { transform: scale(0.95); }

/* Cards: the app's three shapes, 212px tall so the hand overlaps evenly */
.c {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 212px;
  filter: drop-shadow(0 4px 10px rgb(var(--shadow) / 0.16));
}
.c h3 { font: 700 19px/24px var(--display); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.c p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.c .img { display: block; width: 100%; }
.why {
  position: absolute;
  background: var(--sticker);
  padding: 1px 8px 2px;
  border-radius: 2px;
  font: 700 17px/24px var(--hand);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
  white-space: nowrap;
}

.postcard { background: var(--card); border-radius: 4px; padding: 10px; }
.postcard .img { height: 130px; border-radius: 2px; }
.postcard h3 { margin-top: 10px; }
.postcard .stamp { position: absolute; right: 16px; top: 6px; transform: rotate(5deg); }
.postcard .why { left: 16px; top: 122px; transform: rotate(-4deg); }

.trail { background: #eef2e4; border-radius: 16px; overflow: hidden; }
.trail .img { height: 128px; }
.trail .txt { padding: 6px 14px 0; }
.trail .txt p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trail .why { right: 14px; top: 12px; transform: rotate(3deg); }

.ticket { display: flex; }
.ticket > svg.outline { position: absolute; inset: 0; width: 100%; height: 100%; }
.ticket .main { position: relative; flex: 1; min-width: 0; padding: 12px; }
.ticket .main .img { height: 104px; border-radius: 6px; }
.ticket .main h3 { margin-top: 8px; font-size: 18px; line-height: 22px; }
.ticket .main p { font-weight: 500; margin-top: 2px; }
.ticket .stub {
  position: relative;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.ticket .stub b { font: 700 12px var(--sans); letter-spacing: 1.5px; }
.ticket .stub strong { font: 700 24px var(--display); margin-top: 4px; }
.ticket .stub span { font: 500 12px var(--sans); color: var(--ink-soft); margin-top: 2px; }
.ticket .why { right: 98px; top: 98px; transform: rotate(2deg); }
.ticket .special {
  position: absolute;
  left: 20px;
  top: 20px;
  transform: rotate(-8deg);
  border: 2px solid var(--coral);
  background: var(--card);
  color: var(--coral);
  border-radius: 4px;
  padding: 0 6px;
  font: 700 11px/18px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Sections below the fold stay quiet */
section { padding: 72px 0 0; }
section h2 { font: 700 clamp(28px, 6vw, 38px)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 14px; max-width: 18em; text-wrap: balance; }
.how { padding-top: 48px; }
section > p, .how > div p { color: var(--ink-soft); max-width: 34em; margin: 0; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; }
.steps li::before {
  content: counter(s);
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--forest);
  display: grid;
  place-items: center;
  font: 700 18px var(--display);
}
.steps b { font: 700 19px/1.3 var(--display); padding-top: 7px; }
.steps span { color: var(--ink-soft); font-size: 16px; }

.layers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.layer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--card);
  font: 500 15px var(--sans);
}
.layer i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.layer svg { width: 16px; height: 16px; }

.promise {
  margin-top: 72px;
  background: var(--paper-deep);
  border-radius: 24px;
  padding: 26px 22px;
}
.promise h2 { font: 700 clamp(24px, 5vw, 30px)/1.15 var(--display); letter-spacing: -0.015em; margin: 0 0 8px; }
.promise p { color: var(--ink-soft); margin: 0; max-width: 36em; }

/* Footer */
.foot { background: var(--forest); color: var(--cream); margin-top: 80px; padding: 48px 0 40px; }
.foot .big { width: min(100%, 560px); height: auto; display: block; margin-bottom: 18px; }
.foot .made { margin: 0 0 22px; font-size: 16px; }
.foot .made a { color: var(--yellow); font-weight: 600; text-decoration: none; }
.foot .made a:hover { text-decoration: underline; }
.foot .say { font: 700 28px/1.1 var(--hand); color: var(--yellow); margin: 0 0 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 14px; }
.foot nav a { text-decoration: none; font-weight: 500; }
.foot small { display: block; color: rgb(244 238 223 / 0.65); font-size: 13px; max-width: 46em; }

@media (min-width: 900px) {
  /* Copy and the steps stack on the left, the Today screen spans both rows on the right */
  .hero {
    grid-template-columns: 1fr 420px;
    grid-template-areas: 'copy today' 'how today';
    grid-template-rows: auto 1fr;
    gap: 0 72px;
    padding-top: 48px;
  }
  .hero .copy { grid-area: copy; padding-top: 30px; }
  .hero .today { grid-area: today; }
  .hero .how { grid-area: how; padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Prose pages (privacy, 404) */
.prose { max-width: 640px; }
.prose h1 { font: 700 36px/1.1 var(--display); letter-spacing: -0.02em; margin: 24px 0 12px; }
.prose h2 { font: 700 20px var(--display); margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose footer { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--line); }
.prose footer a { text-decoration: none; font-weight: 500; }
