/* FoodStyles website, styled after the previous foodstyles.com:
   orange header bar, cream and white rows, colour-coded display headings,
   bold green bands, beige rounded cards and an orange footer.
   Colours that the old site used for text are deepened slightly where needed
   to reach WCAG AA contrast. */

/* Brand fonts, self-hosted under FoodStyles' licence (confirmed 19 October 2026).
   Outfit and Figtree from Google Fonts are the fallbacks. */
@font-face { font-family: "Degualar-Bold"; src: url("assets/fonts/degualar-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Proxima Nova W05"; src: url("assets/fonts/proximanova-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Proxima Nova W05"; src: url("assets/fonts/proximanova-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Brand colours from the live site */
  --orange: #EE612C;        /* header, footer, buttons, chips */
  --cream: #FFF4DF;         /* alternate rows */
  --white: #FFFFFF;
  --beige: #DFD6C2;         /* cards */
  --green-light: #74A234;   /* bands */
  --green: #277420;         /* dark band */
  --blue: #548CC4;
  --purple: #A45798;
  --ink: #404040;           /* body text */

  /* Text versions that pass contrast on cream and white */
  --orange-text: #E5561F;   /* large headings */
  --orange-deep: #B8461A;   /* small orange text, links, errors */
  --green-text: #5F8C25;
  --text: #5C5650;          /* secondary text */
  --line: #E9DFCB;
  --peach-on-dark: #FFD2B8;

  --display: "Degualar-Bold", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Proxima Nova W05", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: 24px;
  --row: 64px;
  --r-image: 16px;
  --r-card: 32px;
  --header-h: 68px;
}

@media (min-width: 880px) {
  :root { --gutter: 48px; --row: 104px; --header-h: 92px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 880px) { body { font-size: 19px; line-height: 29px; } }

h1, h2 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h3, h4 { font-family: var(--body); font-weight: 700; margin: 0; color: var(--ink); }

h1, .display { font-size: 44px; line-height: 48px; color: var(--orange-text); }
h2 { font-size: 34px; line-height: 38px; color: var(--tone, var(--orange-text)); }
h3 { font-size: 21px; line-height: 27px; }
@media (min-width: 880px) {
  h1, .display { font-size: 76px; line-height: 82px; }
  h2 { font-size: 52px; line-height: 56px; }
  h3 { font-size: 24px; line-height: 30px; }
}

p { margin: 0; max-width: 64ch; }
p + p { margin-top: 1em; }

.lead { font-size: 20px; line-height: 30px; max-width: 56ch; color: var(--ink); }
@media (min-width: 880px) { .lead { font-size: 24px; line-height: 34px; } }

.small, small { font-size: 15px; line-height: 22px; color: var(--text); }

a { color: var(--orange-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; height: auto; display: block; }

.tnum { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Visible TODO markers so reviewers can spot open items */
.todo {
  color: var(--orange-deep);
  border: 1.5px dashed var(--orange-deep);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 0.85em;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.todo-block {
  display: block; margin-top: 16px; padding: 12px 16px; max-width: none;
  border: 1.5px dashed var(--orange-deep); border-radius: 12px;
  color: var(--orange-deep); font-size: 15px; line-height: 22px; font-weight: 700;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Rows: white by default, cream on request; each sets the heading colour (--tone). */
.section { padding-block: var(--row); background: var(--white); }
.section-first { background: var(--cream); padding-top: 48px; }
@media (min-width: 880px) { .section-first { padding-top: 88px; } }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }

.tone-orange { --tone: var(--orange-text); --tone-fill: var(--orange); }
.tone-green  { --tone: var(--green-text);  --tone-fill: var(--green-light); }
.tone-blue   { --tone: var(--blue);        --tone-fill: var(--blue); }
.tone-purple { --tone: var(--purple);      --tone-fill: var(--purple); }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 880px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .span-4 { grid-column-end: span 4; }
  .span-5 { grid-column-end: span 5; }
  .span-6 { grid-column-end: span 6; }
  .span-7 { grid-column-end: span 7; }
  .span-8 { grid-column-end: span 8; }
  .start-6 { grid-column-start: 6; }
  .start-7 { grid-column-start: 7; }
  .start-8 { grid-column-start: 8; }
  .start-9 { grid-column-start: 9; }
}

.section-head { margin-bottom: 40px; }
.section-head p { margin-top: 16px; }
@media (min-width: 880px) { .section-head { margin-bottom: 56px; } }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* ---------- Icons ---------- */

.icon {
  width: 28px; height: 28px; flex: none;
  stroke: var(--tone-fill, var(--orange)); fill: none; stroke-width: 2.25;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 14px 28px;
  border: 2.5px solid transparent; border-radius: 999px;
  font: inherit; font-size: 19px; line-height: 24px; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-deep); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 46px; padding: 10px 22px; font-size: 17px; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.text-link { font-weight: 700; }

/* ---------- Chips ---------- */

.chip {
  display: inline-flex; align-items: center;
  border: 2px solid var(--orange); border-radius: 999px;
  padding: 7px 16px;
  background: var(--white); color: var(--ink);
  font-size: 16px; line-height: 20px; font-weight: 700;
  white-space: nowrap;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.phrase { color: var(--orange-deep); font-weight: 700; }

/* ---------- Header: orange bar, white logo ---------- */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--orange);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: inline-flex; flex: none; margin-right: auto; border-radius: 6px; }
.logo img { height: 30px; width: auto; aspect-ratio: 263.335 / 60; }
@media (min-width: 880px) { .logo img { height: 46px; } }
.site-header :focus-visible, .site-footer :focus-visible, .mobile-nav :focus-visible { outline-color: var(--white); }

.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  color: var(--white); text-decoration: none; font-size: 19px; font-weight: 700;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--white); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px;
}
.site-header .btn-primary { background: var(--white); color: var(--orange-deep); margin-left: 12px; }
.site-header .btn-primary:hover { background: var(--cream); color: var(--orange-deep); }

/* White disc, orange bars, as on the live site */
.menu-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-left: 4px;
  border: 0; border-radius: 50%; background: var(--white); color: var(--orange); cursor: pointer;
}
.menu-button svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; }
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { background: var(--orange); padding: 0 0 24px; }
.mobile-nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-nav a {
  display: block; padding: 12px 0;
  color: var(--white); text-decoration: none; font-family: var(--display); font-size: 30px; line-height: 36px;
}
.mobile-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

@media (max-width: 879px) {
  .main-nav { display: none; }
  .header-inner { gap: 8px; }
  .site-header .btn-small { min-height: 42px; padding: 8px 14px; font-size: 15px; margin-left: 0; }
}
@media (min-width: 880px) { .menu-button, .mobile-nav { display: none !important; } }

/* ---------- Footer: orange, everything bold so white text stays readable ---------- */

.site-footer {
  background: var(--orange); color: var(--white);
  padding-block: 56px 40px;
  font-size: 19px; line-height: 27px; font-weight: 700;
}
.site-footer a { color: var(--white); }
.footer-logo { height: 40px; width: auto; aspect-ratio: 263.335 / 60; margin-bottom: 24px; }
.footer-statement { font-size: 22px; line-height: 30px; max-width: 44ch; }
@media (min-width: 880px) { .footer-statement { font-size: 26px; line-height: 34px; } }
.footer-grid { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-links button {
  display: inline-block; color: var(--white); text-decoration: none;
  font: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer;
}
.footer-links a:hover, .footer-links button:hover { text-decoration: underline; }
.footer-contacts { margin: 0; display: grid; gap: 10px; }
.footer-contacts div { display: flex; flex-wrap: wrap; gap: 0 10px; }
.footer-contacts dd { margin: 0; }
.footer-legal { max-width: none; margin-top: 40px; padding-top: 24px; border-top: 2px solid rgba(255, 255, 255, 0.35); }

/* ---------- Home: hero ---------- */

.hero { align-items: center; }
/* Hero headline breaks as "Helping AI / recommend the / right restaurant and dish".
   On desktop the font size follows the column width so the long last line always
   fits; on phones that last line wraps to "right restaurant / and dish". */
.hero-copy { container-type: inline-size; }
.hero h1 { font-size: 40px; font-size: min(42px, 13.4cqi); line-height: 1.12; }
.hero h1 .hl-line { display: block; }
@media (min-width: 880px) {
  .hero h1 { font-size: 52px; font-size: min(64px, 8.6cqi); line-height: 1.12; text-wrap: wrap; }
  .hero h1 .hl-line { white-space: nowrap; }
}
.hero .lead { margin-top: 28px; }
.hero .btn-row { margin-top: 36px; }

.query-panel {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 28px 24px;
}
@media (min-width: 880px) { .query-panel { padding: 44px 40px; } }
.query-sentence { color: var(--ink); font-size: 21px; line-height: 31px; max-width: none; }
@media (min-width: 880px) { .query-sentence { font-size: 24px; line-height: 35px; } }
.query-panel .chip-row { margin-top: 24px; }
.query-result {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--cream);
  color: var(--ink); font-weight: 700;
}
.query-result .icon { stroke: var(--green-light); }

/* Before the hero animation runs (set in <head> only when motion is allowed) */
.anim-pending [data-chip],
.anim-pending [data-hero-result] { opacity: 0; }

/* ---------- Home: what we do (three steps) ---------- */

.steps { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--tone-fill); color: var(--white);
  font-family: var(--display); font-size: 28px; line-height: 1;
  margin-bottom: 20px;
}
.steps h3 { margin-bottom: 8px; }
.after-steps { margin-top: 48px; font-size: 21px; line-height: 31px; font-weight: 700; color: var(--tone); max-width: 52ch; }
@media (min-width: 880px) { .after-steps { font-size: 24px; line-height: 34px; } }

/* ---------- Home: the problem ---------- */

.problem-statement { font-size: 20px; line-height: 30px; }
@media (min-width: 880px) { .problem-statement { font-size: 24px; line-height: 34px; } }
.problem-list-intro { font-weight: 700; color: var(--tone); margin-bottom: 12px; }
.problem-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.problem-list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 700; }
.problem-list li::before {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 7px;
  border-radius: 50%; background: var(--tone-fill);
}

/* ---------- Bands ---------- */

.band-ink {
  background: var(--green-light); color: var(--white);
  padding-block: 64px; text-align: center;
}
@media (min-width: 880px) { .band-ink { padding-block: 88px; } }
.band-label { color: var(--white); font-weight: 700; font-size: 22px; line-height: 28px; margin: 0 auto 12px; }
.band-statement {
  color: var(--white); font-family: var(--display); font-size: 32px; line-height: 36px;
  max-width: 24ch; margin-inline: auto; text-wrap: balance;
}
@media (min-width: 880px) { .band-statement { font-size: 48px; line-height: 52px; } }

/* Dark green band, as the live site's app download row */
.band-stone { background: var(--green); color: var(--white); text-align: center; }
.band-stone h2 { color: var(--white); }
.band-stone p { margin-inline: auto; color: var(--white); }
.band-stone .grid { display: block; }
.band-stone .badges { justify-content: center; }
.band-stone .section-link { color: var(--white); }
.band-stone :focus-visible { outline-color: var(--white); }

/* ---------- Home: the example ---------- */

.example-panel { border-radius: var(--r-card); background: var(--cream); overflow: hidden; }
.example-request { padding: 24px; }
@media (min-width: 880px) { .example-request { padding: 32px 36px 24px; } }
.example-request p { color: var(--ink); font-weight: 700; margin-bottom: 16px; }
.results { margin: 0; padding: 0 12px 12px; list-style: none; display: grid; gap: 8px; }
.result {
  display: grid; gap: 8px 14px; grid-template-columns: 32px minmax(0, 1fr); align-items: start;
  padding: 18px 20px; background: var(--white); border-radius: 20px;
}
.result-rank { font-family: var(--display); color: var(--tone); font-size: 30px; line-height: 30px; }
.result-name { color: var(--ink); font-weight: 700; }
.result-meta { font-size: 15px; line-height: 21px; color: var(--text); }
.result-name + .result-meta { margin-top: 2px; }
.result-checks { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.result-checks li { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; line-height: 21px; font-weight: 700; }
.result-checks .icon { stroke: var(--green-light); }
.caption { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--text); }

/* ---------- Home: in numbers ---------- */

.figures { display: grid; gap: 40px 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure .icon { margin-bottom: 12px; }
.figure-number {
  display: block; font-family: var(--display); color: var(--tone);
  font-size: 56px; line-height: 56px; font-variant-numeric: tabular-nums;
}
@media (min-width: 880px) { .figure-number { font-size: 72px; line-height: 72px; } }
.figure-line { margin-top: 10px; font-weight: 700; }
.figures-note { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- Ways to work with us: beige cards in sequence ---------- */

.sequence { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 880px) { .sequence { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.option {
  background: var(--beige); border-radius: var(--r-card);
  padding: 28px 24px; display: flex; flex-direction: column;
  border: 3px solid transparent;
}
.option-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tone-fill); color: var(--white);
  font-family: var(--display); font-size: 22px; line-height: 1;
  margin-bottom: 18px;
}
.option h3 { margin-bottom: 8px; }
.option-tech { margin-top: 12px; font-size: 15px; line-height: 21px; color: var(--text); }
.option-status {
  margin-top: auto; padding-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; line-height: 21px; font-weight: 700;
}
.option-status .icon { stroke: var(--green); }
.option-highlight { background: var(--cream); border-color: var(--orange); }
.option-highlight .option-num { background: var(--orange); }
.option-highlight .option-status .icon { stroke: var(--orange-deep); }
.option-more { margin-top: 12px; }
.option-delivery { margin-top: 12px; font-size: 15px; line-height: 21px; }

.extras-line { margin-top: 36px; font-weight: 700; }
.section-link { margin-top: 16px; display: inline-block; }

/* ---------- Why it's hard: pipeline ---------- */

.pipeline { display: grid; margin: 0; padding: 0; list-style: none; }
.pipe-step { position: relative; padding: 0 0 28px 44px; }
.pipe-step::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--tone-fill);
}
.pipe-step::after {
  content: ""; position: absolute; left: 10px; top: 26px; bottom: 0; width: 4px; background: var(--tone-fill); opacity: .35;
}
.pipe-step:last-child::after { display: none; }
.pipe-step:last-child { padding-bottom: 0; }
.pipe-label { display: block; font-size: 15px; line-height: 21px; font-weight: 700; color: var(--tone); margin-bottom: 4px; }
.pipe-step h3 { font-size: 20px; line-height: 26px; margin-bottom: 6px; }
.pipe-step p { font-size: 16px; line-height: 24px; }
@media (min-width: 880px) {
  .pipeline { grid-template-columns: repeat(5, 1fr); }
  .pipe-step { padding: 44px 24px 0 0; }
  .pipe-step::before { left: 0; top: 0; }
  .pipe-step::after { left: 24px; right: 0; top: 10px; bottom: auto; width: auto; height: 4px; }
}

/* ---------- Who we are ---------- */

.badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.badges a { display: inline-flex; border-radius: 8px; }
.badges img { height: 52px; width: auto; }

/* ---------- Contact ---------- */

.founder { background: var(--white); border-radius: var(--r-card); padding: 32px; align-self: start; }
.founder-name { color: var(--tone, var(--ink)); font-family: var(--display); font-size: 28px; line-height: 32px; }
.founder-role { margin-top: 4px; font-weight: 700; }
.founder-links { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }

.form { display: grid; gap: 24px; }
.field label, .field .label {
  display: block; color: var(--ink); font-weight: 700; font-size: 17px; line-height: 23px; margin-bottom: 8px;
}
.optional { font-weight: 400; color: var(--text); }
.hint { font-size: 15px; line-height: 21px; margin: -4px 0 8px; color: var(--text); }
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  display: block; width: 100%; min-height: 54px; padding: 13px 16px;
  border: 2px solid #8A8178; border-radius: 14px;
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 17px; line-height: 24px;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23404040' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field textarea { min-height: 136px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--ink); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--orange-deep); border-width: 3px; }
.field-error { color: var(--orange-deep); font-weight: 700; font-size: 15px; line-height: 21px; margin-top: 8px; }
.field-error[hidden] { display: none; }
.field-row { display: grid; gap: 24px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.conditional { display: grid; gap: 24px; padding-left: 18px; border-left: 4px solid var(--orange); }
.conditional[hidden] { display: none; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; }
.checkbox input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--orange-deep); }
.checkbox label { margin: 0; font-weight: 400; }

.form-success { background: var(--white); border-radius: var(--r-card); padding: 36px; }
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 3px; }
.form-success .icon { width: 40px; height: 40px; margin-bottom: 12px; stroke: var(--green-light); }
.form-success h2, .form-success h3 { font-family: var(--display); color: var(--green-text); font-size: 36px; line-height: 40px; }
.form-success p { margin-top: 8px; }

/* ---------- Inner pages ---------- */

.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 24px; }

/* Subsections cycle through the live site's heading colours */
.subsection { --tone: var(--orange-text); --tone-fill: var(--orange); }
.subsection:nth-child(4n+2) { --tone: var(--green-text); --tone-fill: var(--green-light); }
.subsection:nth-child(4n+3) { --tone: var(--blue); --tone-fill: var(--blue); }
.subsection:nth-child(4n+4) { --tone: var(--purple); --tone-fill: var(--purple); }
.subsection + .subsection { margin-top: 80px; }
@media (min-width: 880px) { .subsection + .subsection { margin-top: 112px; } }
.subsection h2 { margin-bottom: 20px; }
.opening { font-weight: 700; color: var(--ink); }

/* Chain of chips: Restaurants — Menus — Dishes — Ingredients */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 32px 0 0; padding: 0; list-style: none; }
.chain li { display: flex; align-items: center; }
.chain li + li::before { content: ""; display: block; width: 20px; height: 3px; background: var(--orange); }
@media (min-width: 880px) { .chain li + li::before { width: 36px; } }

/* Taxonomy table */
.taxonomy { width: 100%; border-collapse: collapse; margin-top: 32px; }
.taxonomy th, .taxonomy td { text-align: left; vertical-align: top; }
.taxonomy thead th {
  font-size: 15px; line-height: 21px; color: var(--text); font-weight: 700;
  padding: 0 16px 12px 0; border-bottom: 3px solid var(--tone-fill);
}
.taxonomy tbody th, .taxonomy tbody td { padding: 22px 16px 22px 0; border-bottom: 2px solid var(--line); }
.taxonomy tbody th { font-size: 20px; line-height: 27px; }
.tax-count { font-family: var(--display); color: var(--tone); font-size: 40px; line-height: 40px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tax-count small { display: block; font-family: var(--body); font-size: 15px; line-height: 21px; font-weight: 700; color: var(--text); margin-top: 4px; }
.tax-examples { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tax-examples li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tax-examples .chip { padding: 4px 12px; font-size: 15px; }
.tax-examples span { font-size: 16px; line-height: 23px; }
@media (min-width: 880px) {
  .taxonomy .col-area { width: 22%; }
  .taxonomy .col-count { width: 18%; }
}
@media (max-width: 879px) {
  .taxonomy thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .taxonomy, .taxonomy tbody, .taxonomy tr, .taxonomy th, .taxonomy td { display: block; }
  .taxonomy tr { padding: 22px 0; border-bottom: 2px solid var(--line); }
  .taxonomy tbody th, .taxonomy tbody td { padding: 0; border: 0; }
  .taxonomy tbody td + td { margin-top: 12px; }
}

/* Generic data table */
.table-wrap { overflow-x: auto; margin-top: 24px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 2px solid var(--line); }
.data-table thead th { font-size: 15px; line-height: 21px; color: var(--text); font-weight: 700; border-bottom: 3px solid var(--tone-fill, var(--orange)); padding-top: 0; }
.data-table tbody th { color: var(--ink); }
.data-table td.num { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.callout {
  background: var(--cream); border-radius: 24px; padding: 24px 28px; margin-top: 32px;
  display: flex; gap: 14px; align-items: flex-start; font-weight: 700;
}

details.records { margin-top: 24px; border-radius: 24px; background: var(--cream); }
details.records summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 700;
}
details.records summary::-webkit-details-marker { display: none; }
details.records summary svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2.5; flex: none; }
details.records[open] summary svg { transform: rotate(180deg); }
.records-body { padding: 0 24px 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 880px) { .records-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.records-body h3 { font-size: 17px; line-height: 23px; margin-bottom: 8px; }
pre.code {
  margin: 0; padding: 16px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--white); border-radius: 12px;
  font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--ink);
}
code { font-family: var(--mono); font-size: 0.9em; }

.detail-list { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.detail-list li { padding: 18px 22px; background: var(--cream); border-radius: 20px; }

.photos { display: grid; gap: 24px 16px; margin-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 880px) { .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.photo { margin: 0; }
.photo-frame {
  position: relative; aspect-ratio: 3 / 2; max-width: 100%;
  border-radius: var(--r-image); overflow: hidden; background: var(--beige);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.ai-label {
  position: absolute; left: 10px; top: 10px;
  background: var(--white); color: var(--ink); border-radius: 999px;
  font-size: 13px; line-height: 18px; padding: 4px 10px; font-weight: 700;
}
.photo figcaption { margin-top: 12px; font-size: 17px; line-height: 23px; font-weight: 700; }
.photo-kind { display: block; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tone); }

.qa { margin: 24px 0 0; display: grid; gap: 12px; }
.qa div { padding: 22px 24px; background: var(--cream); border-radius: 20px; }
.qa dt { font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.qa dd { margin: 0; max-width: 64ch; }

.plain-note { margin-top: 28px; padding: 18px 22px; background: var(--cream); border-radius: 20px; font-weight: 700; max-width: none; }

.numbered { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 22px; }
.numbered > li { counter-increment: n; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.numbered > li::before {
  content: counter(n);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--tone-fill); color: var(--white);
  font-family: var(--display); font-size: 22px; line-height: 1;
}
.numbered > li > div { padding-top: 8px; }
.numbered .btn { margin-top: 12px; }

.example-requests { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.example-requests li {
  font-family: var(--mono); font-size: 14px; line-height: 22px;
  background: var(--cream); border-radius: 14px; padding: 12px 16px;
}

.contact-list { margin: 24px 0 0; }
.contact-list div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.contact-list div:first-child { border-top: 2px solid var(--line); }
@media (min-width: 640px) { .contact-list div { grid-template-columns: 280px 1fr; gap: 16px; } }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; }

/* Long-form text, such as the privacy policy */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--body); font-size: 24px; line-height: 30px; color: var(--ink); margin: 48px 0 12px; }
.prose ul { margin: 12px 0 0; padding-left: 1.25em; display: grid; gap: 8px; }
.prose ul + p, .prose p + p { margin-top: 1em; }

.closing-cta { margin-top: 44px; }
