/* Conflux site. Design language: deep indigo, off-white, violet + pink light from the corner,
   uppercase Fahkwang display type, DM Sans body, square two-part buttons, frosted glass card,
   light "calculator" sections with hairline-bordered boxes and pill toggles. No neon. */

/* Self-hosted Google Fonts, latin subset (SIL Open Font License 1.1, see fonts/OFL-*.txt).
   Outfit stands in for a commercial display face. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/DMSans-var.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: "Fahkwang"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Fahkwang-700.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: "Outfit"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("fonts/Outfit-var.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; }

:root {
  --ink: #0d0628;       /* page background */
  --paper: #eeedf2;     /* text on dark, background of light sections */
  --violet: #5c31ff;
  --pink: #f88cd4;
  --lime: #def141;
  --coal: #1c1c1c;      /* text and hairlines on light sections */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Fahkwang", "Georgia", serif;
  --label: "Outfit", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Fluid type scale: everything is sized in em off this, like the reference (1vw at 1440px). */
  font-size: clamp(14px, 1vw, 17px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1em/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
p { margin: 0; font-size: 1.25em; }
h1, h2, h3 { margin: 0; }
h1 { font: 700 6.2em/0.9375 var(--display); letter-spacing: -0.04em; text-transform: uppercase; }
h2 { font: 700 3.4em/1.02 var(--display); letter-spacing: -0.04em; text-transform: uppercase; }
h3 { font: 700 1.15em/1.3 var(--label); letter-spacing: 0.1em; text-transform: uppercase; }
code { font: 0.92em ui-monospace, "Cascadia Code", Consolas, monospace; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 14px; font: 700 0.9em var(--label); letter-spacing: 0.1em; text-transform: uppercase; }
.skip:focus { left: 10px; }

.container { width: 1440px; max-width: 100%; margin: 0 auto; padding: 0 5em; }

/* Background light: a violet and a pink glow fixed to the bottom-right corner, plus fine grain. */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow i { position: absolute; border-radius: 50%; }
.g-violet { width: 200em; height: 200em; right: -135em; bottom: -133em; opacity: 0.9;
  background: radial-gradient(circle at 50% 50%, #5c31ff, rgba(92, 49, 255, 0) 69%); }
.g-pink { width: 160em; height: 160em; right: -40em; bottom: -134em; opacity: 0.7;
  background: radial-gradient(circle at 50% 50%, #f88cd4, rgba(248, 140, 212, 0) 69%); }
.glow .noise { inset: 0; border-radius: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }

/* Nav: logo left, uppercase tracked links with a violet bar that grows under the hovered one. */
.nav { position: absolute; inset: 0 0 auto; z-index: 20; }
.nav-in { display: flex; align-items: stretch; justify-content: space-between; height: 7.5em; }
.logo { display: inline-flex; align-items: center; gap: 0.7em; text-decoration: none; font: 700 1.25em var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.nav nav { display: flex; align-items: stretch; }
.nav-link { position: relative; display: flex; align-items: center; padding: 0 1em; text-decoration: none; font: 700 0.95em var(--label); letter-spacing: 0.1em; text-transform: uppercase; }
.nav-link::after { content: ""; position: absolute; left: 1em; bottom: 2.3em; width: 0; height: 0.2em; background: var(--violet); transition: width 0.35s var(--ease); }
.nav-link:hover::after, .nav-link:focus-visible::after { width: calc(100% - 2em); }

/* Two-part square button: outlined label + solid arrow block. A fill slides in on hover. */
.button { position: relative; display: inline-flex; align-items: stretch; margin-top: 3em; text-decoration: none; overflow: hidden; isolation: isolate; will-change: transform; }
.b-text { display: flex; align-items: center; gap: 0.45em; padding: 0 2em; border: 1px solid var(--paper); color: var(--pink); font: 700 1em var(--label); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; transition: color 0.5s var(--ease); }
.b-icon { display: flex; align-items: center; height: 4.3em; padding: 0 2.6em; background: var(--paper); color: var(--ink); border: 1px solid var(--paper); }
.b-icon .arrow { width: 2.6em; height: 1em; transition: transform 0.5s var(--ease); }
.b-fill { position: absolute; z-index: -1; inset: 0 auto 0 0; width: 100%; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.button:hover .b-fill, .button:focus-visible .b-fill { transform: scaleX(1); }
.button:hover .b-text, .button:focus-visible .b-text { color: var(--paper); }
.button:hover .arrow, .button:focus-visible .arrow { transform: translateX(0.5em); }
.button.violet .b-text { border: 2px solid var(--violet); color: var(--violet); }
.button.violet .b-icon { background: var(--violet); border: 2px solid var(--violet); color: var(--paper); }
.button.violet .b-fill { background: var(--ink); }
.button.violet:hover .b-text { color: var(--paper); }

/* Hero */
.hero { position: relative; }
/* The hero always fits the first screen: it is exactly one viewport tall (svh = with mobile
   toolbars showing), the glass container stretches to fill it, and everything inside scales with
   --fit, which demo.js lowers until the content fits. The vh terms give a close first paint. */
/* Fills the screen on load, but never taller than --hero-max, so tall screens don't get an
   empty glass box. On shorter screens demo.js scales the content down until it fits. */
.hero { --hero-max: 54rem; display: flex; flex-direction: column; min-height: min(100vh, var(--hero-max)); min-height: min(100svh, var(--hero-max));
  padding: 7.6rem 0 clamp(0.8rem, 2.4vh, 2.4rem); font-size: max(11.5px, calc(var(--fit, 1) * min(1rem, 2.1vh))); }
/* Readability floors: text never below 11.5px, headline never below 22px. Below that the
   layout goes compact (see .hero-compact) instead of shrinking further. */
/* Soft colour behind the hero so its glass has something to frost (reference palette, no neon). */
.hero-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-orbs i { position: absolute; border-radius: 50%; filter: blur(10px); }
.ho-pink { width: 34em; height: 34em; left: 8%; top: 20%; background: radial-gradient(circle at 50% 50%, rgba(248, 140, 212, 0.55), rgba(248, 140, 212, 0) 68%); }
.ho-violet { width: 46em; height: 46em; right: 2%; top: 4%; background: radial-gradient(circle at 50% 50%, rgba(92, 49, 255, 0.75), rgba(92, 49, 255, 0) 68%); }
.hero .container { position: relative; z-index: 1; flex: 1; display: flex; min-height: 0; padding: 0 5rem; }
.hero h1 { font-size: max(22px, calc(var(--fit, 1) * clamp(1.6rem, min(6.3vw, 11.5vh), 7.2rem))); text-wrap: balance; }
.hero .button { margin-top: 2.4em; }

/* The hero itself is one large glass container, styled like the reference card. */
.hero-in { flex: 1; display: flex; flex-direction: column; gap: 2.6em; min-height: 0; }
.hero-left { margin: auto 0; }
.hero.compact .facts { display: none; }
/* Compact hero for very short screens (phones in landscape, small browser windows): slimmer nav,
   no facts / eyebrow / file-size line; headline, text and the Download button always stay. */
.hero-compact .nav-in { height: 3.6rem; }
.hero-compact .hero { padding-top: 3.8rem; padding-bottom: 0.6rem; min-height: 0; }
.hero.compact .eyebrow, .hero.compact .meta { display: none; }
.hero.compact .hero-glass { padding-top: 1.6em; padding-bottom: 1.4em; }
.hero.compact .lede { margin-top: 0.9em; }
.hero.compact .button { margin-top: 1.2em; }
.hero.compact .b-icon { height: 3.4em; }
.hero-glass { position: relative; padding: 4em 4.4em 3.4em; border-radius: 2.4em;
  border: 2px solid; border-color: rgba(238, 237, 242, 0.18) rgba(238, 237, 242, 0.34) rgba(238, 237, 242, 0.34);
  background: linear-gradient(144deg, rgba(238, 237, 242, 0.16), rgba(255, 255, 255, 0) 43%), rgba(13, 6, 40, 0.22);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 40px 120px -60px rgba(0, 0, 0, 0.9); }
.hero-left { position: relative; z-index: 2; }
.hero .lede { max-width: 36em; }
/* Facts row along the bottom edge of the glass hero. */
.facts { list-style: none; margin: 0; padding: 2em 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2em; border-top: 1px solid rgba(238, 237, 242, 0.18); }
.facts li { display: grid; gap: 0.3em; }
.facts b { font: 700 2.6em/1 var(--display); letter-spacing: -0.04em; }
.facts span { font: 700 0.82em var(--label); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.eyebrow { font: 700 0.85em var(--label); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; margin-bottom: 2.2em; }
.eyebrow a { text-decoration: none; border-bottom: 1px solid currentColor; }
.lede { max-width: 30em; margin-top: 1.6em; opacity: 0.9; }
.meta { margin-top: 1.4em; font-size: 0.95em; opacity: 0.7; }
.meta a { text-decoration: none; border-bottom: 1px solid rgba(238, 237, 242, 0.4); }

/* Hover tilt for glass surfaces (data-tilt="max degrees"). demo.js eases --rx/--ry/--lift and
   the glare position every frame, so the motion stays smooth whatever the pointer does. */
[data-tilt] { transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--lift, 0px), 0); transform-style: preserve-3d; will-change: transform; }
.glare { position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: var(--glare, 0);
  background: radial-gradient(28em circle at var(--gx, 50%) var(--gy, 50%), rgba(238, 237, 242, 0.16), rgba(238, 237, 242, 0) 60%); }
[data-tilt] > :not(.glare) { position: relative; z-index: 1; }

/* Text reveals: lines slide up out of a mask, letters rise in one by one. */
.fade { overflow: hidden; }
.fade > span { display: inline-block; }
.reveal-ready .fade > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.reveal-ready .fade.in > span { transform: none; }
.letters .word { display: inline-block; white-space: nowrap; }
.letters .ch { display: inline-block; opacity: 0; transform: translateY(0.3em); animation: ch-in 0.8s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms + 150ms); }
@keyframes ch-in { to { opacity: 1; transform: none; } }

/* Sections */
section.light, footer.light { background: var(--paper); color: var(--coal); }
section.dark { background: transparent; }
section .container { padding-top: 8.3em; padding-bottom: 8.3em; }
.head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3em; align-items: end; margin-bottom: 3.1em; }
.head p { max-width: 32em; opacity: 0.8; font-size: 1.15em; }
section.light h2 { color: var(--ink); }

/* Calculator: hairline-bordered boxes in a 3-column grid. */
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25em; }
.box { min-height: 17em; padding: 3em 2em; border: 1.2px solid var(--coal); background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.6em; }
.box .small { font-size: 0.95em; opacity: 0.7; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; width: 16em; height: 4em; padding: 0.4em; border: 1.2px solid var(--coal); border-radius: 99px; background: var(--pink); }
.stepper output { flex: 1; text-align: center; white-space: nowrap; font: 700 1.15em var(--label); letter-spacing: 0.04em; }
.round { flex: none; width: 3.2em; height: 100%; border: 0; border-radius: 99px; background: var(--coal); color: var(--paper); font: 700 1.3em var(--label); cursor: pointer; transition: transform 0.3s var(--ease), background 0.3s var(--ease); }
.round:hover { transform: scale(1.06); background: var(--violet); }
.round:active { transform: scale(0.94); }
.round:disabled { opacity: 0.3; cursor: default; transform: none; background: var(--coal); }
.toggles { display: grid; gap: 0.9em; justify-items: start; }
.toggle { display: inline-flex; align-items: center; gap: 1em; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: 700 0.95em var(--label); letter-spacing: 0.08em; text-transform: uppercase; }
.knob { position: relative; width: 4.6em; height: 2.4em; padding: 0.3em; border-radius: 99px; background: var(--coal); transition: background 0.4s var(--ease); flex: none; }
.knob::after { content: ""; position: absolute; top: 0.3em; left: 0.3em; width: 1.8em; height: 1.8em; border-radius: 50%; background: rgba(238, 237, 242, 0.35); transition: transform 0.45s var(--ease), background 0.45s var(--ease); }
.toggle[aria-pressed="true"] .knob::after { transform: translateX(2.2em); background: var(--lime); }
.toggle em { font-style: normal; font: 600 0.85em ui-monospace, Consolas, monospace; letter-spacing: 0; text-transform: none; opacity: 0.6; }
.sliders { display: grid; gap: 1.4em; width: 100%; }
.sliders label { display: grid; gap: 0.6em; text-align: left; font: 700 0.85em var(--label); letter-spacing: 0.08em; text-transform: uppercase; }
.sliders label span { display: flex; justify-content: space-between; }
.sliders output { font: 600 1em ui-monospace, Consolas, monospace; letter-spacing: 0; text-transform: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 0.35em; border-radius: 99px; outline-offset: 6px;
  background: linear-gradient(var(--violet), var(--violet)) 0 / var(--p, 50%) 100% no-repeat, rgba(28, 28, 28, 0.18); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--coal); border: 3px solid var(--paper); box-shadow: 0 0 0 1.2px var(--coal); cursor: grab; transition: transform 0.3s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--coal); border: 3px solid var(--paper); cursor: grab; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type="range"]:disabled { opacity: 0.35; }
.result .big { white-space: nowrap; font: 700 clamp(1.7em, 3.4vw, 3em)/1 var(--display); letter-spacing: -0.04em; text-transform: uppercase; color: var(--ink); font-variant-numeric: tabular-nums; }
.result.accent { background: var(--violet); color: var(--paper); border-color: var(--violet); }
.result.accent .big { color: var(--paper); }
.cta-box .button { margin-top: 0; }

/* Pull the plug */
.plug-in .head { grid-template-columns: 1fr; margin-bottom: 0; }
.plug-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4em; align-items: center; }
.dark-toggles { margin-top: 2.4em; gap: 1.2em; }
.dark-toggles .knob { background: rgba(238, 237, 242, 0.14); box-shadow: inset 0 0 0 1px rgba(238, 237, 242, 0.25); }
.glass-panel { position: relative; border-radius: 2em; padding: 2.4em;
  border: 2px solid; border-color: rgba(238, 237, 242, 0.18) rgba(238, 237, 242, 0.34) rgba(238, 237, 242, 0.34);
  background: linear-gradient(144deg, rgba(238, 237, 242, 0.20), rgba(255, 255, 255, 0) 43%), rgba(13, 6, 40, 0.25);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.chunks { display: grid; grid-template-columns: repeat(24, 1fr); gap: 0.32em; }
.chunks span { aspect-ratio: 1; border-radius: 0.25em; background: rgba(238, 237, 242, 0.08); transition: background 0.35s var(--ease); }
.chunks span.eth { background: var(--violet); } .chunks span.wifi { background: var(--pink); } .chunks span.cell { background: var(--lime); }
.chunks span.busy-eth { background: rgba(92, 49, 255, 0.45); } .chunks span.busy-wifi { background: rgba(248, 140, 212, 0.45); } .chunks span.busy-cell { background: rgba(222, 241, 65, 0.45); }
.chunks span[class^="busy"] { animation: breathe 0.8s ease-in-out infinite alternate; }
.chunks span.lost { background: var(--paper); }
@keyframes breathe { to { opacity: 0.5; } }
.grid-status { display: flex; align-items: center; gap: 1.4em; margin-top: 1.8em; flex-wrap: wrap; }
#plug-progress { font: 700 2.6em/1 var(--display); letter-spacing: -0.04em; min-width: 3.2em; }
#plug-state { flex: 1; opacity: 0.8; }
.text-btn { border: 0; background: none; color: inherit; cursor: pointer; padding: 0.6em 0; font: 700 0.85em var(--label); letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 2px solid var(--violet); }

/* Features: glass cards with big numerals. */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25em; }
.f { display: grid; gap: 1em; align-content: start; min-height: 16em; }
.f .num { font: 700 2.6em/1 var(--display); letter-spacing: -0.04em; opacity: 0.5; }
.f p { font-size: 1.05em; opacity: 0.8; }

/* FAQ: hairline rows on the light section. */
.faq-in .head { grid-template-columns: 1fr; }
.faq details { border-top: 1.2px solid var(--coal); }
.faq details:last-child { border-bottom: 1.2px solid var(--coal); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 2em; padding: 1.6em 0; font: 700 1.05em var(--label); letter-spacing: 0.08em; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--coal); color: var(--paper); font: 700 1.2em var(--label); transition: transform 0.45s var(--ease), background 0.45s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--violet); }
.faq details p { max-width: 46em; padding: 0 0 1.8em; font-size: 1.1em; }
.faq a { color: var(--violet); }
.cmd { display: inline-flex; align-items: center; gap: 0.6em; flex-wrap: wrap; margin: 0.5em 0; }
.cmd code { background: rgba(28, 28, 28, 0.08); padding: 0.2em 0.5em; }
.copy { border: 1.2px solid var(--coal); background: var(--paper); color: var(--coal); padding: 0.35em 0.9em; cursor: pointer; font: 700 0.75em var(--label); letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.copy:hover { background: var(--coal); color: var(--paper); }
.copy.done { background: var(--violet); border-color: var(--violet); color: var(--paper); }

/* Footer */
.footer .container { padding-top: 6em; padding-bottom: 3em; border-top: 1.2px solid var(--coal); }
/* Sized to its container (cqi) so the wordmark always fits: "CONFLUX" is about 5.2em wide. */
.footer .container { container-type: inline-size; }
.wordmark { font: 700 min(17rem, 15vw)/0.85 var(--display); font-size: min(17rem, 18cqi); letter-spacing: -0.05em; text-transform: uppercase; color: var(--ink); }
.foot-row { display: flex; justify-content: space-between; align-items: end; gap: 2em; flex-wrap: wrap; margin-top: 2em; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 1.6em; }
.foot-row nav a { text-decoration: none; font: 700 0.85em var(--label); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1.2px solid transparent; transition: border-color 0.3s var(--ease); }
.foot-row nav a:hover { border-color: var(--coal); }
.fine { margin-top: 2.4em; font-size: 0.9em; opacity: 0.7; }

/* Responsive: large tablet / small laptop */
@media (max-width: 1199px) {
  .container { padding: 0 3em; }
  .hero-glass { padding: 3.4em 3em 3em; }
  .hero .container { padding: 0 3rem; }
  .plug-in { grid-template-columns: 1fr; gap: 2.4em; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
/* Tablet */
@media (max-width: 991px) {
  :root { font-size: 15px; }
  h2 { font-size: 2.6em; }
  section .container { padding-top: 5.5em; padding-bottom: 5.5em; }
  .head { grid-template-columns: 1fr; gap: 1.2em; margin-bottom: 2.2em; }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  /* inputs: size | connections, then the sliders full width; results side by side; then the button */
  .calc-grid > .box:nth-child(3), .calc-grid .cta-box { grid-column: 1 / -1; }
  .calc-grid .cta-box { min-height: 0; }
  .calc-grid > .box:nth-child(3) .sliders { max-width: 34em; }
  .nav-link { padding: 0 0.7em; }
}
/* Phone */
@media (max-width: 640px) {
  :root { font-size: 15px; }
  .container { padding: 0 1.2em; }
  .nav-in { height: 5.6em; }
  .nav-link:not(:last-child) { display: none; }
  .hero { padding: 5.8rem 0 clamp(0.6rem, 2vh, 1.4rem); }
  .hero .container { padding: 0 1.2rem; }
  .hero h1 { font-size: max(22px, calc(var(--fit, 1) * min(9vw, 7.2vh))); }
  .hero-glass { padding: 2.2em 1.4em 1.8em; border-radius: 1.6em; }
  .hero-in { gap: 2.2em; }
  .eyebrow { margin-bottom: 1.4em; }
  .hero .button { display: flex; width: 100%; }
  .button .b-text { flex: 1; justify-content: center; padding: 0 1em; white-space: normal; text-align: center; line-height: 1.3; }
  .b-icon { padding: 0 1.4em; }
  .facts { grid-template-columns: 1fr; gap: 1.1em; padding-top: 1.4em; }
  .facts li { grid-template-columns: 3.2em 1fr; align-items: center; gap: 0.8em; }
  .facts b { font-size: 2em; }
  h2 { font-size: 2.1em; }
  section .container { padding-top: 4.2em; padding-bottom: 4.2em; }
  .calc-grid, .features { grid-template-columns: 1fr; }
  .result .big { font-size: 2.2em; }
  .box { min-height: 0; padding: 2.2em 1.4em; }
  .stepper { width: 100%; max-width: 16em; }
  .glass-panel { padding: 1.4em; border-radius: 1.4em; }
  .chunks { grid-template-columns: repeat(16, 1fr); }
  #plug-progress { font-size: 2em; min-width: 0; }
  .faq summary { font-size: 0.95em; gap: 1em; }
  .footer .container { padding-top: 4em; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-row nav { gap: 1em 1.4em; }
  .cmd code { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .letters .ch { animation: none; opacity: 1; transform: none; }
  .reveal-ready .fade > span { transform: none; transition: none; }
  .b-fill, .b-text, .arrow, .knob::after, .round, .f, .nav-link::after { transition: none; }
  [data-tilt] { transform: none; }
  .glare { display: none; }
  .chunks span[class^="busy"] { animation: none; }
}

/* 404 page */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 3rem 0; }
.nf-glass { padding: 4em; }
.notfound h1 { font-size: clamp(2.4rem, 7vw, 6.2rem); margin-top: 0.4em; }
@media (max-width: 640px) { .nf-glass { padding: 2.2em 1.4em; } }

/* Legal pages (privacy.html): a plain content page. Dark intro, then a light document section
   with one hairline-separated row per topic (heading left, text right). */
.doc-intro .container { padding-top: 12rem; padding-bottom: 6rem; }
.doc-intro h1 { font-size: clamp(2.6rem, 7vw, 6.2rem); margin-top: 0.4em; }
.doc-intro .lede { max-width: 30em; }
.doc .container { padding-top: 5em; padding-bottom: 6em; }
.doc-row { display: grid; grid-template-columns: 1fr 2fr; gap: 3em; padding: 3em 0; border-top: 1.2px solid var(--coal); }
.doc-row:last-child { border-bottom: 1.2px solid var(--coal); }
.doc-row h3 { color: var(--ink); }
.doc-text { max-width: 40em; }
.doc-text p, .doc-text li { font-size: 1.15em; line-height: 1.7; }
.doc-text p + p, .doc-text ul + p { margin-top: 1em; }
.doc-text ul { margin: 1em 0 0; padding-left: 1.2em; }
.doc-text li { margin-bottom: 0.5em; }
.doc-text li::marker { color: var(--violet); }
.doc-text a { text-decoration: none; border-bottom: 1.2px solid var(--coal); overflow-wrap: anywhere; }
.doc-text a:hover { border-color: var(--violet); color: var(--violet); }
.doc-text code { padding: 0.1em 0.4em; border-radius: 0.3em; background: rgba(28, 28, 28, 0.08); }
.footer.slim .container { padding-top: 0; border-top: 0; }
@media (max-width: 900px) { .doc-row { grid-template-columns: 1fr; gap: 1em; } }
@media (max-width: 640px) { .doc-intro .container { padding-top: 8rem; padding-bottom: 4rem; } }
.button.back:hover .arrow, .button.back:focus-visible .arrow { transform: translateX(-0.5em); }
.button.back .b-fill { left: auto; right: 0; transform-origin: 100% 50%; }
