/* Fryse Frost tokens. Light is primary; dark redefines the same names. */
:root {
  --frost: #F1F3F5;
  --surface: #FFFFFF;
  --ink: #111C24;
  --slate: #5B6670;
  --slate-strong: #4A5560;
  --line: #DDE2E7;
  --line-strong: #C9D1D8;
  --divider: #EDF0F2;
  --track: #E3E7EB;
  --anchor: #111C24;
  --anchor-text: #F1F3F5;
  --anchor-sub: #AEB8C2;
  --anchor-row: #1C2A35;
  --nav-idle: #8D99A4;
  --inverse: #111C24;
  --inverse-text: #FFFFFF;
  --ember: #F08A3C;
  --on-ember: #111C24;
  --expiry-urgent: #F7A86B;
  --expiry-soon: #F5D27A;
  --due: #B4470F;
  --fresh: #1D5FD1;
  --hint: #FCE9DA;
  --hint-text: #6E2A06;
  --photo-placeholder: #E7D6C3;
  --phone-bezel: #26363F;
  --shadow: 0 12px 32px rgba(5, 9, 12, 0.35);

  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 9999px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --frost: #0B1218;
    --surface: #151F27;
    --ink: #E8EDF1;
    --slate: #9AA6B1;
    --slate-strong: #AEB8C2;
    --line: #24313B;
    --line-strong: #34434F;
    --divider: #1E2A33;
    --track: #1E2A33;
    --anchor: #1D2B36;
    --anchor-text: #E8EDF1;
    --anchor-sub: #9AA6B1;
    --anchor-row: #26363F;
    --nav-idle: #8A97A2;
    --inverse: #E8EDF1;
    --inverse-text: #0B1218;
    --due: #F7A86B;
    --fresh: #8DB7F5;
    --hint: #3A2516;
    --hint-text: #F9C9A2;
    --photo-placeholder: #3A3129;
    --phone-bezel: #34434F;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--due); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

img, svg { display: block; }

h1, h2, h3 { font-family: var(--display); margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--inverse); color: var(--inverse-text); font-weight: 600;
}
.skip:focus { left: 16px; z-index: 10; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; width: 40px; height: 40px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a:not(.pill) {
  padding: 10px 14px; min-height: 44px; display: flex; align-items: center;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--slate-strong);
}
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav .pill { margin-left: 8px; }

/* Buttons */
.pill, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.pill {
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
  background: var(--inverse); color: var(--inverse-text); font-size: 14px;
}
.pill:hover { color: var(--inverse-text); opacity: 0.9; }
.btn { min-height: 56px; padding: 0 26px; border-radius: var(--radius-lg); font-size: 16px; }
.btn-primary { background: var(--ember); color: var(--on-ember); }
.btn-primary:hover { color: var(--on-ember); filter: brightness(1.05); }
.btn-outline { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { color: var(--ink); border-color: var(--slate); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* Google's badge image carries its own clear space (41px of 250); the negative margin lines the
   visible badge up with 56px buttons while that space still surrounds it. Don't recolour or crop it. */
.play-badge { display: inline-flex; flex: none; }
.play-badge img { display: block; width: auto; height: 84px; margin: -14px; }

/* Type helpers */
.overline { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.h-hero { font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.035em; }
.h-page { font-weight: 800; font-size: clamp(40px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.035em; max-width: 900px; }
.h-section { font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.02; letter-spacing: -0.025em; }
.h-sub { font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; }
.h-card { font-weight: 700; font-size: 22px; line-height: 1.2; }
.lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--slate-strong); max-width: 640px; }
.lede strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--slate-strong); }
p { margin: 0; }

.section { padding-block: 0 104px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-bottom: 40px; }
.section-head-split {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 40px;
}
.section-head-split > p { max-width: 380px; color: var(--slate); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 40px 72px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--slate-strong);
}
.badge span { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--expiry-soon); color: var(--on-ember); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 500; color: var(--slate); }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks svg { color: var(--fresh); }

.hero-visual {
  flex: 1 1 420px; min-width: 0; position: relative;
  background: var(--anchor); border-radius: var(--radius-2xl);
  padding: 104px 24px 112px; display: flex; justify-content: center;
}
.float-card {
  position: absolute; border-radius: var(--radius-lg); padding: 14px 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px;
}
.float-receipt { left: 20px; top: 24px; width: 210px; background: var(--surface); }
.float-receipt strong { font-size: 15px; font-weight: 600; }
.float-receipt small { font-size: 12px; font-weight: 500; color: var(--slate); }
.float-hint {
  right: 16px; bottom: 20px; width: 230px; background: var(--hint); color: var(--hint-text);
  font-size: 14px; font-weight: 600; line-height: 1.35;
}
@media (max-width: 560px) {
  .float-card { display: none; }
  .hero-visual { padding-block: 40px; }
}

/* Phone mock-up */
.phone {
  width: 300px; max-width: 100%; border-radius: 44px; border: 10px solid var(--phone-bezel);
  background: var(--frost); overflow: hidden; display: flex; flex-direction: column;
}
.phone-body { padding: 28px 18px 18px; display: flex; flex-direction: column; gap: 16px; }
.phone-date { font-size: 12px; font-weight: 500; color: var(--slate); }
.phone-title { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1.05; }
.use-soon { background: var(--anchor); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
@media (prefers-color-scheme: dark) { .use-soon { background: #111C24; } }
.use-soon-head { display: flex; justify-content: space-between; align-items: baseline; }
.use-soon-head b { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--anchor-text); }
.use-soon-head small { font-size: 11px; font-weight: 500; color: var(--anchor-sub); }
.food-row { background: var(--anchor-row); border-radius: 14px; padding: 9px 10px; display: flex; align-items: center; gap: 10px; }
.food-row span:last-child { display: flex; flex-direction: column; }
.food-row b { font-size: 13px; font-weight: 600; color: var(--anchor-text); }
.food-row small { font-size: 11px; color: var(--anchor-sub); }
.days {
  width: 34px; height: 34px; flex: none; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--on-ember);
}
.days-urgent { background: var(--expiry-urgent); }
.days-soon { background: var(--expiry-soon); }
.cook { margin-top: 4px; height: 42px; border-radius: 14px; background: var(--ember); color: var(--on-ember); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.phone-section { font-family: var(--display); font-weight: 700; font-size: 17px; }
.leftover { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; align-items: center; gap: 10px; }
.leftover-photo { width: 40px; height: 40px; border-radius: 10px; background: var(--photo-placeholder); flex: none; }
.leftover span:last-child { display: flex; flex-direction: column; }
.leftover b { font-size: 13px; font-weight: 600; }
.leftover small { font-size: 11px; font-weight: 500; color: var(--due); }
.phone-bar { margin: 6px 12px 14px; height: 56px; border-radius: 22px; background: #111C24; display: flex; align-items: center; justify-content: space-around; color: var(--nav-idle); }
.phone-bar .on { color: #FFFFFF; }
.phone-bar .add { width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--ember); color: var(--on-ember); display: flex; align-items: center; justify-content: center; }

/* Cards and panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.dark-panel { background: var(--anchor); color: var(--anchor-text); border-radius: var(--radius-xl); }
.dark-panel p, .dark-panel li { color: var(--anchor-sub); }

/* Quick facts */
.facts { padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; }
.facts-intro { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.facts-intro h2 { font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -0.015em; }
.facts dl { flex: 2 1 520px; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 32px; }
.facts dl div { padding: 14px 0; border-bottom: 1px solid var(--divider); }
.facts dt { font-size: 13px; font-weight: 500; color: var(--slate); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step h3 { font-weight: 700; font-size: 24px; line-height: 1.15; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--inverse); color: var(--inverse-text);
  font-family: var(--display); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.dark-panel .step-num { background: var(--ember); color: var(--on-ember); }

/* Features */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band > .wrap { padding-block: 96px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature { background: var(--frost); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature p { color: var(--slate-strong); }
.feature-hint { background: var(--hint); color: var(--hint-text); }
.feature-hint p { color: var(--hint-text); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.plan { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.plan h3 { font-weight: 700; font-size: 24px; }
.plan-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-trial { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--expiry-soon); color: var(--on-ember); font-size: 12px; font-weight: 600; }
.price { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; }
.price small { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--anchor-sub); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; color: var(--slate-strong); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.dark-panel.plan li strong { color: var(--anchor-text); font-weight: 600; }
.plan .btn { margin-top: auto; }
.plan .play-badge { margin-top: auto; align-self: flex-start; }

/* FAQ (details) */
.qa-layout { display: flex; flex-wrap: wrap; gap: 48px; }
.qa-layout > div:first-child { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.qa-list { flex: 2 1 560px; min-width: 0; padding: 8px 28px; }
.qa-list details { padding: 16px 0; border-bottom: 1px solid var(--divider); }
.qa-list details:last-child { border-bottom: 0; }
.qa-list summary {
  font-family: var(--display); font-weight: 700; font-size: 20px; cursor: pointer;
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none;
}
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary::after { content: "+"; font-family: var(--sans); font-weight: 500; font-size: 24px; color: var(--slate); }
.qa-list details[open] summary::after { content: "\2212"; }
.qa-list details p { margin-top: 4px; color: var(--slate-strong); }

/* CTA */
.cta { border-radius: var(--radius-2xl); padding: 64px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta h2 { font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em; max-width: 760px; }
.cta p { font-size: 18px; max-width: 520px; }

/* Page intro (FAQ, Compare) */
.page-intro { padding-block: 48px 56px; display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  background: var(--track); color: var(--slate-strong);
  font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center;
}
.chip:hover { color: var(--ink); }

/* FAQ page */
.faq-groups { display: flex; flex-direction: column; gap: 56px; padding-bottom: 96px; }
.faq-group { display: flex; flex-wrap: wrap; gap: 32px; scroll-margin-top: 24px; }
.faq-group > h2 { flex: 1 1 240px; }
.faq-items { flex: 3 1 640px; min-width: 0; padding: 4px 32px; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--divider); display: flex; flex-direction: column; gap: 8px; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-weight: 700; font-size: 22px; line-height: 1.25; }
.faq-item p { color: var(--slate-strong); }

/* Compare page */
.table-box { overflow-x: auto; }
.compare { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; font-size: 15px; }
.compare th, .compare td { padding: 18px 24px; vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line); }
.compare thead th:first-child { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); width: 22%; }
.compare tbody th { font-weight: 600; }
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.compare tbody tr + tr > * { border-top: 1px solid var(--divider); }
.compare td { color: var(--slate-strong); }
.compare .us { background: var(--anchor-row); color: var(--anchor-text); font-weight: 600; width: 22%; border-top-color: transparent; }
.compare thead .us { background: var(--anchor); border-bottom: 0; }
@media (prefers-color-scheme: dark) { .compare thead .us { background: #111C24; } .compare .us { background: var(--anchor); } }
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.pick > * { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pick .panel p { color: var(--slate-strong); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 40px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--slate); }
.site-footer .about { display: flex; flex-direction: column; gap: 6px; max-width: 440px; }
.site-footer .about b { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.site-footer nav a { color: var(--slate-strong); min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 640px) {
  .site-nav a.hide-sm { display: none; }
  .facts, .plan, .step, .feature { padding: 24px; }
  .qa-list, .faq-items { padding-inline: 20px; }
  .section { padding-bottom: 72px; }
  .band > .wrap { padding-block: 72px; }
}

/* Long-form text (privacy policy) */
.prose { max-width: 720px; padding-bottom: 96px; color: var(--slate-strong); font-size: 17px; line-height: 1.65; }
.prose h2 { margin: 48px 0 12px; color: var(--ink); font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; color: var(--ink); font-family: var(--sans); font-size: 18px; font-weight: 600; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
