/* ============================================================
   Klyxin marketing site — component classes (KLX-038 Slice 1).
   Translated from the Claude Design "DC" inline styles into semantic
   classes; every value is copied verbatim and references a var(--…) token
   from tokens.css (never a raw brand hex). Dark-atmospheric hero literals
   (#0b1024 etc.) are the DC hero canvas ink, intentionally fixed on the
   dark stage. Base reset, .klx-eyebrow, .klx-fwd, .sr-only, .klx-skip,
   .klx-reveal, .klx-up, reduced-motion + print all live in tokens.css.
   ============================================================ */

/* ---------- Shared layout primitives ---------- */
.section-inner { max-width: var(--container); margin-inline: auto; padding: var(--space-9) var(--space-5); }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-block-end: var(--space-7); max-width: 56ch; }
.section-head--lg { margin-block-end: var(--space-8); }
.section-title { font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--text); margin: 0; }
.section-sub { color: var(--text-muted); font-size: var(--fs-body-lg); margin: 0; }
.scroll-anchor { scroll-margin-block-start: 84px; }
.page { background: var(--bg); color: var(--text); }

/* ============================================================
   NAV (from klyxin-nav.dc.html) — floating glass pill, scroll-shrink
   ============================================================ */
.klx-nav { position: fixed; inset-inline: 0; top: var(--space-4); z-index: 60; padding-inline: var(--space-4); pointer-events: none; }
.klx-nav-inner {
  max-width: var(--container); margin-inline: auto; min-height: 64px;
  padding-inline: var(--space-4); display: flex; align-items: center; gap: var(--space-4);
  border-radius: var(--radius-pill); pointer-events: auto;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: min-height var(--dur) var(--ease-out), background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.klx-nav-inner.is-scrolled {
  min-height: 56px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-color: var(--border-strong); box-shadow: var(--shadow-md);
}
.klx-nav-logo { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.klx-nav-spacer { flex: 1 1 auto; }
.klx-nav-utils { display: flex; align-items: center; gap: var(--space-2); }
.klx-nav-btn {
  display: inline-flex; align-items: center; height: 40px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--text-muted); background: transparent;
  font-size: var(--fs-small); font-weight: var(--fw-semibold);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.klx-nav-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.klx-nav-lang { gap: var(--space-2); padding-inline: var(--space-4); }
.klx-nav-theme { justify-content: center; width: 40px; padding: 0; }
/* theme icon: sun shown in dark (switch to light), moon shown in light (switch to dark) */
.klx-nav-theme .icon-sun { display: none; }
.klx-nav-theme .icon-moon { display: inline-flex; }
[data-theme="dark"] .klx-nav-theme .icon-sun { display: inline-flex; }
[data-theme="dark"] .klx-nav-theme .icon-moon { display: none; }
.klx-nav-cta {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding-inline: var(--space-4);
  background: var(--brand); color: var(--on-brand); border-radius: var(--radius-pill); text-decoration: none;
  font-size: var(--fs-small); font-weight: var(--fw-semibold); white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.klx-nav-cta:hover { background: var(--brand-strong); color: var(--on-brand); transform: translateY(-1px); }
@media (max-width: 560px) { .klx-nav-cta-label { display: none; } }
@media (max-width: 400px) { .klx-nav-lang-label { display: none; } }

/* ============================================================
   HERO (from klyxin-landing.dc.html <style> + hero markup)
   ============================================================ */
.hero-stage {
  position: relative; overflow: hidden; color: #EAEEFB; border-radius: clamp(20px, 3vw, 32px);
  margin: calc(var(--space-4) + 80px) var(--space-4) 0;
  background: radial-gradient(125% 90% at 72% -8%, #1b2854 0%, #0b1024 46%, #070912 100%);
  min-height: calc(100dvh - 120px);
}
[dir="rtl"] .hero-stage { background: radial-gradient(125% 90% at 28% -8%, #1b2854 0%, #0b1024 46%, #070912 100%); }
.hero-tex {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(124,151,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(124,151,255,.06) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(circle at 70% 18%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 70% 18%, #000, transparent 78%);
}
[dir="rtl"] .hero-tex { -webkit-mask-image: radial-gradient(circle at 30% 18%, #000, transparent 78%); mask-image: radial-gradient(circle at 30% 18%, #000, transparent 78%); }
.hero-glow-a { position: absolute; z-index: 1; inset-block-start: -14%; inset-inline-end: 8%; width: min(46vw, 560px); height: min(46vw, 560px); border-radius: 50%; background: radial-gradient(circle, rgba(61,91,240,.5), transparent 66%); filter: blur(20px); pointer-events: none; }
.hero-glow-b { position: absolute; z-index: 1; inset-block-end: -24%; inset-inline-start: -8%; width: min(40vw, 520px); height: min(40vw, 520px); border-radius: 50%; background: radial-gradient(circle, rgba(43,68,224,.34), transparent 68%); filter: blur(26px); pointer-events: none; }
.hero-cursor { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(300px 300px at var(--mx, 60%) var(--my, 26%), rgba(124,151,255,.24), transparent 68%); }
.hero-canvas { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-fade { position: absolute; z-index: 1; inset-inline: 0; inset-block-end: 0; height: 120px; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero-inner { position: relative; z-index: 2; max-width: var(--container); margin-inline: auto; padding: var(--space-8) var(--space-5) var(--space-9); }
.hero-grid2 { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; }
@media (min-width: 960px) { .hero-grid2 { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.06fr); } }
.hero-col { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px 14px 6px 12px;
  border-radius: var(--radius-pill); background: rgba(124,151,255,0.12); border: 1px solid rgba(124,151,255,0.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: #DCE3FB;
  animation: klx-rise var(--dur-slow) var(--ease-out) both;
}
.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #7C97FF; box-shadow: 0 0 8px 1px #7C97FF; }
.hero-title {
  font-size: var(--fs-display); line-height: 1.16; font-weight: var(--fw-bold); color: #F5F7FE; margin: 0;
  letter-spacing: -0.01em; animation: klx-rise var(--dur-slow) var(--ease-out) both; animation-delay: 70ms;
}
.hero-em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, #8FA6FF, #C9D4FF 55%, #89C7FF);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #B9C6FF;
  filter: drop-shadow(0 0 20px rgba(124,151,255,0.45)); padding-inline: 0.04em;
}
.hero-sub { font-size: var(--fs-body-lg); color: #B9C1DA; max-width: 50ch; margin: 0; line-height: 1.65; animation: klx-rise var(--dur-slow) var(--ease-out) both; animation-delay: 130ms; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); animation: klx-rise var(--dur-slow) var(--ease-out) both; animation-delay: 190ms; }
.hero-trust { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); animation: klx-rise var(--dur-slow) var(--ease-out) both; animation-delay: 250ms; }
.hero-trust li { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #CDD5EC; font-size: var(--fs-small); }
.hero-preview-col { position: relative; }
.hero-preview-glow { position: absolute; inset: -10% -6%; z-index: 0; background: radial-gradient(circle at 50% 45%, rgba(61,91,240,0.42), transparent 66%); filter: blur(34px); pointer-events: none; }
.hero-preview-inner { position: relative; z-index: 1; animation: klx-rise var(--dur-slow) var(--ease-out) both; animation-delay: 170ms; }

/* ---------- Buttons (shared) ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 54px; padding-inline: var(--space-6);
  background: var(--brand); color: var(--on-brand); border-radius: var(--radius-pill); text-decoration: none;
  font-size: var(--fs-body); font-weight: var(--fw-semibold); white-space: nowrap;
  box-shadow: 0 14px 44px -8px color-mix(in srgb, var(--brand) 75%, transparent);
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
  transition: transform 180ms var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn-primary:hover { color: var(--on-brand); box-shadow: 0 22px 58px -6px color-mix(in srgb, var(--brand) 95%, transparent); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 54px; padding-inline: var(--space-5);
  background: rgba(255,255,255,0.05); color: #F5F7FE; border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-pill); text-decoration: none; font-size: var(--fs-body); font-weight: var(--fw-semibold);
  white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn-ghost:hover { color: #F5F7FE; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
.btn-white {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 54px; padding-inline: var(--space-6);
  background: #FFFFFF; color: var(--brand-strong); border-radius: var(--radius-pill); text-decoration: none;
  font-size: var(--fs-body); font-weight: var(--fw-bold); white-space: nowrap; box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease-out);
}
.btn-white:hover { color: var(--brand-strong); transform: translateY(-2px); }

/* Dark-mode AA (WCAG): brand-filled CTAs carry white text. Light --brand (#2B44E0)
   passes 4.5:1, but dark --brand (#7C97FF) is too light for white — so under dark
   the fill drops to the deeper --brand-strong (#3D5BF0 -> 5.3:1). Light stays byte-faithful. */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .klx-nav-cta,
[data-theme="dark"] .footer-cta,
[data-theme="dark"] .faq-wa,
[data-theme="dark"] .go-btn,
[data-theme="dark"] .switcher-chip[aria-checked="true"] { background: var(--brand-strong); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary,
  :root:not([data-theme="light"]) .klx-nav-cta,
  :root:not([data-theme="light"]) .footer-cta,
  :root:not([data-theme="light"]) .faq-wa,
  :root:not([data-theme="light"]) .go-btn,
  :root:not([data-theme="light"]) .switcher-chip[aria-checked="true"] { background: var(--brand-strong); }
}

/* Dark-mode AA: brand TEXT/icon accents use the lighter --brand (#7C97FF) on dark
   surfaces. In dark, --brand-strong (#3D5BF0) is the button FILL color and is too dark
   as text (~3.1:1). Light mode keeps --brand-strong (dark on light = AA), byte-faithful. */
[data-theme="dark"] .klx-eyebrow,
[data-theme="dark"] .klx-skip,
[data-theme="dark"] .slug-b,
[data-theme="dark"] .mock2-code .m2-name,
[data-theme="dark"] .tpl-badge-live,
[data-theme="dark"] .tpl-feat-link,
[data-theme="dark"] .step-icon,
[data-theme="dark"] .go-icon,
[data-theme="dark"] .faq-icon,
[data-theme="dark"] .faq-q:hover,
[data-theme="dark"] .footer-links-nav a:hover,
[data-theme="dark"] .go-help a { color: var(--brand); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .klx-eyebrow,
  :root:not([data-theme="light"]) .klx-skip,
  :root:not([data-theme="light"]) .slug-b,
  :root:not([data-theme="light"]) .mock2-code .m2-name,
  :root:not([data-theme="light"]) .tpl-badge-live,
  :root:not([data-theme="light"]) .tpl-feat-link,
  :root:not([data-theme="light"]) .step-icon,
  :root:not([data-theme="light"]) .go-icon,
  :root:not([data-theme="light"]) .faq-icon,
  :root:not([data-theme="light"]) .faq-q:hover,
  :root:not([data-theme="light"]) .footer-links-nav a:hover,
  :root:not([data-theme="light"]) .go-help a { color: var(--brand); }
}

/* ============================================================
   HOW IT WORKS (bento) + glass/tilt
   ============================================================ */
.how-section { position: relative; background: radial-gradient(circle at 50% -12%, var(--brand-050), var(--bg) 58%); border-block-end: 1px solid var(--border); }
.bento { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.glass { background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid var(--border); }
.tilt {
  transform: perspective(950px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--tilt-s, 1));
  transition: transform 260ms var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.bento:hover .tilt:not(:hover), .tpl-grid:hover .tilt:not(:hover),
.bento:focus-within .tilt:not(:focus-within), .tpl-grid:focus-within .tilt:not(:focus-within) { --tilt-s: 0.95; opacity: 0.55; }
@media (prefers-reduced-motion: reduce) { .bento:hover .tilt:not(:hover), .tpl-grid:hover .tilt:not(:hover) { --tilt-s: 1; opacity: 0.72; } }

.step-card { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); min-height: 340px; box-shadow: var(--shadow-md); }
.step-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: 0 24px 60px -16px color-mix(in srgb, var(--brand) 42%, transparent), var(--shadow-md); }
.step-head { display: flex; align-items: center; justify-content: space-between; }
.step-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-100); color: var(--brand-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent); }
.step-num { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-subtle); font-feature-settings: "tnum" 1; }
.step-title { font-size: var(--fs-h4); font-weight: var(--fw-semibold); color: var(--text); margin: 0 0 var(--space-2); }
.step-body { color: var(--text-muted); margin: 0; font-size: var(--fs-small); }
.slug-b { font-family: var(--font-mono); font-weight: var(--fw-semibold); color: var(--brand-strong); white-space: nowrap; }

/* step 1 decorative "template stack" */
.mock1 { position: relative; height: 120px; margin-block-start: auto; }
.mock1-card { position: absolute; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.mock1-card--a { inset-block-start: 20px; inset-inline-start: 10%; width: 66%; height: 78px; transform: rotate(-7deg); }
.mock1-card--b { inset-block-start: 12px; inset-inline-start: 20%; width: 66%; height: 78px; transform: rotate(5deg); }
.mock1-live { position: absolute; inset-block-start: 6px; inset-inline-start: 14%; width: 68%; height: 82px; border-radius: 14px; background: var(--grad-beam); box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--brand) 75%, transparent); display: flex; align-items: center; gap: 10px; padding: 0 14px; animation: klx-float 4.6s var(--ease-in-out) infinite; }
.mock1-logo { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.16); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mock1-bars { display: flex; flex-direction: column; gap: 5px; }
.mock1-bar-a { width: 70px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.7); }
.mock1-bar-b { width: 44px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.4); }

/* step 2 decorative "brand it" */
.mock2 { margin-block-start: auto; display: flex; flex-direction: column; gap: 12px; }
.mock2-url { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; }
.mock2-dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); flex: 0 0 auto; animation: klx-glowpulse 2.6s var(--ease-in-out) infinite; }
.mock2-code { font-family: var(--font-mono); font-size: var(--fs-small); }
.mock2-code .m2-name { color: var(--brand-strong); font-weight: var(--fw-semibold); }
.mock2-code .m2-caret { color: var(--brand); animation: klx-caret 1.1s step-end infinite; }
.mock2-code .m2-tld { color: var(--text-muted); }
.mock2-swatches { display: flex; gap: 8px; }
.mock2-sw { width: 28px; height: 28px; border-radius: 8px; }
.mock2-sw--1 { background: var(--brand); box-shadow: var(--shadow-sm); }
.mock2-sw--2 { background: var(--brand-200); }
.mock2-sw--3 { background: var(--surface-2); border: 1px solid var(--border); }
.mock2-sw--4 { background: var(--text); opacity: 0.85; }

/* step 3 goCells grid */
.go-grid { margin-block-start: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.go-cell { display: block; aspect-ratio: 1; border-radius: 6px; }
.go-cell--latent { border: 1.5px solid var(--field-latent); }
.go-cell--brand { background: var(--brand); animation: klx-cellup 2.6s var(--ease-in-out) infinite; }
.go-cell--spark { background: var(--spark); animation: klx-sparkpulse 2s var(--ease-in-out) infinite; }

/* ============================================================
   TEMPLATES grid
   ============================================================ */
.tpl-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 620px) { .tpl-grid { grid-template-columns: 1fr 1fr; } .tpl-feat { grid-column: 1 / -1; } }
@media (min-width: 980px) { .tpl-grid { grid-template-columns: 1.25fr 1fr 1fr; grid-auto-rows: 1fr; } .tpl-feat { grid-column: 1; grid-row: 1 / span 2; } }
.tpl-feat-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.tpl-feat-card:hover { border-color: color-mix(in srgb, var(--brand) 50%, transparent); box-shadow: 0 24px 60px -16px color-mix(in srgb, var(--brand) 45%, transparent), var(--shadow-md); }
.tpl-feat-pattern { position: absolute; inset-block-end: -12%; inset-inline-end: -8%; width: 62%; height: 72%; opacity: 0.45; z-index: 0; pointer-events: none; }
.tpl-feat-glow { position: absolute; inset-block-start: -30%; inset-inline-start: -10%; width: 60%; height: 80%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 26%, transparent), transparent 68%); pointer-events: none; z-index: 0; }
.tpl-feat-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.tpl-feat-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-beam); color: #fff; box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.tpl-badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; background: var(--brand-100); color: var(--brand-strong); border-radius: var(--radius-pill); font-size: var(--fs-caption); font-weight: var(--fw-semibold); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent); }
.tpl-feat-body { position: relative; z-index: 1; }
.tpl-feat-name { font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--text); margin: 0 0 var(--space-2); }
.tpl-feat-desc { color: var(--text-muted); margin: 0; max-width: 40ch; }
.tpl-feat-link { position: relative; z-index: 1; margin-block-start: auto; display: inline-flex; align-items: center; gap: var(--space-2); color: var(--brand-strong); font-size: var(--fs-small); font-weight: var(--fw-semibold); text-decoration: none; width: fit-content; }
.tpl-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.tpl-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); box-shadow: 0 18px 44px -14px color-mix(in srgb, var(--brand) 36%, transparent), var(--shadow-sm); }
.tpl-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.tpl-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-input); background: var(--surface-2); color: var(--text-muted); }
.tpl-badge-soon { display: inline-flex; align-items: center; padding: 5px 12px; background: var(--surface-2); color: var(--text-subtle); border-radius: var(--radius-pill); font-size: var(--fs-caption); font-weight: var(--fw-semibold); }
.tpl-card-name { font-size: var(--fs-h4); font-weight: var(--fw-semibold); color: var(--text); margin: 0; }
.tpl-card-desc { color: var(--text-muted); margin: 0; font-size: var(--fs-small); }

/* ============================================================
   VALUE panel (the Beam)
   ============================================================ */
.value-section { background: var(--surface); border-block: 1px solid var(--border); }
.value-panel { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--grad-beam); box-shadow: var(--shadow-lg); padding: clamp(var(--space-6), 4vw, var(--space-8)); }
.value-pattern { position: absolute; inset-block-start: -30%; inset-inline-end: -8%; width: 44%; height: 160%; opacity: 0.22; pointer-events: none; }
.value-orb { position: absolute; inset-block-start: -40%; inset-inline-start: -6%; width: 40%; height: 120%; background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 66%); pointer-events: none; animation: klx-float 7s var(--ease-in-out) infinite; }
.value-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-5); max-width: 60ch; }
.value-eyebrow { display: inline-block; font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: #FFFFFF; opacity: 0.85; }
.value-heading { font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: var(--fw-bold); color: #FFFFFF; margin: 0; }
.value-strike { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(255,255,255,0.85); color: #FFFFFF; opacity: 0.78; white-space: nowrap; }
.value-body { font-size: var(--fs-body-lg); color: #FFFFFF; margin: 0; max-width: 54ch; }
.value-compares { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.value-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); color: #FFFFFF; font-size: var(--fs-small); }
.value-pill--a { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); }
.value-pill--b { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); font-weight: var(--fw-semibold); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-inner { max-width: 760px; margin-inline: auto; padding: var(--space-9) var(--space-5); }
.faq-list { display: flex; flex-direction: column; border-block-start: 1px solid var(--border); }
.faq-item { border-block-end: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-2); background: transparent; text-align: start; font-size: var(--fs-body-lg); font-weight: var(--fw-semibold); color: var(--text); cursor: pointer; transition: color var(--dur) var(--ease-out); }
.faq-q:hover { color: var(--brand-strong); }
.faq-icon { flex: 0 0 auto; display: inline-flex; color: var(--brand-strong); transition: transform var(--dur) var(--ease-out); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-panel { padding: 0 var(--space-2) var(--space-6); animation: klx-rise var(--dur) var(--ease-out) both; }
.faq-panel[hidden] { display: none; }
.faq-answer { color: var(--text-muted); margin: 0; max-width: 64ch; }
.faq-wa { display: inline-flex; align-items: center; gap: var(--space-2); margin-block-start: var(--space-4); height: 44px; padding-inline: var(--space-4); background: var(--brand); color: var(--on-brand); border-radius: var(--radius-pill); text-decoration: none; font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.faq-wa:hover { color: var(--on-brand); background: var(--brand-strong); }

/* ============================================================
   FOOTER (from klyxin-footer.dc.html)
   ============================================================ */
.klx-footer { border-block-start: 1px solid var(--border); background: var(--surface); color: var(--text); }
.footer-inner { max-width: var(--container); margin-inline: auto; padding: var(--space-8) var(--space-5) var(--space-6); }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--space-7) var(--space-6); align-items: flex-start; justify-content: space-between; }
.footer-brand { max-width: 36ch; }
.footer-logo { display: inline-flex; color: var(--text); text-decoration: none; margin-block-end: var(--space-4); }
.footer-tagline { margin: 0 0 var(--space-5); color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.footer-trust { list-style: none; margin: 0; padding: 0; }
.footer-trust li { display: flex; align-items: center; gap: var(--space-2); color: var(--text-muted); font-size: var(--fs-small); margin-block-end: var(--space-2); }
.footer-links-col { min-width: 200px; }
.footer-links-col .klx-eyebrow { margin-block-end: var(--space-4); }
.footer-links-nav a { display: block; color: var(--text-muted); text-decoration: none; font-size: var(--fs-body); width: fit-content; margin-block-start: var(--space-3); }
.footer-links-nav a:hover { color: var(--brand-strong); }
.footer-cta-lead { display: block; color: var(--text-muted); font-size: var(--fs-small); margin-block-end: var(--space-3); }
.footer-cta { display: inline-flex; align-items: center; gap: var(--space-2); height: 48px; padding-inline: var(--space-5); background: var(--brand); color: var(--on-brand); border-radius: var(--radius-pill); text-decoration: none; font-size: var(--fs-body); font-weight: var(--fw-semibold); white-space: nowrap; box-shadow: var(--shadow-sm); transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.footer-cta:hover { color: var(--on-brand); background: var(--brand-strong); transform: translateY(-1px); }
.footer-phone { display: block; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-subtle); font-feature-settings: "tnum" 1; margin-block-start: var(--space-3); }
.footer-bottom { margin-block-start: var(--space-7); padding-block-start: var(--space-5); border-block-start: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; justify-content: space-between; }
.footer-copy, .footer-tagline2 { color: var(--text-subtle); font-size: var(--fs-small); }

/* ============================================================
   SWITCHER (from klyxin-switcher.dc.html) — vanilla port
   ============================================================ */
.switcher { inline-size: 100%; }
.switcher-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.switcher-bar { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); border-block-end: 1px solid var(--border); }
.switcher-bar-top { display: flex; align-items: center; gap: var(--space-3); }
.switcher-logo { display: inline-flex; width: 24px; height: 24px; border-radius: 7px; background: var(--brand); align-items: center; justify-content: center; flex: 0 0 auto; }
.switcher-url { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 6px 12px; }
.switcher-url-text { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-feature-settings: "tnum" 1; }
.switcher-live { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.switcher-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 2px var(--spark-ring), 0 0 0 3.5px color-mix(in srgb, var(--spark) 45%, transparent); }
.switcher-live-label { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--spark-text); white-space: nowrap; }
.switcher-chips { display: flex; gap: var(--space-2); }
.switcher-chip { flex: 1 1 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--radius-pill); font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer; background: transparent; color: var(--text-muted); border: 1px solid var(--border); transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.switcher-chip:hover { filter: brightness(1.04); }
.switcher-chip[aria-checked="true"] { background: var(--brand); color: var(--on-brand); border: 1px solid transparent; box-shadow: var(--shadow-sm); }
.switcher-progress { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--brand) 14%, transparent); overflow: hidden; }
.switcher-progress-fill { height: 100%; background: var(--grad-beam); animation: klx-prog 4200ms linear; transform-origin: left; }
[dir="rtl"] .switcher-progress-fill { transform-origin: right; }
.switcher-interior { padding: var(--space-5); min-height: 384px; touch-action: pan-y; }
.switcher-interior-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block-end: var(--space-4); border-block-end: 1px solid var(--border); }
.switcher-brand { display: flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }
.switcher-brand-badge { width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--ac) 16%, var(--surface)); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.switcher-brand-badge span { width: 11px; height: 11px; border-radius: 3px; background: var(--ac); }
.switcher-brand-name { font-weight: var(--fw-bold); color: var(--ac-text); font-size: var(--fs-body-lg); white-space: nowrap; }
.switcher-nav { display: flex; gap: var(--space-4); align-items: center; flex: 1 1 auto; min-width: 0; overflow: hidden; justify-content: flex-end; }
.switcher-nav span { font-size: var(--fs-small); color: var(--text-muted); white-space: nowrap; }
.switcher-hero { padding-block: var(--space-5); }
.switcher-hero-h { font-size: var(--fs-h3); line-height: var(--lh-heading); color: var(--text); margin: 0; max-width: 22ch; }
.switcher-hero-p { color: var(--text-muted); margin: var(--space-3) 0 0; max-width: 42ch; }
.switcher-hero-cta-wrap { margin-block-start: var(--space-4); }
.switcher-hero-cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: var(--space-4); border-radius: var(--radius-pill); background: var(--ac); color: var(--ac-on); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.switcher-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.switcher-mcard { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.switcher-mcard-media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 28%, var(--surface)) 0%, color-mix(in srgb, var(--ac) 9%, var(--surface)) 100%); position: relative; overflow: hidden; }
.switcher-mcard-blob { position: absolute; inset-block-end: -14px; inset-inline-end: -14px; width: 56px; height: 56px; border-radius: 14px; background: color-mix(in srgb, var(--ac) 22%, transparent); }
.switcher-mcard-sq { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid color-mix(in srgb, var(--ac) 45%, transparent); }
.switcher-mcard-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 4px; }
.switcher-mcard-title { font-weight: var(--fw-semibold); color: var(--text); font-size: var(--fs-small); }
.switcher-mcard-meta { color: var(--text-subtle); font-size: var(--fs-caption); }
.switcher-mcard-price { color: var(--ac-text); font-weight: var(--fw-bold); font-size: var(--fs-body); font-feature-settings: "tnum" 1; margin-block-start: 2px; }
.switcher-shadow { height: 34px; margin: 2px 12% 0; border-radius: 50%; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--brand) 34%, transparent), transparent 72%); filter: blur(16px); }
.switcher-note { text-align: center; color: var(--text-muted); font-size: var(--fs-small); margin: var(--space-3) 0 0; }

/* ============================================================
   Keyframes used by landing/switcher (not already in tokens.css)
   ============================================================ */
@keyframes klx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes klx-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes klx-cellup { 0%, 100% { opacity: .28; transform: scale(.9); } 50% { opacity: 1; transform: scale(1); } }
@keyframes klx-sparkpulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,122,69,.5); } 50% { transform: scale(1.14); box-shadow: 0 0 16px 5px rgba(255,122,69,.4); } }
@keyframes klx-glowpulse { 0%, 100% { opacity: .55; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent); } 50% { opacity: 1; box-shadow: 0 0 14px 3px color-mix(in srgb, var(--brand) 45%, transparent); } }
@keyframes klx-orbit { to { transform: rotate(360deg); } }
@keyframes klx-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Reduced motion: the hero stage never self-animates (matches DC) */
@media (prefers-reduced-motion: reduce) { .hero-stage * { animation: none !important; } }

/* ============================================================
   GO — workspace router page
   ============================================================ */
.go-main { min-height: calc(100dvh - 120px); display: flex; align-items: center; justify-content: center; padding: calc(var(--space-4) + 96px) var(--space-5) var(--space-9); }
.go-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: clamp(var(--space-6), 5vw, var(--space-8)); display: flex; flex-direction: column; gap: var(--space-5); }
.go-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-100); color: var(--brand-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent); }
.go-title { font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--text); margin: 0; }
.go-sub { color: var(--text-muted); font-size: var(--fs-body); margin: 0; line-height: var(--lh-body); }
.go-form { display: flex; flex-direction: column; gap: var(--space-4); }
.go-field-label { display: block; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text); margin-block-end: var(--space-2); }
.go-input-wrap { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-input); overflow: hidden; transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.go-input-wrap:focus-within { border-color: var(--brand); box-shadow: var(--focus-ring); }
.go-input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 0 var(--space-4); height: 52px; font-family: var(--font-mono); font-size: var(--fs-body); color: var(--text); outline: none; }
.go-input::placeholder { color: var(--text-subtle); }
.go-suffix { flex: 0 0 auto; padding-inline: var(--space-4); height: 52px; display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: var(--fs-body); color: var(--text-muted); background: var(--surface-2); border-inline-start: 1px solid var(--border); }
.go-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 52px; padding-inline: var(--space-6); background: var(--brand); color: var(--on-brand); border-radius: var(--radius-pill); text-decoration: none; font-size: var(--fs-body); font-weight: var(--fw-semibold); white-space: nowrap; box-shadow: var(--shadow-sm); transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); border: 0; cursor: pointer; }
.go-btn:hover { background: var(--brand-strong); transform: translateY(-1px); }
.go-error { color: var(--danger); font-size: var(--fs-small); margin: 0; min-height: 1.2em; }
.go-help { color: var(--text-subtle); font-size: var(--fs-small); margin: 0; }
.go-help a { font-weight: var(--fw-semibold); }
