/* Verda website. Everything is self-hosted: no external fonts, scripts or requests.
   When you change this file or js/site.js, bump the ?v= number in every page's <link>/<script>
   so browsers and Cloudflare's cache don't keep serving the old copy. */

/* Fonts. unicode-range keeps Thai pages from downloading Latin fonts they can't use; the URLs
   must match the <link rel="preload"> tags in the pages exactly. */
@font-face { font-family: "Chakra Petch"; src: url(/fonts/chakra-petch-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; src: url(/fonts/chakra-petch-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark light;
  --bg: #070909;
  --bg-2: #0b0e0e;
  --surface: #0f1312;
  --surface-2: #151a19;
  --border: #1d2423;
  --border-strong: #2b3432;
  --text: #eef2f1;
  --text-2: #b4bdba;
  --muted: #8d9794;
  --accent: #00c896;
  --accent-hover: #1fd9a8;
  --accent-2: #2dd4bf;
  --accent-text: #3ddcaf;
  --accent-soft: rgba(0, 200, 150, 0.1);
  --accent-line: rgba(0, 200, 150, 0.32);
  --on-accent: #02140e;
  --device: #0a0d0d;
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 0.85);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1200px;
  --gutter: 16px;
  --section: 64px;
  --display: "Chakra Petch", "IBM Plex Sans", system-ui, sans-serif;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (min-width: 720px) { :root { --gutter: 32px; --section: 96px; } }
@media (min-width: 1200px) { :root { --section: 112px; } }

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9f8;
    --bg-2: #eff3f2;
    --surface: #ffffff;
    --surface-2: #f1f5f4;
    --border: #e0e7e5;
    --border-strong: #c9d4d1;
    --text: #0b1110;
    --text-2: #3b4543;
    --muted: #57615e;
    --accent-text: #00785a;
    --accent-soft: rgba(0, 200, 150, 0.1);
    --accent-line: rgba(0, 150, 112, 0.35);
    --shadow-lg: 0 40px 80px -40px rgba(10, 30, 25, 0.45);
  }
}

/* Thai: the self-hosted fonts have no Thai glyphs, so Thai text uses the system's Thai font.
   Thai needs more line height and no letter spacing. */
:root:lang(th) {
  --display: "Chakra Petch", "IBM Plex Sans", "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, system-ui, sans-serif;
  --font: "IBM Plex Sans", "Noto Sans Thai", "Leelawadee UI", Thonburi, Tahoma, system-ui, -apple-system, sans-serif;
}
:lang(th) body { line-height: 1.8; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.45; letter-spacing: 0; }
:lang(th) .eyebrow, :lang(th) .kicker, :lang(th) .btn, :lang(th) .footer-col h2 { letter-spacing: 0; text-transform: none; }
:lang(th) .eyebrow, :lang(th) .kicker, :lang(th) .footer-col h2 { font-size: 0.875rem; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; }
code, pre, .mono { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0 0 0.5em; text-wrap: balance; color: var(--text); }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.25rem, 1.3rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
h3 { font-family: var(--font); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--border); background: var(--bg); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.01em; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.nav { margin-right: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); transition: color .15s ease, background-color .15s ease; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.is-current, .nav-links a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; flex: none; }
.lang a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; line-height: 1; padding: 7px 8px; border-radius: 6px; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--surface-2); color: var(--text); }

/* The menu button only exists for narrow screens; on wide screens the links are always visible. */
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: transparent; color: var(--text); font-size: 1rem; cursor: pointer; place-items: center; }
.nav-toggle:hover { border-color: var(--accent); }
@media (max-width: 1023px) {
  .header-inner { gap: 12px; }
  .nav { order: 3; margin-right: 0; }
  .header-actions { margin-left: auto; gap: 8px; }
  .nav-links { display: none; }
  .site-header .nav-toggle:not([hidden]) { display: grid; }
  .site-header.menu-open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6); }
  .site-header.menu-open .nav-links a { padding: 14px 4px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--border); }
  .site-header.menu-open .nav-links a:last-child { border-bottom: 0; }
  .site-header.menu-open .nav-links a:hover { background: transparent; }
}
/* Phones: the header download button shows only its icon; the label stays for screen readers. */
@media (max-width: 479px) {
  .header-actions .btn-small > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-actions .btn-small { width: 40px; padding: 0; }
}
@media (max-width: 359px) { .site-header .brand span { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.9375rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.btn i { font-size: 0.95em; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface-2); }
.btn-ghost i { color: var(--muted); transition: transform .15s ease; }
.btn-ghost:hover i { transform: translateX(2px); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-small i { font-size: 0.85em; }
.btn-large { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
@media (max-width: 479px) { .hero .actions .btn { flex: 1 1 100%; } }

/* ---------- Labels ---------- */
.eyebrow, .kicker { display: block; font-family: var(--mono); color: var(--accent-text); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 48px; }
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent-text); }
.lead { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.6; color: var(--text-2); max-width: 36em; margin: 0; }
.release-line { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); margin: 0; }
.release-line::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text-2); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; }
.chips i { color: var(--accent-text); font-size: 0.85em; width: 1em; text-align: center; flex: none; }

/* Phone mockup with the mesh sphere as a soft glow behind it. */
.hero-visual { position: relative; display: grid; place-items: center; justify-self: center; width: 100%; max-width: 460px; }
.hero-visual .mesh { position: absolute; left: 50%; top: 50%; width: 150%; max-width: none; transform: translate(-50%, -50%); opacity: 0.5; pointer-events: none; }
.phone { position: relative; width: min(64vw, 280px); padding: 9px; border-radius: 44px; background: var(--device); border: 1px solid #2a3331; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.4), var(--shadow-lg), 0 30px 90px -30px rgba(0, 200, 150, 0.28); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 360 / 800; border-radius: 35px; background: #000; }
@media (min-width: 1024px) { .phone { width: 290px; } }
@media (max-width: 1023px) { .hero-visual .mesh { width: 120%; } }

/* Mesh sphere animation: meridians turn by scaling on X with staggered delays. */
.mesh { display: block; width: 100%; height: auto; overflow: visible; }
.mesh .mer { transform-box: fill-box; transform-origin: center; animation: mesh-turn 24s linear infinite; }
.mesh .mer0 { animation-delay: 0s; } .mesh .mer1 { animation-delay: -2s; } .mesh .mer2 { animation-delay: -4s; }
.mesh .mer3 { animation-delay: -6s; } .mesh .mer4 { animation-delay: -8s; } .mesh .mer5 { animation-delay: -10s; }
.mesh-glow { animation: mesh-breathe 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mesh-nodes circle { animation: mesh-twinkle 5s ease-in-out infinite; }
.mesh-nodes .n1 { animation-delay: -1.6s; } .mesh-nodes .n2 { animation-delay: -3.3s; }
@keyframes mesh-turn {
  0% { transform: scaleX(1); } 12.5% { transform: scaleX(0.707); } 25% { transform: scaleX(0); } 37.5% { transform: scaleX(-0.707); }
  50% { transform: scaleX(-1); } 62.5% { transform: scaleX(-0.707); } 75% { transform: scaleX(0); } 87.5% { transform: scaleX(0.707); } 100% { transform: scaleX(1); }
}
@keyframes mesh-breathe { 0%, 100% { opacity: 0.75; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1.02); } }
@keyframes mesh-twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Sections ---------- */
section { padding: var(--section) 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero + section { padding-top: calc(var(--section) * 0.5); }
.section-head { max-width: 40rem; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 16px; }
.section-head h2:last-child { margin-bottom: 0; }
.section-head p:not(.kicker) { color: var(--text-2); font-size: 1.0625rem; margin: 0; }
.section-head.center { text-align: center; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--text-2); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text); font-size: 1rem; flex: none; }

/* How it works: three columns joined by a thin line on wide screens. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; --steps-gap: 48px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--steps-gap); } }
.step { position: relative; }
.step-icon { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--accent-line); color: var(--accent-text); font-size: 1.25rem; margin-bottom: 24px; box-shadow: 0 0 0 6px var(--bg); }
@media (min-width: 900px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 72px; right: calc(16px - var(--steps-gap)); height: 1px; background: linear-gradient(90deg, var(--accent-line), var(--border)); }
}
.step h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.1875rem; margin-bottom: 8px; }
.step-no { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--accent-text); letter-spacing: 0.02em; }
.step p { color: var(--text-2); margin: 0; max-width: 46ch; }

/* Features grid. */
.features { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .2s ease; }
.feature:hover { border-color: var(--border-strong); }
.feature .icon { margin-bottom: 20px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

/* Two-column text + content (backup). */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; } }
.split h2 { margin-bottom: 16px; }
.split .muted { font-size: 1.0625rem; max-width: 34em; }
.providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.providers li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.9375rem; font-weight: 500; }
.providers i { color: var(--accent-text); width: 1.2em; text-align: center; flex: none; }

/* Privacy statement panel. */
.privacy-panel { position: relative; overflow: hidden; display: grid; gap: 40px; padding: 40px 24px; border-radius: var(--radius-lg); border: 1px solid var(--accent-line); background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 60%); }
@media (min-width: 720px) { .privacy-panel { padding: 56px; } }
@media (min-width: 1024px) { .privacy-panel { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; padding: 64px; } }
.privacy-panel h2 { font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem); margin-bottom: 20px; }
.privacy-lead { color: var(--text-2); font-size: 1.0625rem; max-width: 32em; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--border); color: var(--text-2); }
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks li:last-child { padding-bottom: 0; }
.checks i { color: var(--accent-text); font-size: 1rem; margin-top: 0.3em; flex: none; }
.checks strong { color: var(--text); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow i { transition: transform .15s ease; font-size: 0.85em; }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------- Screenshot slider. Without JS: a sideways-scrolling row. ---------- */
.slider { position: relative; outline: none; --slide-w: 230px; }
@media (min-width: 720px) { .slider { --slide-w: 260px; } }
.slider-viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 0 24px; }
.slider-track { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0 12px; }
.slide { flex: 0 0 auto; width: var(--slide-w); scroll-snap-align: center; }
.slide figure { margin: 0; }
/* Same device frame as the hero phone. */
.slide img { display: block; width: 100%; height: auto; aspect-ratio: 360 / 800; border-radius: 30px; background: #000; box-shadow: 0 0 0 8px var(--device), 0 0 0 9px #2a3331, 0 30px 60px -30px rgba(0, 0, 0, 0.85); }
.slide figcaption { margin-top: 28px; color: var(--text-2); font-size: 0.9375rem; text-align: center; }
.slide figcaption .mono { color: var(--accent-text); margin-right: 6px; font-size: 0.8125rem; }
.slider-controls { display: none; }
.slider-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.slider:focus-visible { outline-offset: 8px; border-radius: var(--radius); }

.slider.is-ready .slider-viewport { position: relative; overflow: hidden; padding: 0; height: var(--slider-h, 720px); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.slider.is-ready .slider-track { display: block; position: relative; height: 100%; padding: 0; }
.slider.is-ready .slide { position: absolute; top: 16px; left: 50%; margin-left: calc(var(--slide-w) / -2); width: var(--slide-w); transition: transform .65s cubic-bezier(.22, .8, .24, 1), opacity .65s ease, filter .65s ease; transform: translateX(var(--x, 0px)) scale(var(--s, 1)); filter: brightness(var(--b, 1)); transform-origin: center top; opacity: var(--o, 1); z-index: var(--z, 1); cursor: pointer; }
.slider.is-ready .slide.is-active { cursor: default; }
.slider.is-ready .slide.is-hidden { pointer-events: none; }
.slider.is-ready .slide.is-active img { box-shadow: 0 0 0 8px var(--device), 0 0 0 9px color-mix(in srgb, var(--accent) 45%, #2a3331), 0 40px 80px -30px rgba(0, 200, 150, 0.3); }
.slider.is-ready .slide:not(.is-active) figcaption { opacity: 0; }
.slider.is-ready .slide figcaption { transition: opacity .4s ease; }
.slider.is-ready .slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 16px; }
.slider-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 0.9rem; transition: border-color .15s ease, color .15s ease; }
.slider-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: var(--border-strong); cursor: pointer; transition: width .3s ease, background-color .3s ease; }
.slider-dot.is-active { width: 24px; background: var(--accent); }
.note { font-size: 0.875rem; color: var(--muted); margin-top: 24px; }

/* ---------- Download ---------- */
.dl-card { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 1024px) { .dl-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.dl-card > * { min-width: 0; }
.dl-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 20px; }
.dl-card h3 i { color: var(--accent-text); }
.dl-card .actions { margin: 24px 0 0; }
.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; font-size: 0.9375rem; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.meta dt, .meta dd { padding: 10px 14px; border-bottom: 1px solid var(--border); margin: 0; }
.meta dt:last-of-type, .meta dd:last-of-type { border-bottom: 0; }
.meta dt { color: var(--muted); font-family: var(--mono); font-size: 0.8125rem; background: var(--surface-2); display: flex; align-items: center; }
.meta dd { font-weight: 500; overflow-wrap: anywhere; }
.hash { font-family: var(--mono); font-size: 0.8125rem; font-weight: 400; word-break: break-all; color: var(--accent-text); }
.install { counter-reset: inst; list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.install li { counter-increment: inst; display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.install li::before { content: counter(inst); font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--accent-text); border: 1px solid var(--accent-line); border-radius: 999px; width: 24px; height: 24px; display: grid; place-items: center; margin-top: 0.1em; flex: none; }
pre.cmd { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; color: var(--text); line-height: 1.6; }
@media (max-width: 400px) {
  .card { padding: 22px 18px; }
  .meta { grid-template-columns: minmax(0, 1fr); }
  .meta dt { border-bottom: 0; padding-bottom: 2px; background: transparent; }
  .meta dd { padding-top: 0; }
  .dl-card .actions .btn { width: 100%; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 16px; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 80px; align-items: start; } .faq-layout .section-head { margin-bottom: 0; } }
.faq { border-top: 1px solid var(--border); max-width: 70ch; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 48px 20px 0; font-weight: 500; font-size: 1.0625rem; position: relative; color: var(--text); transition: color .15s ease; }
.faq summary:hover { color: var(--accent-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq .answer { padding: 0 48px 24px 0; color: var(--text-2); }
.faq .answer :last-child { margin-bottom: 0; }
.faq .answer strong, .faq .answer code { color: var(--text); }
.faq ol, .faq ul, .prose ol, .prose ul { padding-left: 1.3em; }
.faq li, .prose li { margin-bottom: 0.4em; }

/* ---------- Final call to action ---------- */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--border); background: radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--bg) 70%); }
.cta { text-align: center; max-width: 40rem; margin: 0 auto; }
.cta h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 16px; }
.cta p { color: var(--text-2); font-size: 1.125rem; margin: 0; }
.cta .actions { justify-content: center; margin-bottom: 0; }

/* ---------- Content pages ---------- */
.page { padding: 64px 0 var(--section); }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 70ch; }
.wrap.prose > .table-scroll, .wrap.prose > .legal { max-width: 52rem; }
.prose h1 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); margin-bottom: 20px; }
.prose > .lead { margin-bottom: 8px; }
.prose h2 { font-size: 1.5rem; margin-top: 56px; margin-bottom: 16px; scroll-margin-top: 24px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose > ul:not(.checks) { padding-left: 1.3em; }
.prose .checks { margin: 0 0 1em; }
.prose .checks li { display: block; padding: 14px 0 14px 28px; position: relative; }
.prose .checks li:first-child { padding-top: 14px; border-top: 1px solid var(--border); }
.prose .checks li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); padding: 12px 16px 12px 0; }
.prose th { color: var(--text); font-weight: 600; }
.prose td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }
.prose > .toc { list-style: none; padding: 20px 24px; margin: 32px 0 0; display: grid; gap: 4px 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); max-width: 52rem; }
@media (min-width: 720px) { .prose > .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose > .toc li { margin: 0; }
.prose > .toc a { display: block; padding: 6px 0; color: var(--text-2); text-decoration: none; }
.prose > .toc a::before { content: "#"; font-family: var(--mono); color: var(--accent-text); margin-right: 10px; }
.prose > .toc a:hover { color: var(--text); }
.updated { color: var(--muted); font-size: 0.875rem; font-family: var(--mono); }
.legal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
@media (min-width: 720px) { .legal { padding: 32px; } }
.legal p { color: var(--text-2); font-size: 0.9375rem; }
.notice { border: 1px solid var(--accent-line); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 1em; }
.notice p { color: var(--text); }
.notice p:last-child { margin-bottom: 0; }
.notfound { text-align: center; padding: 80px 0 var(--section); }
.notfound .hero-art { width: min(60vw, 240px); margin: 0 auto 16px; }
.notfound .lead { margin: 0 auto; }
.notfound .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; color: var(--muted); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.8fr); gap: 64px; } }
.footer-brand p { margin: 16px 0 0; max-width: 22rem; color: var(--muted); font-size: 0.875rem; }
.footer-nav { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .footer-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-col h2 { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; line-height: 1.4; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--text); }
.footer-col a[aria-current] { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-bottom p { margin: 0; font-size: 0.875rem; }
.footer-bottom a { color: var(--text-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Light theme details ---------- */
@media (prefers-color-scheme: light) {
  .mesh-nodes { fill: #00936c; }
  .hero-visual .mesh { opacity: 0.35; }
  .phone { border-color: #1c2422; }
  .slide img, .slider.is-ready .slide:not(.is-active) img { box-shadow: 0 0 0 8px var(--device), 0 0 0 9px #1c2422, 0 30px 60px -30px rgba(10, 30, 25, 0.5); }
  .site-header.menu-open .nav-links { box-shadow: 0 24px 40px -24px rgba(10, 30, 25, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh .mer, .mesh-glow, .mesh-nodes circle { animation: none; }
  .btn, .btn-ghost i, .feature, .link-arrow i, .faq summary::after, .slider-dot, .slider.is-ready .slide, .slider.is-ready .slide figcaption { transition: none; }
  /* Without motion the meridians rest at fixed angles (cos 0°, 30°, 60°, 90°, 120°, 150°). */
  .mesh .mer0 { transform: scaleX(1); } .mesh .mer1 { transform: scaleX(0.866); } .mesh .mer2 { transform: scaleX(0.5); }
  .mesh .mer3 { transform: scaleX(0.02); } .mesh .mer4 { transform: scaleX(-0.5); } .mesh .mer5 { transform: scaleX(-0.866); }
}
