/* Nzinga public site (index, tokenizer, network, app). Layout, type, spacing and motion follow a single reference
   customer-story page measured value by value; colour is Nzinga Electric. The design system pages keep site.css.
   Breakpoints: 991 (tablet: menu, single column), 767 (phone: rails), 479 (small phone). */

:root,
:root[data-theme="light"] {
  --w-bg: #FFFFFF;
  --w-panel: #F7F7FA;
  --w-panel-2: #ECECF1;
  --w-fg: #0B0B10;
  --w-fg-2: #2A2A33;             /* nav and footer links */
  --w-muted: #55555F;            /* prose */
  --w-subtle: #6B6B75;           /* mono labels, captions */
  --w-rule: rgba(11, 11, 16, 0.12);
  --w-rule-strong: rgba(11, 11, 16, 0.28);
  --w-accent-text: #5C7A00;      /* coloured text at small sizes on white: darkened Volt */
  --w-display-accent: #FF2D7A;   /* headline accent on white, display sizes only */
  --w-btn: #0B0B10;
  --w-on-btn: #FFFFFF;
  --w-btn-hover: #2A2A33;
  --w-wordmark: #ECECF1;
  --w-shadow: 0 4px 16px rgba(11, 11, 16, 0.05);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --w-bg: #0B0B10;
  --w-panel: #121218;
  --w-panel-2: #1D1D26;
  --w-fg: #F7F7FA;
  --w-fg-2: #E4E4EA;
  --w-muted: #A8A8B3;
  --w-subtle: #8E8E99;
  --w-rule: rgba(247, 247, 250, 0.12);
  --w-rule-strong: rgba(247, 247, 250, 0.3);
  --w-accent-text: #C8FF2E;
  --w-display-accent: #FF2D7A;
  --w-btn: #F7F7FA;
  --w-on-btn: #0B0B10;
  --w-btn-hover: #D9D9E0;
  --w-wordmark: #16161D;
  --w-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
:root {
  /* Dark sections are #0B0B10 in both themes. */
  --w-ink: #0B0B10;
  --w-ink-card: #16161D;
  --w-ink-rule: rgba(247, 247, 250, 0.10);
  --w-ink-fg: #F7F7FA;
  --w-ink-muted: #8E8E99;
  --w-ink-track: rgba(247, 247, 250, 0.10);
  --w-ink-before: #6E6E78;
  --volt: #C8FF2E;
  --magenta: #FF2D7A;
  --flame: #FF6A1F;
  --cyan: #19E0E6;
  --violet: #7C5CFF;
  --w-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --w-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --w-pad: 60px;
  --w-ease: cubic-bezier(.215, .61, .355, 1);      /* power3.out */
  --w-ease-2: cubic-bezier(.25, .46, .45, .94);    /* power2.out */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; min-width: 320px; }
body {
  margin: 0; background: var(--w-bg); color: var(--w-fg);
  font-family: var(--w-sans); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--w-fg); outline-offset: 2px; }
.w-ink :focus-visible { outline-color: var(--volt); }
.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; }
.w-skip { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--w-btn); color: var(--w-on-btn); padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.w-skip:focus { top: 16px; }

.w-pad { padding-left: var(--w-pad); padding-right: var(--w-pad); }
.w-container { max-width: 1380px; margin: 0 auto; }
.w-mono { font-family: var(--w-mono); font-size: 12px; line-height: 1.4; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.w-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--w-btn);
  background: var(--w-btn); color: var(--w-on-btn); font: 500 16px/1.5 var(--w-sans); text-decoration: none; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.w-btn:hover { background: var(--w-btn-hover); border-color: var(--w-btn-hover); }
.w-btn.is-small { padding: 8px 14px; font-size: 14px; line-height: 1.55; }
.w-btn.is-outline { background: var(--w-bg); border-color: var(--w-rule); color: var(--w-fg); }
.w-btn.is-outline:hover { border-color: var(--w-rule-strong); background: var(--w-panel); }
.w-btn svg { width: 16px; height: 16px; flex: none; }
.w-ink .w-btn { background: var(--w-ink-fg); border-color: var(--w-ink-fg); color: var(--w-ink); }
.w-ink .w-btn:hover { background: #D9D9E0; border-color: #D9D9E0; }
.w-ink .w-btn.is-outline { background: var(--w-ink); border-color: rgba(247, 247, 250, 0.16); color: var(--w-ink-fg); }
.w-ink .w-btn.is-outline:hover { border-color: rgba(247, 247, 250, 0.5); background: rgba(247, 247, 250, 0.06); }
.w-btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Navigation: floating pill ---------- */
.w-navbar { position: fixed; inset: 0 0 auto; z-index: 900; display: flex; justify-content: center; padding: 16px 16px 0; pointer-events: none; }
.w-capsule {
  pointer-events: auto; position: relative; display: flex; align-items: center; max-width: 100%;
  padding: 8px 8px 8px 20px; border: 1px solid var(--w-rule); border-radius: 999px; background: var(--w-bg); box-shadow: var(--w-shadow);
}
.w-nav-wrap { display: flex; align-items: center; gap: 32px; height: 40px; }
.w-logo { display: inline-flex; align-items: center; gap: 7px; height: 25px; color: var(--w-fg); text-decoration: none; }
.w-logo .cowrie { display: block; }
.w-logo .wordmark { display: block; }
.w-links { display: flex; align-items: center; gap: 26px; }
.w-links a { color: var(--w-fg-2); font-size: 14px; line-height: 1.55; font-weight: 500; text-decoration: none; transition: color .2s; }
.w-links a:hover, .w-links a[aria-current="page"] { color: var(--w-fg); }
.w-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--w-rule-strong); }
.w-nav-actions { display: flex; align-items: center; gap: 32px; }
.w-nav-cta { display: flex; align-items: center; gap: 6px; }

.w-theme { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--w-panel-2); border: 0; cursor: pointer; color: var(--w-fg); }
.w-theme-knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 999px; background: var(--w-bg); border: 1px solid var(--w-rule); box-shadow: 0 1px 3px rgba(11, 11, 16, .08); transition: transform .3s var(--w-ease); }
:root[data-theme="dark"] .w-theme-knob { transform: translateX(30px); }
.w-theme-opt { position: relative; z-index: 1; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; opacity: .5; transition: opacity .2s; }
.w-theme-opt svg { width: 14px; height: 14px; }
:root:not([data-theme="dark"]) .w-theme-opt.sun, :root[data-theme="dark"] .w-theme-opt.moon { opacity: 1; }

.w-menu-btn { display: none; width: 40px; height: 40px; border-radius: 999px; background: var(--w-btn); border: 0; cursor: pointer; position: relative; flex: none; }
.w-menu-btn span { position: absolute; left: 12px; width: 16px; height: 1.5px; background: var(--w-on-btn); transition: transform .3s var(--w-ease), top .3s var(--w-ease); }
.w-menu-btn span:first-child { top: 16px; }
.w-menu-btn span:last-child { top: 22.5px; }
.w-open .w-menu-btn span:first-child { top: 19.25px; transform: rotate(45deg); }
.w-open .w-menu-btn span:last-child { top: 19.25px; transform: rotate(-45deg); }

.w-sheet { display: none; }

/* ---------- Hero ---------- */
main { display: block; padding-top: 78px; }
.w-hero { padding-top: 72px; border-top: 1px solid var(--w-rule); }
.w-crumb { display: flex; gap: 10px; font-family: var(--w-mono); font-size: 12px; line-height: 1.4; text-transform: uppercase; color: var(--w-fg); }
.w-crumb a { text-decoration: none; }
.w-crumb a:hover { text-decoration: underline; }
.w-crumb .sep { color: var(--w-subtle); }
.w-crumb .cur { color: var(--w-accent-text); font-weight: 500; }
.w-h1 { margin-top: 24px; max-width: 1000px; font-size: 72px; line-height: 1; font-weight: 400; letter-spacing: -0.035em; }
.w-h1 > span, .w-h2-2 > span, .w-title-2 > span { display: block; }
.w-h1 .accent { color: var(--w-display-accent); }
.w-lead { margin-top: 24px; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--w-muted); }
.w-hero-head { padding-bottom: 56px; }

.w-cover { position: relative; height: 560px; overflow: hidden; }
.w-cover-art { position: absolute; inset: 0; }
.w-cover-pad { position: relative; height: 100%; }
.w-cover-inner { max-width: 1320px; height: 100%; margin: 0 auto; display: flex; align-items: flex-end; padding-bottom: 48px; }

.w-stats { display: flex; align-items: stretch; padding: 28px 8px; border-radius: 20px; background: var(--w-bg); }
.w-stat { display: flex; flex-direction: column; gap: 2px; padding: 0 28px; }
.w-stat-v { font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; white-space: nowrap; }
.w-stat-l { font-size: 14px; line-height: 1.55; color: var(--w-subtle); }
.w-stat-sep { width: 1px; flex: none; background: var(--w-rule); }

/* ---------- Mosaic artwork ---------- */
.w-mosaic { position: absolute; inset: 0; overflow: hidden; background: var(--w-panel); }
.w-mosaic canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Story: facts column + article ---------- */
.w-story { padding: 104px 0; }
.w-split { display: grid; grid-template-columns: 300px minmax(0, 720px); column-gap: 96px; }
.w-aside { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; }
.w-facts { display: flex; flex-direction: column; }
.w-fact { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--w-rule); }
.w-fact-l { font-family: var(--w-mono); font-size: 12px; line-height: 1.4; text-transform: uppercase; color: var(--w-subtle); }
.w-fact-v { font-size: 14px; line-height: 1.55; font-weight: 500; }
.w-aside-cta { padding-top: 20px; display: flex; }
.w-article { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.w-h2 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.w-h2:not(:first-child) { margin-top: 20px; }
.w-text { font-size: 18px; line-height: 1.55; color: var(--w-muted); }
.w-text a { color: var(--w-fg); text-underline-offset: 3px; text-decoration-color: var(--w-rule-strong); }
.w-text a:hover { text-decoration-color: currentColor; }
.w-code {
  margin: 0; padding: 24px; border: 1px solid var(--w-rule); border-radius: 16px; background: var(--w-panel);
  font-family: var(--w-mono); font-size: 14px; line-height: 1.75; color: var(--w-fg); white-space: pre; overflow-x: auto;
}
.w-code .c { color: var(--w-subtle); }
.w-code .s { color: var(--w-accent-text); }
.w-quote { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 8px 28px; border-left: 2px solid var(--magenta); margin: 0; }
.w-quote p { font-size: 32px; line-height: 1.12; letter-spacing: -0.025em; color: var(--w-fg); }
.w-quote footer { font-size: 14px; line-height: 1.55; color: var(--w-subtle); }
.w-more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--w-fg); text-decoration: none; }
.w-more-link span { transition: transform .2s var(--w-ease); }
.w-more-link:hover span { transform: translateX(3px); }

/* Choice list (Network): sits where the reference puts its code block. */
.w-choices { border: 1px solid var(--w-rule); border-radius: 16px; background: var(--w-panel); overflow: hidden; }
.w-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 24px; border-top: 1px solid var(--w-rule); }
.w-choice:first-child { border-top: 0; }
.w-choice b { font-weight: 500; font-size: 16px; line-height: 1.4; }
.w-choice span { grid-column: 1; font-size: 14px; line-height: 1.55; color: var(--w-muted); }
.w-choice i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; font-family: var(--w-mono); font-size: 12px; text-transform: uppercase; color: var(--w-subtle); }
.w-choice i.paid { color: var(--w-fg); background: var(--volt); color: #0B0B10; padding: 4px 8px; border-radius: 6px; }

/* Phones (App) */
.w-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.w-phone { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.w-phone-frame { background: #050507; border-radius: 34px; padding: 7px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px rgba(11, 11, 16, .14); }
.w-phone-frame img { width: 100%; height: auto; aspect-ratio: 303 / 648; object-fit: cover; border-radius: 27px; background: #0B0B10; }
.w-phone figcaption { font-family: var(--w-mono); font-size: 12px; line-height: 1.4; text-transform: uppercase; color: var(--w-subtle); text-align: center; }

/* ---------- Dark section: before / after ---------- */
.w-ink { background: var(--w-ink); color: var(--w-ink-fg); }
:root[data-theme="dark"] .w-ink { border-top: 1px solid var(--w-ink-rule); border-bottom: 1px solid var(--w-ink-rule); }
.w-compare { padding: 112px 0; }
.w-compare-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.w-h2-2 { font-size: 40px; line-height: 1.12; font-weight: 400; letter-spacing: -0.025em; max-width: 640px; }
.w-ink .w-h2-2 .accent { color: var(--volt); }
.w-note { font-family: var(--w-mono); font-size: 12px; line-height: 1.4; text-transform: uppercase; color: var(--w-ink-muted); text-align: right; }
.w-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.w-cmp { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 20px; background: var(--w-ink-card); border: 1px solid var(--w-ink-rule); }
.w-cmp-l { font-family: var(--w-mono); font-size: 12px; line-height: 1.4; text-transform: uppercase; color: var(--w-ink-muted); }
.w-row { display: flex; flex-direction: column; gap: 8px; }
.w-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.w-row-n { font-size: 14px; line-height: 1.55; color: var(--w-ink-muted); }
.w-row-v { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; white-space: nowrap; }
.w-track { height: 6px; border-radius: 3px; background: var(--w-ink-track); overflow: hidden; }
.w-fill { height: 100%; border-radius: 3px; background: var(--w-ink-before); transform-origin: 0 50%; }
.w-fill.is-after { background: var(--volt); }
.w-cmp-phone .w-phone-frame { box-shadow: none; }
.w-cmp-phone figcaption { color: var(--w-ink-muted); }

/* ---------- More: three cards ---------- */
.w-more { padding: 104px 0; }
.w-more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.w-title-2 { font-size: 40px; line-height: 1.12; font-weight: 400; letter-spacing: -0.025em; }
.w-card { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--w-rule); border-radius: 20px; background: var(--w-bg); overflow: hidden; text-decoration: none; color: var(--w-fg); transition: border-color .2s; }
.w-card:hover { border-color: var(--w-rule-strong); }
.w-card-cover { position: relative; height: 200px; overflow: hidden; }
.w-card-cover .w-mosaic { transition: transform .3s; }
.w-card:hover .w-card-cover .w-mosaic { transform: scale(1.04); }
.w-card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.w-card-meta { display: flex; gap: 6px; font-family: var(--w-mono); font-size: 12px; line-height: 1.4; font-weight: 500; text-transform: uppercase; color: var(--w-accent-text); }
.w-card-title { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }

/* ---------- Closing split ---------- */
.w-closing { display: flex; min-height: 560px; }
.w-closing-media { position: relative; flex: none; width: 43.33%; overflow: hidden; }
.w-closing-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding: 96px; }
.w-eyebrow { font-family: var(--w-mono); font-size: 12px; line-height: 1.3; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--volt); }
.w-closing .w-title-2 { font-size: 48px; max-width: 560px; letter-spacing: -0.03em; }
.w-closing .w-title-2 .accent { color: var(--volt); }
.w-closing-lead { font-size: 18px; line-height: 1.55; color: var(--w-ink-muted); }

/* ---------- Footer ---------- */
.w-footer { border-top: 1px solid var(--w-rule); padding: 88px 40px 0; background: var(--w-bg); }
.w-foot { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; }
.w-foot-top { display: flex; justify-content: space-between; gap: 48px 24px; padding-bottom: 72px; }
.w-foot-statement { display: flex; flex-direction: column; gap: 20px; max-width: 400px; flex: 1; }
.w-foot-tagline { max-width: 300px; font-size: 16px; line-height: 1.5; color: var(--w-muted); }
.w-foot-label { margin: 4px 0 -8px; font-family: var(--w-mono); font-size: 11px; line-height: 1.3; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--w-subtle); }
.w-field { display: flex; align-items: center; gap: 8px; width: 340px; max-width: 100%; height: 48px; padding-right: 6px; border: 1px solid var(--w-rule); border-radius: 10px; background: var(--w-panel); }
.w-field-v { flex: 1; min-width: 0; padding: 8px 8px 8px 16px; font-size: 14px; line-height: 1.4; color: var(--w-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-field .w-btn { padding: 9px 14px; font-size: 13px; line-height: 1.2; border-radius: 7px; }
.w-foot-cols { display: grid; grid-template-columns: repeat(4, 176px); gap: 40px 24px; }
.w-foot-col { display: flex; flex-direction: column; gap: 4px; }
.w-foot-h { margin-bottom: 12px; font-family: var(--w-mono); font-size: 11px; line-height: 1.3; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--w-subtle); }
.w-foot-col a { padding: 3px 0; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--w-fg-2); text-decoration: none; transition: color .2s; }
.w-foot-col a:hover { color: var(--w-fg); }
.w-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 24px 0; border-top: 1px solid var(--w-rule); }
.w-foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.w-foot-legal, .w-foot-legal a, .w-foot-bottom > a { font-family: var(--w-mono); font-size: 11px; line-height: 1.4; color: var(--w-subtle); text-decoration: none; }
.w-foot-legal a, .w-foot-bottom > a { font-weight: 500; padding: 2px 0; }
.w-foot-legal a:hover, .w-foot-bottom > a:hover { color: var(--w-fg); }
.w-wordmark { height: calc(min(100vw - 80px, 1200px) * 0.215); overflow: hidden; color: var(--w-wordmark); user-select: none; }
.w-wordmark svg { display: block; width: 100%; height: auto; margin-top: -0.6%; }

/* ---------- Motion: reveal on scroll (web.js adds .w-anim when motion is allowed) ---------- */
.w-anim [data-reveal="fade-up"], .w-anim [data-reveal="fade"], .w-anim [data-reveal="media"], .w-anim [data-reveal="float"] { opacity: 0; }
.w-anim [data-reveal="fade-up"] { transform: translateY(var(--y, 16px)); transition: opacity .6s var(--w-ease) var(--d, 0s), transform .6s var(--w-ease) var(--d, 0s); }
.w-anim [data-reveal="float"] { transform: translateY(24px); transition: opacity .6s var(--w-ease) .2s, transform .6s var(--w-ease) .2s; }
.w-anim [data-reveal="fade"] { transition: opacity .6s var(--w-ease-2) var(--d, .3s); }
.w-anim [data-reveal="media"] { transform: scale(.98); transition: opacity .6s var(--w-ease) .1s, transform .6s var(--w-ease) .1s; }
.w-anim [data-reveal="image"] { opacity: 0; transition: opacity .6s var(--w-ease-2); }
.w-anim [data-reveal="image"] .w-mosaic, .w-anim [data-reveal="zoom"] .w-mosaic { transform: scale(1.06); transition: transform .8s var(--w-ease-2); }
.w-anim [data-reveal="stagger"] > * { opacity: 0; transform: translateY(var(--y, 24px)); transition: opacity var(--t, .6s) var(--w-ease), transform var(--t, .6s) var(--w-ease); }
.w-anim [data-reveal="lines"] .w-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.w-anim [data-reveal="lines"] .w-line-in { display: block; transform: translateY(105%); transition: transform var(--t, .6s) var(--w-ease) var(--d, 0s); }
.w-anim [data-reveal="bars"] .w-fill { transform: scaleX(0); transition: transform .7s var(--w-ease-2) .15s; }
.w-anim .is-in[data-reveal], .w-anim .is-in[data-reveal] .w-mosaic { opacity: 1; transform: none; }
.w-anim .is-in[data-reveal="stagger"] > * { opacity: 1; transform: none; }
.w-anim .is-in[data-reveal="lines"] .w-line-in { transform: none; }
.w-anim .is-in[data-reveal="bars"] .w-fill { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Tablet (≤991) ---------- */
@media (max-width: 991px) {
  :root { --w-pad: 24px; }
  .w-capsule { width: 100%; max-width: 720px; }
  .w-nav-wrap { width: 100%; justify-content: space-between; gap: 8px; }
  .w-links, .w-nav-actions .w-theme, .w-nav-actions .w-btn.is-outline { display: none; }
  .w-nav-actions { gap: 6px; }
  .w-menu-btn { display: block; }
  .w-sheet {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: block; pointer-events: auto;
    padding: 8px 20px 20px; border: 1px solid var(--w-rule); border-radius: 24px; background: var(--w-bg); box-shadow: var(--w-shadow);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .3s var(--w-ease), transform .3s var(--w-ease), visibility 0s .3s;
  }
  .w-open .w-sheet { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--w-ease), transform .3s var(--w-ease); }
  .w-sheet a.w-sheet-link { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--w-rule); font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; color: var(--w-fg); text-decoration: none; }
  .w-sheet a.w-sheet-link[aria-current="page"] { color: var(--w-accent-text); }
  .w-sheet-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
  .w-sheet-row span { font-size: 14px; color: var(--w-muted); }
  .w-sheet .w-btn { width: 100%; }
  .w-sheet-btns { display: flex; flex-direction: column; gap: 8px; }

  .w-hero { padding-top: 56px; }
  .w-h1 { font-size: 60px; }
  .w-cover { height: 480px; }
  .w-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .w-stat { padding: 0 20px; }
  .w-stat-v { font-size: 22px; }
  .w-stat-sep { display: none; }
  .w-story { padding: 88px 0; }
  .w-split { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .w-aside { position: static; }
  .w-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .w-quote p { font-size: 28px; }
  .w-compare { padding: 88px 0; }
  .w-h2-2, .w-title-2 { font-size: 34px; }
  .w-cmp { padding: 24px; }
  .w-more { padding: 88px 0; }
  .w-closing { min-height: 480px; }
  .w-closing-panel { padding: 64px 48px; }
  .w-closing .w-title-2 { font-size: 40px; }
  .w-footer { padding: 72px 24px 0; }
  .w-foot-top { flex-direction: column; padding-bottom: 56px; }
  .w-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-wordmark { height: calc((100vw - 48px) * 0.215); }
}

/* ---------- Phone (≤767) ---------- */
@media (max-width: 767px) {
  :root { --w-pad: 16px; }
  .w-navbar { padding-top: 12px; }
  .w-capsule { padding: 6px 6px 6px 16px; }
  .w-hero { padding-top: 40px; }
  .w-h1 { font-size: 46px; }
  .w-lead { font-size: 16px; margin-top: 20px; }
  .w-h1 { margin-top: 20px; }
  .w-hero-head { padding-bottom: 40px; }
  .w-cover { height: 440px; }
  .w-cover-inner { padding-bottom: 16px; }
  .w-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; padding: 20px 4px; }
  .w-stat { padding: 0 16px; }
  .w-stat-l { font-size: 13px; }
  .w-story { padding: 72px 0; }
  .w-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .w-aside-cta .w-btn { width: 100%; }
  .w-h2 { font-size: 20px; }
  .w-text { font-size: 16px; }
  .w-code { padding: 18px; font-size: 13px; }
  .w-quote { padding-left: 20px; }
  .w-quote p { font-size: 24px; }
  .w-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .w-phone-frame { border-radius: 22px; padding: 5px; }
  .w-phone-frame img { border-radius: 17px; }
  .w-compare { padding: 72px 0; }
  .w-compare-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .w-note { text-align: left; }
  .w-h2-2, .w-title-2 { font-size: 30px; }
  .w-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--w-pad)); padding: 0 var(--w-pad); scroll-padding-left: var(--w-pad); scrollbar-width: none; }
  .w-rail::-webkit-scrollbar { display: none; }
  .w-rail > * { flex: 0 0 80%; scroll-snap-align: start; }
  .w-more { padding: 72px 0; }
  .w-more-head { margin-bottom: 28px; }
  .w-card-cover { height: 180px; }
  .w-card-body { padding: 20px; }
  .w-card-title { font-size: 17px; }
  .w-closing { flex-direction: column; min-height: 0; }
  .w-closing-media { width: 100%; height: 240px; }
  .w-closing-panel { gap: 24px; padding: 56px 24px 64px; }
  .w-closing .w-title-2 { font-size: 32px; }
  .w-footer { padding: 64px 16px 72px; }
  .w-foot-top { padding-bottom: 48px; gap: 40px 24px; }
  .w-foot-cols { gap: 32px 16px; }
  .w-foot-col { gap: 2px; }
  .w-foot-h { margin-bottom: 8px; }
  .w-foot-col a { padding: 6px 0; }
  .w-foot-bottom { padding: 20px 0; gap: 8px 24px; }
  .w-wordmark { height: calc((100vw - 32px) * 0.215); }
}

/* ---------- Small phone (≤479) ---------- */
@media (max-width: 479px) {
  .w-h1 { font-size: 40px; }
  .w-cover { height: 400px; }
  .w-stat-v { font-size: 20px; }
  .w-code { font-size: 12px; line-height: 1.75; }
  .w-quote p { font-size: 22px; }
  .w-rail > .w-cmp { flex-basis: 85%; }
  .w-closing-media { height: 200px; }
  .w-closing-panel { padding: 48px 16px 56px; }
  .w-closing .w-title-2 { font-size: 28px; }
  .w-closing .w-btn-group { flex-direction: column; align-items: stretch; width: 100%; }
  .w-phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scroll-padding-left: 16px; scrollbar-width: none; }
  .w-phones::-webkit-scrollbar { display: none; }
  .w-phones > * { flex: 0 0 58%; scroll-snap-align: start; }
}
