/* Digital Village Market
   Brand from the pitch deck: Poppins, navy ink, lime, forest green, cream and sage.
   Figures, codes and prices use IBM Plex Mono. */

@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #f1f2e5;          /* deck cream, matches the hero photograph */
  --surface: #fbfbf5;     /* cards and panels */
  --field: #ffffff;       /* inputs */
  --sage: #e2e9d3;        /* section bands */
  --sage-strong: #cfdcb3;
  --ink: #0b2334;         /* deck navy */
  --ink-2: #364a59;
  --muted: #56636e;
  --line: rgba(11, 35, 52, 0.12);
  --line-strong: rgba(11, 35, 52, 0.24);
  --green: #1f6b45;       /* deck forest green */
  --green-hover: #175536;
  --lime: #a2c630;        /* deck lime */
  --lime-2: #bcd85f;
  --lime-3: #8eb126;
  --lime-4: #d2e597;
  --navy: #0b2334;
  --navy-2: #12304a;
  --on-dark: #eef1e4;
  --on-dark-2: #b6c2c9;
  --error: #b42318;
  --error-bg: #fdf3f1;

  --font: Poppins, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.15; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .16s var(--ease); }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
strong { font-weight: 600; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.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; }
.icon { flex: none; }
.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(100% - 48px, 1200px); } }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 8px; font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 10px; font: 500 16px/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: rgba(11, 35, 52, 0.05); color: var(--ink); border-color: rgba(11, 35, 52, 0.36); }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: var(--lime-2); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-link { padding: 0; border: 0; background: none; color: var(--green); font: 500 15px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { transition: transform .16s var(--ease); }
.text-link:hover .icon { transform: translateX(2px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; flex: none; color: var(--navy); text-decoration: none; border-radius: 4px; }
.logo svg { display: block; fill: currentColor; overflow: visible; }
.logo .logo-accent { fill: var(--lime-3); }
.logo-light { color: var(--on-dark); }
.logo-light svg { width: 88px; height: auto; }
.logo-light .logo-accent { fill: var(--lime); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav ul { display: flex; gap: 2px; list-style: none; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .16s var(--ease), color .16s var(--ease); }
.nav ul a:hover { background: rgba(11, 35, 52, 0.06); color: var(--ink); }
.nav ul a[aria-current="page"] { color: var(--ink); background: rgba(11, 35, 52, 0.07); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .16s var(--ease), border-color .16s var(--ease); }
.lang-switch:hover { background: rgba(11, 35, 52, 0.05); color: var(--ink); border-color: rgba(11, 35, 52, 0.36); }
.lang-switch .icon { color: var(--muted); }
@media (max-width: 1259px) { .lang-switch { margin-left: auto; min-height: 44px; } .header-inner .nav-toggle { margin-left: 8px; } }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle-close { display: none; }

@media (max-width: 1259px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 8px 16px 24px; flex-direction: column; align-items: stretch; gap: 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(11, 35, 52, 0.08); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav ul a[aria-current="page"] { background: none; color: var(--green); }
  .nav-cta { min-height: 48px; font-size: 16px; }
  .site-header[data-open] .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .site-header[data-open] .nav-toggle-open { display: none; }
  .site-header[data-open] .nav-toggle-close { display: inline; }
}
@media (max-width: 1259px) and (min-width: 640px) { .nav { padding-inline: 24px; } }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0 80px; }
.band-sage { background: var(--sage); }
.band-navy { background: var(--navy); color: var(--on-dark); }
.band-navy h2, .band-navy h3 { color: #fff; }
.section h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -0.015em; }
.section-title { margin-bottom: 32px; }
.h3, .section h2.h3 { font-size: 20px; letter-spacing: 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--ink-2); }
.section-foot { margin-top: 40px; }
.prose-block > * + * { margin-top: 16px; }
.prose-block p { color: var(--ink-2); font-size: 17px; }
.prose-block h2 + p { margin-top: 20px; }
.split { display: grid; gap: 40px; }
.split > *, .who > *, .form-layout > *, .flow-layout > *, .page-head-grid > *, .faq-layout > *, .legal > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.small-note { font-size: 14px; color: var(--muted); }
.muted-note { font-size: 15px; }
.band-navy .prose-block p { color: var(--on-dark-2); }
.band-navy .muted-note { color: var(--on-dark-2); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--bg); }
.hero-inner { position: relative; z-index: 2; }
.hero-text { padding: 48px 0 40px; }
.pilot-note { display: inline-flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.dot { flex: none; margin-top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-3); box-shadow: 0 0 0 3px rgba(162, 198, 48, 0.25); }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.05; letter-spacing: -0.025em; max-width: 13ch; }
.hero .lead { margin-top: 24px; max-width: 34rem; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.hero .actions { margin-top: 32px; }

.hero-visual { position: relative; }
.hero-field { position: absolute; top: 0; left: 0; width: 100%; height: 340px; object-fit: cover; object-position: 78% 50%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%); mask-image: linear-gradient(to bottom, transparent, #000 14%); }
.hero-stage { position: relative; padding-top: 256px; }
.hero-farmer { position: absolute; right: -16px; top: 16px; width: auto; height: 324px; }

/* the moment: a bulk request filling up */
.order-card { position: relative; z-index: 3; width: min(100%, 384px); padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(11, 35, 52, 0.06), 0 20px 48px rgba(11, 35, 52, 0.16); font-size: 14px; line-height: 1.4; }
.oc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.oc-head .mono { margin-left: 6px; color: var(--ink-2); }
.oc-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(31, 107, 69, 0.1); color: var(--green); font-weight: 500; }
.oc-title { margin-top: 12px; font-size: 18px; font-weight: 600; color: var(--ink); }
.oc-meta { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.oc-bar { display: flex; gap: 2px; height: 12px; margin-top: 16px; padding: 0; border-radius: 4px; background: rgba(11, 35, 52, 0.08); overflow: hidden; }
.oc-bar span { height: 100%; }
.s1 { background: var(--lime-3); } .oc-bar .s1 { width: 30%; }
.s2 { background: var(--lime); } .oc-bar .s2 { width: 20%; }
.s3 { background: var(--lime-2); } .oc-bar .s3 { width: 15.83%; }
.s4 { background: var(--lime-4); } .oc-bar .s4 { width: 11.67%; }
.oc-bar-label { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.oc-bar-label .mono { color: var(--ink); font-weight: 500; }
.oc-rows { list-style: none; margin-top: 12px; border-top: 1px solid var(--line); }
.oc-rows li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.oc-who { display: flex; flex-direction: column; font-weight: 500; color: var(--ink); min-width: 0; }
.oc-who small, .oc-qty small { font-size: 12px; font-weight: 400; color: var(--muted); }
.oc-qty { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; }
.oc-qty .ok { color: var(--green); }
.oc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.oc-foot p { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.oc-foot .mono { font-size: 13px; color: var(--ink); }
.order-card figcaption { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: 12px; color: var(--muted); }
.section-after-hero { padding-top: 64px; }

@media (min-width: 640px) and (max-width: 1099px) {
  .hero-field { height: 480px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%); mask-image: linear-gradient(to bottom, transparent, #000 14%); }
  .hero-stage { padding-top: 372px; }
  .hero-farmer { top: 24px; height: 456px; right: 0; }
  .section-after-hero { padding-top: 80px; }
}
@media (min-width: 1100px) {
  .hero { min-height: min(780px, calc(100vh - var(--header-h))); display: flex; align-items: center; }
  .hero-inner { width: min(100% - 48px, 1200px); }
  .hero-text { padding: 72px 0 120px; max-width: 560px; }
  .hero-visual { position: absolute; inset: 0; z-index: 1; }
  .hero-field { left: auto; right: 0; width: auto; max-width: none; height: 100%; object-fit: initial; -webkit-mask-image: none; mask-image: none; }
  .hero-stage { width: min(100% - 48px, 1200px); height: 100%; padding-top: 0; }
  .hero-farmer { top: auto; bottom: 0; right: 0; height: 86%; }
  .hero-visual .order-card { position: absolute; right: -16px; bottom: -64px; }
  .section-after-hero { padding-top: 144px; }
}
@media (min-width: 1280px) { .hero-farmer { right: 96px; } }
@media (max-width: 639px) {
  .hero-text { padding: 32px 0 24px; }
  .hero .lead { font-size: 17px; }
  .hero .actions .btn { flex: 1 1 auto; }
}

/* ---------- stats ---------- */
.stats { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.stats > div { display: grid; grid-template-columns: 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.stats dt { order: 2; font-size: 16px; color: var(--ink); }
.stats .stat-num { order: 1; font-size: clamp(36px, 4vw, 48px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--green); font-variant-numeric: tabular-nums; }
.stats .stat-src { order: 3; margin-top: 4px; font: 400 12px/1.5 var(--mono); color: var(--muted); }

/* ---------- route (five steps) ---------- */
.route { position: relative; display: grid; gap: 32px; list-style: none; counter-reset: step; }
.route li { position: relative; padding-left: 48px; counter-increment: step; }
.route li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); font: 500 14px var(--mono); color: var(--ink); }
.route li::after { content: ''; position: absolute; left: 15.5px; top: 36px; bottom: -28px; width: 1px; background: var(--line-strong); }
.route li:last-child::after { display: none; }
.route .route-end::before { background: var(--lime); border-color: var(--lime-3); }
.route h3 { font-size: 18px; }
.route p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.route .code { margin-top: 14px; }
@media (min-width: 900px) {
  .route { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .route li { padding-left: 0; padding-top: 52px; }
  .route li::before { top: 0; }
  .route li::after { left: 40px; right: -16px; top: 16px; bottom: auto; width: auto; height: 1px; }
}

/* signature: the 4-digit handover code */
.code { display: inline-flex; gap: 4px; vertical-align: middle; }
.code > span { display: grid; place-items: center; width: 28px; height: 34px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); box-shadow: inset 0 -2px 0 rgba(11, 35, 52, 0.07); font: 500 16px/1 var(--mono); color: var(--ink); }

/* ---------- audiences ---------- */
.who { display: grid; gap: 40px; }
.who-media img { width: 100%; max-height: 520px; object-fit: cover; object-position: 50% 30%; border-radius: 16px; }
.who-body h2 { margin-bottom: 8px; }
.who-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.who-row:last-child { border-bottom: 0; padding-bottom: 0; }
.who-row h3 { font-size: 20px; }
.who-row p { margin: 8px 0 12px; color: var(--ink-2); }
@media (min-width: 900px) {
  .who { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .who-media img { max-height: 640px; }
}

/* ---------- smart price board ---------- */
.split-price { align-items: center; }
.board { border-radius: 16px; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.08); }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.board-head h3 { font-size: 16px; font-weight: 500; }
.board-head .mono { font-size: 12px; color: var(--on-dark-2); }
.board-scroll { overflow-x: auto; }
.board table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 15px; }
.board th, .board td { padding: 12px 20px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.board td:first-of-type { white-space: nowrap; }
.board .per { font-size: 13px; }
@media (max-width: 519px) { .board th, .board td { padding: 12px 14px; } .board td:first-of-type { white-space: normal; } }
.board thead th { padding-top: 10px; padding-bottom: 10px; font-size: 12px; font-weight: 400; color: var(--on-dark-2); }
.board tbody th { font-weight: 500; color: #fff; }
.board td { color: var(--on-dark-2); }
.board .num { text-align: right; white-space: nowrap; }
.board td.num .mono { color: #fff; }
.board tr:last-child th, .board tr:last-child td { border-bottom: 0; }
.board .is-lead td.num .mono { color: var(--navy); background: var(--lime); padding: 2px 6px; border-radius: 4px; }
.board-scroll:focus-visible { outline-color: var(--lime); outline-offset: -2px; }
.board-note { margin-top: 12px; font-size: 13px; color: var(--on-dark-2); }

/* ---------- categories ---------- */
.cat-list { display: grid; list-style: none; border-top: 1px solid var(--line-strong); }
.cat-list a { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: color .16s var(--ease); }
.cat-list a:hover .cat-name { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cat-name { font-weight: 500; font-size: 17px; }
.cat-eg { font-size: 14px; color: var(--muted); }
@media (min-width: 640px) { .cat-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1000px) { .cat-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- coffee and tomatoes ---------- */
.crops { display: grid; gap: 20px; }
@media (min-width: 900px) { .crops { grid-template-columns: 1fr 1fr; gap: 24px; } }
.crop { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.crop h3 { font-size: 24px; letter-spacing: -0.01em; }
.crop > p { color: var(--ink-2); }
.crop dl { border-top: 1px solid var(--line); }
.crop dl > div { display: grid; grid-template-columns: 10rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.crop dt { color: var(--muted); }
.crop .crop-note { padding: 12px 14px; border-radius: 10px; background: var(--sage); font-size: 14px; color: var(--ink-2); }
.crop .text-link { margin-top: auto; }
@media (max-width: 479px) { .crop { padding: 20px; } .crop dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- pilot figures ---------- */
.figures-title { font-size: 16px; font-weight: 500; color: var(--ink-2); margin-bottom: 16px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.figures > div:nth-child(odd) { padding-right: 16px; }
.figures > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-strong); }
.figures dd { font-size: clamp(36px, 4vw, 48px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.figures dt { margin-top: 4px; font-size: 15px; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.015em; max-width: 22ch; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, 0.82); }

/* ---------- inner page head ---------- */
.page-head { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.025em; max-width: 18ch; }
.page-head .lead { margin-top: 20px; max-width: 40rem; font-size: 18px; color: var(--ink-2); }
.page-head .actions { margin-top: 32px; }
.page-head-solo { max-width: 860px; }
.page-head-grid { display: grid; gap: 40px; align-items: center; }
.page-head-media img { width: 100%; border-radius: 16px; object-fit: cover; }
@media (min-width: 900px) {
  .page-head { padding: 72px 0; }
  .page-head-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; }
  .page-head-media { justify-self: end; width: 100%; }
  .page-head-media.tall img { max-height: 480px; }
}
@media (max-width: 899px) {
  .page-head-media img { max-height: 320px; }
}
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; max-width: 46rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 15px; color: var(--ink-2); }
.notice .icon { margin-top: 3px; color: var(--green); }

/* ---------- info grid and rules ---------- */
.info-grid { display: grid; gap: 0 40px; border-top: 1px solid var(--line-strong); }
.info-block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.info-block h3 { font-size: 18px; }
.info-block p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .info-grid:has(> :nth-child(3):last-child), .info-grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); } }

.rules { border-top: 1px solid var(--line-strong); }
.rules > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules dt { font-weight: 500; }
.rules dd { margin-top: 4px; color: var(--ink-2); }
.steps-plain { list-style: none; counter-reset: s; }
.steps-plain li { position: relative; padding: 0 0 16px 40px; counter-increment: s; color: var(--ink-2); }
.steps-plain li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font: 500 13px var(--mono); color: var(--ink); background: var(--surface); }
.steps-plain strong { color: var(--ink); font-weight: 500; }

/* ---------- how it works timeline ---------- */
.flow-layout { display: grid; gap: 40px; }
.flow-intro p { margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.flow-codes { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.flow-intro .flow-codes p { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.flow-codes dl { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 12px; }
.flow-codes dt { font-size: 13px; color: var(--muted); }
.flow-codes dd { margin-top: 6px; }
@media (min-width: 900px) {
  .flow-layout { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
  .flow-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.timeline { list-style: none; counter-reset: tl; }
.timeline li { position: relative; padding: 0 0 28px 56px; counter-increment: tl; }
.timeline li::before { content: counter(tl); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); font: 500 14px var(--mono); }
.timeline li::after { content: ''; position: absolute; left: 17.5px; top: 40px; bottom: 4px; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline .tl-end::before { background: var(--lime); border-color: var(--lime-3); color: var(--navy); }
.tl-who { display: block; font-size: 12px; color: var(--muted); }
.timeline li > h3:first-child { margin-top: 6px; }

/* checklist box beside the registration steps */
.reg-ready { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.reg-ready h3 { font-size: 15px; font-weight: 500; }
.reg-ready ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.reg-ready li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.reg-ready .icon { margin-top: 4px; color: var(--green); }
.timeline h3 { margin-top: 2px; font-size: 19px; }
.timeline p { margin-top: 4px; color: var(--ink-2); }

/* ---------- browse ---------- */
.filters { display: grid; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.filter label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.filter-check { display: flex; align-items: center; gap: 10px; }
.filter-check label { margin: 0; font-size: 15px; }
.filter-check input { width: 22px; height: 22px; accent-color: var(--green); }
.input-icon { position: relative; display: block; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 42px; }
@media (min-width: 720px) { .filters { grid-template-columns: 1fr 1fr; } .filter-search { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; } .filter-search { grid-column: auto; } .filter-check { height: 48px; } }
.results-bar { display: flex; align-items: center; gap: 16px; margin: 24px 0 16px; }
.results-count { font-size: 15px; color: var(--ink-2); }
.listings { display: grid; gap: 16px; list-style: none; }
@media (min-width: 680px) { .listings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .listings { grid-template-columns: repeat(3, 1fr); } }
.listing[hidden] { display: none; }
.listing article { display: flex; flex-direction: column; height: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.listing-cat { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.listing-cat span:last-child { text-align: right; }
.listing h3 { margin-top: 8px; font-size: 20px; }
.listing-seller { display: flex; flex-wrap: wrap; column-gap: 12px; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.listing-seller span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.listing-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.listing-prices dt { font-size: 12px; color: var(--muted); }
.listing-prices dd { font-size: 14px; color: var(--ink-2); }
.listing-prices dd .mono { font-size: 15px; font-weight: 500; color: var(--ink); }
.listing-prices small { display: block; font-size: 12px; color: var(--muted); }
.listing-guide { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.listing-guide .mono { color: var(--ink); }
.listing-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; list-style: none; font-size: 13px; color: var(--ink-2); }
.listing-meta li { display: inline-flex; align-items: center; gap: 6px; }
.listing-meta .icon { color: var(--muted); }
.listing-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-size: 15px; font-weight: 500; text-decoration: none; }
.listing-cta:hover { text-decoration: underline; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 14px; }
.empty h2 { font-size: 22px; }
.empty p { margin: 8px auto 24px; max-width: 36rem; color: var(--ink-2); }
.empty .actions { justify-content: center; }
.browse-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 48px; padding: 28px; border-radius: 16px; background: var(--sage); }
.browse-foot h2 { font-size: 22px; letter-spacing: 0; }
.browse-foot p { margin-top: 6px; color: var(--ink-2); max-width: 40rem; }

/* ---------- forms ---------- */
.form-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .form-layout { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; } }
.form-aside > * + * { margin-top: 16px; }
.form-aside p { color: var(--ink-2); }
.aside-media img { border-radius: 14px; width: 100%; }
.form-panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
@media (min-width: 640px) { .form-panel { padding: 32px; } }
.form { display: grid; gap: 24px; }
.form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 20px; }
.form legend { padding: 0; margin-bottom: 16px; font-size: 18px; font-weight: 600; }
.form fieldset + fieldset { padding-top: 24px; border-top: 1px solid var(--line); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field > label, .field > .label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; }
.opt { font-weight: 400; color: var(--muted); }
.hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--field); color: var(--ink); font: 400 16px/1.4 var(--font); transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7d8891; }
input:hover, select:hover, textarea:hover { border-color: rgba(11, 35, 52, 0.4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 107, 69, 0.18); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2356636e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.qty-group { display: grid; grid-template-columns: 1fr 112px; gap: 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--field); cursor: pointer; font-size: 15px; transition: border-color .16s var(--ease), background-color .16s var(--ease); }
.choice-row label:has(input:checked) { border-color: var(--green); background: rgba(31, 107, 69, 0.06); }
.choice-row input, .check input { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--green); box-shadow: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin-top: 2px; }
.check label { font-size: 15px; color: var(--ink-2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--error); }
.check .field-error { grid-column: 2; margin-top: 0; }
.error-summary { padding: 16px 20px; border: 2px solid var(--error); border-radius: 12px; background: var(--error-bg); }
.error-summary h3 { font-size: 17px; }
.error-summary ul { margin-top: 8px; padding-left: 20px; }
.error-summary a { color: var(--error); font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { min-width: 200px; }
.form[aria-busy="true"] button[type="submit"] { opacity: 0.6; pointer-events: none; }
.form-status { font-size: 15px; color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: grid; gap: 12px; justify-items: start; }
.form-done h3 { font-size: 22px; }
.form-done p { color: var(--ink-2); }
.preview-flag { padding: 10px 14px; border-radius: 8px; background: var(--sage); font-size: 14px; }
.contact-lines { list-style: none; display: grid; gap: 10px; }
.contact-lines li { display: flex; align-items: center; gap: 10px; }
.contact-lines .icon { color: var(--muted); }
.contact-lines.on-dark { margin-top: 20px; }
.contact-lines.on-dark a, .contact-lines.on-dark span { color: var(--on-dark); }
.contact-lines.on-dark .icon { color: var(--on-dark-2); }

/* ---------- about ---------- */
.founder { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.founder img { width: 140px; height: 180px; object-fit: cover; object-position: 50% 20%; border-radius: 10px; }
.founder-name { font-size: 18px; font-weight: 600; }
.founder-role { font-size: 14px; color: var(--muted); }
.founder figcaption p:last-child { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 480px) { .founder { grid-template-columns: 1fr; } .founder img { width: 160px; height: 206px; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 32px; }
.faq-nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.faq-nav a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; transition: background-color .16s var(--ease); }
.faq-nav a:hover { background: rgba(11, 35, 52, 0.05); }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: 220px 1fr; gap: 64px; }
  .faq-nav { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .faq-nav ul { flex-direction: column; gap: 2px; }
  .faq-nav a { display: block; border: 0; padding: 8px 12px; }
}
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { margin-bottom: 8px; font-size: 26px; }
.faq-groups details { border-bottom: 1px solid var(--line); }
.faq-groups summary { position: relative; display: block; padding: 18px 40px 18px 0; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-groups summary::-webkit-details-marker { display: none; }
.faq-groups summary::after { content: ''; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq-groups details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq-groups summary:hover { color: var(--green); }
.faq-groups details p { padding: 0 40px 20px 0; max-width: 46rem; color: var(--ink-2); }

/* ---------- legal ---------- */
.legal { display: grid; gap: 32px; }
.legal-toc ol { list-style: none; display: grid; gap: 2px; font-size: 15px; }
.legal-toc a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--green); text-decoration: underline; }
@media (min-width: 960px) {
  .legal { grid-template-columns: 220px minmax(0, 46rem); gap: 64px; }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
@media (max-width: 959px) { .legal-toc { padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); } .legal-toc ol { grid-template-columns: 1fr 1fr; column-gap: 16px; } }
.legal-body h2 { margin: 40px 0 12px; font-size: 22px; letter-spacing: 0; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 12px; }
.legal-body ul { padding-left: 20px; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--muted); }
.legal-body strong { color: var(--ink); font-weight: 500; }

/* ---------- 404 ---------- */
.page-404 { padding: 120px 0; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; max-width: 360px; }
.footer-brand p { margin-top: 20px; }
.footer-col h2 { font-size: 14px; font-weight: 500; color: #fff; }
.footer-col ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.footer-col a, .footer-base a { color: var(--on-dark-2); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }
.site-footer :focus-visible { outline-color: var(--lime); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); } .footer-brand { grid-column: auto; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-visual .order-card { animation: rise .5s var(--ease) both; }
  .hero-visual .order-card { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
}
