/* ==========================================================================
   Intelli Living — obsites.css
   Shared surface for the flagship product sites (02–05).
   Same OBSIDIAN grammar as www.intelliliving.kr: near-monochrome obsidian,
   bone type, one cold spectral accent, hairline chrome, mono instrumentation.

   S0 tokens · S1 reset · S2 chrome · S3 hero · S4 section grammar
   S5 panels & cards · S6 controls · S7 data (tables, meters, bars)
   S8 footer · S9 motion · S10 print · S11 small screens
   ========================================================================== */

/* --------------------------------------------------------------------------
   S0  Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #050506;
  --ink-deep: #000000;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-solid: #0b0b0d;
  --surface-high: rgba(255, 255, 255, 0.055);

  --line: rgba(244, 241, 234, 0.11);
  --line-strong: rgba(244, 241, 234, 0.2);
  --line-accent: rgba(206, 216, 255, 0.4);

  --bone: #f4f1ea;
  --bone-dim: #d4cfc6;
  --muted: #9a958c;
  --dim: #6a665f;

  --accent: #dbe3ff;
  --accent-strong: #8a9bff;
  --accent-glow: rgba(150, 170, 255, 0.3);
  --accent-soft: rgba(160, 178, 255, 0.09);
  --good: #9ff0c4;
  --warn: #ffd9a0;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "Space Grotesk", "Pretendard Variable", Pretendard, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(18px, 4.4vw, 56px);
  --shell: 1320px;
  --section-y: clamp(72px, 9vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --nav-h: 64px;
}

/* --------------------------------------------------------------------------
   S1  Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 28px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 680px at 78% -10%, rgba(108, 124, 210, 0.16), transparent 62%),
    radial-gradient(820px 600px at 2% 2%, rgba(196, 176, 140, 0.05), transparent 58%),
    radial-gradient(1300px 880px at 50% 118%, rgba(84, 96, 168, 0.12), transparent 64%),
    linear-gradient(180deg, #050506 0%, #060608 52%, #040405 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

main, header, footer { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: rgba(206, 216, 255, 0.24); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.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;
}

/* --------------------------------------------------------------------------
   S2  Chrome
   -------------------------------------------------------------------------- */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  padding: clamp(10px, 1.8vw, 18px) var(--gutter);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; gap: 18px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(244, 241, 234, 0.1);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  transition: background 0.5s ease, border-color 0.5s ease;
}
.nav.is-scrolled { background: rgba(7, 7, 9, 0.9); border-color: rgba(244, 241, 234, 0.16); }

.nav__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav__mark { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.nav__brandtext { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.nav__name {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em; color: var(--bone);
  white-space: nowrap;
}
.nav__sub {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav__links { display: flex; gap: clamp(10px, 1.8vw, 26px); margin-left: auto; }
.nav__links a {
  font-size: 13.5px; color: var(--bone-dim);
  padding: 6px 2px; border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--bone); border-color: var(--line-accent); }

.nav__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__links + .nav__right { margin-left: 0; }

.lang-toggle {
  display: inline-flex; padding: 2px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255, 255, 255, 0.02);
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--dim); cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  padding: 5px 9px; border-radius: 999px; transition: all 0.25s ease;
}
.lang-toggle button[aria-pressed="true"] { background: rgba(244, 241, 234, 0.1); color: var(--bone); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px;
  background: var(--bone); color: #0a0a0c;
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), background 0.3s ease;
  white-space: nowrap;
}
.nav__cta:hover { background: #fff; transform: translateY(-1px); }
.nav__cta span { font-family: var(--font-mono); font-size: 11px; }

.nav__burger {
  display: none; width: 38px; height: 38px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer;
}
.nav__burger i, .nav__burger i::before, .nav__burger i::after {
  display: block; width: 15px; height: 1px; background: var(--bone); content: "";
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger i::before { transform: translateY(-4px); }
.nav__burger i::after { transform: translateY(3px); }
.nav__burger[aria-expanded="true"] i { background: transparent; }
.nav__burger[aria-expanded="true"] i::before { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i::after { transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 290;
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  padding: 96px var(--gutter) 40px;
  background: rgba(5, 5, 6, 0.96);
  backdrop-filter: blur(16px);
}
.drawer.is-open { display: flex; }
.drawer a {
  font-family: var(--font-display);
  font-size: clamp(24px, 7vw, 34px); letter-spacing: -0.03em;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.drawer .drawer__sites { margin-top: 18px; display: grid; gap: 8px; }
.drawer .drawer__sites a { font-size: 14px; font-family: var(--font-sans); border: 0; padding: 6px 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   S3  Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
}
.hero__bloom {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(880px, 120%); aspect-ratio: 1;
  right: -18%; top: -32%;
  background: radial-gradient(circle, rgba(138, 155, 255, 0.16), transparent 62%);
  filter: blur(12px);
}
.hero .shell { position: relative; z-index: 1; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.kicker i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 10px var(--accent-glow); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 7.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: clamp(20px, 3vw, 32px) 0 0;
  max-width: 17ch;
  overflow-wrap: break-word;
}
.hero h1 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(104deg, #fffdf7 0%, #e8ecff 34%, #b9c6ff 62%, #f2e6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  margin-top: clamp(18px, 2.4vw, 26px);
  max-width: 62ch; color: var(--bone-dim);
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.72;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 38px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn--primary { background: var(--bone); color: #08080a; }
.btn--primary:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--bone); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--line-accent); background: var(--accent-soft); }
.btn small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; opacity: 0.7; }

.hero__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin-top: clamp(36px, 5vw, 64px);
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.hero__fact { background: #070708; padding: 18px 16px; min-width: 0; }
.hero__fact dt {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim);
}
.hero__fact dd {
  font-family: var(--font-display); font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: -0.02em; color: var(--bone); margin-top: 6px;
  overflow-wrap: break-word;
}

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--bone-dim);
}
.status--live { border-color: rgba(159, 240, 196, 0.36); color: var(--good); background: rgba(159, 240, 196, 0.07); }
.status--open { border-color: rgba(206, 216, 255, 0.42); color: var(--accent); background: var(--accent-soft); }
.status--build { border-color: rgba(255, 217, 160, 0.32); color: var(--warn); background: rgba(255, 217, 160, 0.06); }

/* --------------------------------------------------------------------------
   S4  Section grammar
   -------------------------------------------------------------------------- */
.section { padding: var(--section-y) 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }

.head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}
.head__label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.head__label i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong); }
.head__aside {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--dim); text-align: right;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 52px);
  line-height: 1.04; letter-spacing: -0.038em; font-weight: 500;
  max-width: 26ch; overflow-wrap: break-word;
}
.display em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  background: linear-gradient(104deg, #fffdf7 0%, #e8ecff 40%, #b9c6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 16px; color: var(--muted); font-size: clamp(14.5px, 1.4vw, 16.5px); max-width: 70ch; line-height: 1.75; }

.note {
  margin-top: clamp(22px, 3vw, 34px);
  font-size: 13px; color: var(--dim); line-height: 1.7;
  border-left: 1px solid var(--line-strong); padding-left: 14px; max-width: 74ch;
}
.note strong { color: var(--bone-dim); font-weight: 600; }

/* --------------------------------------------------------------------------
   S5  Panels & cards
   -------------------------------------------------------------------------- */
.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}
.panel__bar .mono { letter-spacing: 0.14em; }
.panel__body { padding: clamp(18px, 2.6vw, 28px); }

.grid { display: grid; gap: clamp(14px, 2vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 26px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  min-width: 0;
  transition: border-color 0.4s ease, transform 0.4s var(--ease), background 0.4s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.card h3 {
  font-family: var(--font-display); font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.028em; font-weight: 500; line-height: 1.2;
}
.card__kind {
  display: block; margin-top: 6px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}
.card p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.card ul { margin-top: 14px; display: grid; gap: 8px; }
.card ul li {
  position: relative; padding-left: 16px; font-size: 13.5px; color: var(--bone-dim); line-height: 1.55;
}
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-accent);
}
.card--feature { border-color: rgba(206, 216, 255, 0.3); background: linear-gradient(180deg, rgba(138, 155, 255, 0.09), rgba(255, 255, 255, 0.012)); }

.price {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em; color: var(--bone); line-height: 1.1;
}
.price small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--dim); margin-left: 6px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.chip--dim { color: var(--dim); }
.chip--accent { color: var(--accent); border-color: rgba(206, 216, 255, 0.35); }

.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(12px, 2vw, 28px); padding: clamp(18px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.step__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--accent-strong); }
.step h3 { font-family: var(--font-display); font-size: clamp(17px, 1.9vw, 21px); letter-spacing: -0.02em; font-weight: 500; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   S6  Controls
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field > .label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.field .hint { font-size: 11.5px; color: var(--dim); letter-spacing: 0; text-transform: none; font-family: var(--font-sans); }

input[type="text"], input[type="number"], input[type="date"], input[type="email"], select, textarea {
  width: 100%; min-width: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--bone);
  padding: 11px 13px;
  font-family: var(--font-sans); font-size: 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:hover, select:hover, textarea:hover { border-color: rgba(244, 241, 234, 0.3); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--line-accent); background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(138, 155, 255, 0.12);
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239a958c'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 34px;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.6; font-size: 13.5px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: rgba(244, 241, 234, 0.18); border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px;
  border-radius: 50%; background: var(--bone); border: 3px solid #0a0a0c;
  box-shadow: 0 0 0 1px var(--line-strong);
}
input[type="range"]::-moz-range-track { height: 2px; background: rgba(244, 241, 234, 0.18); }
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--bone); border: 3px solid #0a0a0c;
}
input[type="range"]:focus-visible { outline-offset: 6px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.4); }
.seg button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 500;
  transition: all 0.25s ease; white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: rgba(244, 241, 234, 0.1); color: var(--bone); }
.seg button:hover { color: var(--bone); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.toggle__text { font-size: 13.5px; color: var(--bone-dim); }
.switch {
  position: relative; width: 42px; height: 24px; flex: none;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: all 0.3s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--muted); transition: all 0.3s var(--ease);
}
.switch[aria-checked="true"] { background: rgba(138, 155, 255, 0.28); border-color: var(--line-accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--bone); }

.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--bone-dim); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: #8a9bff; }

.btn--sm { padding: 9px 15px; font-size: 12.5px; }
.btn--block { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   S7  Data
   -------------------------------------------------------------------------- */
.readout {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.readout > div { background: #08080a; padding: 15px 16px; min-width: 0; }
.readout dt {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--dim);
}
.readout dd {
  font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.03em; margin-top: 5px; color: var(--bone);
  font-variant-numeric: tabular-nums; overflow-wrap: break-word;
}
.readout dd.is-accent { color: var(--accent); }
.readout .unit { font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin-left: 4px; letter-spacing: 0.06em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 420px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim); font-weight: 400;
  background: rgba(0, 0, 0, 0.4); white-space: nowrap;
}
td { color: var(--bone-dim); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-family: var(--font-mono); font-size: 12.5px; color: var(--bone); }
th.num { text-align: right; }

.meter { height: 6px; border-radius: 3px; background: rgba(244, 241, 234, 0.1); overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, #8a9bff, #dbe3ff); border-radius: 3px; transition: width 0.6s var(--ease); }

.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 88px minmax(0, 1fr) 74px; gap: 12px; align-items: center; font-size: 12.5px; }
.bar__label { color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.bar__track { height: 8px; border-radius: 4px; background: rgba(244, 241, 234, 0.08); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, rgba(138, 155, 255, 0.9), rgba(219, 227, 255, 0.95)); transition: width 0.7s var(--ease); }
.bar__val { text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--bone); font-variant-numeric: tabular-nums; }

.warnbox {
  border: 1px solid rgba(255, 217, 160, 0.3); background: rgba(255, 217, 160, 0.05);
  color: var(--warn); border-radius: 10px; padding: 11px 14px; font-size: 12.5px; line-height: 1.6;
}
.okbox {
  border: 1px solid rgba(159, 240, 196, 0.28); background: rgba(159, 240, 196, 0.05);
  color: var(--good); border-radius: 10px; padding: 11px 14px; font-size: 12.5px; line-height: 1.6;
}

.code {
  display: block; position: relative; overflow-x: auto;
  background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--accent);
  white-space: pre; -webkit-overflow-scrolling: touch;
}

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  z-index: 500; padding: 10px 18px; border-radius: 999px;
  background: var(--bone); color: #0a0a0c; font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all 0.35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   S8  Footer
   -------------------------------------------------------------------------- */
.footer { padding: clamp(48px, 6vw, 80px) 0 36px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 44px); }
.footer__brand p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-top: 14px; max-width: 34ch; }
.footer__mark { display: flex; align-items: center; gap: 10px; }
.footer__mark img { width: 28px; height: 28px; border-radius: 7px; }
.footer__mark span { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.22em; }
.footer h3 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 14px; font-weight: 400;
}
.footer ul { display: grid; gap: 9px; }
.footer ul a { font-size: 13.5px; color: var(--bone-dim); transition: color 0.25s ease; }
.footer ul a:hover { color: var(--bone); }
.footer__legal {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 52px); padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--dim);
}
.footer__legal nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--bone-dim); }
.footer__sites { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer__sites a {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px;
}
.footer__sites a:hover { color: var(--bone); border-color: var(--line-strong); }
.footer__sites a[aria-current="page"] { color: var(--ink); background: var(--bone); border-color: var(--bone); }

/* --------------------------------------------------------------------------
   S9  Motion
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   S10 Print (document demos)
   -------------------------------------------------------------------------- */
@media print {
  body::before, body::after, .nav-wrap, .footer, .no-print, .toast { display: none !important; }
  body { background: #fff; color: #111; }
  .print-area { border: 0 !important; box-shadow: none !important; }
}

/* --------------------------------------------------------------------------
   S11  Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__cta { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: 48px minmax(0, 1fr); }
  .step p { grid-column: 2; }
}

@media (max-width: 680px) {
  :root { --nav-h: 58px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero h1 { font-size: clamp(32px, 10.6vw, 54px); max-width: 100%; }
  .head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .head__aside { text-align: left; }
  .nav__sub { display: none; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}
