/* Kawali — kawali.app
   Brand (from the app's designer; hex is the source of truth): Chile Rojo #AE431E for everything tappable,
   Terracota #D06224 for the brand mark and step numbers, Olive #8A8635 for notices, Sunset #EAC891 for the
   hairlines that frame content. Light only, like the app. Type: Bitter (headings, self-hosted Latin subsets,
   SIL OFL) over the system font for body copy, as in the app. The site makes no third-party requests. */

@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-medium-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --paper: #fbf5ec;
  --paper-2: #f6ead8;
  --sunset: #eac891;
  --sunset-soft: rgba(234, 200, 145, 0.28);
  --line: #eac891;
  --line-soft: rgba(234, 200, 145, 0.6);
  --ink: #231f20;
  --ink-soft: #3d3431;
  --muted: #6b5d55;
  --dim: #7a6e66;
  --chile: #ae431e;
  --chile-dark: #93381a;
  --chile-soft: rgba(174, 67, 30, 0.08);
  --terracota: #d06224;
  --olive: #8a8635;
  --olive-ink: #6f6b28;
  --olive-soft: rgba(138, 134, 53, 0.13);
  --stripes: linear-gradient(180deg, var(--terracota) 0 25%, var(--chile) 25% 50%, var(--olive) 50% 75%, var(--sunset) 75% 100%);
  --serif: "Bitter", ui-serif, "Rockwell", Georgia, "Times New Roman", serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --shadow: 0 1px 2px rgba(35, 31, 32, 0.05), 0 12px 32px rgba(93, 45, 18, 0.08);
}

/* ---------- Reset & base ---------- */
*, *::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(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
.steps-grid, .shots, .pro-list, .hero-meta, .nav-links, .footer-links, .doc-toc, .platforms, .chips, .pills, .pillars, .groc-points, .mock-rows, .stats, .terms, .chips--regions, .credits-list { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--chile); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sunset); color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--chile); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The four brand stripes from the app icon: Terracota, Chile Rojo, Olive, Sunset */
.stripes { height: 16px; background: var(--stripes); }

/* ---------- Logo: the pan and the wordmark ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-pan { width: 34px; height: 34px; flex: none; }
.wordmark {
  display: inline-block;
  aspect-ratio: 465.71 / 103.78;
  height: 26px;
  background: var(--chile);
  -webkit-mask: url("../img/wordmark.svg") no-repeat center / contain;
  mask: url("../img/wordmark.svg") no-repeat center / contain;
}
.wordmark--lg { height: clamp(40px, 6vw, 56px); }
.wordmark--ink { background: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 66px; }
.nav-brand { display: inline-flex; align-items: center; padding: 6px 0; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 1rem; transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--chile); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, top 0.2s ease; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--serif); font-weight: 600; font-size: 1rem; letter-spacing: 0;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--chile); color: #fff; }
.btn-primary:hover { background: var(--chile-dark); box-shadow: 0 8px 24px rgba(174, 67, 30, 0.25); }
.btn-ghost { background: transparent; color: var(--chile); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--chile); background: var(--chile-soft); }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* App Store. Until the listing is live the badge is a plain "coming soon" label: Apple's official badge may
   only link to the app itself. See the README for the swap. */
.store-soon {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 20px 0 16px;
  border-radius: 12px; background: var(--ink); color: #fff; line-height: 1.1;
}
.store-soon svg { width: 22px; height: 22px; color: var(--sunset); flex: none; }
.store-soon small { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.store-soon strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.badge-link { display: inline-block; line-height: 0; border-radius: 8px; transition: transform 0.15s ease, opacity 0.15s ease; }
.badge-link img { height: 54px; width: auto; }
.badge-link:hover { transform: translateY(-1px); opacity: 0.94; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--paper); }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--chile);
  font-size: 1.2rem; line-height: 1.3; margin-bottom: 12px;
}
.eyebrow--light { color: var(--sunset); }
h2.title { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.02em; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); margin-top: 16px; }
.lede strong { color: var(--ink); font-weight: 600; }

/* Decorative ingredient sketches from the App Store artwork, tinted through a mask */
.sketch {
  position: absolute; pointer-events: none; background: currentColor;
  -webkit-mask: var(--src) no-repeat center / contain; mask: var(--src) no-repeat center / contain;
}
.sketch--fish { --src: url("../img/sketch-fish.webp"); aspect-ratio: 520 / 388; }
.sketch--pork { --src: url("../img/sketch-pork.webp"); aspect-ratio: 480 / 526; }
.sketch--cabbage { --src: url("../img/sketch-cabbage.webp"); aspect-ratio: 460 / 455; }
.sketch--produce { --src: url("../img/sketch-produce.webp"); aspect-ratio: 600 / 415; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); isolation: isolate; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; color: var(--sunset); }
.hero-bg .sketch { opacity: 0.55; }
.hero-bg .sketch--fish { width: min(34vw, 420px); right: -4%; top: 2%; transform: rotate(-8deg); }
.hero-bg .sketch--produce { width: min(36vw, 460px); left: -6%; bottom: 4%; transform: rotate(6deg); opacity: 0.4; }
.hero + .stripes { height: 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-copy .eyebrow { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 .accent { color: var(--chile); font-style: italic; font-weight: 500; }
.hero-sub { margin-top: 22px; font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 34rem; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--chile); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.08; max-width: 520px; margin-inline: auto; width: 100%; }
.phone {
  position: absolute; width: 50%; border-radius: 34px; overflow: hidden; background: #111;
  border: 7px solid #1c1a19; box-shadow: 0 30px 60px rgba(93, 45, 18, 0.22), 0 6px 16px rgba(35, 31, 32, 0.12);
}
.phone img { width: 100%; height: auto; }
.phone--a { left: 3%; top: 4%; transform: rotate(-6deg); z-index: 1; }
.phone--b { right: 3%; top: 13%; transform: rotate(5deg); z-index: 2; }
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-size: 0.92rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(93, 45, 18, 0.16);
}
.chip .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--chile); color: #fff; display: inline-grid; place-items: center; flex: none; }
.chip .dot svg { width: 14px; height: 14px; }
.chip em { font-style: normal; color: var(--muted); font-weight: 500; }
.chip--tl { left: -4%; top: 58%; }
.chip--br { right: -2%; bottom: 1%; }

/* ---------- Steps band ---------- */
.steps { background: var(--chile); color: #fff; overflow: hidden; isolation: isolate; }
.steps .sketch { color: #9c3a19; z-index: -1; }
.steps .sketch--pork { width: min(30vw, 360px); right: -3%; top: -6%; transform: rotate(10deg); }
.steps .sketch--cabbage { width: min(26vw, 300px); left: -5%; bottom: -10%; transform: rotate(-12deg); }
.steps .title { color: #fff; }
.steps .lede { color: rgba(255, 255, 255, 0.88); }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2); }
.step-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.step-num { font-family: var(--serif); font-weight: 700; font-size: 3.4rem; line-height: 0.85; color: var(--sunset); }
.step-icon { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--chile); display: grid; place-items: center; flex: none; }
.step-icon svg { width: 28px; height: 28px; }
.step h3 { font-size: 1.4rem; margin-bottom: 6px; }
.step p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 1rem; line-height: 1.5; }

/* Platforms */
.works { margin-top: clamp(36px, 5vw, 56px); padding: 22px 26px; border-radius: var(--radius); background: #fff; color: var(--ink); display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.works-label { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.98rem; }
.platforms svg { width: 26px; height: 26px; flex: none; }
.works-more { color: var(--muted); font-size: 0.98rem; margin: 0; flex-basis: 100%; }
.works-more strong { color: var(--ink); font-weight: 600; }

/* ---------- Bento cards ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.card h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.card p + p { margin-top: 0.7em; }
.card p strong { color: var(--ink); font-weight: 600; }
.card .card-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.card-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--chile-soft); color: var(--chile); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg { width: 26px; height: 26px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.card--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.card--split-rev .card-body { order: 2; }

/* A recipe card drawn the way the app draws one: Sunset hairlines, Bitter titles, SF rows */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); font-size: 0.98rem; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.mock-title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--chile); }
.mock-action { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--chile); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.mock-action svg { width: 14px; height: 14px; }
.mock-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--sunset-soft); }
.mock-rows li:nth-child(odd) { background: rgba(234, 200, 145, 0.1); }
.mock-name { font-weight: 600; color: var(--ink); min-width: 0; }
.mock-name span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--dim); }
.mock-amt { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mock-missing { color: var(--olive-ink); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }

/* Olive notices, as in the app */
.notices { display: grid; gap: 8px; margin-top: auto; padding-top: 22px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--olive-soft); color: var(--olive-ink); font-weight: 600; font-size: 0.93rem; line-height: 1.4; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Import buttons, as on the Import screen */
.import-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.import-way { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-family: var(--serif); font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-align: center; color: var(--chile); box-shadow: var(--shadow); }
.import-way svg { width: 22px; height: 22px; flex: none; }
.import-way--wide { grid-column: span 2; flex-direction: row; gap: 10px; font-size: 1.02rem; background: var(--chile); color: #fff; border-color: var(--chile); }
.import-way--wide svg { width: 30px; }
.import-note { grid-column: span 2; margin: 4px 0 0; color: var(--dim) !important; font-size: 0.9rem !important; text-align: center; }

/* Watching badge: the hourglass the app puts on a recipe still being watched */
.watching { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.watching-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; flex: none; }
.watching-icon svg { width: 18px; height: 18px; }
.watching strong { display: block; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.25; }
.watching > div > span { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
.watching-wrap { margin-top: auto; padding-top: 22px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.pill svg { width: 15px; height: 15px; color: var(--chile); }

.serving-demo { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 22px; }
.serving-est { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; color: var(--olive-ink); line-height: 1; }
.serving-demo p { font-size: 0.9rem !important; line-height: 1.4; }
.serving-use { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 8px; background: var(--chile); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 0.82rem; }

.source-demo { margin-top: auto; padding-top: 22px; }
.source-box { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.source-box div { padding: 10px 12px; min-width: 0; flex: 1; }
.source-box strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 0.98rem; }
.source-box span { display: block; color: var(--dim); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-box i { display: grid; place-items: center; width: 48px; background: var(--chile); color: #fff; flex: none; }
.source-box i svg { width: 20px; height: 20px; }

/* ---------- Groceries ---------- */
.groc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.groc-points { display: grid; gap: 18px; }
.groc-points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.groc-points .pt-icon { width: 44px; height: 44px; border-radius: 13px; background: #fff; border: 1px solid var(--line); color: var(--chile); display: grid; place-items: center; }
.groc-points .pt-icon svg { width: 24px; height: 24px; }
.groc-points h3 { font-size: 1.15rem; margin-bottom: 4px; }
.groc-points p { margin: 0; color: var(--muted); }
.groc-phone { position: relative; max-width: 340px; margin-inline: auto; width: 100%; }
.groc-phone .phone { position: relative; width: 100%; transform: rotate(2deg); }
.groc-phone .sketch { color: var(--sunset); width: 72%; opacity: 0.8; }
.groc-phone .sketch--produce { left: -46%; top: 6%; transform: rotate(-10deg); }
.groc-phone .sketch--fish { right: -40%; bottom: 4%; transform: rotate(8deg); }

/* ---------- Filipino food: stats, dish families, regions ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: clamp(32px, 5vw, 48px); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.stat b { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--terracota); letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.stat small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.chip-group + .chip-group { margin-top: 34px; }
.chip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-head h3 { font-size: 1.25rem; }
.chip-head p { margin: 0; color: var(--dim); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--serif); font-weight: 600; font-size: 0.98rem; color: var(--chile); }
.chips--regions li { background: var(--sunset-soft); color: var(--ink-soft); border-color: transparent; font-weight: 500; }
.terms { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.term { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.term b { display: block; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.term span { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.35; }

/* ---------- Screenshot strip ---------- */
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px;
  margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: rgba(174, 67, 30, 0.35) transparent;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: rgba(174, 67, 30, 0.3); border-radius: 999px; }
.shot { flex: 0 0 auto; width: min(72vw, 300px); scroll-snap-align: start; border-radius: 22px; overflow: hidden; background: var(--terracota); box-shadow: 0 18px 36px rgba(93, 45, 18, 0.16); }
.shot img { width: 100%; height: auto; }
@media (min-width: 1200px) {
  .shots { justify-content: center; padding-inline: 0; margin-inline: 0; }
  .shot { width: calc((var(--container) - 5 * 18px) / 6); }
}
.credits { margin-top: 8px; color: var(--dim); font-size: 0.88rem; }
.credits summary { cursor: pointer; display: inline-block; color: var(--muted); font-weight: 600; }
.credits summary:hover { color: var(--chile); }
.credits-list { margin-top: 10px; display: grid; gap: 4px; max-width: 60rem; }
.credits a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.credits a:hover { color: var(--chile); }

/* ---------- Privacy pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; min-width: 0; }
.pillar .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--chile-soft); color: var(--chile); display: grid; place-items: center; margin-bottom: 18px; }
.pillar .icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--chile); font-weight: 600; margin-top: 22px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- CTA band ---------- */
.cta { background: var(--sunset); color: var(--ink); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta .sketch { color: #dfb676; z-index: -1; }
.cta .sketch--fish { width: min(30vw, 360px); left: -4%; top: 10%; transform: rotate(-14deg); }
.cta .sketch--produce { width: min(32vw, 400px); right: -5%; bottom: 0; transform: rotate(8deg); }
.cta-logo { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cta-logo .logo-pan { width: clamp(52px, 7vw, 68px); height: auto; }
.cta .title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.cta .lede { color: #5e4a3a; max-width: 36rem; margin-inline: auto; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0 40px; color: var(--muted); font-size: 0.95rem; background: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand p { margin: 12px 0 0; max-width: 28rem; color: var(--dim); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--chile); }
.footer-meta { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; color: var(--dim); font-size: 0.86rem; }

/* ---------- Document pages (privacy, support) ---------- */
.doc-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(16px, 3vw, 28px); }
.doc-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
.doc-meta { margin-top: 16px; color: var(--muted); display: grid; gap: 4px; font-size: 1rem; }
.doc-meta strong { color: var(--ink); font-weight: 600; }
.doc { max-width: 46rem; padding-bottom: var(--section); }
.doc h2 { font-size: 1.5rem; margin: 2.2em 0 0.6em; scroll-margin-top: 90px; }
.doc h3 { font-size: 1.15rem; margin: 1.6em 0 0.5em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.5em; }
.doc li::marker { color: var(--chile); }
.doc a { color: var(--chile); text-decoration: underline; text-decoration-color: rgba(174, 67, 30, 0.35); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--chile); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .summary { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--chile); border-radius: 16px; padding: 20px 24px; margin: 28px 0 8px; }
.doc .summary p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 0.98rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.doc th { color: var(--muted); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.doc td { color: var(--ink-soft); }
.doc .table-wrap { overflow-x: auto; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.doc-toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.doc-toc a:hover { color: var(--chile); border-color: var(--chile); }

/* Support */
.support-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: var(--section); }
.contact-card { background: #fff; border: 1.5px solid var(--chile); border-radius: var(--radius); padding: 28px; position: sticky; top: 90px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.contact-card p { color: var(--muted); }
.contact-card .email { font-size: 1.1rem; font-weight: 600; color: var(--chile); word-break: break-all; }
.contact-card ul { color: var(--muted); font-size: 0.95rem; padding-left: 1.2em; margin-top: 8px; }
.contact-card li { margin-bottom: 4px; }
.contact-card li::marker { color: var(--chile); }
.contact-card .btn { margin-top: 22px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq details[open] { border-color: var(--chile); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--chile); border-bottom: 2px solid var(--chile); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .answer p { margin: 0 0 0.8em; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ol, .faq .answer ul { padding-left: 1.3em; margin: 0.4em 0 0.8em; }
.faq .answer li { margin-bottom: 0.35em; }
.faq .answer li::marker { color: var(--chile); }
.faq .answer a { color: var(--chile); text-decoration: underline; text-underline-offset: 3px; }
.faq .answer strong { color: var(--ink); font-weight: 600; }
.faq-group + .faq-group h2 { margin-top: 36px; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 14px; }

/* Kusina: the article index and the articles, which build on the document styles */
.post-hero { position: relative; isolation: isolate; }
.post-hero .sketch { color: var(--sunset); z-index: -1; opacity: 0.45; width: min(30vw, 340px); right: -2%; top: 18%; transform: rotate(6deg); }
.post-hero h1 { max-width: 20ch; }
.post-dek { max-width: 40rem; }
.post-crumbs { display: flex; gap: 8px; align-items: baseline; margin-bottom: 14px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--chile); }
.post-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-crumbs span[aria-hidden] { color: var(--line); font-style: normal; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 18px 0 0; color: var(--dim); font-size: 0.95rem; }
.post-meta > * + *::before { content: "·"; margin: 0 10px; color: var(--sunset); }
.post p, .post li { line-height: 1.7; }
.post > p:first-child { font-size: 1.12rem; color: var(--ink); }
.post h2 { font-size: clamp(1.5rem, 2.6vw, 1.8rem); }
.post-note { margin: 2.6em 0 1.6em; padding: 22px 24px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.post-note p { margin-bottom: 0; }
.post-note .link-arrow { margin-top: 14px; text-decoration: none; }
.post .post-sources { padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 0.92rem; }
.post-list { list-style: none; margin: 0; padding: 0 0 var(--section); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; height: 100%; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.post-card:hover { border-color: var(--chile); box-shadow: var(--shadow); }
.post-kind { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--chile); margin-bottom: 8px; }
.post-card h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin-bottom: 10px; }
.post-card p { color: var(--muted); margin: 0; }
.post-card .post-meta { margin-top: auto; padding-top: 18px; font-size: 0.9rem; }
@media (max-width: 640px) { .post-hero .sketch { display: none; } }

/* Embedded in an iframe: hide the chrome, keep the document */
.embedded .site-header, .embedded .site-footer, .embedded .stripes { display: none; }
.embedded .doc-hero { padding-top: 8px; }

/* 404 */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); position: relative; overflow: hidden; isolation: isolate; }
.notfound .sketch { color: var(--sunset); z-index: -1; opacity: 0.6; width: min(40vw, 380px); left: 50%; top: 6%; transform: translateX(-50%) rotate(-6deg); }
.notfound .big { font-family: var(--serif); font-weight: 700; font-size: clamp(6rem, 20vw, 11rem); line-height: 0.9; color: var(--terracota); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin-top: 8px; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2, .span-3, .span-4 { grid-column: span 3; }
  .card--split { grid-template-columns: 1fr; }
  .bento > .card:last-child { grid-column: span 6; }
  .card--split-rev .card-body { order: 0; }
  .groc-grid { grid-template-columns: 1fr; }
  .groc-phone { max-width: 300px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
}
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--line); padding: 8px 0 12px;
  }
  .nav-links li a { display: block; padding: 12px var(--gutter); font-size: 1.05rem; }
  .nav-open .nav-links { display: flex; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 6; }
  .bento { gap: 14px; }
  .nav-cta .btn { display: none; }
  .logo-pan { width: 30px; height: 30px; }
  .wordmark { height: 23px; }
  .hero-cta { gap: 14px; }
  .chip { font-size: 0.82rem; padding: 7px 12px 7px 8px; }
  .chip .dot { width: 22px; height: 22px; }
  .chip--tl { left: 0; top: 60%; }
  .chip--br { right: 0; bottom: -2%; }
  .works { padding: 18px; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .term { padding: 10px 12px; }
  .import-ways { grid-template-columns: 1fr 1fr; }
  .stats { gap: 12px; }
  .stat { padding: 18px 16px; }
  .footer-links { gap: 18px; }
  .hero-bg .sketch--fish { width: 60vw; right: -22%; top: -2%; }
  .hero-bg .sketch--produce { display: none; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .store-soon strong { font-size: 1rem; }
}
