/* Gnos3 site — v2 design (Gnos3 shadcn design system: dark, Geist, Gnos3 Blue).
   Shared by index.html and privacy.html. */
:root {
  --bg: #0A1019;
  --bg-alt: #0E1522;
  --card: #121A28;
  --muted: #1A2436;
  --field: rgb(42 56 80 / .3);
  --field-hover: rgb(42 56 80 / .6);
  --select: #172031;
  --border: #233047;
  --border-strong: #2A3850;
  --fg: #E8EDF5;
  --fg-muted: #93A0B6;
  --fg-subtle: #56637A;
  --primary: #1F62D1;
  --primary-hover: #1C58BC;
  --accent: #6E9CEB;
  --success: #05df72;
  --danger: oklch(0.704 0.191 22.216);
  --ring: rgb(110 156 235 / .5);

  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  --section-pad: clamp(64px, 10vw, 112px);

  color-scheme: dark;
}

/* CJK: name sans-serif CJK faces ahead of the generic fallbacks. Otherwise "monospace"
   renders mono labels in a serif face on some systems, e.g. NSimSun on Windows.
   :lang() follows <html lang>, which i18n.js sets. */
:lang(zh) {
  --font-sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", ui-monospace, monospace;
}
:lang(ja) {
  --font-sans: "Geist", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", ui-monospace, monospace;
}
/* Wrap Japanese headings at phrase boundaries rather than mid-word (Chromium; ignored elsewhere). */
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }

/* ---------- Base ---------- */
/* The hidden attribute must win over any display rule below (JS toggles it). */
[hidden] { display: none !important; }

*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgb(110 156 235 / .35); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--fg-muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font-family: var(--font-mono); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon { flex: none; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 24px;
  border: 0; border-radius: 8px;
  font-weight: 500; white-space: nowrap; text-decoration: none;
  cursor: pointer;
  /* transform: primary buttons drift toward the cursor (app.js) */
  transition: background-color .15s, transform .15s ease-out;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-outline { border: 1px solid var(--border-strong); background: var(--field); color: var(--fg); }
.btn-outline:hover { background: var(--field-hover); }
.btn-sm { height: 36px; padding: 0 16px; }
.btn-xs { height: 32px; padding: 0 12px; }
.btn-cta { box-shadow: 0 1px 2px rgb(0 0 0 / .05); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(10 16 25 / .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 64px;
  display: flex; align-items: center; gap: clamp(12px, 3vw, 32px);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 28px; width: auto; display: block; }

.nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.nav a {
  height: 36px; display: flex; align-items: center; padding: 0 12px;
  border-radius: 8px; color: var(--fg-muted); font-weight: 500; text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--fg); background: var(--muted); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }

/* Language dropdown (i18n.js) */
.lang-switch { position: relative; }
.lang-toggle {
  height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--fg-muted); font-weight: 500; cursor: pointer;
}
.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] { color: var(--fg); background: var(--muted); }
.lang-current { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.lang-caret { opacity: .7; transition: transform .15s; }
.lang-toggle[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 184px; margin: 0; padding: 4px; list-style: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .35), 0 4px 6px -4px rgb(0 0 0 / .35);
}
.lang-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent; color: var(--fg); cursor: pointer; text-align: left;
}
.lang-code { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); min-width: 20px; }
.lang-btn.is-active .lang-code { color: var(--accent); }
.lang-menu .lang-btn { height: 32px; padding: 0 8px; border-radius: 6px; }
.lang-menu .lang-btn:hover { background: var(--muted); }
/* Check mark on the active language */
.lang-menu .lang-btn.is-active::after {
  content: ""; margin-left: auto; width: 14px; height: 14px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Mobile menu (app.js). The toggle only shows below 820px. */
.menu-toggle {
  display: none; width: 36px; height: 36px; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--field);
  color: var(--fg); cursor: pointer; transition: background-color .15s;
}
.menu-toggle:hover { background: var(--field-hover); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 1px);
  height: calc(100vh - 65px); height: calc(100dvh - 65px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter) 32px;
  background: var(--bg);
  animation: menuIn .18s ease-out;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
  height: 52px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  color: var(--fg); font-size: 16px; font-weight: 500; text-decoration: none;
}
.mobile-nav a .icon { color: var(--fg-subtle); }
.mobile-nav a:hover .icon { color: var(--fg-muted); }
.mobile-lang { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.mobile-lang-title { font-size: 13px; font-weight: 500; color: var(--accent); }
.mobile-lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-lang .lang-btn {
  height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card);
}
.mobile-lang .lang-btn:hover { border-color: var(--border-strong); }
.mobile-lang .lang-btn.is-active { border-color: var(--accent); background: rgb(31 98 209 / .12); }
body.menu-open { overflow: hidden; }

@media (max-width: 819.98px) {
  .nav { display: none; }
  .site-header.has-menu .header-actions .lang-switch { display: none; }
  .site-header.has-menu .menu-toggle { display: inline-flex; }
}
@media (min-width: 820px) {
  .mobile-menu { display: none !important; }
}
/* Narrow phones: keep logo + CTA (+ menu) on one row */
@media (max-width: 400px) {
  .btn-cta { padding: 0 12px; }
  .btn-cta .icon { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgb(31 98 209 / .38), transparent 70%);
}
.hero-ring { position: absolute; border-radius: 34%; pointer-events: none; }
.hero-ring--a { width: 520px; height: 520px; right: -140px; top: -120px; border: 1px solid rgb(110 156 235 / .10); }
.hero-ring--b { width: 260px; height: 260px; left: -90px; bottom: -110px; border: 1px solid rgb(110 156 235 / .07); }
.hero-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) var(--gutter) clamp(64px, 9vw, 104px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 64px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 28px); min-width: 0; }
.hero-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 9999px; border: 1px solid var(--border-strong); background: rgb(26 36 54 / .6);
  font-size: 12px; font-weight: 500; color: var(--fg);
}
.pill-dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--success); }
.hero-head { min-width: 0; }
.hero-title {
  margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; font-weight: 600;
  letter-spacing: -0.035em;
}
.hero-title .accent { color: var(--accent); }
/* With JS on (and motion allowed), hide the static headline until hero-theatre.js
   assembles it, so it doesn't flash then vanish. Shown anyway after 3s if JS fails. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-head:not(.is-ready) > .hero-title { opacity: 0; animation: heroReveal 0s 3s forwards; }
}
@keyframes heroReveal { to { opacity: 1; } }
.hero-lead {
  font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; color: var(--fg-muted);
  max-width: 52ch; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  border-top: 1px solid var(--border); padding-top: 20px; gap: 16px; max-width: 520px;
}
.hero-meta > div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta dt { font-size: 12px; color: var(--fg-muted); }
.hero-meta dd { margin: 0; font-weight: 500; }
/* Live demo card, filled by hero-theatre.js. Without JS there is nothing to show. */
.hero-demo {
  min-width: 0; width: 100%; max-width: 600px; justify-self: center;
  min-height: 440px; display: flex; flex-direction: column; justify-content: center;
}
html:not(.js) .hero-demo { display: none; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto; padding: var(--section-pad) var(--gutter);
  display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px);
}
.band { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--accent); }
.h2 {
  font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 600;
  letter-spacing: -0.03em; text-wrap: balance;
}
.section-lead { font-size: 16px; line-height: 26px; color: var(--fg-muted); text-wrap: pretty; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--card);
}
.card h3 { font-size: 16px; font-weight: 600; line-height: 24px; }
.card p { color: var(--fg-muted); line-height: 22px; text-wrap: pretty; }
.card-raised { box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.card-icon {
  width: 36px; height: 36px; border-radius: 8px; background: rgb(31 98 209 / .15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}

.steps { list-style: none; margin: 0; padding: 0; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.step-num {
  width: 32px; height: 32px; border-radius: 9999px; background: var(--primary); color: #fff;
  font-weight: 600; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.step-line { flex: 1; height: 1px; background: var(--border); }

.case h3 { margin-top: 12px; }
.tag {
  align-self: flex-start; height: 22px; display: inline-flex; align-items: center; padding: 0 8px;
  border-radius: 8px; background: var(--muted); font-size: 12px; font-weight: 500;
}

/* ---------- Compare: table at ≥820px, one card per row below ---------- */
.section-compare { padding-top: 0; }
.compare { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); }
.compare-head,
.compare-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
.compare-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); font-weight: 500; color: var(--fg-muted); }
.compare-head > div { padding: 14px 20px; }
.compare-head .is-gnos3 { color: var(--fg); display: flex; align-items: center; gap: 8px; }
.compare-head .is-gnos3 img { width: 16px; height: 16px; }
.compare-row { border-bottom: 1px solid var(--border); }
.compare-row:last-child { border-bottom: 0; }
.compare-attr { padding: 16px 20px; font-weight: 500; }
.compare-cell { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.compare-cell.is-cloud { color: var(--fg-muted); }
.compare-cell.is-gnos3 { background: rgb(31 98 209 / .06); }
.compare-label { display: none; font-size: 12px; color: var(--fg-muted); }
.compare-val { display: flex; align-items: flex-start; gap: 8px; }
.compare-val .icon { margin-top: 2px; }

@media (max-width: 819.98px) {
  .compare { border: 0; border-radius: 0; background: none; overflow: visible; display: flex; flex-direction: column; gap: 12px; }
  .compare-head { display: none; }
  .compare-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid var(--border); border-radius: 14px; background: var(--card); overflow: hidden;
  }
  .compare-row:last-child { border-bottom: 1px solid var(--border); }
  .compare-attr { grid-column: 1 / -1; padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--border); }
  .compare-cell { padding: 12px 16px; }
  .compare-cell.is-gnos3 { background: rgb(31 98 209 / .08); border-left: 1px solid var(--border); }
  .compare-label { display: block; }
  .compare-val { gap: 6px; }
}

/* ---------- Motion ---------- */
/* How it works: one small looping illustration per step. */
.step-viz { margin-top: auto; padding-top: 20px; color: #5E6D87; }
.viz { display: block; width: 100%; height: 70px; overflow: visible; }
.viz .acc { fill: var(--accent); }
.viz .acc-line { stroke: var(--accent); }
/* 1 · Unbox: the box floats, its LED pulses, the shipping rails drift inward */
.viz-unbox .viz-box { animation: vizFloat 4.2s ease-in-out infinite; }
.viz-unbox .viz-led { animation: vizLed 1.8s ease-in-out infinite; }
.viz-unbox .viz-rail { animation: vizRailDash 3s linear infinite; }
.viz-unbox .viz-rail.r-r { animation-direction: reverse; }
.viz-unbox .viz-shadow { transform-origin: 100px 60px; animation: vizShadow 4.2s ease-in-out infinite; }
/* 2 · Connect: documents light up in turn, a packet travels to the Gnos3 box, which glows */
.viz-connect .viz-doc { animation: vizDocPulse 3.6s ease-in-out infinite; }
.viz-connect .viz-doc.d2 { animation-delay: .35s; }
.viz-connect .viz-doc.d3 { animation-delay: .7s; }
.viz-connect .viz-packet { animation: vizPacket 2.4s linear infinite; }
.viz-connect .viz-target { animation: vizTargetGlow 3.6s ease-in-out infinite; }
/* 3 · Ask: the cursor blinks, the answer streams in, the thinking dots bounce */
.viz-ask .viz-cursor { animation: vizBlink 1.1s steps(2) infinite; }
.viz-ask .viz-typed { animation: vizTypedPulse 4.5s ease-in-out infinite; }
.viz-ask .viz-stream { transform-origin: 48px 46px; animation: vizType 4.5s cubic-bezier(.4,.7,.5,1) infinite; }
.viz-ask .viz-dot { animation: vizDotBounce 1.2s ease-in-out infinite; }
.viz-ask .viz-dot.d2 { animation-delay: .15s; }
.viz-ask .viz-dot.d3 { animation-delay: .3s; }
@keyframes vizFloat { 50% { transform: translateY(-3px); } }
@keyframes vizLed { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes vizRailDash { to { stroke-dashoffset: -10; } }
@keyframes vizShadow { 0%, 100% { transform: scaleX(1); opacity: .15; } 50% { transform: scaleX(.85); opacity: .25; } }
@keyframes vizDocPulse { 0%, 100% { stroke: currentColor; } 20%, 40% { stroke: var(--accent); } }
@keyframes vizPacket { 0% { transform: translateX(0); opacity: 0; } 10%, 90% { opacity: 1; } 100% { transform: translateX(30px); opacity: 0; } }
@keyframes vizTargetGlow { 0%, 100% { filter: none; } 45%, 75% { filter: drop-shadow(0 0 4px var(--accent)); } }
@keyframes vizBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes vizTypedPulse { 0%, 100% { opacity: .25; } 50% { opacity: .5; } }
@keyframes vizType { 0% { transform: scaleX(0); opacity: 0; } 15% { opacity: .3; } 55% { transform: scaleX(1); } 80%, 100% { transform: scaleX(1); opacity: .15; } }
@keyframes vizDotBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }

/* Cards that lift and glow on hover (privacy, use cases) */
.lift { transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s; }
.lift:hover {
  transform: translateY(-3px);
  border-color: rgb(110 156 235 / .45);
  box-shadow: 0 20px 60px -30px rgb(110 156 235 / .4), inset 0 0 0 1px rgb(110 156 235 / .2);
}
.lift .card-icon { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.lift:hover .card-icon { transform: scale(1.08) rotate(-4deg); }

/* Scroll-in reveals. app.js adds .reveal / .pop (only when motion is allowed) and .in once
   the element is on screen; --reveal-delay staggers siblings. Reveals use the translate
   property so they don't fight the hover transform above. */
.reveal {
  opacity: 0; translate: 0 14px;
  transition: opacity .6s ease var(--reveal-delay, 0s), translate .6s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0s),
              transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.reveal.in { opacity: 1; translate: none; }
/* Steps: the number pops, then its line draws across the card */
.reveal .step-num { transform: scale(.6); opacity: 0; transition: transform .5s cubic-bezier(.5,1.6,.4,1), opacity .3s; transition-delay: calc(var(--reveal-delay, 0s) + .15s); }
.reveal .step-line { transform: scaleX(0); transform-origin: left center; transition: transform 1s cubic-bezier(.2,.8,.2,1) calc(var(--reveal-delay, 0s) + .3s); }
.reveal.in .step-num, .reveal.in .step-line { transform: none; opacity: 1; }
/* Compare: the dash and tick of each row pop in */
.pop .compare-val .icon { transform: scale(0); transition: transform .5s cubic-bezier(.5,1.6,.4,1) var(--reveal-delay, 0s); }
.pop .is-gnos3 .compare-val .icon { transition-delay: calc(var(--reveal-delay, 0s) + .1s); }
.pop.in .compare-val .icon { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lift:hover, .lift:hover .card-icon { transform: none; }
}
/* Never print cards that haven't scrolled into view yet as blank boxes */
@media print {
  .reveal, .reveal .step-num, .reveal .step-line, .pop .compare-val .icon { opacity: 1 !important; translate: none !important; transform: none !important; }
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.contact-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 15% 0%, rgb(31 98 209 / .22), transparent 70%);
}
.contact-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: var(--section-pad) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 64px; align-items: start;
}
.contact-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.contact-copy .section-lead { max-width: 48ch; }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; }
.contact-email {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.contact-email span { color: var(--fg-muted); }
.contact-email a { font-family: var(--font-mono); font-size: 13px; }
/* Old links to #order still land on the contact section */
.anchor-alias { position: absolute; top: 0; }

.form-card {
  min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .2);
}
.form { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.form-head h3 { font-size: 16px; font-weight: 600; line-height: 1; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.input {
  height: 36px; min-width: 0; padding: 4px 12px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--field);
  font-weight: 400; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
select.input { background: var(--select); }
textarea.input { height: auto; min-height: 84px; padding: 8px 12px; resize: vertical; }
/* Honeypot: off-screen, real visitors never fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.cf-turnstile { min-height: 65px; }
.form-error { color: var(--danger); }
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sent { padding: 48px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.sent-icon {
  width: 48px; height: 48px; border-radius: 9999px; background: rgb(5 223 114 / .12);
  display: flex; align-items: center; justify-content: center;
}
.sent h3 { font-size: 18px; font-weight: 600; }
.sent p { color: var(--fg-muted); }
.sent .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 22px; width: auto; display: block; }
.footer-brand span { color: var(--fg-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.footer-nav a { color: var(--fg-muted); }
.footer-link-btn {
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--fg-muted);
}
.footer-nav a:hover,
.footer-link-btn:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy {
  width: 100%; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--fg-muted); font-size: 12px;
}

/* ---------- Cookie consent banner (consent.js) ---------- */
.consent {
  position: fixed; z-index: 60;
  left: var(--gutter); right: var(--gutter); bottom: 16px;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 24px;
  padding: 20px;
  background: rgb(18 26 40 / .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / .6);
}
.consent-title { margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--fg); }
.consent-text { margin: 0; font-size: 13px; line-height: 20px; color: var(--fg-muted); }
.consent-text a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; gap: 16px; left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .consent-actions .btn { flex: 1 1 0; }
}

/* ---------- Privacy page (privacy.html) ---------- */
.policy {
  max-width: 760px; margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter) var(--section-pad);
}
.policy h1 {
  font-size: clamp(32px, 5vw, 48px); line-height: 1.1; font-weight: 600;
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.policy .policy-date { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); margin-bottom: 24px; }
.policy h3 { margin: 32px 0 8px; font-size: 16px; font-weight: 600; line-height: 24px; }
.policy p { font-size: 15px; line-height: 24px; color: var(--fg-muted); text-wrap: pretty; }
.policy code {
  font-size: .9em; color: var(--fg); background: var(--muted);
  padding: 1px 5px; border-radius: 4px;
}
