/* Foodstuff Store — site styles
   Palette and type come from the logo: the green-black silhouette, the red hat, the leaf. */

:root {
  --ink: #15302a;
  --ink-soft: #3f544e;
  --muted: #5f6f69;
  --green: #2f5b4b;
  --green-deep: #234538;
  --green-wash: #e6eee9;
  --leaf: #6f9f3a;
  --tomato: #d3302a;
  --tomato-deep: #b3241f;
  --paper: #f5f6f2;
  --white: #ffffff;
  --line: #d8ddd5;
  --line-strong: #b9c2b9;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (perfect fourth, 17px base) */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.625rem;
  --t-xl: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --t-2xl: clamp(2.4rem, 1.6rem + 3.4vw, 3.9rem);
  --t-hero: clamp(3rem, 1.6rem + 6vw, 6.4rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --section: clamp(64px, 9vw, 128px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; }
a:not([class]) { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:not([class]):hover { color: var(--tomato-deep); }

:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 2px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.lede { font-size: var(--t-md); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 var(--t-base)/1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); }
.btn-tomato { background: var(--tomato); color: var(--white); }
.btn-tomato:hover { background: var(--tomato-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--green-wash); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--tomato-deep); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 242, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: auto; }
.brand span { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1; }
.brand b { color: var(--tomato); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 12px; border-radius: var(--radius);
  color: var(--ink-soft); font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--green-wash); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--tomato); border-radius: 0; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions .btn { min-height: 44px; padding: 0 16px; font-size: var(--t-sm); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; }
  .menu-toggle { display: inline-flex; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.is-open .nav { display: flex; flex-direction: column; align-items: stretch; padding: 8px 0 4px; margin: 0; }
  .site-header.is-open .header-actions { display: flex; flex-direction: column; align-items: stretch; padding: 8px 0 20px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--t-md); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--tomato); padding-left: 14px; }
  .header-actions .btn { min-height: 52px; font-size: var(--t-base); }
}

/* ---------- Hero (home) ---------- */

.hero { padding: clamp(40px, 6vw, 84px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: var(--t-hero); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; }
.hero h1 .line { display: block; }
.hero .lede { margin-top: 28px; }
.hero .btn-row { margin-top: 36px; }
.hero-copy { padding-bottom: clamp(40px, 6vw, 88px); }
.hero-cities { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: var(--t-sm); }
.hero-cities strong { color: var(--ink); font-weight: 600; }

.hero-photo { position: relative; align-self: stretch; min-height: 460px; }
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 38% 50%; border-radius: var(--radius) var(--radius) 0 0; }

/* The delivery note: the one loud element on the page */
.waybill {
  position: absolute; left: clamp(-56px, -4vw, -16px); bottom: 36px; width: min(300px, 78%);
  background: var(--white); color: var(--ink);
  border-radius: 4px; padding: 20px 22px 18px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -18px rgba(21, 48, 42, .45);
  font-size: var(--t-sm);
  transform-origin: 20% 100%;
}
.waybill::before { /* perforated tear line */
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--paper) 4px, transparent 4.5px) 0 0 / 14px 12px repeat-x;
}
.waybill-head { display: flex; justify-content: flex-start; align-items: baseline; gap: 12px; padding: 0 72px 10px 0; border-bottom: 1px dashed var(--line-strong); }
.waybill-head strong { font-size: var(--t-base); }
.waybill-head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.waybill dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.waybill dt { color: var(--muted); }
.waybill dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.waybill .total { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; font-weight: 700; font-size: var(--t-base); }
.stamp {
  position: absolute; right: -22px; top: -30px;
  width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid var(--tomato); color: var(--tomato);
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: 0.95rem; line-height: 1.05; letter-spacing: 0.02em;
  background: rgba(255,255,255,.88);
  transform: rotate(-14deg);
}
.stamp::after { content: ""; position: absolute; inset: 5px; border: 1px solid currentColor; border-radius: 50%; }

@media (prefers-reduced-motion: no-preference) {
  .js .waybill { animation: note-in .7s cubic-bezier(.2,.8,.2,1) .25s both; }
  .js .stamp { animation: stamp-in .38s cubic-bezier(.3,1.6,.5,1) 1.05s both; }
}
@keyframes note-in { from { opacity: 0; transform: translateY(36px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.9) rotate(-30deg); } to { opacity: 1; transform: scale(1) rotate(-14deg); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-photo { min-height: 0; margin: 0 calc(var(--gutter) * -1); }
  .hero-photo img { border-radius: 0; }
  .hero-photo picture { display: block; height: auto; aspect-ratio: 4 / 3; }
  .hero-photo { aspect-ratio: auto; padding-bottom: 28px; }
  .waybill { position: relative; left: auto; bottom: auto; width: auto; max-width: 340px; margin: -64px var(--gutter) 0; }
  .stamp { width: 86px; height: 86px; right: -18px; top: -26px; font-size: .8rem; }
}

/* ---------- Proof bar ---------- */

.proof { background: var(--ink); color: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { padding: 30px 24px 30px 0; }
.proof-item + .proof-item { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.16); }
.proof-item strong { display: block; font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.proof-item span { display: block; margin-top: 8px; color: rgba(255,255,255,.72); font-size: var(--t-sm); max-width: 22ch; }
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item, .proof-item + .proof-item { padding: 22px 16px 22px 0; border-left: 0; }
  .proof-item:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.16); }
  .proof-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
}

.partners { padding: 40px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.partners .wrap { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center; }
.partners p { color: var(--muted); font-size: var(--t-sm); }
.partner-logos { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 20px; align-items: center; list-style: none; }
.partner-logos img { max-height: 52px; width: auto; margin: 0 auto; filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .2s, opacity .2s; }
.partner-logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 1020px) {
  .partners .wrap { grid-template-columns: 1fr; gap: 20px; }
  .partner-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .partner-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; } }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: var(--white); }
.section-ink .lede, .section-ink .muted { color: rgba(255,255,255,.74); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--t-2xl); letter-spacing: -0.035em; }
.section-head p { color: var(--ink-soft); font-size: var(--t-md); max-width: 44ch; }
.section-ink .section-head p { color: rgba(255,255,255,.74); }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* Who's buying: a directory list, not a card grid */
.paths { list-style: none; border-top: 2px solid var(--ink); }
.paths li { border-bottom: 1px solid var(--line-strong); }
.paths a {
  display: grid; grid-template-columns: 280px minmax(0, 1fr) auto; gap: 8px 40px; align-items: center;
  padding: 30px 0; text-decoration: none; color: inherit;
}
.paths .who { font-size: var(--t-lg); font-weight: 700; letter-spacing: -0.02em; }
.paths .what { color: var(--ink-soft); max-width: 58ch; }
.paths .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--green); white-space: nowrap; }
.paths .go svg { width: 22px; height: 22px; transition: transform .2s ease; }
.paths a:hover .who { color: var(--tomato-deep); }
.paths a:hover .go svg { transform: translateX(4px); }
@media (max-width: 860px) {
  .paths a { grid-template-columns: 1fr; padding: 24px 0; }
}

/* Business services */
.services { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.services-figure { position: sticky; top: 104px; }
.services-figure img { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.services-figure figcaption { margin-top: 14px; font-size: var(--t-sm); color: var(--muted); }
.service-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.service-list li { padding: 26px 0 28px; border-top: 1px solid var(--line-strong); }
.service-list .icon { width: 28px; height: 28px; color: var(--green); margin-bottom: 14px; }
.service-list h3 { font-size: var(--t-md); letter-spacing: -0.015em; }
.service-list p { margin-top: 8px; color: var(--ink-soft); font-size: var(--t-base); }
.services .btn-row { margin-top: 32px; }
@media (max-width: 960px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .services-figure { position: static; }
}
@media (max-width: 560px) { .service-list { grid-template-columns: minmax(0, 1fr); } }

/* Credit callout */
.credit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; margin-top: clamp(48px, 6vw, 80px); padding: 32px clamp(20px, 4vw, 40px); background: var(--green); color: var(--white); border-radius: var(--radius); }
.credit-figure { font-size: var(--t-2xl); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.credit p { color: rgba(255,255,255,.84); max-width: 52ch; }
.credit h3 { font-size: var(--t-md); margin-bottom: 6px; color: var(--white); }
.credit.plain { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 860px) { .credit, .credit.plain { grid-template-columns: minmax(0, 1fr); } }

/* App */
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.app h2 { font-size: var(--t-2xl); letter-spacing: -0.035em; }
.app .lede { margin-top: 20px; }
.steps { list-style: none; counter-reset: step; margin-top: 32px; display: grid; gap: 0; max-width: 460px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-weight: 700; color: var(--tomato); font-variant-numeric: tabular-nums; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 16px;
  background: var(--ink); color: var(--white); border-radius: var(--radius); text-decoration: none;
}
.store-badge:hover { background: #000; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 0.72rem; opacity: .8; line-height: 1.1; }
.store-badge span { display: block; font-size: 1.12rem; font-weight: 600; line-height: 1.15; }
@media (max-width: 860px) { .app { grid-template-columns: minmax(0, 1fr); } .app-figure { order: -1; } }

/* Community */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.community article { display: flex; flex-direction: column; }
.community article + article { border-left: 1px solid var(--line-strong); }
.community .media { aspect-ratio: 16 / 10; background: var(--white); overflow: hidden; border-bottom: 1px solid var(--line); }
.community .media video, .community .media img { width: 100%; height: 100%; object-fit: cover; }
.community .media.fit video { object-fit: contain; transform: scale(1.5); }
.community .body { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; flex: 1; }
.community h3 { font-size: var(--t-lg); letter-spacing: -0.025em; }
.community .body > p { margin-top: 12px; color: var(--ink-soft); }
.checks { list-style: none; margin: 22px 0 30px; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--green-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5b4b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.community .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) {
  .community { grid-template-columns: minmax(0, 1fr); }
  .community article + article { border-left: 0; border-top: 1px solid var(--line-strong); }
}

/* Founder story */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.story blockquote { margin: 0; }
.story blockquote p { font-size: var(--t-xl); line-height: 1.18; letter-spacing: -0.025em; font-weight: 600; }
.story blockquote footer { margin-top: 22px; color: rgba(255,255,255,.74); }
.story blockquote footer strong { color: var(--white); display: block; }
.story .follow { margin-top: 28px; color: rgba(255,255,255,.82); max-width: 54ch; }
.story img { border-radius: var(--radius); }
.story .btn-row { margin-top: 32px; }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } }

/* Reading list */
.reads { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; border-top: 2px solid var(--ink); }
.reads a { display: block; padding: 22px 0; text-decoration: none; color: inherit; }
.reads .src { font-size: var(--t-sm); color: var(--muted); }
.reads h3 { margin-top: 6px; font-size: var(--t-md); letter-spacing: -0.015em; }
.reads p { margin-top: 8px; color: var(--ink-soft); font-size: var(--t-sm); }
.reads a:hover h3 { color: var(--tomato-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 960px) { .reads { grid-template-columns: 1fr 1fr; } .reads li { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .reads { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: var(--t-2xl); letter-spacing: -0.035em; }
.contact-details { margin-top: 32px; display: grid; gap: 18px; }
.contact-details div { padding-top: 14px; border-top: 1px solid var(--line-strong); }
.contact-details dt { font-size: var(--t-sm); color: var(--muted); }
.contact-details dd { margin: 4px 0 0; font-size: var(--t-md); font-weight: 600; }
.contact-details dd a { color: var(--ink); text-decoration: none; }
.contact-details dd a:hover { color: var(--tomato-deep); text-decoration: underline; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head .crumb { font-size: var(--t-sm); color: var(--muted); margin-bottom: 18px; }
.page-head .crumb a { color: var(--muted); }
.page-head h1 { font-size: var(--t-2xl); letter-spacing: -0.04em; font-weight: 800; max-width: 18ch; }
.page-head .lede { margin-top: 20px; max-width: 56ch; }
.page-head .btn-row { margin-top: 30px; }

/* Two-column layout used on application pages */
.split { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split-aside { position: sticky; top: 104px; }
.split-aside h2 { font-size: var(--t-lg); letter-spacing: -0.02em; }
.split-aside p { margin-top: 10px; color: var(--ink-soft); }
.split-aside .block + .block { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.split-aside .steps { margin-top: 16px; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .split-aside { position: static; } }

.notice { padding: 18px 20px; border-left: 4px solid var(--green); background: var(--green-wash); border-radius: 0 var(--radius) var(--radius) 0; }
.notice strong { display: block; }
.notice p { margin-top: 4px; color: var(--ink-soft); }

/* ---------- Forms ---------- */

.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); }
.form-panel > h2 { font-size: var(--t-lg); letter-spacing: -0.02em; }
.form-panel > p { margin-top: 8px; color: var(--ink-soft); }
.form { display: grid; gap: 22px; margin-top: 28px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 22px; min-width: 0; }
.form fieldset + fieldset { padding-top: 30px; border-top: 1px solid var(--line); }
.form legend { float: left; width: 100%; padding: 0; margin: 0; font-size: var(--t-md); font-weight: 700; letter-spacing: -0.015em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 8px; }
.field > span, .field-label { font-weight: 600; font-size: var(--t-base); }
.field .hint { font-weight: 400; color: var(--muted); font-size: var(--t-sm); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 var(--t-base)/1.4 var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315302a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field input::placeholder, .field textarea::placeholder { color: #8a9893; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 91, 75, .22); }
.was-validated .field :is(input, select, textarea):invalid { border-color: var(--tomato); background: #fff6f5; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper);
  font-weight: 500; user-select: none; transition: background-color .15s, border-color .15s, color .15s;
}
.choice span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--ink-soft); border-radius: 3px; background: var(--white); flex: none; }
.choice input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); }
.choice input:checked + span::before { border-color: var(--white); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5b4b' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.choice input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 2px; }
.choice-group.is-invalid .choice span { border-color: var(--tomato); }
.group-error { display: none; color: var(--tomato-deep); font-size: var(--t-sm); font-weight: 600; }
.choice-group.is-invalid .group-error { display: block; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; padding: 16px 18px; border-radius: var(--radius); font-weight: 600; }
.form-status.is-error { display: block; background: #fdeceb; color: var(--tomato-deep); border: 1px solid #f3c2bf; }
.form-status.is-success { display: block; background: var(--green-wash); color: var(--green-deep); border: 1px solid #bcd2c5; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-actions p { color: var(--muted); font-size: var(--t-sm); max-width: 44ch; }

/* ---------- Content blocks for inner pages ---------- */

.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: var(--t-xl); letter-spacing: -0.03em; margin-bottom: 18px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.statement { padding-top: 22px; border-top: 2px solid var(--ink); }
.statement h3 { font-size: var(--t-sm); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.statement p { margin-top: 10px; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; line-height: 1.22; }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.figures div { padding: 28px 20px 28px 0; }
.figures div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.figures strong { display: block; font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.figures span { display: block; margin-top: 8px; color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div, .figures div + div { padding: 20px 14px 20px 0; border-left: 0; }
  .figures div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.layers { list-style: none; counter-reset: layer; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.layers li { counter-increment: layer; padding-top: 18px; border-top: 2px solid var(--ink); }
.layers h3 { font-size: var(--t-md); }
.layers p { margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 860px) { .layers { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .layers { grid-template-columns: minmax(0, 1fr); } }

.teams { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.teams li { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
@media (max-width: 860px) { .teams { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-nav { position: sticky; top: 104px; display: grid; gap: 2px; }
.faq-nav a { padding: 8px 12px; border-radius: var(--radius); color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.faq-nav a:hover { background: var(--green-wash); color: var(--ink); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: var(--t-xl); letter-spacing: -0.03em; padding-bottom: 16px; border-bottom: 2px solid var(--ink); scroll-margin-top: 100px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 20px 0; font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315302a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq .answer { padding: 0 0 24px; max-width: 64ch; color: var(--ink-soft); }
.faq .answer p + p, .faq .answer p + ol, .faq .answer ol + p { margin-top: 10px; }
.faq .answer ol { padding-left: 1.3em; display: grid; gap: 4px; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } .faq-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; } .faq-nav a { border: 1px solid var(--line-strong); } }

/* Result pages (thank you / error) and login */
.result { min-height: calc(100vh - 72px - 220px); display: grid; place-items: center; padding: var(--section) 0; }
.result .wrap { max-width: 640px; }
.result .mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 28px; }
.result .mark svg { width: 30px; height: 30px; }
.result .mark.ok { background: var(--green); color: var(--white); }
.result .mark.bad { background: var(--tomato); color: var(--white); }
.result h1 { font-size: var(--t-2xl); letter-spacing: -0.04em; }
.result p { margin-top: 16px; font-size: var(--t-md); color: var(--ink-soft); }
.result .btn-row { margin-top: 32px; }

/* PDF viewer */
.doc-viewer { height: calc(100vh - 72px); min-height: 520px; background: var(--white); }
.doc-viewer iframe { width: 100%; height: 100%; border: 0; }
.doc-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; }
.doc-bar h1 { font-size: var(--t-lg); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 36ch; }
.footer-brand .brand span { color: var(--white); }
.footer-brand .brand img { background: var(--white); border-radius: 50%; padding: 6px; width: 52px; }
.site-footer h2 { font-size: var(--t-sm); font-weight: 600; color: var(--white); letter-spacing: 0; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--t-sm); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
