/* ==========================================================================
   Fluxoly — design system + landing page
   Light, cool blue tech look. No framework, no build step.
   ========================================================================== */

:root {
  color-scheme: light;
  /* Brand: the Fluxoly puzzle cell, as a CSS mask for pseudo-elements */
  --cell-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2.5L18.23 7.25V10.46A2.5 2.5 0 1 1 18.23 13.54V16.75L10 21.5L1.77 16.75V13.46A2.5 2.5 0 1 0 1.77 10.54V7.25Z' fill='black' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* Color tokens */
  --bg: #EEF3FB;
  --bg-alt: #E3EBF7;
  --surface: #FFFFFF;
  --surface-2: #F5F8FD;
  --text: #0D1830;
  --text-2: #44526B;
  --text-3: #77839A;
  --line: #D9E3F1;
  --line-soft: #E3EAF5;
  --accent: #0D1830;
  --accent-hover: #1E2E50;
  --accent-press: #111722;
  --accent-ink: #0D1830;
  --accent-soft: #DCE9FC;
  --success: #2B7A4B;
  --success-soft: #e6f4ec;
  --warn: #a35200;
  --warn-soft: #fdf1e3;
  --danger: #C23B2E;
  --danger-soft: #fdeaec;
  --focus: #2F6FEB;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.0625rem;   /* 17px */
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-h1: clamp(2.75rem, 6.4vw, 5rem);
  --fs-h2: clamp(2rem, 4.6vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.7vw, 1.375rem);

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --section: clamp(88px, 12vw, 160px);
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 980px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 2px 6px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.04), 0 30px 80px rgba(0,0,0,.12);

  /* Motion */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-io: cubic-bezier(.65,0,.35,1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 800ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: #FFE14D; color: #1C211E; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); transition: top var(--t-fast); }
.skip-link:focus { top: 12px; text-decoration: none; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); letter-spacing: -0.01em; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: var(--cell-mask) center / contain no-repeat; mask: var(--cell-mask) center / contain no-repeat; }
.mark { width: 18px; height: 18px; flex: none; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.4; margin-top: 20px; letter-spacing: -0.02em; }
.sample-note { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-2); background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--r-pill); padding: 4px 10px; letter-spacing: 0; }
.section--alt .sample-note { background: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: 1rem; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none !important;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-press); }
.btn--secondary { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.btn--secondary:hover { background: var(--accent-soft); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--sm { --h: 36px; padding: 0 16px; font-size: var(--fs-small); }
.btn--lg { --h: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header / nav ---------- */
/* A floating glass capsule: logo · three links · language, client login, one CTA */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: 12px; pointer-events: none; }
.nav-wrap, .mobile-menu { pointer-events: auto; }
.nav {
  display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 20px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(0,0,0,.06); border-radius: var(--r-pill);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: background-color var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav { background: rgba(255,255,255,.97); } }
.site-header.is-scrolled .nav { background: rgba(255,255,255,.86); border-color: rgba(0,0,0,.08); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.03em; text-decoration: none !important; }
.logo img { display: block; height: 26px; width: auto; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { color: var(--text-2); font-size: var(--fs-small); font-weight: 500; padding: 8px 14px; border-radius: var(--r-pill); transition: color var(--t-fast), background-color var(--t-fast); }
.nav-links a:hover { color: var(--text); text-decoration: none; background: rgba(0,0,0,.04); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; transition: background-color var(--t-fast), color var(--t-fast); }
.lang-toggle:hover { background: rgba(0,0,0,.04); color: var(--text); }
.lang-toggle .icon { width: 16px; height: 16px; }
.btn--outline { background: var(--bg); color: var(--text); border-color: var(--line); }
.btn--outline:hover { background: var(--bg-alt); border-color: #a1a1a8; }
.nav-login .icon { width: 17px; height: 17px; }
.lang-switch { display: inline-flex; padding: 3px; background: rgba(0,0,0,.05); border-radius: var(--r-pill); }
.lang-switch button { border: 0; background: transparent; min-width: 36px; height: 30px; padding: 0 8px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); transition: background-color var(--t-fast), color var(--t-fast); }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; place-items: center; }
.menu-btn:hover { background: rgba(0,0,0,.04); }
.menu-btn .icon { width: 22px; height: 22px; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav { height: 54px; padding: 0 6px 0 16px; }
  .nav-links, .nav-actions .nav-cta, .nav-actions .lang-toggle { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: grid; }
  .mobile-menu {
    display: block; position: fixed; z-index: 99; top: 76px; left: var(--gutter); right: var(--gutter);
    background: var(--bg); border: 1px solid var(--line-soft); border-radius: 24px; box-shadow: var(--shadow-lg);
    padding: 8px 20px 20px; max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); overflow-y: auto;
    transform: translateY(-8px) scale(.98); transform-origin: top center; opacity: 0; visibility: hidden;
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .mobile-menu.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .mobile-menu a:not(.btn) { display: block; padding: 14px 0; font-size: 1.25rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-soft); letter-spacing: -0.025em; }
  .mobile-menu-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 16px 0 4px; font-size: var(--fs-small); color: var(--text-2); }
  .mobile-menu .btn { width: 100%; margin-top: 16px; white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; }
}
@media (max-width: 359px) { .nav-login span { display: none; } .nav-login.btn--sm { padding: 0 10px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 72% 30%, transparent, transparent 70%),
    radial-gradient(35% 35% at 20% 10%, rgba(26,127,69,.06), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: var(--fs-h1); letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 .line { display: block; }
.hero h1 .line--muted { color: var(--text-3); }
.hero .lead { max-width: 560px; margin-top: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 16px; font-size: var(--fs-small); color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.hero-note .icon { width: 16px; height: 16px; color: var(--success); }
.hero .eyebrow { padding: 6px 14px 6px 12px; border-radius: var(--r-pill); background: var(--accent-soft); }
.hero-art { position: relative; z-index: 0; }
.hero-art::before {
  content: ""; position: absolute; z-index: -1; left: -6%; top: 50%; width: 118%; aspect-ratio: 1; transform: translateY(-50%);
  background: none;
  -webkit-mask: var(--cell-mask) center / contain no-repeat; mask: var(--cell-mask) center / contain no-repeat;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-ctas, .hero-note { justify-content: center; }
}
@media (max-width: 480px) { .hero-ctas .btn { width: 100%; } }

/* Validation demo card */
.vcard {
  position: relative; background: rgba(255,255,255,.9); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 28px); max-width: 460px; width: 100%; margin-inline: auto;
}
.vcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.vcard-title { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(26,127,69,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(26,127,69,0); } 100% { box-shadow: 0 0 0 0 rgba(26,127,69,0); } }
.vcard-counter { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.vlead { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); transition: opacity var(--t-med), transform var(--t-med) var(--ease-out); }
.vlead.is-swapping { opacity: 0; transform: translateY(6px); }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; color: #fff; font-size: 1rem; letter-spacing: 0; }
.vlead-name { font-weight: 600; font-size: 1rem; }
.vlead-meta { font-size: var(--fs-small); color: var(--text-2); line-height: 1.35; }
.vchecks { display: grid; gap: 2px; margin-top: 14px; }
.vcheck { display: flex; align-items: center; gap: 10px; font-size: .9375rem; padding: 7px 0; color: var(--text-2); transition: color var(--t-med); }
.vcheck-ico { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: background-color var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.vcheck-ico svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transform: scale(.4); transition: opacity var(--t-fast), transform var(--t-med) var(--ease-out); }
.vcheck.is-pass { color: var(--text); }
.vcheck.is-pass .vcheck-ico { background: var(--success); border-color: var(--success); }
.vcheck.is-fail { color: var(--text); }
.vcheck.is-fail .vcheck-ico { background: var(--danger); border-color: var(--danger); }
.vcheck.is-pass svg, .vcheck.is-fail svg { opacity: 1; transform: none; }
.vcheck.is-checking .vcheck-ico { border-color: var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vcheck .vcheck-x { display: none; }
.vcheck.is-fail .vcheck-tick { display: none; }
.vcheck.is-fail .vcheck-x { display: block; }
.vresult { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.vring { position: relative; width: 56px; height: 56px; flex: none; }
.vring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.vring circle { fill: none; stroke-width: 5; }
.vring .track { stroke: var(--line-soft); }
.vring .bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 151; stroke-dashoffset: 151; transition: stroke-dashoffset var(--t-slow) var(--ease-out), stroke var(--t-med); }
.vring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-small); font-weight: 650; font-variant-numeric: tabular-nums; }
.vresult-label { font-size: var(--fs-xs); color: var(--text-2); }
.vstatus { font-size: var(--fs-small); font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--bg-alt); color: var(--text-2); opacity: 0; transform: translateY(4px); transition: opacity var(--t-med), transform var(--t-med) var(--ease-out); white-space: nowrap; }
.vstatus.is-shown { opacity: 1; transform: none; }
.vstatus.is-pass { background: var(--success-soft); color: var(--success); }
.vstatus.is-fail { background: var(--danger-soft); color: var(--danger); }
.vstatus.is-pass::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: currentColor; -webkit-mask: var(--cell-mask) center / contain no-repeat; mask: var(--cell-mask) center / contain no-repeat; }
.vcard-float {
  position: absolute; right: -14px; top: -16px; background: var(--text); color: #fff; font-size: var(--fs-xs); font-weight: 600;
  border-radius: var(--r-pill); padding: 8px 12px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 6px; letter-spacing: 0;
}
.vcard-float .mark { width: 14px; height: 14px; color: #FFE14D; }
@media (max-width: 480px) { .vcard-float { right: 8px; } }

/* The section right after the hero sits a little closer to it */
.hero + .section { padding-top: clamp(32px, 5vw, 64px); }

/* ---------- Compare (problem) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); background: var(--bg); border: 1px solid var(--line-soft); }
.compare-card--good { background: var(--text); color: #f5f5f7; border-color: var(--text); }
.compare-card h3 { font-size: var(--fs-h3); margin-bottom: 24px; letter-spacing: -0.025em; }
.compare-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.compare-card--good .compare-list li { border-top-color: rgba(255,255,255,.12); }
.compare-list .icon { width: 20px; height: 20px; margin-top: 2px; }
.compare-card--bad .icon { color: var(--danger); }
.compare-card--bad li { color: var(--text-2); }
.compare-card--good .mark { width: 18px; height: 18px; margin-top: 3px; color: #FFE14D; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 28px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-soft); border-radius: 2px; }
.step::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); border-radius: 2px; transition: width 900ms var(--ease-out); }
.step.is-in::after { width: 100%; }
.step:nth-child(2)::after { transition-delay: 200ms; }
.step:nth-child(3)::after { transition-delay: 400ms; }
.step:nth-child(4)::after { transition-delay: 600ms; }
.step-num { font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.step-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-alt); display: grid; place-items: center; margin: 18px 0 20px; }
.section--alt .step-ico { background: var(--bg); }
.step-ico .icon { width: 24px; height: 24px; color: var(--text); }
.step-ico.step-ico--brand, .section--alt .step-ico.step-ico--brand { background: var(--accent-soft); }
.step-ico--brand .mark { width: 26px; height: 26px; color: var(--accent); }
.step h3 { font-size: var(--fs-h3); margin-bottom: 10px; letter-spacing: -0.025em; }
.step p { color: var(--text-2); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Validators (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--bg); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-soft); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.tile-ico .icon { width: 22px; height: 22px; }
.tile h3 { font-size: 1.1875rem; margin-bottom: 8px; letter-spacing: -0.022em; line-height: 1.25; }
.tile p { color: var(--text-2); font-size: .9375rem; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--text) 30%, #555 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 12px; color: var(--text-2); font-size: .9375rem; }
.stats--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 40px 16px; } }

/* ---------- Dashboard preview ---------- */
.dpreview { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.feature-list { margin-top: 32px; display: grid; gap: 4px; }
.feature-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; font-weight: 500; }
.feature-list .icon { color: var(--accent); }
.dpreview .btn { margin-top: 28px; }
.mock { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 12px; font-size: var(--fs-xs); color: var(--text-3); }
.mock-bar .mock-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.mock-brand .mark { width: 13px; height: 13px; color: var(--accent); }
.mock-body { padding: clamp(16px, 2.5vw, 24px); display: grid; gap: 14px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: var(--bg-alt); border-radius: 14px; padding: 14px; }
.mock-kpi b { display: block; font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mock-kpi small { color: var(--text-2); font-size: var(--fs-xs); line-height: 1.3; display: block; margin-top: 2px; }
.mock-order { border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px; }
.mock-order-top { display: flex; justify-content: space-between; font-size: var(--fs-small); margin-bottom: 14px; gap: 8px; }
.mock-order-top b { font-weight: 600; }
.mock-order-top span { color: var(--text-2); }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.track i { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; position: relative; }
.track i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-out); }
.is-in .track i.done::after { transform: scaleX(1); }
.is-in .track i:nth-child(2)::after { transition-delay: 250ms; }
.is-in .track i:nth-child(3)::after { transition-delay: 500ms; }
.track-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; font-size: 11px; color: var(--text-3); letter-spacing: 0; }
.mock-file { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-small); }
.mock-file:first-of-type { border-top: 0; }
.file-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--success-soft); color: var(--success); display: grid; place-items: center; flex: none; }
.file-ico .icon { width: 18px; height: 18px; }
.mock-file div { flex: 1; min-width: 0; }
.mock-file b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-file small { color: var(--text-2); }
.mock-file .pill { flex: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--bg-alt); color: var(--text-2); letter-spacing: 0; white-space: nowrap; }
.pill--success { background: var(--success-soft); color: var(--success); }
.pill--accent { background: var(--accent-soft); color: var(--accent-ink); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 960px) { .dpreview { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .mock-kpis { grid-template-columns: 1fr 1fr; } .mock-kpis .mock-kpi:last-child { display: none; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { background: var(--bg-alt); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 24px; margin: 0; }
.quote blockquote { margin: 0; font-size: 1.125rem; line-height: 1.45; letter-spacing: -0.02em; }
.quote figcaption { margin-top: auto; display: flex; gap: 12px; align-items: center; font-size: var(--fs-small); color: var(--text-2); }
.quote .avatar { width: 40px; height: 40px; font-size: var(--fs-small); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }
.price-card { background: var(--bg); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-soft); }
.price-card--calc { box-shadow: var(--shadow-md); }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.price-top label { font-weight: 600; }
.price-qty { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; line-height: 1; }
.price-qty small { font-size: 1rem; font-weight: 500; color: var(--text-2); letter-spacing: -0.02em; margin-left: 6px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 18px 0 8px; cursor: pointer; --p: 20%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--p), var(--line-soft) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-soft); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 3px 8px rgba(0,0,0,.18); transition: transform var(--t-fast); }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 3px 8px rgba(0,0,0,.18); }
.range:active::-webkit-slider-thumb { transform: scale(1.1); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(28,33,30,.25), 0 3px 8px rgba(0,0,0,.18); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(28,33,30,.25), 0 3px 8px rgba(0,0,0,.18); }
.range-scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0; }
.price-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.price-out b { display: block; font-size: clamp(1.75rem, 3.4vw, 2.25rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-out span { color: var(--text-2); font-size: var(--fs-small); }
.price-card .btn { margin-top: 32px; width: 100%; }
.tiers { display: grid; gap: 0; margin-top: 18px; }
.tiers li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; transition: color var(--t-fast); }
.tiers li.is-active { color: var(--accent-ink); font-weight: 600; }
.price-card h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.inc { margin-top: 28px; }
.inc li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .9375rem; }
.inc .icon { width: 18px; height: 18px; color: var(--success); margin-top: 2px; }
.addon { margin-top: 20px; font-size: var(--fs-small); color: var(--text-2); }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; cursor: pointer; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); font-weight: 600; letter-spacing: -0.022em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast); }
.section--alt .faq summary .plus { background: var(--bg); }
.faq summary .plus .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq summary:hover .plus { background: var(--line-soft); }
.faq .answer { padding: 0 48px 24px 0; color: var(--text-2); }
.faq details[open] .answer { animation: faqIn var(--t-med) var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Final CTA / footer ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(2.25rem, 6vw, 4.5rem); letter-spacing: -0.045em; max-width: 16ch; margin-inline: auto; }
.final .lead { max-width: 560px; margin-inline: auto; }
.final .hero-ctas { justify-content: center; }
.fit { display: block; width: 124px; height: auto; margin: 0 auto 32px; overflow: visible; }
.fit-a { fill: none; stroke: #b8b8bf; stroke-width: 1; stroke-linejoin: round; }
.fit-b { fill: var(--accent); stroke: var(--accent); stroke-width: 1; stroke-linejoin: round; }
.js .fit-b { opacity: 0; transform: translateX(9px); transition: transform 900ms var(--ease-out) 350ms, opacity 400ms 350ms; }
.js .is-in .fit-b { opacity: 1; transform: none; }
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line-soft); padding-block: 40px 32px; font-size: var(--fs-small); color: var(--text-2); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-tag { margin-top: 14px; max-width: 320px; }
.footer-name { margin-top: 6px; max-width: 320px; font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: var(--fs-xs); }

/* ==========================================================================
   Forms & wizard (shared with dashboard)
   ========================================================================== */
.field { display: grid; gap: 8px; }
.field + .field, .field + .field-row, .field-row + .field, .field-row + .field-row { margin-top: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.label { font-weight: 600; font-size: .9375rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; letter-spacing: -0.015em; }
.label .opt { font-weight: 400; color: var(--text-3); font-size: var(--fs-small); }
.help { font-size: var(--fs-small); color: var(--text-2); line-height: 1.4; }
.error { font-size: var(--fs-small); color: var(--danger); display: none; align-items: center; gap: 6px; }
.field.has-error .error { display: flex; }
.field.has-error .input { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.input {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
  font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast); -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: #b8b8bf; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(28,33,30,.12); }
textarea.input { min-height: 104px; resize: vertical; line-height: 1.45; }
.badge-auto { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: var(--r-pill); padding: 3px 8px; letter-spacing: 0; }
.badge-auto .icon { width: 12px; height: 12px; }
.field.is-auto .input, .field.is-auto .chips-input { background: #FFFDEB; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); font-size: .9375rem; color: var(--text);
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: #a1a1a8; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.chip[aria-pressed="true"]::before {
  content: ""; width: 14px; height: 14px; margin-left: -4px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px; min-height: 52px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: text; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.chips-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(28,33,30,.12); }
.tag { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 12px; min-height: 34px; border-radius: var(--r-pill); background: var(--bg-alt); font-size: .9375rem; animation: tagIn var(--t-med) var(--ease-out); }
@keyframes tagIn { from { opacity: 0; transform: scale(.85); } }
.tag button { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.tag button:hover { background: var(--line-soft); color: var(--text); }
.tag button .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.chips-input input { flex: 1; min-width: 140px; border: 0; outline: 0; background: transparent; padding: 6px 8px; font-size: 1rem; }

.questions-input { display: flex; flex-direction: column; gap: 8px; }
.questions-list { display: flex; flex-direction: column; gap: 6px; }
.question-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); animation: tagIn var(--t-med) var(--ease-out); }
.question-row span { flex: 1; font-size: .9375rem; line-height: 1.4; }
.question-rm { flex: none; width: 28px; height: 28px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.question-rm:hover { background: var(--line-soft); color: var(--text); }
.questions-add { display: flex; gap: 8px; }
.questions-add input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 10px 12px; font-size: 1rem; }
.questions-add input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(28,33,30,.12); }


/* Segmented */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-alt); border-radius: 14px; }
.segmented button { border: 0; background: transparent; min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: .9375rem; color: var(--text-2); font-weight: 500; transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.segmented button[aria-checked="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* Toggle switch */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.switch-row:last-child { border-bottom: 1px solid var(--line-soft); }
.switch { position: relative; width: 51px; height: 31px; flex: none; border: 0; padding: 0; border-radius: var(--r-pill); background: #e9e9ea; transition: background-color var(--t-med); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: transform var(--t-med) var(--ease-out); }
.switch[aria-checked="true"] { background: #1C211E; }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.stepper button { width: 48px; height: 48px; border: 0; background: transparent; display: grid; place-items: center; }
.stepper button:hover { background: var(--bg-alt); }
.stepper output { min-width: 44px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.0625rem; }

/* Checkbox grid */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: .9375rem; transition: border-color var(--t-fast), background-color var(--t-fast); }
.check:hover { border-color: #a1a1a8; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); margin: 0; display: grid; place-items: center; flex: none; transition: background-color var(--t-fast), border-color var(--t-fast); }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--t-fast) var(--ease-out); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check:has(input:checked) { border-color: var(--accent); background: #FFFDEB; }
.check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* File drop */
.drop { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.drop input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop-name { font-size: var(--fs-small); color: var(--success); display: inline-flex; align-items: center; gap: 6px; }

/* Wizard shell */
.wizard { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); max-width: 880px; margin-inline: auto; overflow: hidden; }
.wiz-head { padding: clamp(20px, 3vw, 28px) clamp(20px, 4vw, 48px) 0; }
.wiz-progress { display: flex; gap: 6px; }
.wiz-progress li { flex: 1; }
.wiz-progress button { width: 100%; border: 0; background: transparent; padding: 0; text-align: left; display: grid; gap: 8px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 500; letter-spacing: 0; cursor: default; }
.wiz-progress button i { display: block; height: 4px; border-radius: 2px; background: var(--line-soft); position: relative; overflow: hidden; }
.wiz-progress button i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.wiz-progress li.is-done button i::after, .wiz-progress li.is-current button i::after { transform: scaleX(1); }
.wiz-progress li.is-current button { color: var(--text); }
.wiz-progress li.is-done button { color: var(--text-2); cursor: pointer; }
.wiz-progress li.is-done button:hover { color: var(--accent-ink); }
@media (max-width: 640px) { .wiz-progress button span { display: none; } .wiz-progress li.is-current button span { display: block; } .wiz-progress li { flex: 1 1 0; } .wiz-progress li.is-current { flex: 3 1 0; } }
.wiz-body { padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 48px); min-height: 360px; }
.wiz-step { display: none; }
.wiz-step.is-active { display: block; animation: stepIn 420ms var(--ease-out); }
.wiz-step.is-back.is-active { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-16px); } }
.wiz-step h3 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.035em; }
.wiz-step > .help { margin-top: 8px; margin-bottom: 32px; font-size: 1rem; }
.wiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px clamp(20px, 4vw, 48px); border-top: 1px solid var(--line-soft); background: var(--surface-2); flex-wrap: wrap; }
.wiz-foot .saved { font-size: var(--fs-xs); color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0; opacity: 0; transition: opacity var(--t-med); }
.wiz-foot .saved.is-shown { opacity: 1; }
.wiz-foot .saved .icon { width: 14px; height: 14px; }
.wiz-foot-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 480px) { .wiz-foot .saved { display: none; } .wiz-foot-actions { width: 100%; } .wiz-foot-actions .btn { flex: 1; } }
.wiz-skip { margin-top: 20px; background: none; border: 0; padding: 8px 0; color: var(--accent-ink); font-size: var(--fs-small); }
.wiz-skip:hover { text-decoration: underline; }

.analyze { margin-top: 28px; display: grid; gap: 4px; }
.analyze[hidden] { display: none; }
.analyze li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--text-3); transition: color var(--t-med); }
.analyze li.is-run, .analyze li.is-ok { color: var(--text); }
.analyze .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: background-color var(--t-med), border-color var(--t-med); }
.analyze .dot svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; }
.analyze li.is-run .dot { border-color: var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; }
.analyze li.is-ok .dot { background: var(--success); border-color: var(--success); }
.analyze li.is-ok .dot svg { opacity: 1; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--success-soft); color: var(--success); font-size: .9375rem; margin-bottom: 28px; }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice .icon { margin-top: 1px; }

.estimate { margin-top: 10px; font-size: .9375rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.estimate b { color: var(--text); }
.count-row { display: flex; align-items: center; gap: 16px; }
.count-row .range { flex: 1; margin: 0; }
.count-row .input { width: 110px; min-height: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.subgroup { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.subgroup:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.review { display: grid; gap: 12px; }
.review-sec { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 20px; }
.review-sec header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-sec h4 { font-size: 1rem; letter-spacing: -0.02em; }
.review-sec dl { margin: 0; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 16px; font-size: .9375rem; }
.review-sec dt { color: var(--text-2); }
.review-sec dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .review-sec dl { grid-template-columns: 1fr; gap: 2px; } .review-sec dd { margin-bottom: 10px; } }
.success { text-align: center; padding: 24px 0; }
.success-ico { position: relative; width: 92px; height: 92px; margin: 0 auto 24px; animation: pop 600ms var(--ease-out); }
.success-ico .mark { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); }
.success-ico .icon { position: absolute; left: calc(41.7% - 16px); top: calc(50% - 16px); width: 32px; height: 32px; color: #fff; stroke-width: 2.8; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.success h3 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.success p { color: var(--text-2); max-width: 480px; margin: 12px auto 0; }
.success .hero-ctas { justify-content: center; margin-top: 28px; }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { background: rgba(29,29,31,.94); color: #fff; padding: 14px 18px; border-radius: 14px; font-size: .9375rem; box-shadow: var(--shadow-md); animation: toastIn 360ms var(--ease-out); pointer-events: auto; }
.toast.is-out { animation: toastOut 220ms ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ==========================================================================
   Scroll reveal — only hides content when JS is running (html.js)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(.96) translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal-scale.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1s; }


