/* GreenGuard Automation — site styles (2026 redesign)
   One stylesheet for every page. No framework. */

/* Archivo (SIL Open Font License, see assets/fonts/OFL.txt), self-hosted */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --soil: #0e1215;        /* matches the background of the product renders */
  --soil-2: #171c20;
  --paper: #ffffff;
  --mist: #f1f3f0;        /* light section background */
  --ink: #161a17;         /* body text on light */
  --ink-2: #4c564e;       /* secondary text on light */
  --sage: #9aa79b;        /* secondary text on dark, from the logo */
  --forest: #0a3210;      /* brand green, from the logo */
  --forest-2: #134a1b;
  --line: #d9ddd8;
  --line-dark: #2a3136;
  --danger: #a3261b;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: "wdth" 118;     /* expanded width for headlines */

  --nav-h: 60px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 4px;
}

*, *::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;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible { outline: 2px solid #5f9c66; outline-offset: 3px; }

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

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--paper);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.nav.is-solid, .nav--light {
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand span {
  font-weight: 700; font-size: 15px; letter-spacing: .14em;
  font-variation-settings: "wdth" 125;
}
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .2s ease;
}
.nav-links a:hover { background: rgba(127,127,127,.18); }
.nav-links a[aria-current="page"] { background: rgba(127,127,127,.14); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* Dropdowns: each top-level page lists its sections */
.has-menu { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  padding-top: 10px; min-width: 320px;
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.dropdown ul {
  list-style: none; margin: 0; padding: 8px;
  background: var(--paper); color: var(--ink); border-radius: 8px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(14,18,21,.18);
}
.dropdown a { display: block; padding: 10px 12px; border-radius: var(--radius); text-decoration: none; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--mist); }
.dropdown strong { display: block; font-size: 15px; font-weight: 600; }
.dropdown span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) { .dropdown { transition: none; } }
.menu-btn {
  display: none; border: 0; background: rgba(127,127,127,.18); color: inherit;
  font: 500 15px var(--font); padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .menu-btn { display: block; }
}

/* Mobile menu sheet */
.sheet {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); color: var(--ink);
  padding: 16px var(--gutter) 32px; display: none; flex-direction: column;
}
.sheet.is-open { display: flex; }
.sheet-top { display: flex; justify-content: flex-end; height: calc(var(--nav-h) - 16px); align-items: center; }
.sheet { overflow-y: auto; }
.sheet-group { margin: 22px 0 4px; }
.sheet-group a { font-size: 24px; font-weight: 600; text-decoration: none; font-variation-settings: var(--wide); }
.sheet ul { list-style: none; margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.sheet li a { display: block; padding: 9px 2px; font-size: 17px; color: var(--ink-2); text-decoration: none; }
.sheet .btn { margin-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; padding: 12px 24px;
  border-radius: var(--radius); border: 0;
  font: 500 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn--primary { background: var(--forest); color: var(--paper); }
.btn--primary:hover { background: var(--forest-2); }
.btn--light { background: rgba(255,255,255,.92); color: var(--ink); }
.btn--light:hover { background: var(--paper); }
.btn--ghost { background: rgba(23,28,32,.66); color: var(--paper); }
.btn--ghost:hover { background: rgba(23,28,32,.85); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--small { min-width: 0; padding: 8px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
@media (max-width: 520px) { .btn-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; } }

/* ---------- Full-screen panels (Tesla-style) ---------- */
.panel {
  position: relative;
  background-image: radial-gradient(ellipse at 50% 55%, #161b1e 0%, var(--soil) 70%); min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--nav-h) + 9vh) var(--gutter) 9vh;
  background: var(--soil); color: var(--paper); text-align: center; overflow: hidden;
}
.panel-media { position: absolute; inset: 0; z-index: 0; }
.panel-media img, .panel-media video { width: 100%; height: 100%; object-fit: cover; }
.panel-media--contain {
  /* product renders: sized to the render's own proportions so its edges can be faded */
  inset: max(27vh, 220px) 0 max(15vh, 110px);
  display: flex; align-items: center; justify-content: center;
}
.panel-media--contain::after { display: none; }
.panel-media--contain picture {
  height: 100%; max-width: 92vw; aspect-ratio: 2752 / 1536;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%);
}
.panel-media--contain img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) {
  .panel-media--contain { inset: max(30vh, 220px) 0 max(26vh, 190px); }
  .panel-media--contain picture { height: auto; width: 100vw; max-width: none; }
}
.panel-media--contain.has-figures { bottom: max(31vh, 230px); }
@media (max-width: 620px) { .panel-media--contain.has-figures { bottom: max(52vh, 380px); top: max(24vh, 180px); } }
.panel--bright .panel-media::after {
  background: linear-gradient(to bottom, rgba(14,18,21,.78) 0%, rgba(14,18,21,.25) 42%, rgba(14,18,21,0) 60%, rgba(14,18,21,.6) 100%);
}

.panel-media::after {          /* keeps headline and buttons legible over any image */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,18,21,.55) 0%, rgba(14,18,21,0) 32%, rgba(14,18,21,0) 62%, rgba(14,18,21,.65) 100%);
}
.panel > :not(.panel-media) { position: relative; z-index: 1; }
.panel-head h1, .panel-head h2 {
  font-size: clamp(34px, 7vw, 76px);
  font-variation-settings: var(--wide);
}
.panel-media video.crop-mark { transform: scale(1.1); transform-origin: 100% 100%; } /* hides the logo burned into the clip corner */
.panel-head p { margin-top: 12px; font-size: clamp(16px, 1.6vw, 19px); color: #dfe5e0; }
.panel-head p a { text-underline-offset: 3px; }
.panel-foot { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }

/* Hero entrance: one orchestrated moment on first load only */
@media (prefers-reduced-motion: no-preference) {
  .panel--hero .panel-media img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .panel--hero .panel-head { animation: rise .9s .25s ease both; }
  .panel--hero .panel-foot { animation: rise .9s .45s ease both; }
}
@keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Key figures row at the bottom of a panel */
.figures {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 40px;
  max-width: 820px; width: 100%; margin: 0 auto;
}
.figure strong {
  display: block; font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; line-height: 1.1;
  font-variation-settings: var(--wide);
}
.figure span { display: block; margin-top: 4px; font-size: 14px; color: #cfd6d0; }
@media (max-width: 620px) {
  .figures { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Standard content sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) var(--gutter); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--soil); color: var(--paper); }
.wrap { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.section h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-variation-settings: var(--wide);
}
.lede { margin-top: 18px; font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); max-width: 62ch; }
.section--dark .lede { color: var(--sage); }
.center .lede { margin-left: auto; margin-right: auto; }

/* Split: media + text side by side */
.split {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.split--flip > :first-child { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; background: var(--soil); }
.split-media img, .split-media video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-text p + p { margin-top: 14px; }
.split-text .lede { margin-top: 16px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

/* How it works — a genuine three-step sequence */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 18px;
}
.steps h3 { font-size: 22px; font-variation-settings: var(--wide); }
.steps p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* Fact list (non-sequential points) */
.facts { margin-top: 28px; display: grid; gap: 22px; }
.facts div { padding-left: 18px; border-left: 2px solid var(--forest); }
.section--dark .facts div { border-left-color: var(--sage); }
.facts h3 { font-size: 18px; }
.facts p { margin-top: 4px; color: var(--ink-2); }
.section--dark .facts p { color: var(--sage); }

/* Crop chips */
.crops { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }
.crops li { list-style: none; padding: 10px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; }
.crops { padding: 0; }

/* Specifications table */
.specs { width: 100%; margin-top: 40px; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.specs th { font-weight: 500; color: var(--sage); width: 42%; padding-right: 24px; }
.specs td { font-weight: 500; }
.note { margin-top: 18px; font-size: 14px; color: var(--sage); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn-row { margin-top: 32px; }

/* Field footage as panel background */
.panel--film .panel-media::after {
  background: linear-gradient(to bottom, rgba(14,18,21,.62) 0%, rgba(14,18,21,.1) 34%, rgba(14,18,21,.1) 60%, rgba(14,18,21,.7) 100%);
}

/* Inline film with controls */
.film-frame { margin-top: 40px; border-radius: var(--radius); overflow: hidden; background: #000; }
.film-frame video { width: 100%; aspect-ratio: 16 / 9; }

/* Film dialog */
.film { width: min(1200px, 94vw); max-width: none; padding: 0; border: 0; background: #000; border-radius: var(--radius); overflow: visible; }
.film::backdrop { background: rgba(5,7,8,.88); }
.film video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: var(--radius); }
.film-close {
  position: absolute; right: 0; top: -48px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); font: 500 15px var(--font); padding: 8px 16px; border-radius: var(--radius);
}

/* Capacity comparison */
.capacity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.capacity > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.capacity h3 { font-size: 18px; color: var(--ink-2); font-weight: 500; }
.cap-figure { margin-top: 6px; font-size: 22px; font-weight: 500; }
.cap-figure strong { font-size: clamp(44px, 6vw, 64px); font-weight: 600; font-variation-settings: var(--wide); margin-right: 6px; }
.capacity p:last-child { margin-top: 8px; color: var(--ink-2); }
#capacity .note { color: var(--ink-2); margin-top: 28px; }
@media (max-width: 620px) { .capacity { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Technology */
.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.tech-grid > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.tech-grid h3 { font-size: 20px; font-variation-settings: var(--wide); }
.tech-grid p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 860px) { .tech-grid { grid-template-columns: 1fr; } }
.specs-group th { padding-top: 34px; color: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom-color: var(--sage); }
.specs tr.specs-group:first-child th { padding-top: 8px; }
.split-text .lede a, .lede a { text-underline-offset: 3px; }
.section--tight { padding-top: 24px; }

/* ---------- About ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); background: var(--line); }
.person-initials {
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--forest); color: var(--sage);
  font-size: clamp(48px, 6vw, 72px); font-weight: 600; font-variation-settings: var(--wide);
}
.person h3 { margin-top: 18px; font-size: 20px; }
.person .role { margin-top: 2px; color: var(--ink-2); font-weight: 500; }
.person p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.person a { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 500; text-underline-offset: 3px; }
@media (max-width: 1000px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

.logos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 48px; align-items: center; justify-items: center;
  margin-top: 56px; list-style: none; padding: 0;
}
.logos img { max-height: 54px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos a:hover img, .logos a:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 48px; }
.contact-grid h3 { font-size: 16px; color: var(--ink-2); font-weight: 500; }
.contact-grid p { margin-top: 6px; font-size: 18px; font-weight: 500; }
.contact-grid a { text-underline-offset: 3px; }


/* ---------- Reserve (order page) ---------- */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 440px; min-height: 100vh; padding-top: var(--nav-h); }
.order-visual {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  background: var(--soil); display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: var(--paper); padding: 32px;
}
.order-visual picture {
  width: 100%; max-width: 900px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%);
}
.order-visual img { width: 100%; height: auto; }
.order-visual .module-count { margin-top: 12px; font-size: 15px; color: var(--sage); }
.order-panel { padding: 48px 40px 80px; }
.order-panel h1 { font-size: 40px; font-variation-settings: var(--wide); text-align: center; }
.order-panel .sub { text-align: center; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 980px) {
  .order { grid-template-columns: 1fr; }
  .order-visual { position: relative; top: 0; height: auto; min-height: 46vh; }
  .order-panel { padding: 40px var(--gutter) 72px; max-width: 560px; margin: 0 auto; width: 100%; }
}

.summary {
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px;
  margin: 28px 0 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.summary strong { display: block; font-size: 22px; font-variation-settings: var(--wide); }
.summary span { font-size: 13px; color: var(--ink-2); }

fieldset { border: 0; margin: 32px 0 0; padding: 0; min-width: 0; }
legend { font-size: 18px; font-weight: 600; margin-bottom: 14px; padding: 0; }
.hint { font-size: 14px; color: var(--ink-2); margin: -6px 0 14px; }

.choice-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block; text-align: center; padding: 12px 6px; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; transition: box-shadow .15s ease;
}
.choice input:checked + span { box-shadow: inset 0 0 0 2px var(--forest); }
.choice input:focus-visible + span { outline: 2px solid #5f9c66; outline-offset: 2px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks .choice span { text-align: left; padding: 12px 14px; }

.field { margin-top: 14px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px var(--font); color: var(--ink);
  padding: 12px 14px; border-radius: var(--radius); border: 0; background: var(--mist);
  box-shadow: inset 0 0 0 1px transparent;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--forest); }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field { margin-top: 14px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.field-error { font-size: 14px; color: var(--danger); margin-top: 6px; }

.price-line { display: flex; justify-content: space-between; margin-top: 32px; font-weight: 500; }
.price-line span:last-child { color: var(--ink-2); }
.fine { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.fine a { text-underline-offset: 2px; }
.order-panel .btn { width: 100%; margin-top: 20px; padding: 14px 24px; }
.form-status { margin-top: 14px; font-size: 15px; }
.form-status.is-error { color: var(--danger); }
.hp { position: absolute; left: -9999px; }

.done { text-align: center; padding-top: 24px; }
.done h2 { font-size: 30px; font-variation-settings: var(--wide); }
.done p { margin-top: 12px; color: var(--ink-2); }
.done .btn { width: auto; }

/* ---------- Legal pages & 404 ---------- */
.page-head { padding: calc(var(--nav-h) + 72px) var(--gutter) 40px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); font-variation-settings: var(--wide); }
.page-head p { margin-top: 10px; color: var(--ink-2); }
.prose { padding: 0 var(--gutter) 120px; }
.prose .wrap { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; font-variation-settings: var(--wide); }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: #2d342f; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--forest); text-underline-offset: 2px; }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--gutter); background: var(--paper); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-bottom: 28px; }
.footer .footer-cols ul { display: block; }
.footer .footer-cols li + li { margin-top: 6px; }
.footer-head { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer--dark .footer-head, .panel + .footer .footer-head { color: var(--paper); }
.footer-base { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); }
.footer--dark .footer-base, .panel + .footer .footer-base { border-top-color: var(--line-dark); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.panel + .footer, .footer--dark { background: var(--soil); color: var(--sage); border-top-color: var(--line-dark); }
.footer--dark a:hover { color: var(--paper); }

/* Snap scrolling between full-screen panels on the home page, as on tesla.com */
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  html.snap { scroll-snap-type: y proximity; }
  html.snap .panel, html.snap .footer { scroll-snap-align: start; }
}
