/* Amanah BioSystems: premium agritech landing.
   Palette: pine forest + pasture sage + hay gold. Type: Cormorant Garamond (display) + Manrope (text). */

@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-400.woff2") format("woff2"), url("/assets/fonts/manrope-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-500.woff2") format("woff2"), url("/assets/fonts/manrope-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-600.woff2") format("woff2"), url("/assets/fonts/manrope-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-700.woff2") format("woff2"), url("/assets/fonts/manrope-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-600.woff2") format("woff2"), url("/assets/fonts/cormorant-garamond-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-600-italic.woff2") format("woff2"), url("/assets/fonts/cormorant-garamond-600-italic.ttf") format("truetype"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --pine: #17301f;
  --pine-2: #234430;
  --moss: #3f6b4c;
  --sage: #e4ebdf;
  --paper: #f3f5f0;
  --white: #ffffff;
  --hay: #d9a441;
  --hay-soft: #f6e7c4;
  --ink: #18221b;
  --ink-2: #44514a;
  --ink-3: #5f6b64;
  --line: #d3dbd0;
  --ok: #2f7a45;
  --warn: #9a5b00;
  --on-pine: #eef2ea;
  --on-pine-2: #b9c7bb;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-text: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;

  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--pine); }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--pine); color: var(--on-pine); padding: .75rem 1rem; border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.25rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--pine); color: var(--on-pine); }
.btn-primary:hover { background: var(--pine-2); color: #fff; }
.btn-primary:disabled { opacity: .65; cursor: progress; }
.btn-ghost { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-ghost:hover { background: var(--pine); color: var(--on-pine); }

.btn-wa { background: #1f7a4a; color: #fff; }
.btn-wa:hover { background: #17633b; color: #fff; }
.wa-icon { width: 1.25em; height: 1.25em; flex: none; }
picture { display: contents; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1f7a4a; color: #fff; box-shadow: 0 12px 28px -10px rgb(0 0 0 / .45);
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.wa-float.is-hidden { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }
.wa-float { transition: opacity .2s var(--ease), transform .2s var(--ease), background-color .18s var(--ease); }
.wa-float:hover { background: #17633b; color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(243 245 240 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--pine); }
.brand-mark { width: 46px; height: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1; color: var(--pine); letter-spacing: -.01em; }
.brand-name em { font-style: italic; color: var(--moss); }

.main-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-link {
  padding: .5rem .8rem; border-radius: 999px; color: var(--ink-2);
  font-weight: 500; font-size: .95rem; text-decoration: none;
}
.nav-link:hover { color: var(--pine); background: var(--sage); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch.lang-switch-menu { display: none; }
.story-hint { display: none; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.lang-btn {
  min-width: 40px; min-height: 36px; border: 0; border-radius: 999px; background: transparent;
  font-size: .8rem; font-weight: 700; color: var(--ink-3); letter-spacing: .02em;
}
.lang-btn[aria-pressed="true"] { background: var(--pine); color: var(--on-pine); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--pine); align-items: center; justify-content: center;
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 var(--section-y); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-kicker { color: var(--moss); font-weight: 600; font-size: .95rem; margin-bottom: 1.25rem; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 7.2vw, 5.75rem); line-height: .98; letter-spacing: -.025em;
  color: var(--pine); text-wrap: balance; max-width: 11ch;
}
.hero-lead { margin-top: 1.5rem; font-size: clamp(1.07rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-visual { position: relative; padding-bottom: 4rem; }
.hero-photo { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--sage); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }

/* WhatsApp-style alert card: the one memorable element */
.wa-card {
  position: absolute; left: -2.5rem; bottom: 0; width: min(22rem, 92%);
  background: #efeae2; border-radius: var(--r-md); padding: .85rem;
  box-shadow: 0 24px 48px -18px rgb(23 48 31 / .45), 0 2px 6px rgb(23 48 31 / .12);
  font-size: .9rem; line-height: 1.45;
}
.wa-head { display: flex; align-items: center; gap: .6rem; padding: .1rem .2rem .7rem; border-bottom: 1px solid rgb(0 0 0 / .07); margin-bottom: .7rem; }
.wa-head strong { display: block; font-size: .92rem; color: var(--ink); }
.wa-head span:not(.wa-avatar) { font-size: .78rem; color: var(--warn); font-weight: 600; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--pine); color: var(--hay); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.wa-msg { position: relative; max-width: 90%; padding: .55rem .7rem 1.2rem; border-radius: 10px; margin-bottom: .45rem; }
.wa-msg p + p { margin-top: .4rem; }
.wa-msg time { position: absolute; right: .6rem; bottom: .3rem; font-size: .7rem; color: #667781; }
.wa-in { background: #fff; border-top-left-radius: 2px; max-width: 92%; }
.wa-out { background: #d9fdd3; margin-left: auto; border-top-right-radius: 2px; max-width: 78%; }
.wa-photo { padding: .3rem .3rem 1.2rem; }
.wa-photo img { border-radius: 7px; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: .35rem; }
.wa-photo p { padding: 0 .4rem; }

@media (prefers-reduced-motion: no-preference) {
  .wa-card { animation: wa-in .7s var(--ease) .35s both; }
  .wa-out { animation: wa-in .5s var(--ease) 1.4s both; }
  @keyframes wa-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--sage); }
.section-forest { background: var(--pine); color: var(--on-pine); }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em;
  color: var(--pine); text-wrap: balance;
}
.section-desc { margin-top: 1rem; color: var(--ink-2); font-size: 1.1rem; max-width: 38rem; }
.section-forest .section-title { color: #fff; }
.section-forest .section-desc { color: var(--on-pine-2); }

/* Sandbox */
.sandbox { background: var(--white); border-radius: var(--r-lg); padding: clamp(1rem, 2.5vw, 1.75rem); box-shadow: 0 1px 0 var(--line); }
.sandbox-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.case-tab {
  text-align: left; padding: .9rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); display: grid; gap: .15rem; transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.case-tab:hover { border-color: var(--moss); }
.case-tab.active { border-color: var(--pine); background: var(--pine); color: var(--on-pine); }
.case-animal { font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.case-tab.active .case-animal { color: var(--hay); }
.case-name { font-weight: 700; font-size: 1rem; }
.case-tab:disabled { cursor: not-allowed; opacity: .6; }

.sandbox-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; }
.case-info { display: flex; flex-direction: column; gap: 1rem; padding: .25rem; }
.case-title { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; font-weight: 600; color: var(--pine); }
.case-desc { color: var(--ink-2); }
.case-meta { display: grid; gap: 0; border-top: 1px solid var(--line); }
.case-meta div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.case-meta dt { color: var(--ink-3); }
.case-meta dd { font-weight: 600; text-align: right; }
.case-info .btn { margin-top: auto; }

.inference-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; min-height: 26rem; overflow: hidden; }
.inference-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .93rem; color: var(--pine); }
.engine-pill { white-space: nowrap; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; padding: .2rem .6rem; border-radius: 999px; background: var(--sage); color: var(--moss); }
.inference-output { padding: 1.1rem 1.25rem; font-size: .95rem; line-height: 1.6; overflow: auto; max-height: 34rem; }
.inference-output .placeholder { color: var(--ink-3); }
.report h4 { font-size: .8rem; font-weight: 700; color: var(--moss); margin: 1.1rem 0 .35rem; letter-spacing: .01em; }
.report h4:first-child { margin-top: 0; }
.report .dx { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; font-weight: 600; color: var(--pine); }
.report .conf { display: inline-block; margin-top: .4rem; padding: .15rem .6rem; border-radius: 999px; background: var(--hay-soft); color: #6b4700; font-size: .82rem; font-weight: 700; }
.report ol { padding-left: 1.2rem; display: grid; gap: .4rem; }
.report p { color: var(--ink-2); }
.report .disclaimer { margin-top: 1.1rem; padding-top: .8rem; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--ink-3); }
.typing::after { content: ""; display: inline-block; width: .5em; height: 1em; background: var(--moss); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* CTA */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cta-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -.02em; color: #fff; }
.cta-copy p { margin-top: 1.25rem; color: var(--on-pine-2); font-size: 1.1rem; max-width: 34rem; }
.cta-copy a { color: var(--hay); }
.cta-copy a:hover { color: #fff; }
.cta-alt { font-size: 1rem !important; }
.cta-wa { margin-top: 1.75rem; }
.cta-copy .btn-wa, .cta-copy .btn-wa:hover { color: #fff; }
.optional { font-weight: 400; color: var(--ink-3); }
.waitlist-form { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field select {
  min-height: 48px; padding: .6rem .85rem; border: 1.5px solid #8c978f; border-radius: var(--r-sm);
  background: var(--white); width: 100%;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--hay); outline-offset: 1px; border-color: var(--pine); }
.field input[aria-invalid="true"] { border-color: #b6322d; }
.form-note { font-size: .85rem; color: var(--ink-3); }
.form-feedback:empty { display: none; }
.form-feedback { padding: .75rem 1rem; border-radius: var(--r-sm); font-size: .93rem; font-weight: 500; }
.form-feedback.error { background: #ffe9e6; color: #8e211c; }
.form-feedback.success { background: #daf3df; color: #1b5e30; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgb(15 28 20 / .55); display: grid; place-items: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-card { background: var(--white); border-radius: var(--r-lg); max-width: 36rem; width: 100%; max-height: 85vh; overflow: auto; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .4); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); }
.modal-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--pine); line-height: 1.1; }
.modal-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sage); font-size: 1.5rem; line-height: 1; color: var(--pine); }
.modal-content { padding: 1.25rem 1.5rem 1.75rem; display: grid; gap: .6rem; color: var(--ink-2); }
.modal-content h4 { color: var(--pine); margin-top: .5rem; }

/* Footer */
.site-footer { background: #10231a; color: var(--on-pine-2); padding: 4rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2rem; }
.footer-logo { display: inline-flex; align-items: center; gap: .7rem; }
.footer-logo img { width: 52px; height: auto; }
.footer-brand .brand-name { color: #fff; }
.footer-address { font-style: normal; margin-top: 1rem; line-height: 1.55; }
.footer-brand .brand-name em { color: var(--hay); }
.footer-brand p { margin-top: 1rem; max-width: 28ch; }
.footer-title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .9rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: .35rem; }
.footer-links a, .link-btn { color: var(--on-pine-2); text-decoration: none; background: none; border: 0; padding: .3rem 0; text-align: left; font-size: .95rem; min-height: 32px; overflow-wrap: anywhere; }
.footer-links a:hover, .link-btn:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; }

.hero-note { margin-top: 1.75rem; font-size: .93rem; color: var(--ink-3); max-width: 30rem; padding-left: .9rem; border-left: 3px solid var(--hay); }

/* Story: one case told as a timeline. Real sequence, so order is the structure. */
.story-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.story-head .section-desc { margin-top: 0; }
.story-head .btn { grid-column: 2; justify-self: start; }
@media (max-width: 900px) { .story-head .btn { grid-column: auto; } }
/* Promo video: vertical ad shown at phone size */
.promo { padding-bottom: 0; }
.promo-grid { display: grid; grid-template-columns: 1fr minmax(0, 22rem); gap: 2rem 5rem; align-items: center; }
.promo-copy .section-desc { margin-bottom: 1rem; }
.promo-note { color: var(--ink-3); font-size: .93rem; margin-bottom: 1.5rem; }
.promo-frame { justify-self: center; width: 100%; max-width: 22rem; padding: .6rem; border-radius: 2.2rem; background: var(--pine); box-shadow: 0 30px 60px -30px rgb(23 48 31 / .55); }
.promo-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 1.7rem; background: var(--pine); }
@media (max-width: 900px) {
  .promo-grid { grid-template-columns: 1fr; }
  .promo-frame { max-width: 19rem; }
}
.story-list { list-style: none; padding: 0; position: relative; }
.story-list::before { content: ""; position: absolute; left: 9.4rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.story-step { display: grid; grid-template-columns: 8.5rem 1fr 19rem; gap: 2rem; padding: 1.75rem 0; align-items: start; position: relative; }
.story-step + .story-step { border-top: 1px solid var(--line); }
.story-step::before { content: ""; position: absolute; left: 9.05rem; top: 2.15rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--pine); }
.story-step:last-child::before { background: var(--pine); }
.story-time { font-weight: 700; font-size: .93rem; color: var(--moss); padding-top: .2rem; font-variant-numeric: tabular-nums; }
.story-text { padding-left: 1.5rem; max-width: 34rem; }
.story-text h3 { font-family: var(--font-display); font-size: 1.85rem; line-height: 1.1; font-weight: 600; color: var(--pine); margin-bottom: .5rem; }
.story-text p { color: var(--ink-2); }

.snip { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1rem; font-size: .88rem; line-height: 1.45; box-shadow: 0 10px 24px -18px rgb(23 48 31 / .35); }
.snip-photo { padding: 0; overflow: hidden; position: relative; }
.snip-photo img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.snip-tag { position: absolute; left: .6rem; bottom: .6rem; background: rgb(23 48 31 / .85); color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.snip-wa { background: #fff; border-top-left-radius: 3px; }
.snip-wa-dx { font-weight: 700; color: var(--pine); margin-bottom: .4rem; }
.snip-wa ol { padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: .15rem; }
.snip-vet { display: flex; gap: .8rem; align-items: center; }
.snip-vet strong { display: block; color: var(--ok); }
.snip-vet span:not(.team-avatar) { color: var(--ink-2); }
.snip-check { display: grid; gap: .55rem; }
.snip-check-row { display: flex; justify-content: space-between; color: var(--ink-2); }
.snip-check-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.snip-check-row .ok { color: var(--ok); }
.snip-bar { height: 6px; border-radius: 99px; background: var(--sage); overflow: hidden; }
.snip-bar span { display: block; width: 100%; height: 100%; background: var(--moss); }
.sprite { position: absolute; overflow: hidden; }
.snip-chart { color: var(--moss); }
.snip-chart svg { width: 100%; height: 64px; display: block; margin-bottom: .35rem; }
.snip-chart span { color: var(--ink-3); font-size: .8rem; }

/* Features: plain definition list, no icon cards */
.features { padding-top: 0; }
.features-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 2rem 4rem; padding-top: var(--section-y); border-top: 1px solid var(--line); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.feature-list dt { font-weight: 700; font-size: 1.1rem; color: var(--pine); margin-bottom: .35rem; }
.feature-list dd { color: var(--ink-2); }
.tag-soon { display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .1rem .5rem; border-radius: 999px; background: var(--hay-soft); color: #6b4700; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }

.case-img { border-radius: var(--r-md); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--sage); }

/* Dashboard: full-bleed photo band */
.dash { position: relative; color: var(--on-pine); padding: clamp(5rem, 11vw, 9rem) 0 1.5rem; overflow: hidden; isolation: isolate; }
.dash-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dash::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(16 35 26 / .94) 0%, rgb(16 35 26 / .82) 45%, rgb(16 35 26 / .55) 100%); }
.dash-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dash-copy .section-title { color: #fff; }
.dash-copy p { margin-top: 1rem; color: var(--on-pine-2); font-size: 1.07rem; max-width: 26rem; }
.dash-link { margin-top: 1.25rem; border-color: var(--on-pine-2); color: #fff; }
.dash-link:hover { background: var(--on-pine); color: var(--pine); border-color: var(--on-pine); }
.dash-board { background: rgb(16 35 26 / .72); backdrop-filter: blur(6px); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--r-lg); padding: clamp(1rem, 2.5vw, 1.5rem); }
.dash-board-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.dash-board-head strong { color: #fff; }
.monitor-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem; border-radius: 999px; background: rgb(255 255 255 / .08); font-size: .8rem; color: var(--on-pine-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #7fd49a; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 2s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .35; } }
.sensor-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.sensor { background: rgb(0 0 0 / .22); border-radius: var(--r-md); padding: 1rem 1.1rem; display: grid; gap: .2rem; }
.sensor-label { font-size: .85rem; color: var(--on-pine-2); }
.sensor-value { font-family: var(--font-text); font-size: 1.9rem; line-height: 1.15; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sensor-status { font-size: .85rem; font-weight: 600; }
.sensor-status.ok { color: #8fdca8; }
.sensor-status.warn { color: var(--hay); }
.dash-credit { margin-top: clamp(3rem, 7vw, 6rem); font-size: .78rem; color: rgb(238 242 234 / .7); }

/* Audience: photo + list */
.audience-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.audience-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.3; }
.audience-photo img { width: 100%; height: 100%; object-fit: cover; }
.audience-list { margin-top: 1.75rem; display: grid; }
.audience-list div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.audience-list div:last-child { border-bottom: 1px solid var(--line); }
.audience-list dt { font-weight: 700; font-size: 1.1rem; color: var(--pine); }
.audience-list dd { color: var(--ink-2); margin-top: .25rem; }

/* Company */
.company-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.company-copy > p { margin-top: 1rem; color: var(--ink-2); max-width: 38rem; }
.company-copy > p:first-of-type { font-size: 1.15rem; color: var(--ink); margin-top: 1.25rem; }
.team { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-top: 2rem; }
.team li { display: flex; align-items: center; gap: .8rem; }
.team strong { display: block; color: var(--pine); }
.team li > span:last-child span { font-size: .9rem; color: var(--ink-3); }
.team-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--pine); color: var(--hay); display: grid; place-items: center; font-weight: 700; font-size: .88rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgb(23 48 31 / .15); }
.facts dt { font-size: .85rem; color: var(--ink-3); }
.facts dd { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.mission-wrap { display: grid; justify-items: center; gap: 2rem; }
.mission-logo { width: min(15rem, 70%); height: auto; }
.facts-wide { flex-basis: 100%; }
.facts address { font-style: normal; }
.facts dd a { font-weight: 600; }
.mission { margin: 0; padding: 0 0 0 2rem; border-left: 3px solid var(--hay); }
.mission p { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; color: var(--pine); text-wrap: pretty; }

/* FAQ: compact 2x2, always visible */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; margin-top: 2.25rem; }
.faq-grid dt { font-weight: 700; font-size: 1.07rem; color: var(--pine); }
.faq-grid dd { margin-top: .35rem; color: var(--ink-2); max-width: 34rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; margin-top: 2rem; }
.contact-list dt { font-size: .85rem; color: var(--ink-3); }
.contact-list dd { font-weight: 600; }
.contact-list .contact-email { grid-column: 1 / -1; }
.contact-list address { font-style: normal; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.contact-map { border-radius: var(--r-lg); overflow: hidden; min-height: 22rem; background: var(--sage); border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; display: block; filter: saturate(.85); }

.credits { padding-left: 1.1rem; display: grid; gap: .5rem; font-size: .92rem; }

/* Responsive */
@media (max-width: 1080px) {
  .header-cta { display: none; }
  .story-step { grid-template-columns: 7.5rem 1fr 16rem; gap: 1.5rem; }
  .story-list::before { left: 8.15rem; }
  .story-step::before { left: 7.8rem; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem;
    display: none; box-shadow: 0 20px 30px -20px rgb(23 48 31 / .3);
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav-cta { display: inline-flex; margin-top: .5rem; }
  .header-actions { margin-left: auto; }

  .hero-grid, .company-grid, .cta-grid, .dash-inner, .audience-split, .features-grid, .story-head, .contact-grid { grid-template-columns: 1fr; }
  .lang-switch.lang-switch-bar { display: none; }
  .lang-switch.lang-switch-menu { display: inline-flex; align-self: flex-start; margin: .5rem 0 0 1rem; }
  .hero-visual { max-width: 34rem; margin-inline: auto; width: 100%; }
  .wa-card { left: auto; right: 0; }
  .hero-photo { aspect-ratio: 4 / 3.4; }
  .sandbox-panel { grid-template-columns: 1fr; }
  .inference-box { min-height: 0; }
  .inference-output { max-height: none; }

  .story-list::before { left: 5px; }
  .story-step { grid-template-columns: 1fr; gap: .6rem; padding: 1.5rem 0 1.5rem 2rem; }
  .story-step::before { left: 0; top: 1.75rem; }
  .story-text { padding-left: 0; }
  .story-step .snip { max-width: 22rem; margin-top: .5rem; }
  .mission { padding-left: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .story-hint { display: block; font-size: .85rem; color: var(--ink-3); margin-bottom: .75rem; }
  .story-list {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: .25rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .story-list::before, .story-step::before { display: none; }
  .story-step {
    flex: 0 0 86%; scroll-snap-align: start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--white); align-content: start;
  }
  .story-step + .story-step { border-top: 1px solid var(--line); }
  .story-step .snip { max-width: none; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-actions .btn { flex: 1 1 100%; }
  .sandbox-cases, .feature-list, .faq-grid, .field-row { grid-template-columns: 1fr; }
  .hero-visual { padding-bottom: 0; }
  .hero-photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 80px; }
  .wa-card { position: relative; left: auto; right: auto; width: 92%; margin: -3.5rem auto 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .brand-name { font-size: 1.35rem; }
  .brand-mark { width: 38px; }
  .story-text h3 { font-size: 1.6rem; }
}
@media (max-width: 420px) {
  .wa-float { right: 1rem; bottom: 1rem; width: 54px; height: 54px; }
  .brand-name { font-size: 1.2rem; }
  .sensor-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 404 */
.nf { min-height: 100vh; display: grid; place-content: center; justify-items: start; gap: 1.25rem; padding: 2rem var(--gutter); max-width: 40rem; margin-inline: auto; }
.nf img { width: 72px; height: auto; }
.nf p { color: var(--ink-2); }
