/* =========================================================================
   wen[range] teaser — styles
   Design tokens are pulled from wenrange-system.html (the design source).
   To rebrand, edit only the :root variables below.
   ========================================================================= */

:root {
  /* Color tokens */
  --c-paper:        #f4ede2;
  --c-surface-card: #fbf6e8;
  --c-ink:          #1a1814;
  --c-ink-2:        #4a463d;
  --c-ink-3:        #8a8474;
  --c-line:         #d6cdb4;
  --c-line-2:       #c2b89a;
  --c-accent:       #3b6bd1;
  --c-up:           #2f8a5b;
  --c-down:         #c14a3a;

  /* Type stacks */
  --f-display: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --f-ui:      "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

/* ── Reset / base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Page shell ────────────────────────────────────────────────────────── */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 64px;
  overflow: hidden;
}

/* ── Bracket art (decorative, framing) ─────────────────────────────────── */
.bracket {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-accent);
  pointer-events: none;
  user-select: none;
  /* width:height kept at 1:5 so the SVG content fills the box uniformly */
  height: clamp(360px, 75vh, 700px);
  width:  clamp(72px,  15vh, 140px);
}
.bracket-left  { left:  clamp(20px, 5vw, 72px); }
.bracket-right { right: clamp(20px, 5vw, 72px); }

/* ── Topbar ────────────────────────────────────────────────────────────── */
.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.wordmark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}
.wm-bracket { color: var(--c-accent); }

.ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-ink-3);
  white-space: nowrap;
}
.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-ink-3);
  display: inline-block;
}
.ticker-dot.is-connecting {
  background: var(--c-ink-3);
  animation: pulse 1.2s ease-in-out infinite;
}
.ticker-dot.is-live {
  background: var(--c-up);
  animation: pulse 1.6s ease-in-out infinite;
}
.ticker-text .price {
  color: var(--c-ink);
  font-weight: 500;
  font-feature-settings: "tnum";
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 0;
}

.eyebrow {
  margin: 0 0 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}

.headline {
  margin: 0 0 36px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(64px, 13vw, 168px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--c-ink);
}
.headline span     { display: block; }
.headline .accent  { color: var(--c-accent); }

.subline {
  margin: 0 0 64px;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}

/* ── Range slider ──────────────────────────────────────────────────────── */
.slider-wrap {
  width: min(640px, 80%);
  margin: 0 0 64px;
}
/* Reserve layout space before the first price arrives, so the page below
   doesn't jump when the slider is revealed. */
.slider-wrap[hidden] {
  display: block;
  visibility: hidden;
}
.rs {
  width: 100%;
  user-select: none;
  touch-action: none;
}
.rs-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--c-line);
  cursor: pointer;
}
.rs-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--c-accent);
  pointer-events: none;
}
.rs-spot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-ink);
  pointer-events: none;
}
.rs-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2.5px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-surface-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: grab;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.08s ease;
  touch-action: none;
}
.rs-handle:hover  { transform: translate(-50%, -50%) scale(1.08); }
.rs-handle:active { transform: translate(-50%, -50%) scale(0.95); cursor: grabbing; }
.rs-handle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

.rs-readout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-feature-settings: "tnum";
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}
.rs-em-dash { color: var(--c-ink-3); }
.rs-pill {
  margin-left: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-up);
  color: var(--c-paper);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}
.rs-pill.is-out { background: var(--c-down); }

/* ── CTA ───────────────────────────────────────────────────────────────── */
.cta {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s ease;
}
.cta:hover, .cta:focus-visible { color: var(--c-accent); }
.cta:focus-visible             { outline: none; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.footer-row {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer a {
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.15s ease;
}
.footer a:hover, .footer a:focus-visible { color: var(--c-accent); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .page { padding: 32px 32px; }
}

@media (max-width: 640px) {
  .page          { padding: 24px 20px; }
  .bracket       { display: none; }
  .wordmark      { font-size: 22px; }
  .ticker        { font-size: 10px; gap: 6px; }
  .eyebrow       { margin-bottom: 20px; font-size: 10px; }
  .headline      { margin-bottom: 24px; }
  .subline       { margin-bottom: 40px; font-size: 12px; }
  .slider-wrap   { width: 100%; margin-bottom: 40px; }
  .rs-readout    { gap: 10px; flex-wrap: wrap; }
  .rs-pill       { margin-left: 6px; }
  .footer        { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-dot.is-connecting,
  .ticker-dot.is-live { animation: none; }
  .rs-handle          { transition: none; }
}
