/* offsoon.app: one stylesheet for every page. Brand tokens from HANDOFF.md §8. */
:root {
  --accent: #FF6B2C;
  --accent-ink: #FFFFFF;
  --ink: #1B1F3B;
  --muted: #4B5068;
  --paper: #FFFFFF;
  --surface: #F3F4F6;
  --line: #E3E5EA;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3F4F6;
    --muted: #B4B8C8;
    --paper: #1B1F3B;
    --surface: #12152B;
    --line: #2C3154;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 500 17px/1.55 Manrope, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img, svg { max-width: 100%; }

.wrap {
  max-width: 960px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 680px; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* Vertical only: the side gutter comes from .wrap (a "padding: 20px 0" here used to wipe it out). */
  padding-block: 20px;
}
header.site .logo img { height: 30px; width: auto; display: block; }
header.site nav a { color: var(--muted); text-decoration: none; font-weight: 600; margin-left: 18px; font-size: 15px; }
header.site nav a:hover { color: var(--ink); }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none !important; }
  .logo-dark { display: block !important; }
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 7vw, 56px); }
h2 { font-size: clamp(24px, 4vw, 32px); margin-top: 40px; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 34em; }

.hero { padding: 40px 0 56px; display: grid; gap: 40px; align-items: center; grid-template-columns: 1.2fr 1fr; }
.hero .mark { width: 100%; max-width: 300px; justify-self: center; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  /* The logo already shows the mark; on a phone the headline comes first. */
  .hero .mark { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.small { font-size: 14px; color: var(--muted); }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 8px 0 56px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.card p { color: var(--muted); margin: 0; }
.card .num { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }

.panel { background: var(--paper); border-radius: 24px; padding: 32px 24px; border: 1px solid var(--line); margin: 24px 0 56px; }
.center { text-align: center; }
.panel .mark-sm { width: 72px; height: 72px; margin: 0 auto 16px; display: block; }

.prose h2 { font-size: 22px; margin-top: 32px; }
.prose li { margin-bottom: 6px; }
.prose { padding-bottom: 56px; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); margin-right: 16px; }

/* ── Generated pages (site/build.py): guides, FAQ, language switch ───────────────────────────── */
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
article h2 { margin-top: 32px; }
.faqs { margin: 40px 0 16px; }
.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 22px; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq summary h3 { margin: 0; font-size: 18px; }
.faq p { color: var(--muted); padding-bottom: 12px; }
.table-wrap { overflow-x: auto; margin: 24px 0 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; }
td { white-space: nowrap; }
.guides { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.guides li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.guides a { font-weight: 800; text-decoration: none; display: block; margin-bottom: 4px; }
.guides span { color: var(--muted); font-size: 15px; }

/* One page per opened food: the answer up top, then the other foods as a grid of links. */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: inherit; }
.answer { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 8px 0 32px; }
.answer .lede { margin: 0; color: inherit; font-size: 18px; }
.keeps { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; }
.keeps span { color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.keeps strong { color: var(--accent); font-size: 28px; font-weight: 800; }
.foods { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.foods li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.foods a { font-weight: 700; text-decoration: none; min-width: 0; }
.foods span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.food-hub { margin: 40px 0 16px; }
.cta { margin: 48px 0 24px; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 2px solid var(--accent); }
.cta h2 { margin-top: 0; }
.lang-hint { background: var(--ink); color: var(--paper); display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 16px; font-weight: 700; font-size: 15px; }
.lang-hint[hidden] { display: none; }
.lang-hint a { color: var(--paper); }
.lang-hint button { background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; padding: 0 4px; }
footer.site .langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0; }
footer.site .langs a[aria-current="page"] { color: var(--ink); font-weight: 800; text-decoration: none; }
footer.site .tagline { color: var(--muted); max-width: 40em; }
.panel h2 { margin-top: 0; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(255, 107, 44, .45); }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
  display: grid; place-items: center;
  color: #FFFFFF;
  background: linear-gradient(140deg, #FF9A62 0%, #FF6B2C 55%, #F0501A 100%);
  box-shadow: 0 12px 24px -12px rgba(255, 107, 44, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.card .icon svg { width: 28px; height: 28px; }
.card .icon .duo { fill: currentColor; fill-opacity: .28; stroke: none; }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

/* Store buttons: badge style, with a "Coming soon" tag until the listing is live (web/assets/stores.js). */
.stores {
  /* One column, as wide as the widest button: both store buttons end up the same width. */
  display: grid; grid-template-columns: minmax(0, 1fr); width: fit-content; max-width: 100%;
  gap: 14px; margin: 24px 0 8px;
}
.store {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 14px; border-radius: 14px; min-height: 52px;
  background: #0B0C14; color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .18);
  text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.2;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store[href]:hover { background: #1B1F3B; }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"] span { opacity: .78; }
.store .soon {
  position: absolute; top: -9px; right: -6px;
  font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .02em;
  background: var(--accent); color: #FFFFFF; padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 4px 10px -4px rgba(255, 107, 44, .8);
}
.store .soon[hidden] { display: none; }
