/* Cropite site styles. Tokens from the Cropite design system.
   Layout idea: patterns from current startup sites. Centred hero with an announcement pill over a product
   "app window"; rounded bento cards; pill buttons and badges; tabbed product showcase; two-column FAQ; a giant
   footer wordmark. No clip-path cut shapes.
   Rules: one page ground for header, sections and footer; sections separate by space only; no lines between
   sections; no gradients, no transparency effects, no shadows of any kind. Only form inputs have a border. */

:root {
  --surface: #F3F6F1; --surface-raised: #FFFFFF; --surface-sunken: #E3EADF;
  --ink: #111A13; --ink-muted: #4A574D;
  --brand: #1B7D35; --brand-strong: #11612A; --brand-soft: #D9EED6; --on-brand: #FFFFFF;
  --accent: #8A2D5C; --on-accent: #FFFFFF; --accent-soft: #F4E0EA; --accent-ink: #7A2550;
  --healthy: #1E5BB8; --healthy-soft: #DCE7F8; --action: #A3470A; --action-soft: #FCE4D3;
  --field-border: #6B786E; --focus: #11612A;
  --soil: #CFD8C9; --soil-line: #B9C5B1; --dot: #B9C5B1;
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-text: Figtree, "Helvetica Neue", Arial, sans-serif;
  --font-data: "Fragment Mono", ui-monospace, Menlo, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 24px; --radius-xl: 32px; --radius-pill: 999px; --radius-field: 12px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --gap: var(--space-4);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0D130F; --surface-raised: #162019; --surface-sunken: #080C09;
    --ink: #E6EFE7; --ink-muted: #A2B2A5;
    --brand: #5CC27A; --brand-strong: #8FDBA4; --brand-soft: #143A1F; --on-brand: #06210F;
    --accent: #E58AB4; --on-accent: #2A0716; --accent-soft: #3B1428; --accent-ink: #F2A9CB;
    --healthy: #8AB8FF; --healthy-soft: #13243F; --action: #FF9F5A; --action-soft: #3A1E0B;
    --field-border: #738377; --focus: #8FDBA4; --soil: #1F2A22; --soil-line: #2B392E; --dot: #3A4A3E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #0D130F; --surface-raised: #162019; --surface-sunken: #080C09;
  --ink: #E6EFE7; --ink-muted: #A2B2A5;
  --brand: #5CC27A; --brand-strong: #8FDBA4; --brand-soft: #143A1F; --on-brand: #06210F;
  --accent: #E58AB4; --on-accent: #2A0716; --accent-soft: #3B1428; --accent-ink: #F2A9CB;
  --healthy: #8AB8FF; --healthy-soft: #13243F; --action: #FF9F5A; --action-soft: #3A1E0B;
  --field-border: #738377; --focus: #8FDBA4; --soil: #1F2A22; --soil-line: #2B392E; --dot: #3A4A3E;
  color-scheme: dark;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.6 var(--font-text); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img, svg, canvas { max-width: 100%; }
a { color: var(--brand-strong); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--surface); padding: 10px 16px; font-weight: 600; border-radius: var(--radius-pill); }
.skip:focus { top: 12px; }
.wrap { max-width: 1232px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.mono { font-family: var(--font-data); font-size: .92em; }
.muted { color: var(--ink-muted); }
.small { font-size: 15px; line-height: 1.55; }
.sel { user-select: all; -webkit-user-select: all; }

/* ---------- type */
.d-1 { font: 800 clamp(44px, 7vw, 92px)/.93 var(--font-display); letter-spacing: -.045em; }
.d-1.d-in { font-size: clamp(38px, 5vw, 64px); line-height: .98; letter-spacing: -.035em; }
.d-2 { font: 750 clamp(30px, 3.8vw, 48px)/1.02 var(--font-display); letter-spacing: -.03em; }
.d-3 { font: 700 21px/1.2 var(--font-display); letter-spacing: -.015em; }
.d-num { font: 800 clamp(44px, 5vw, 64px)/.95 var(--font-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.lead { font-size: 20px; line-height: 1.5; max-width: 58ch; color: var(--ink-muted); }
.eyebrow { font: 400 12px/1.3 var(--font-data); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); width: max-content; max-width: 100%; font: 600 14px/1.2 var(--font-text); color: var(--ink); background: var(--surface-raised); padding: 7px 14px 7px 10px; border-radius: var(--radius-pill); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.prose { display: grid; gap: var(--space-4); max-width: 64ch; }
.prose p { color: var(--ink-muted); }

/* ---------- buttons, tags, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font: 650 16px/20px var(--font-text); padding: 13px 22px; border: 0; border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; transition: background-color .16s ease-out, color .16s ease-out; white-space: nowrap; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--brand); color: var(--on-brand); }
.btn-primary::after { content: "→"; font-family: var(--font-data); transition: transform .16s ease-out; }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-secondary { background: var(--surface-raised); color: var(--ink); }
.btn-secondary:hover { background: var(--brand-soft); color: var(--ink); }
.btn-quiet { background: none; color: var(--ink); padding-inline: 4px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: var(--ink-muted); }
.btn-quiet:hover { color: var(--brand-strong); text-decoration-color: currentColor; }
.btn-sm { font-size: 15px; padding: 9px 16px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.tile .btn-secondary { background: var(--surface-sunken); }
.tile .btn-secondary:hover, .f-sunken .btn-secondary:hover, .f-soft .btn-secondary:hover { background: var(--brand-soft); }
.f-sunken .btn-secondary, .f-soft .btn-secondary { background: var(--surface-raised); }
.f-brand .btn-primary { background: var(--on-brand); color: var(--brand-strong); }
.f-brand .btn-primary:hover { background: var(--ink); color: var(--surface); }
.f-brand .btn-quiet, .f-accent .btn-quiet { color: inherit; text-decoration-color: currentColor; }
.f-brand .btn-secondary { background: var(--brand-strong); color: var(--on-brand); }

.tag { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/16px var(--font-data); letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; width: max-content; }
.tag::before { content: ""; width: 7px; height: 7px; background: currentColor; flex: none; }
.tag-healthy { background: var(--healthy-soft); color: var(--healthy); }
.tag-action { background: var(--action-soft); color: var(--action); }
.tag-action::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 8px; }
.tag-pending, .tag-planned { background: var(--surface-sunken); color: var(--ink-muted); }
.tag-pending::before, .tag-planned::before { border-radius: 50%; }
.tag-brand { background: var(--brand-soft); color: var(--brand-strong); }
.tag-brand::before { border-radius: 50%; }
.tag-example { background: var(--accent-soft); color: var(--accent-ink); }
.tag-example::before { border-radius: 50%; }

.chip { display: inline-flex; align-items: center; font: 600 14px/1.3 var(--font-text); background: var(--surface-sunken); color: var(--ink); border: 0; border-radius: var(--radius-pill); padding: 8px 14px; cursor: pointer; text-decoration: none; }
.chip:hover { background: var(--brand-soft); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.f-soft .chip, .f-sunken .chip { background: var(--surface-raised); }

/* ---------- header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); }
.nav { display: flex; align-items: center; gap: var(--space-6); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; font: 800 25px/1 var(--font-display); letter-spacing: -.035em; }
.brand svg { width: 28px; height: 28px; color: var(--brand); flex: none; }
.brand:hover { color: var(--ink); }
.site-header nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.nav-links { list-style: none; margin: 0; padding: 4px; display: flex; align-items: center; gap: 2px; background: var(--surface-raised); border-radius: var(--radius-pill); }
.nav-link, .nav-menu-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1 var(--font-text); color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: var(--radius-pill); background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"] { background: var(--surface-sunken); color: var(--ink); }
.nav-link[aria-current="page"], .nav-menu-btn.is-active { background: var(--brand-soft); color: var(--brand-strong); }
.nav-menu-btn svg { width: 10px; height: 10px; transition: transform .16s ease-out; }
.nav-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-links > li { position: relative; }
.nav-menu { position: absolute; left: -8px; top: calc(100% + 12px); width: 540px; background: var(--surface-raised); padding: var(--space-3); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); z-index: 5; border-radius: var(--radius-lg); }
.menu-item { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3); text-decoration: none; color: var(--ink); border-radius: var(--radius-md); }
.menu-item:hover, .menu-item[aria-current="page"] { background: var(--brand-soft); color: var(--ink); }
.menu-item strong { display: block; font: 700 17px/1.2 var(--font-display); }
.menu-item small { display: block; font-size: 14px; color: var(--ink-muted); line-height: 1.4; }
.nav-menu-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); background: var(--surface-sunken); padding: var(--space-3) var(--space-4); margin-top: var(--space-1); font-size: 14px; color: var(--ink-muted); border-radius: var(--radius-md); }
.nav-tools { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface-sunken); }
.icon-btn svg { width: 18px; height: 18px; }
.cmd-btn { display: inline-flex; align-items: center; gap: var(--space-2); height: 42px; padding: 0 8px 0 14px; border: 0; border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink-muted); font: 500 15px/1 var(--font-text); cursor: pointer; }
.cmd-btn:hover { background: var(--surface-sunken); color: var(--ink); }
.cmd-btn kbd, .cmd kbd { font: 400 12px/1 var(--font-data); background: var(--surface-sunken); color: var(--ink-muted); padding: 6px 8px; border-radius: var(--radius-pill); }
.cmd-btn svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.nav-account { font: 600 15px/1 var(--font-text); color: var(--ink); text-decoration: none; padding: 10px 8px; white-space: nowrap; }
.nav-account:hover, .nav-account[aria-current="page"] { color: var(--brand-strong); text-decoration: underline; }
.site-header .nav-toggle { display: none; }
.nav-links .nav-cta-item { display: none; }
@media (max-width: 1240px) { .cmd-btn .cmd-label { display: none; } .cmd-btn { padding: 0 8px 0 12px; } .nav { gap: var(--space-4); } }
@media (max-width: 1120px) {
  .site-header .nav-toggle { display: inline-flex; }
  .site-header .nav-account, .site-header .nav-tools .nav-cta { display: none; }
  .site-header nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); padding: var(--space-2) var(--gutter-r) var(--space-6) var(--gutter-l); display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-header.is-open nav { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: var(--space-1); background: none; padding: 0; border-radius: 0; }
  .nav-link, .nav-menu-btn { width: 100%; justify-content: space-between; padding: 15px 18px; font-size: 17px; background: var(--surface-raised); }
  .nav-menu { position: static; width: auto; grid-template-columns: 1fr; padding: var(--space-2) 0 0; background: none; }
  .nav-menu .menu-item { background: var(--surface-raised); }
  .nav-links .nav-cta-item { display: block; }
  .nav-links .nav-cta-item .btn { width: 100%; margin-top: var(--space-2); }
  .nav { justify-content: space-between; }
  .site-header .nav-tools { margin-left: auto; }
}

/* ---------- command menu (Cmd/Ctrl + K) */
.cmd { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: var(--surface); color: var(--ink); }
.cmd::backdrop { background: var(--surface); }
.cmd-inner { max-width: 680px; margin: 0 auto; padding: max(48px, calc(env(safe-area-inset-top, 0px) + 24px)) var(--gutter-r) 48px var(--gutter-l); display: grid; gap: var(--space-4); }
.cmd-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.cmd-search { width: 100%; font: 500 22px/1.3 var(--font-text); color: var(--ink); background: var(--surface-raised); border: 1px solid var(--field-border); border-radius: var(--radius-lg); padding: 18px 22px; }
.cmd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); max-height: 60vh; overflow-y: auto; }
.cmd-list a { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: baseline; padding: 13px 18px; background: var(--surface-raised); color: var(--ink); text-decoration: none; border-radius: var(--radius-md); }
.cmd-list a small { font: 400 12px/1.3 var(--font-data); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.cmd-list a:hover, .cmd-list a.is-active { background: var(--brand-soft); color: var(--ink); }
.cmd-empty { color: var(--ink-muted); padding: 12px 2px; }

/* ---------- sections */
.sec { padding-block: var(--space-12); }
.sec-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); max-width: 820px; justify-items: start; }

/* hero: centred, announcement pill, app window below */
.hero-home { padding-top: var(--space-16); }
.hero-c { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: var(--space-6); max-width: 920px; margin: 0 auto var(--space-12); }
.hero-c .lead { margin: 0 auto; }
.hero-c .btn-row { justify-content: center; }
.hero-note { font: 400 13px/1.4 var(--font-data); color: var(--ink-muted); letter-spacing: .02em; }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); width: max-content; max-width: 100%; font: 500 14px/1.3 var(--font-text); background: var(--surface-raised); color: var(--ink); padding: 5px 14px 5px 5px; border-radius: var(--radius-pill); text-decoration: none; }
.pill b { font: 400 11px/1 var(--font-data); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 6px 9px; border-radius: var(--radius-pill); }
.pill::after { content: "→"; font-family: var(--font-data); color: var(--ink-muted); }
.pill:hover { background: var(--brand-soft); color: var(--ink); }
.built { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2) var(--space-5); margin: var(--space-10) auto 0; max-width: 980px; color: var(--ink-muted); }
.built span:first-child { font: 400 12px/1 var(--font-data); letter-spacing: .08em; text-transform: uppercase; }
.built b { font: 700 18px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink-muted); }

/* inner hero: copy on the ground, a card or window on the right */
.hero-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: center; padding-top: var(--space-8); }
.hero-split.hs-w { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-copy { display: grid; gap: var(--space-6); justify-items: start; }

/* ---------- bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); grid-auto-flow: dense; }
.tile { grid-column: span 4; background: var(--surface-raised); color: var(--ink); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; position: relative; border-radius: var(--radius-lg); }
.t-s { grid-column: span 3; } .t-m { grid-column: span 4; } .t-w { grid-column: span 6; } .t-l { grid-column: span 8; } .t-full { grid-column: 1 / -1; }
.t-tall { grid-row: span 2; }
.f-sunken { background: var(--surface-sunken); }
.f-soft { background: var(--brand-soft); }
.f-brand { background: var(--brand); color: var(--on-brand); }
.f-accent { background: var(--accent); color: var(--on-accent); }
.tile .tp, .tile .prose p { color: var(--ink-muted); font-size: 16px; line-height: 1.55; }
.f-brand .tp, .f-brand .prose p, .f-brand .eyebrow, .f-brand .lead, .f-accent .tp, .f-accent .prose p, .f-accent .eyebrow, .f-accent .lead { color: inherit; }
.f-brand a:not(.btn), .f-accent a:not(.btn) { color: inherit; }
.tile-foot { margin-top: auto; padding-top: var(--space-3); }
.tile-link { font: 650 16px/1.3 var(--font-text); color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; }
.tile-link::after { content: "→"; font-family: var(--font-data); transition: transform .16s ease-out; }
.tile-link:hover { color: var(--brand-strong); }
.tile-link:hover::after { transform: translateX(3px); }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a:hover { text-decoration: underline; }
.step-n { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; width: max-content; border-radius: var(--radius-pill); background: var(--surface-sunken); font: 700 16px/1 var(--font-display); color: var(--ink); }
.f-soft .step-n, .f-sunken .step-n { background: var(--surface-raised); }
.f-brand .step-n { background: var(--brand-strong); color: var(--on-brand); }
.tile .note { font: 400 12px/1.3 var(--font-data); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.f-brand .note, .f-accent .note { color: inherit; }
.tile .unit { font: 400 18px/1 var(--font-data); color: var(--ink-muted); margin-left: 6px; letter-spacing: 0; }
.f-brand .unit, .f-accent .unit { color: inherit; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-muted); font-size: 16px; line-height: 1.5; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font: 700 11px/18px var(--font-text); text-align: center; }
.f-soft .ticks li::before { background: var(--surface-raised); }
.f-brand .ticks li, .f-accent .ticks li { color: inherit; }
.kv { display: grid; gap: 2px; margin: 0; border-radius: var(--radius-md); overflow: hidden; }
.kv div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); padding: 10px 14px; background: var(--surface-raised); font-size: 15px; }
.kv div:nth-child(odd) { background: var(--surface-sunken); }
.f-sunken .kv div, .f-soft .kv div { background: var(--surface-raised); }
.f-sunken .kv div:nth-child(odd), .f-soft .kv div:nth-child(odd) { background: var(--surface); }
.kv dt { color: var(--ink-muted); } .kv dd { margin: 0; font-family: var(--font-data); font-size: 14px; text-align: right; }
.pmark { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--brand); color: var(--on-brand); font: 800 15px/1 var(--font-display); flex: none; border-radius: 10px; }
.pmark-lg { width: 64px; height: 64px; font-size: 26px; border-radius: 18px; }
.f-brand .pmark { background: var(--on-brand); color: var(--brand-strong); }
.ptitle { display: flex; align-items: center; gap: var(--space-4); }

/* ---------- app window (product UI frame) */
.window { background: var(--surface-raised); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
.tile .window { background: var(--surface); }
.f-sunken .window { background: var(--surface-raised); }
.win-bar { display: flex; align-items: center; gap: var(--space-3); padding: 12px 16px; background: var(--surface-sunken); }
.tile .win-bar { background: var(--surface-sunken); }
.win-dots { display: inline-flex; gap: 6px; flex: none; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.win-title { flex: 1; min-width: 0; text-align: center; font: 400 12px/1.3 var(--font-data); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { padding: var(--space-5); display: grid; gap: var(--space-3); }
.window-hero { max-width: 1080px; margin: 0 auto; }
.window-hero .win-body { padding: var(--space-6); }

/* ---------- tabs (product showcase) */
.tabs { display: grid; gap: var(--space-6); }
.tablist { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-raised); border-radius: var(--radius-pill); width: fit-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: var(--space-2); font: 600 15px/1 var(--font-text); color: var(--ink-muted); background: none; border: 0; padding: 10px 16px; border-radius: var(--radius-pill); cursor: pointer; }
.tab small { font: 400 11px/1 var(--font-data); letter-spacing: .06em; text-transform: uppercase; }
.tab:hover { color: var(--ink); background: var(--surface-sunken); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--surface); }

/* ---------- loop strip */
.loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.loop a { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4); background: var(--surface-raised); text-decoration: none; color: var(--ink); border-radius: var(--radius-md); }
.f-raised .loop a, .tile:not(.f-sunken):not(.f-soft) .loop a { background: var(--surface-sunken); }
.loop a:hover { background: var(--brand-soft); color: var(--ink); }
.loop a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.loop a[aria-current="page"] span { color: inherit; }
.loop a[aria-current="page"] .pmark { background: var(--on-brand); color: var(--brand-strong); }
.loop strong { font: 700 18px/1.1 var(--font-display); }
.loop span { font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.loop small { font: 400 11px/1 var(--font-data); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); }
.loop a[aria-current="page"] small { color: inherit; }

/* ---------- tables */
.table-wrap { overflow-x: auto; max-width: 100%; border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
caption { text-align: left; font-size: 14px; color: var(--ink-muted); padding: var(--space-3) 0 0; caption-side: bottom; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; }
thead th { font: 600 14px/1.3 var(--font-text); background: var(--surface-sunken); }
tbody tr:nth-child(odd) { background: var(--surface-raised); }
tbody tr:nth-child(even) { background: var(--surface); }
tbody th { font-weight: 600; }
.tile thead th { background: var(--surface); }
.tile tbody tr:nth-child(even) { background: var(--surface-sunken); }
.f-sunken tbody tr:nth-child(odd) { background: var(--surface-raised); }
.f-sunken tbody tr:nth-child(even) { background: var(--surface); }
td.num, th.num { text-align: right; font-family: var(--font-data); font-variant-numeric: tabular-nums; }

/* ---------- FAQ, two columns */
.faq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); align-items: start; }
.faq-side { display: grid; gap: var(--space-4); justify-items: start; position: sticky; top: 96px; }
.faq-side p { color: var(--ink-muted); }
.faq { display: grid; gap: var(--space-2); }
.faq details { background: var(--surface-raised); border-radius: var(--radius-md); }
.faq summary { cursor: pointer; padding: 18px 20px; font: 650 17px/1.35 var(--font-text); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-sunken); font: 400 16px/1 var(--font-data); color: var(--ink); }
.faq details[open] summary::after { content: "–"; background: var(--ink); color: var(--surface); }
.faq details > div { padding: 0 20px 20px; color: var(--ink-muted); max-width: 70ch; }

/* ---------- code */
.code { background: var(--surface-sunken); min-width: 0; display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden; }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 10px 14px; font: 400 13px/1.3 var(--font-data); color: var(--ink-muted); background: var(--surface); }
.f-sunken .code { background: var(--surface-raised); }
.copy-btn { font: 600 13px/1 var(--font-text); background: var(--surface-raised); color: var(--ink); border: 0; border-radius: var(--radius-pill); padding: 7px 12px; cursor: pointer; }
.copy-btn:hover { background: var(--brand-soft); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 14px/1.6 var(--font-data); color: var(--ink); }
.code .k { color: var(--brand-strong); } .code .s { color: var(--accent-ink); } .code .c { color: var(--ink-muted); } .code .n { color: var(--healthy); }

/* ---------- example content */
.cap { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.cap b { font: 400 12px/1 var(--font-data); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-right: 6px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-radius: var(--radius-md); overflow: hidden; }
.prow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px 14px; background: var(--surface-sunken); font: 400 14px/1.4 var(--font-data); flex-wrap: wrap; }
.prow:nth-child(even) { background: var(--surface); }
.tile .prow:nth-child(even), .window .prow:nth-child(even) { background: var(--surface-raised); }
.tile .window .prow:nth-child(even) { background: var(--surface-raised); }
.bars { display: grid; gap: var(--space-3); }
.bar-row { display: grid; grid-template-columns: minmax(90px, 140px) 1fr 64px; gap: var(--space-3); align-items: center; font-size: 14px; }
.bar { height: 12px; background: var(--surface-sunken); border-radius: var(--radius-pill); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: var(--radius-pill); transition: width .2s ease-out; }
.bar-row.b-alt .bar i { background: var(--accent); }
.bar-row .n { font-family: var(--font-data); text-align: right; font-variant-numeric: tabular-nums; }
.f-sunken .bar, .f-soft .bar { background: var(--surface-raised); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 14px; color: var(--ink-muted); }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.lg-crop { background: var(--brand); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.lg-weed { background: var(--action); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lg-spray { background: var(--accent); border-radius: 3px; }

/* ---------- field detector (home) */
.detector { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-5); align-items: start; }
.det-side { display: grid; gap: var(--space-4); align-content: start; }
.detector canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--soil); border-radius: var(--radius-md); }
.det-controls { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.det-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.det-stats div { background: var(--surface-sunken); padding: 12px 14px; display: grid; gap: 4px; border-radius: var(--radius-md); }
.det-stats small { font: 400 11px/1.2 var(--font-data); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.det-stats b { font: 700 26px/1.05 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; gap: 2px; background: var(--surface-sunken); padding: 3px; border-radius: var(--radius-pill); }
.seg button { font: 600 14px/1 var(--font-text); border: 0; background: none; color: var(--ink-muted); padding: 9px 14px; border-radius: var(--radius-pill); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); }

/* ---------- estimators */
.range { display: grid; gap: var(--space-2); }
.range label { display: flex; justify-content: space-between; gap: var(--space-3); font: 600 15px/1.3 var(--font-text); }
.range output { font: 400 14px/1.3 var(--font-data); color: var(--ink); background: var(--surface-sunken); padding: 3px 10px; border-radius: var(--radius-pill); font-variant-numeric: tabular-nums; }
.range input { width: 100%; accent-color: var(--brand); }
.est-in { display: grid; gap: var(--space-6); }
.est-lines { display: grid; gap: 2px; border-radius: var(--radius-md); overflow: hidden; }
.est-lines div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 14px; background: var(--surface-raised); font-size: 15px; }
.est-lines div:nth-child(even) { background: var(--surface); }
.est-lines span:last-child { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

/* ---------- catalogue (Folira) */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.filters > span { font: 400 12px/1 var(--font-data); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-right: var(--space-2); min-width: 64px; }
.cat-top { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.cat-count { font: 400 14px/1.3 var(--font-data); color: var(--ink-muted); }
.empty { padding: 14px; background: var(--surface-sunken); color: var(--ink-muted); border-radius: var(--radius-md); }

/* ---------- plans */
.price { font: 750 26px/1.1 var(--font-display); letter-spacing: -.02em; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* ---------- roles, emails */
.roles { display: grid; gap: 2px; border-radius: var(--radius-md); overflow: hidden; }
.role { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-4); align-items: center; padding: 16px 18px; background: var(--surface-sunken); }
.role:nth-child(even) { background: var(--surface); }
.role p { font-size: 14px; color: var(--ink-muted); }
.emails { display: grid; gap: 2px; border-radius: var(--radius-md); overflow: hidden; }
.email { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: 12px 14px; background: var(--surface-raised); }
.email:nth-child(even) { background: var(--surface); }
.email small { color: var(--ink-muted); font-size: 14px; }
.email span { font: 400 15px/1.3 var(--font-data); user-select: all; -webkit-user-select: all; }

/* ---------- forms */
.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field label { font: 600 15px/1.3 var(--font-text); }
.field input, .field select, .field textarea { width: 100%; font: 400 17px/24px var(--font-text); color: var(--ink); background: var(--surface-raised); border: 1px solid var(--field-border); border-radius: var(--radius-field); padding: 11px 14px; }
.field textarea { min-height: 120px; resize: vertical; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--action); }
.hint { font-size: 14px; color: var(--ink-muted); }
.err { font-size: 14px; color: var(--action); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; color: var(--ink-muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-status { padding: 12px 16px; font-size: 15px; border-radius: var(--radius-md); }
.form-status.is-ok { background: var(--healthy-soft); color: var(--ink); }
.form-status.is-err { background: var(--action-soft); color: var(--ink); }

/* ---------- footer */
.site-footer { padding-block: var(--space-16) 0; background: var(--surface); overflow: hidden; }
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.foot > div { padding: var(--space-2) 0; grid-column: span 2; min-width: 0; }
.foot > .foot-brand { grid-column: span 4; display: grid; gap: var(--space-3); align-content: start; padding-right: var(--space-8); }
.foot h2 { font: 400 12px/1.3 var(--font-data); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-4); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.foot a { color: var(--ink); text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--brand-strong); text-decoration: underline; }
.foot-brand p { font-size: 15px; color: var(--ink-muted); }
.foot-base { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-top: var(--space-12); font-size: 13px; color: var(--ink-muted); }
.foot-base span:first-child { max-width: 80ch; }
.foot-word { font: 800 clamp(96px, 23vw, 330px)/.8 var(--font-display); letter-spacing: -.06em; color: var(--brand-soft); margin: var(--space-8) 0 0; text-align: center; white-space: nowrap; user-select: none; transform: translateY(12%); }

/* ---------- responsive */
@media (max-width: 1000px) {
  .t-s { grid-column: span 6; }
  .t-m, .t-w, .t-l { grid-column: 1 / -1; }
  .t-tall { grid-row: auto; }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > div { grid-column: span 3; }
  .foot > .foot-brand { grid-column: 1 / -1; }
  .hero-split, .hero-split.hs-w, .faq-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .faq-side { position: static; }
  .detector { grid-template-columns: minmax(0, 1fr); }
  .det-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gap: var(--space-3); }
  body { font-size: 16px; }
  .sec { padding-block: var(--space-8); }
  .hero-home { padding-top: var(--space-8); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .t-s, .t-m, .t-w, .t-l, .t-full { grid-column: auto; padding: var(--space-6); border-radius: var(--radius-md); }
  .lead { font-size: 18px; }
  .loop { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .det-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .window-hero .win-body { padding: var(--space-4); }
  .role { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot > div { grid-column: auto; }
  .foot > .foot-brand { grid-column: 1 / -1; padding-right: 0; }
  .nav-menu { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 90px 1fr 56px; }
  .cmd-search { font-size: 18px; }
  .tablist { border-radius: var(--radius-lg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 640px) { .pill { text-align: left; } }
.hero-metrics { margin-top: var(--space-12); }
