/* Trading AI — public site
 * Editorial-financial. Paper warmth + ink gravitas. Fraunces display + Inter
 * body + JetBrains Mono numerals. Light by default; dark optional.
 *
 * Designprinsipp: equity-kurven er helten. Alt annet underordnes typografi
 * og hairline-linjer. Ingen iconography-støy, ingen marketing-fluff.
 */

:root {
  /* Paper-warm palette (light) */
  --paper:        oklch(0.985 0.008 80);
  --paper-2:      oklch(0.965 0.010 78);
  --paper-3:      oklch(0.945 0.011 76);
  --ink:          oklch(0.20 0.012 50);
  --ink-2:        oklch(0.36 0.012 55);
  --ink-3:        oklch(0.54 0.010 60);
  --ink-4:        oklch(0.68 0.009 65);
  --hairline:     oklch(0.86 0.010 70);
  --hairline-soft: oklch(0.92 0.008 70);

  --pos:          oklch(0.46 0.130 145);
  --pos-soft:     oklch(0.46 0.130 145 / 0.10);
  --neg:          oklch(0.50 0.180 28);
  --neg-soft:     oklch(0.50 0.180 28 / 0.10);
  --accent:       oklch(0.42 0.140 60);   /* gold-ink for status accents */

  --font-display: 'Fraunces', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  --font-body:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1180px;
  --r-md: 6px;
  --r-lg: 12px;
  --r-xl: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:    oklch(0.16 0.010 60);
    --paper-2:  oklch(0.19 0.010 60);
    --paper-3:  oklch(0.22 0.010 60);
    --ink:      oklch(0.96 0.005 80);
    --ink-2:    oklch(0.78 0.008 75);
    --ink-3:    oklch(0.62 0.008 70);
    --ink-4:    oklch(0.46 0.008 65);
    --hairline: oklch(0.30 0.012 60);
    --hairline-soft: oklch(0.24 0.012 60);
    --pos:      oklch(0.78 0.180 145);
    --pos-soft: oklch(0.78 0.180 145 / 0.14);
    --neg:      oklch(0.74 0.190 28);
    --neg-soft: oklch(0.74 0.190 28 / 0.14);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01" 1, "cv11" 1;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ---------------------------------------------------------------- container */

.container {
  max-width: var(--container);
  padding: 0 32px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ------------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background:
    radial-gradient(120% 120% at 30% 20%, var(--paper-2) 0%, transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--ink) 15%, transparent);
}

.brand em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.topnav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}

.topnav a { letter-spacing: 0; }

@media (max-width: 720px) {
  .topnav { display: none; }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-4);
  box-shadow: 0 0 0 0 currentColor;
}

.status[data-state="ok"] .dot {
  background: var(--pos);
  animation: pulse 2.4s ease-in-out infinite;
}
.status[data-state="ok"] { color: var(--pos); }

.status[data-state="killed"] .dot { background: var(--neg); }
.status[data-state="killed"] { color: var(--neg); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--pos) 60%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklch, var(--pos) 0%, transparent); }
}

/* --------------------------------------------------------------------- hero */

.hero {
  padding: 80px 32px 64px;
  position: relative;
}

@media (min-width: 900px) {
  .hero { padding: 120px 32px 88px; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 14ch;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.lede {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-figures {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 32px;
  align-items: end;
  max-width: 920px;
}

@media (max-width: 720px) {
  .hero-figures {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-figures .rule { display: none; }
}

.figure-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.figure-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.figure-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0;
}

.figure-value.up { color: var(--pos); }
.figure-value.down { color: var(--neg); }
.figure-sub.up { color: var(--pos); }
.figure-sub.down { color: var(--neg); }

.rule {
  width: 1px;
  height: 60px;
  background: var(--hairline);
  align-self: end;
  margin-bottom: 8px;
}

/* ------------------------------------------------------------- section heads */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-sub {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 48ch;
  text-align: right;
}

/* ----------------------------------------------------------------- journey */

.journey { padding: 64px 32px; }

.range-toggle {
  display: inline-flex;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--font-mono);
}

.range-toggle button {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 999px;
  transition: all .15s;
}

.range-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

.range-toggle button:hover:not(.active) { color: var(--ink); }

.chart-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}

.chart-mount {
  width: 100%;
  height: 380px;
  position: relative;
}

@media (min-width: 900px) {
  .chart-mount { height: 460px; }
}

.chart-mount svg { width: 100%; height: 100%; display: block; }

.chart-caption {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--hairline);
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Chart visual styles (used by chart.js) */
.chart-line { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.chart-line.you      { stroke: var(--ink); stroke-width: 2.2; }
.chart-line.spy      { stroke: oklch(0.62 0.02 60);  stroke-dasharray: 1 0; opacity: 0.85; }
.chart-line.qqq      { stroke: oklch(0.55 0.05 250); stroke-dasharray: 4 3; opacity: 0.85; }
.chart-line.btc      { stroke: oklch(0.62 0.16 60);  stroke-dasharray: 1 0; opacity: 0.85; }
.chart-line.eth      { stroke: oklch(0.55 0.13 280); stroke-dasharray: 4 3; opacity: 0.85; }
.chart-area { fill: var(--pos-soft); }
.chart-area.neg { fill: var(--neg-soft); }
.chart-axis-label { fill: var(--ink-3); font: 11px var(--font-mono); }
.chart-grid-line { stroke: var(--hairline-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-baseline { stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart-final-dot { fill: var(--ink); }
.chart-final-label { fill: var(--ink); font: 11px var(--font-mono); font-weight: 500; }
.chart-final-dot.spy { fill: oklch(0.62 0.02 60); }
.chart-final-dot.qqq { fill: oklch(0.55 0.05 250); }
.chart-final-dot.btc { fill: oklch(0.62 0.16 60); }
.chart-final-dot.eth { fill: oklch(0.55 0.13 280); }
.chart-final-label.muted { fill: var(--ink-3); font-weight: 400; }

/* ----------------------------------------------------------------- legend */

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  padding: 0 4px 18px;
  border-bottom: 1px dashed var(--hairline);
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legend-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: opacity .15s, color .15s;
}

.legend-key.disabled { opacity: 0.32; }
.legend-key:hover { color: var(--ink); }

.legend-swatch-line {
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.legend-key[data-key="you"] .legend-swatch-line { background: var(--ink); height: 3px; }
.legend-key[data-key="spy"] .legend-swatch-line { background: oklch(0.62 0.02 60); }
.legend-key[data-key="qqq"] .legend-swatch-line {
  background: linear-gradient(90deg, oklch(0.55 0.05 250) 0 8px, transparent 8px 11px, oklch(0.55 0.05 250) 11px 22px);
}
.legend-key[data-key="btc"] .legend-swatch-line { background: oklch(0.62 0.16 60); }
.legend-key[data-key="eth"] .legend-swatch-line {
  background: linear-gradient(90deg, oklch(0.55 0.13 280) 0 8px, transparent 8px 11px, oklch(0.55 0.13 280) 11px 22px);
}

.legend-key .legend-text { color: inherit; }
.legend-key .legend-num {
  margin-left: auto;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}
.legend-key .legend-num.up { color: var(--pos); }
.legend-key .legend-num.down { color: var(--neg); }

/* -------------------------------------------------------------------- stats */

.stats { padding: 64px 32px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.stats-grid .stat:nth-child(4n) { border-right: none; }
.stats-grid .stat:nth-last-child(-n+1),
.stats-grid .stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }

@media (max-width: 720px) {
  .stats-grid .stat:nth-child(2n) { border-right: none; }
  .stats-grid .stat:nth-child(4n) { border-right: 1px solid var(--hairline-soft); }
  .stats-grid .stat:nth-last-child(-n+2) { border-bottom: none; }
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- strategies */

.strategies { padding: 64px 32px; }

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.strategy-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px 24px 20px;
  cursor: pointer;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.strategy-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--ink) 30%, var(--hairline));
  box-shadow: 0 8px 24px -12px color-mix(in oklch, var(--ink) 24%, transparent);
}

.strategy-card.expanded {
  grid-column: 1 / -1;
  cursor: default;
}

.strategy-card.expanded:hover { transform: none; }

.strategy-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.strategy-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
}

.strategy-class-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  white-space: nowrap;
}

.strategy-class-badge.crypto {
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--hairline));
}

.strategy-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: -4px 0 0;
}

.strategy-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px dashed var(--hairline-soft);
  padding-top: 16px;
}

.strategy-metric .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.strategy-metric .value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.strategy-metric .value.up { color: var(--pos); }
.strategy-metric .value.down { color: var(--neg); }

.strategy-secondary {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.strategy-secondary span strong {
  color: var(--ink-2);
  font-weight: 500;
}

.strategy-cta {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-4);
  pointer-events: none;
}

.strategy-card:hover .strategy-cta { color: var(--accent); }
.strategy-card.expanded .strategy-cta::after { content: '↑ skjul'; }
.strategy-card:not(.expanded) .strategy-cta::after { content: '↓ åpne'; }

.strategy-detail {
  border-top: 1px dashed var(--hairline);
  padding-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
}

@media (max-width: 720px) {
  .strategy-detail { grid-template-columns: 1fr; }
  .strategy-cta { top: 20px; right: 20px; }
}

.strategy-detail-chart {
  height: 240px;
}

.strategy-detail-meta dl {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 10px;
  column-gap: 16px;
  font-size: 13px;
}

.strategy-detail-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.strategy-detail-meta dd {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.strategy-detail-locked {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--hairline);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--ink-3);
  background: var(--paper-2);
}

.strategy-detail-locked strong {
  display: block;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 4px;
}

.strategy-footnote {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
}

.strategy-footnote a { color: var(--accent); border-bottom: 1px dotted currentColor; }

/* --------------------------------------------------------------- daily grid */

.daily { padding: 64px 32px; }

.daily-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 4px;
  max-width: 880px;
}

@media (max-width: 720px) {
  .daily-grid { grid-template-columns: repeat(10, 1fr); }
}

.day-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--hairline-soft);
  cursor: default;
  transition: transform .12s, box-shadow .12s;
}

.day-cell:hover {
  transform: scale(1.18);
  z-index: 2;
  box-shadow: 0 4px 12px -4px color-mix(in oklch, var(--ink) 30%, transparent);
}

.day-cell.empty {
  background: repeating-linear-gradient(
    45deg, var(--paper-2), var(--paper-2) 3px,
    var(--paper-3) 3px, var(--paper-3) 4px
  );
  opacity: 0.5;
}

/* Heat-scale: 5 levels per direction, anchored at ±0.25% / ±1.0% */
.day-cell.pos-1 { background: oklch(0.46 0.130 145 / 0.18); border-color: oklch(0.46 0.130 145 / 0.28); }
.day-cell.pos-2 { background: oklch(0.46 0.130 145 / 0.36); border-color: oklch(0.46 0.130 145 / 0.50); }
.day-cell.pos-3 { background: oklch(0.46 0.130 145 / 0.62); border-color: oklch(0.46 0.130 145 / 0.78); }
.day-cell.neg-1 { background: oklch(0.50 0.180 28 / 0.16); border-color: oklch(0.50 0.180 28 / 0.30); }
.day-cell.neg-2 { background: oklch(0.50 0.180 28 / 0.34); border-color: oklch(0.50 0.180 28 / 0.50); }
.day-cell.neg-3 { background: oklch(0.50 0.180 28 / 0.60); border-color: oklch(0.50 0.180 28 / 0.78); }

.day-cell .day-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .14s;
  z-index: 3;
}

.day-cell:hover .day-tooltip { opacity: 1; }

.daily-legend {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--hairline-soft);
}

.legend-swatch.pos-1 { background: oklch(0.46 0.130 145 / 0.20); }
.legend-swatch.pos-3 { background: oklch(0.46 0.130 145 / 0.62); }
.legend-swatch.neg-1 { background: oklch(0.50 0.180 28 / 0.18); }
.legend-swatch.neg-3 { background: oklch(0.50 0.180 28 / 0.60); }
.legend-swatch.flat  { background: var(--paper-2); }

/* --------------------------------------------------------------- how-it-works */

.how-it-works { padding: 96px 32px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
}

.how-card {
  position: relative;
  padding: 32px 28px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.how-num {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  border-radius: 50%;
}

.how-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}

.how-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.how-card em {
  color: var(--accent);
  font-weight: 500;
}

.how-disclosure {
  margin-top: 48px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 64ch;
}

.how-disclosure em {
  font-style: italic;
  color: var(--accent);
}

/* ----------------------------------------------------------------- subscribe */

.subscribe { padding: 64px 32px; }

.subscribe-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}

.subscribe-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, var(--pos-soft), transparent 70%);
  pointer-events: none;
}

.subscribe-card .section-title { margin-bottom: 12px; }
.subscribe-card .section-sub { text-align: center; margin: 0 auto 28px; }

.signup {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.signup input {
  flex: 1;
  padding: 14px 18px;
  font: inherit;
  font-size: 15px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.signup input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink) 8%, transparent);
}

.signup button {
  padding: 14px 22px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s, background .15s;
}

.signup button:hover { transform: translateY(-1px); }
.signup button:active { transform: translateY(0); }

.signup-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  min-height: 1.2em;
}

.signup-note.success { color: var(--pos); }
.signup-note.error { color: var(--neg); }

/* ----------------------------------------------------------------- disclaimer */

.disclaimer {
  padding: 32px 32px 64px;
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  font-style: italic;
}

.disclaimer strong {
  color: var(--ink-2);
  font-weight: 500;
  font-style: normal;
}

/* --------------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 32px 0;
  background: var(--paper-2);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
  gap: 24px;
}

.footer-brand {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

.footer-brand em {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
}

.footer-meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.footer-meta a { color: var(--ink-3); }
.footer-meta a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ utilities */

.is-loading { opacity: 0.4; transition: opacity .3s; }
.is-loaded  { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
