/* Valon Externship — landing page
   Cream/gold default. Tweaks can switch palettes via [data-palette]. */

@font-face {
  font-family: "Season Serif";
  src: url("https://valon.ai/_next/static/media/SeasonSerif_Regular-s.p.7c8fbf7c.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "KMR Melange Grotesk";
  src: url("https://valon.ai/_next/static/media/KMRMelangeGrotesk_Regular-s.p.ed91ceec.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("https://valon.ai/_next/static/media/GeistMono_Regular-s.p.f83ebbcf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root,
[data-palette="cream"] {
  --bg: #f4ede2;
  --bg-2: #ece2cf;
  --ink: #1a120a;
  --ink-2: #2d1f12;
  --ink-soft: rgba(26, 18, 10, 0.66);
  --ink-faint: rgba(26, 18, 10, 0.38);
  --ink-line: rgba(26, 18, 10, 0.14);
  --ink-line-2: rgba(26, 18, 10, 0.28);
  --accent: #c97a0c;
  --accent-2: #e19614;
  --invert-bg: #0e0a05;
  --invert-ink: #f4ede2;
  --invert-ink-soft: rgba(244, 237, 226, 0.66);
  --invert-line: rgba(244, 237, 226, 0.18);
  --hot: #ff4c1a;
  --cool: #2a6df4;
  --ticker-duration: 120s;
}

[data-palette="stark"] {
  --bg: #ffffff;
  --bg-2: #f3f3f3;
  --ink: #050505;
  --ink-2: #1a1a1a;
  --ink-soft: rgba(5, 5, 5, 0.68);
  --ink-faint: rgba(5, 5, 5, 0.4);
  --ink-line: rgba(5, 5, 5, 0.12);
  --ink-line-2: rgba(5, 5, 5, 0.28);
  --accent: #050505;
  --accent-2: #050505;
  --invert-bg: #050505;
  --invert-ink: #ffffff;
  --invert-ink-soft: rgba(255, 255, 255, 0.66);
  --invert-line: rgba(255, 255, 255, 0.18);
  --hot: #ff3322;
  --cool: #2a6df4;
}

[data-palette="dark"] {
  --bg: #100a0a;
  --bg-2: #1a1210;
  --ink: #f3ebde;
  --ink-2: #ffffff;
  --ink-soft: rgba(243, 235, 222, 0.72);
  --ink-faint: rgba(243, 235, 222, 0.42);
  --ink-line: rgba(243, 235, 222, 0.16);
  --ink-line-2: rgba(243, 235, 222, 0.3);
  --accent: #f0a72d;
  --accent-2: #f5c462;
  --invert-bg: #f4ede2;
  --invert-ink: #100a0a;
  --invert-ink-soft: rgba(16, 10, 10, 0.66);
  --invert-line: rgba(16, 10, 10, 0.18);
  --hot: #ff7044;
  --cool: #7faaff;
}

[data-palette="terminal"] {
  --bg: #060a06;
  --bg-2: #0a120a;
  --ink: #b6ff8a;
  --ink-2: #d6ffba;
  --ink-soft: rgba(182, 255, 138, 0.7);
  --ink-faint: rgba(182, 255, 138, 0.4);
  --ink-line: rgba(182, 255, 138, 0.16);
  --ink-line-2: rgba(182, 255, 138, 0.32);
  --accent: #5cff5c;
  --accent-2: #b6ff8a;
  --invert-bg: #b6ff8a;
  --invert-ink: #060a06;
  --invert-ink-soft: rgba(6, 10, 6, 0.7);
  --invert-line: rgba(6, 10, 6, 0.18);
  --hot: #ff5050;
  --cool: #50d0ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "KMR Melange Grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.serif { font-family: "Season Serif", "Iowan Old Style", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: "Geist Mono", "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace; }

.container {
  width: min(100% - 64px, 1320px);
  margin: 0 auto;
}

/* shared label */
.kicker {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 76, 26, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 76, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 76, 26, 0); }
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 22px; width: auto; display: block; }
[data-palette="dark"] .nav-logo img,
[data-palette="terminal"] .nav-logo img { filter: invert(1) brightness(1.6); }
[data-palette="terminal"] .nav-logo img { filter: invert(1) sepia(1) hue-rotate(70deg) saturate(8) brightness(1.1); }
.nav-meta { display: flex; align-items: center; gap: 18px; font-family: "Geist Mono", monospace; font-size: 12px; color: var(--ink-soft); }
.nav-meta .sep { width: 1px; height: 14px; background: var(--ink-line-2); }
.nav-cta {
  min-width: 104px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  text-align: center;
  transition: transform 120ms ease;
}
.nav-cta:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--accent); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--ink-line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.hero-tag {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 28px;
  font-family: "Geist Mono", monospace; font-size: 12px; color: var(--ink-soft);
}
.hero-tag .chip {
  border: 1px solid var(--ink-line-2);
  padding: 4px 10px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-family: "Season Serif", Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  margin-top: 28px;
  max-width: 720px;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-sub strong { color: var(--ink); font-weight: 400; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

/* Status bar under hero */
.status-bar {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink-line-2);
  border-bottom: 1px solid var(--ink-line-2);
}
.status-cell {
  padding: 18px 22px;
  border-right: 1px solid var(--ink-line);
  display: flex; flex-direction: column; gap: 8px;
  min-height: 96px;
}
.status-cell:last-child { border-right: 0; }
.status-cell .label {
  font-family: "Geist Mono", monospace; font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint);
}
.status-cell .value {
  font-family: "Geist Mono", monospace; font-size: 22px;
  color: var(--ink-2); letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.status-cell .value.serif {
  font-family: "Season Serif", Georgia, serif; font-size: 30px;
}

/* CTA buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: "Geist Mono", monospace; font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: transform 120ms ease, box-shadow 120ms ease;
  position: relative;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn .arrow { transition: transform 120ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== TICKER ===== */
.ticker {
  border-bottom: 1px solid var(--ink-line);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex; gap: 48px; padding: 12px 0;
  white-space: nowrap;
  font-family: "Geist Mono", monospace; font-size: 12px;
  color: var(--ink-soft);
  animation: ticker var(--ticker-duration) linear infinite;
  width: max-content;
}
.ticker-item { display: inline-flex; align-items: center; gap: 12px; }
.ticker-item .marker { color: var(--accent); }
.ticker-item .name { color: var(--ink-2); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTION SHELL ===== */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--ink-line);
}
.section.invert {
  background: var(--invert-bg);
  color: var(--invert-ink);
  /* Remap text tokens so descendant rules render against the dark surface. */
  --ink: var(--invert-ink);
  --ink-2: var(--invert-ink);
  --ink-soft: var(--invert-ink-soft);
  --ink-faint: color-mix(in srgb, var(--invert-ink) 38%, transparent);
  --ink-line: var(--invert-line);
  --ink-line-2: color-mix(in srgb, var(--invert-ink) 30%, transparent);
  --bg: var(--invert-bg);
  --bg-2: color-mix(in srgb, var(--invert-bg) 92%, var(--invert-ink));
}
.section.invert .ink-soft { color: var(--invert-ink-soft); }
.section.invert h2 em { color: var(--accent); }
.section.invert .btn { background: var(--invert-ink); color: var(--invert-bg); border-color: var(--invert-ink); }
.section.invert .btn:hover { box-shadow: 4px 4px 0 var(--accent); }
.section.invert .btn-ghost { background: transparent; color: var(--invert-ink); }
.section.invert .btn-ghost:hover { box-shadow: 4px 4px 0 var(--accent); }

.section-head {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.section-tag {
  font-family: "Geist Mono", monospace; font-size: 12px;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em;
}
.section h2 {
  margin: 0;
  font-family: "Season Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 18ch;
}
.section h2 em { font-style: italic; color: var(--accent); }
.section-lede {
  margin-top: 24px;
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ===== MANIFESTO ===== */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.manifesto-prose p {
  margin: 0 0 24px;
  font-size: 22px;
  line-height: 1.4;
  text-wrap: pretty;
}
.manifesto-prose p:last-child { margin-bottom: 0; }
.manifesto-prose strong { font-weight: 400; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.manifesto-side {
  border: 1px solid var(--invert-line);
  padding: 28px;
  font-family: "Geist Mono", monospace; font-size: 13px;
  color: var(--invert-ink-soft);
  line-height: 1.6;
}
.manifesto-side h4 {
  margin: 0 0 16px;
  font-family: "Geist Mono", monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--invert-ink); font-weight: 400;
}
.manifesto-side .row {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--invert-line);
}
.manifesto-side .row:first-of-type { border-top: 0; padding-top: 0; }
.manifesto-side .row .k { color: var(--invert-ink-soft); }
.manifesto-side .row .v { color: var(--invert-ink); }

/* ===== TOOLKIT ===== */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-line-2);
  border-left: 1px solid var(--ink-line-2);
}
.toolkit-cell {
  grid-column: span 4;
  padding: 28px;
  border-right: 1px solid var(--ink-line-2);
  border-bottom: 1px solid var(--ink-line-2);
  min-height: 220px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.toolkit-cell.wide { grid-column: span 8; }
.toolkit-cell .idx {
  font-family: "Geist Mono", monospace; font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.06em;
}
.toolkit-cell h3 {
  margin: 0;
  font-family: "Season Serif", Georgia, serif; font-weight: 400;
  font-size: 30px; line-height: 1.05; letter-spacing: -0.01em;
}
.toolkit-cell p {
  margin: 0;
  font-size: 15.5px; line-height: 1.5;
  color: var(--ink-soft);
}
.toolkit-cell .footnote {
  margin-top: auto;
  font-family: "Geist Mono", monospace; font-size: 11.5px;
  color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ===== DAYS / agenda ===== */
.days {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink-line-2);
}
.day {
  display: grid;
  grid-template-columns: 120px 200px 1fr 200px;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--ink-line-2);
  align-items: baseline;
}
.day .num {
  font-family: "Geist Mono", monospace; font-size: 12px;
  color: var(--ink-faint); letter-spacing: 0.06em;
}
.day h3 {
  margin: 0;
  font-family: "Season Serif", Georgia, serif; font-weight: 400;
  font-size: 40px; line-height: 1; letter-spacing: -0.015em;
}
.day h3 em { font-style: italic; color: var(--accent); }
.day p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.day .tag {
  font-family: "Geist Mono", monospace; font-size: 11.5px;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em;
  text-align: right;
}

/* ===== SELF-CHECK ===== */
.check-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
}
.check-list { display: grid; gap: 0; }
.check-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--ink-line-2);
  cursor: pointer;
  user-select: none;
  transition: opacity 150ms ease;
  align-items: start;
}
.check-item:last-child { border-bottom: 1px solid var(--ink-line-2); }
.check-item .box {
  width: 28px; height: 28px;
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: "Geist Mono", monospace; font-size: 16px;
  transition: background 120ms ease, color 120ms ease;
}
.check-item.on .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.check-item h4 {
  margin: 0 0 4px;
  font-family: "Season Serif", Georgia, serif; font-weight: 400;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.01em;
}
.check-item p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.check-item.on h4 { color: var(--ink); }
.check-item:not(.on) h4 { color: var(--ink-soft); }

.score-card {
  position: sticky; top: 80px;
  border: 1px solid var(--ink-line-2);
  padding: 28px;
  background: var(--bg-2);
}
.score-card .meta {
  font-family: "Geist Mono", monospace; font-size: 11px;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em;
}
.score-card .score {
  display: flex; align-items: baseline; gap: 8px;
  margin: 12px 0 18px;
  font-family: "Season Serif", Georgia, serif;
  font-size: 80px; line-height: 0.9; letter-spacing: -0.02em;
}
.score-card .score .denom { font-family: "Geist Mono", monospace; font-size: 24px; color: var(--ink-faint); }
.score-card .verdict {
  font-size: 17px; line-height: 1.45;
  margin-bottom: 24px;
  min-height: 96px;
  color: var(--ink);
  text-wrap: pretty;
}
.score-card .btn { width: 100%; justify-content: center; }
.score-card .btn[disabled] {
  opacity: 0.32; pointer-events: none;
  background: transparent; color: var(--ink); border: 1px dashed var(--ink-line-2);
}
.score-card .progress {
  height: 4px; background: var(--ink-line); margin-bottom: 20px;
}
.score-card .progress > span {
  display: block; height: 100%; background: var(--accent);
  transition: width 240ms ease;
}

/* ===== CTA ===== */
.cta-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-block h2 { max-width: 14ch; }
.cta-block .share-card {
  border: 1px solid var(--invert-line);
  background: color-mix(in srgb, var(--invert-ink) 5%, transparent);
  padding: 24px;
}
.share-card .preview {
  background: var(--invert-ink);
  color: var(--invert-bg);
  padding: 28px;
  font-family: "Season Serif", Georgia, serif;
  font-size: 24px; line-height: 1.15; letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.share-card .preview .meta {
  font-family: "Geist Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--invert-bg) 60%, transparent);
  margin-bottom: 16px;
}
.share-card .preview .big { font-size: 28px; line-height: 1.05; }
.share-card .preview em { color: var(--accent); font-style: italic; }
.share-card input {
  width: 100%;
  margin-top: 16px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--invert-line);
  color: var(--invert-ink);
  font-family: "Geist Mono", monospace; font-size: 13px;
}
.share-card input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.share-card .share-actions { display: flex; gap: 8px; margin-top: 12px; }
.share-card .share-actions .btn {
  background: transparent; color: var(--invert-ink); border-color: var(--invert-line); flex: 1; justify-content: center;
}
.share-card .share-actions .btn:hover { box-shadow: 4px 4px 0 var(--accent); }

/* ===== FOOTER ===== */
footer {
  padding: 40px 0 64px;
  font-family: "Geist Mono", monospace; font-size: 12px;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ===== density tweak ===== */
[data-density="zine"] .section { padding: 80px 0; }
[data-density="zine"] .hero { padding: 40px 0 32px; }
[data-density="zine"] .section-head { margin-bottom: 40px; }
[data-density="zine"] .day { padding: 22px 0; }
[data-density="zine"] .day h3 { font-size: 32px; }
[data-density="zine"] .toolkit-cell { min-height: 170px; padding: 22px; }

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
  .manifesto { grid-template-columns: 1fr; gap: 48px; }
  .toolkit-cell, .toolkit-cell.wide { grid-column: span 6; }
  .check-wrap { grid-template-columns: 1fr; }
  .score-card { position: static; }
  .cta-block { grid-template-columns: 1fr; }
  .day { grid-template-columns: 80px 1fr; gap: 16px; }
  .day h3 { font-size: 30px; }
  .day .tag { display: none; }
  .day p { grid-column: 2; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1320px); }
  .status-bar { grid-template-columns: 1fr 1fr; }
  .status-cell { border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .status-cell:nth-child(odd) { border-right: 1px solid var(--ink-line); }
  .toolkit-cell, .toolkit-cell.wide { grid-column: span 12; }
  .nav-meta { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 36px 0 32px; }
}
