/* ============================================================================
   ROGERLE.COM — redesign v2
   ============================================================================ */

:root {
  /* Paper theme (default) */
  --bg: oklch(0.975 0.008 85);
  --bg-2: oklch(0.955 0.010 85);
  --bg-3: oklch(0.935 0.012 85);
  --surface: oklch(0.99 0.005 85);
  --ink: oklch(0.22 0.012 60);
  --ink-2: oklch(0.34 0.012 60);
  --ink-3: oklch(0.52 0.012 60);
  --ink-4: oklch(0.70 0.010 60);
  --line: oklch(0.88 0.010 70);
  --line-2: oklch(0.80 0.010 70);

  --accent: oklch(0.66 0.15 55);
  --accent-ink: oklch(0.99 0.010 80);
  --accent-soft: oklch(0.93 0.05 70);

  --green: oklch(0.62 0.12 145);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
  --container: 1280px;
}

[data-theme="slate"] {
  --bg: oklch(0.96 0.008 240);
  --bg-2: oklch(0.93 0.010 240);
  --bg-3: oklch(0.90 0.012 240);
  --surface: oklch(0.99 0.005 240);
  --ink: oklch(0.22 0.018 260);
  --ink-2: oklch(0.36 0.016 260);
  --ink-3: oklch(0.54 0.014 260);
  --line: oklch(0.86 0.014 240);
  --line-2: oklch(0.78 0.016 240);
}
[data-theme="ink"] {
  --bg: oklch(0.18 0.012 60);
  --bg-2: oklch(0.22 0.014 60);
  --bg-3: oklch(0.26 0.014 60);
  --surface: oklch(0.24 0.012 60);
  --ink: oklch(0.97 0.008 80);
  --ink-2: oklch(0.84 0.010 80);
  --ink-3: oklch(0.64 0.010 80);
  --ink-4: oklch(0.48 0.010 80);
  --line: oklch(0.32 0.014 60);
  --line-2: oklch(0.40 0.014 60);
  --accent-soft: oklch(0.32 0.05 70);
}

[data-accent="amber"]  { --accent: oklch(0.70 0.15 60); }
[data-accent="moss"]   { --accent: oklch(0.60 0.09 145); --accent-soft: oklch(0.92 0.04 145); }
[data-accent="rust"]   { --accent: oklch(0.60 0.14 30); --accent-soft: oklch(0.92 0.05 30); }
[data-accent="cobalt"] { --accent: oklch(0.54 0.13 255); --accent-soft: oklch(0.92 0.04 255); }

[data-density="compact"] { --section-y: clamp(56px, 7vw, 96px); }
[data-density="roomy"]   { --section-y: clamp(96px, 12vw, 172px); }

[data-serif-accent="off"] .serif { font-family: var(--sans); font-style: normal; }

/* ---- Base ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
em { font-style: italic; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.tiny { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.muted { color: var(--ink-3); }
.serif { font-family: var(--serif); font-weight: 400; }
.italic { font-style: italic; }

/* ---- Buttons ---- */
.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-2); }
.btn-primary.lg, .btn-outline.lg, .btn-ghost.lg { padding: 14px 22px; font-size: 15px; border-radius: var(--r-md); }
.btn-primary.full, .btn-outline.full { width: 100%; justify-content: center; }

/* ============================================================================
   NAV
   ============================================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg), transparent 8%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: flex; align-items: center; color: var(--ink); }
.brand-img { height: 36px; width: auto; display: block; }
[data-theme="ink"] .brand-img { filter: invert(1) hue-rotate(180deg); }

.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-2); padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--surface);
}
.nav-status:hover { border-color: var(--line-2); color: var(--ink); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--green), transparent 70%);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

.locale {
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 2px; background: var(--surface);
}
.locale-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 4px 8px; border: 0; background: transparent; color: var(--ink-3);
  border-radius: 4px; cursor: pointer;
}
.locale-btn.on { background: var(--ink); color: var(--bg); }

@media (max-width: 1100px) { .nav-links { display: none; } }
@media (max-width: 880px) { .nav-status-text, .locale { display: none; } }

/* ============================================================================
   MIGRATION RIBBON
   ============================================================================ */
.ribbon {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.ribbon-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0; font-size: 14px;
  color: var(--ink-2); flex-wrap: wrap;
}
.ribbon-tag {
  background: var(--ink); color: var(--bg);
  padding: 3px 8px; border-radius: 3px; letter-spacing: 0.08em;
}
.ribbon-text { flex: 1; min-width: 280px; }
.ribbon-link {
  color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.ribbon-link:hover { color: var(--accent); }

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-meta { color: var(--ink-3); margin-bottom: 28px; }
.hero-title {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 28px;
}
.year-underline { position: relative; white-space: nowrap; }
.year-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.16em; background: var(--accent); opacity: 0.85;
  border-radius: 2px; z-index: -1;
}
.hero-lead {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ink-2); max-width: 46ch;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); padding-top: 20px;
}
.hero-stats > div { padding-right: 12px; }
.hero-stats > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.hero-stats dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 6px; }
.hero-stats dd { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .hero-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

.hero-right { display: flex; flex-direction: column; gap: 18px; }

.hero-photo {
  margin: 0; position: relative; aspect-ratio: 16/10;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo figcaption {
  position: absolute; bottom: 10px; left: 10px;
  color: oklch(0.96 0.008 80);
  background: oklch(0.1 0.01 60 / 0.6); backdrop-filter: blur(6px);
  padding: 4px 8px; border-radius: 4px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.spec-card { padding: 0; overflow: hidden; }
.spec-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.spec-list { padding: 6px 0; }
.spec-list li {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 16px; padding: 8px 16px;
  font-size: 13.5px; align-items: baseline;
}
.spec-list li + li { border-top: 1px dashed var(--line); }

/* ============================================================================
   TECH STRIP
   ============================================================================ */
.techstrip {
  padding: 56px 0; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.techstrip-head { color: var(--ink-3); margin-bottom: 28px; text-align: center; }
.techstrip-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .techstrip-grid { grid-template-columns: repeat(2, 1fr); } }

.techcard {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s ease;
}
.techcard:hover { border-color: var(--line-2); }
.techcard-num { color: var(--ink-4); }
.techcard-logo {
  width: 46px; height: 46px; display: grid; place-items: center;
  flex: 0 0 auto;
}
.techcard-logo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
[data-theme="ink"] .techcard-logo img { filter: invert(0.92); }
.techcard-name { font-size: 15px; font-weight: 500; letter-spacing: -0.015em; }
.techcard-tag { color: var(--ink-3); margin-top: 2px; }

/* ============================================================================
   SECTION HEAD
   ============================================================================ */
.section { padding: var(--section-y) 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.align-center { margin-inline: auto; text-align: center; }
.section-head-meta { display: flex; gap: 18px; margin-bottom: 18px; color: var(--ink-3); }
.section-head.align-center .section-head-meta { justify-content: center; }
.section-title {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
}
.section-lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; }

/* ============================================================================
   STORY
   ============================================================================ */
.story-section { background: var(--bg-2); }
.story-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
@media (max-width: 960px) { .story-grid { grid-template-columns: 1fr; } }

.story-photo {
  margin: 0; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); position: sticky; top: 96px;
}
.story-photo img { width: 100%; height: auto; display: block; }
.story-photo figcaption {
  padding: 14px 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px;
}
.story-caption-line { color: var(--ink-2); }
@media (max-width: 960px) { .story-photo { position: static; } }

.story-text { max-width: 60ch; }
.story-block {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 20px; padding: 22px 0;
  border-top: 1px solid var(--line);
}
.story-block:first-child { border-top: 0; padding-top: 0; }
.story-block-year {
  font-size: 20px; color: var(--accent); font-weight: 500;
  letter-spacing: 0;
}
.story-block p { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.story-block strong { color: var(--ink); font-weight: 500; }
.story-cta {
  display: inline-block; margin-top: 22px; color: var(--ink);
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.story-cta:hover { color: var(--accent); }

/* ============================================================================
   ADVANTAGES
   ============================================================================ */
.adv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .adv-grid { grid-template-columns: 1fr; } }

.adv-card {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.adv-card:hover { background: var(--bg-2); }
.adv-head {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.adv-head h3 { font-size: 20px; letter-spacing: -0.015em; font-weight: 500; }
.adv-card p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ============================================================================
   TESTIMONIAL
   ============================================================================ */
.testimonial {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.testimonial-grid {
  display: grid; grid-template-columns: 180px 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1000px; margin-inline: auto;
  align-items: start;
}
@media (max-width: 720px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-meta { padding-top: 14px; }
.testimonial-quote {
  margin: 0; position: relative;
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink);
  padding-left: 8px;
}
.quote-mark {
  position: absolute; left: -32px; top: -8px;
  font-size: 80px; line-height: 1; color: var(--accent);
}
.testimonial-quote em {
  font-style: italic; font-family: var(--serif);
  border-bottom: 2px solid var(--accent);
}
.testimonial-attrib {
  grid-column: 2; margin-top: 22px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.testimonial-name { font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.attrib-note { color: var(--accent); margin-top: 6px; opacity: 0.8; }
@media (max-width: 720px) { .testimonial-attrib { grid-column: 1; } }

/* ============================================================================
   PRICING
   ============================================================================ */
.pricing-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 48px; flex-wrap: wrap;
}
.pricing-head .section-head { margin-bottom: 0; }

.cycle-toggle {
  display: inline-flex; padding: 3px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.cycle-toggle button {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 8px 16px; border: 0; background: transparent;
  color: var(--ink-2); cursor: pointer; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 8px;
}
.cycle-toggle button.on { background: var(--ink); color: var(--bg); }
.save-tag { opacity: .75; }
.cycle-toggle button.on .save-tag { color: var(--accent); opacity: 1; }

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column;
  position: relative; transition: border-color .2s ease;
}
.plan:hover { border-color: var(--line-2); }
.plan-featured { border-color: var(--ink); background: var(--bg-2); }
.plan-head { margin-bottom: 22px; }
.plan-name-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.plan-name { font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: 3px 8px; border-radius: 3px;
}
.plan-tier { color: var(--ink-3); }

.plan-price {
  display: flex; align-items: baseline; gap: 2px;
  margin-bottom: 4px;
}
.plan-currency { font-size: 24px; color: var(--ink-3); margin-right: 2px; }
.plan-amount { font-size: 56px; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.plan-cents { font-size: 22px; color: var(--ink-3); letter-spacing: -0.02em; }
.plan-cycle { margin-left: 8px; color: var(--ink-3); }
.plan-sub { margin-bottom: 24px; }

.plan-specs {
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}
.plan-specs li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.plan-specs li span:last-child { font-weight: 500; }

.plan-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.plan-link { color: var(--ink-3); }
.plan-link:hover { color: var(--ink); }

/* ============================================================================
   VS TABLE + FEATURE MATRIX
   ============================================================================ */
.vs-section { background: var(--bg-2); }

.vs-table-wrap, .matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.vs-table, .matrix {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px; min-width: 680px;
}
.vs-table th, .vs-table td, .matrix th, .matrix td {
  padding: 14px 18px; text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.vs-table thead th, .matrix thead th {
  font-family: var(--sans); font-size: 13px;
  font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink); padding: 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
}
.vs-table tbody th, .matrix tbody th {
  font-family: var(--sans); font-weight: 500;
  color: var(--ink); font-size: 14px;
}
.vs-table td { color: var(--ink-2); }
.vs-us { position: relative; }
.vs-table thead .vs-us,
.vs-table tbody .vs-us {
  background: color-mix(in oklab, var(--accent), transparent 92%);
  color: var(--ink); font-weight: 500;
}
.vs-table thead .vs-us {
  border-bottom-color: var(--accent);
}
.vs-foot { padding: 14px 18px; border-top: 1px solid var(--line); }

.matrix tbody tr:last-child td, .matrix tbody tr:last-child th { border-bottom: 0; }
.matrix td { color: var(--ink); font-variant-numeric: tabular-nums; }
.matrix-featured {
  background: color-mix(in oklab, var(--accent), transparent 94%);
}
.matrix thead .matrix-featured {
  background: color-mix(in oklab, var(--accent), transparent 85%);
  border-bottom-color: var(--accent);
}

/* ============================================================================
   TIMELINE
   ============================================================================ */
.timeline-section { background: var(--bg); }
.timeline-list {
  position: relative;
  padding-left: 72px;
  border-left: 0;
}
.timeline-list::before {
  content: ""; position: absolute;
  left: 56px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line-2);
}
.tl-item {
  position: relative; padding: 16px 0;
  display: grid; grid-template-columns: 80px 1fr;
  gap: 0; margin-left: -72px;
  padding-left: 0;
}
.tl-item + .tl-item { border-top: 1px dashed var(--line); }
.tl-year {
  font-size: 15px; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0;
}
.tl-dot {
  position: absolute; left: 52px; top: 24px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-4); box-shadow: 0 0 0 4px var(--bg);
}
.tl-milestone .tl-year { color: var(--accent); }
.tl-milestone .tl-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.tl-origin .tl-year { color: var(--ink); }
.tl-origin .tl-dot { background: var(--ink); box-shadow: 0 0 0 4px var(--bg); }

.tl-body { padding-left: 40px; }
.tl-title { font-size: 18px; letter-spacing: -0.015em; font-weight: 500; margin-bottom: 2px; }
.tl-desc { color: var(--ink-2); font-size: 15px; }

@media (max-width: 560px) {
  .timeline-list { padding-left: 48px; }
  .timeline-list::before { left: 32px; }
  .tl-item { grid-template-columns: 60px 1fr; margin-left: -48px; }
  .tl-dot { left: 28px; }
  .tl-body { padding-left: 24px; }
}

/* ============================================================================
   FAQ
   ============================================================================ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; padding: 22px 0;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 18px; align-items: baseline;
  text-align: left; cursor: pointer;
  font-family: var(--sans); color: var(--ink);
  transition: color .15s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-q .mono { color: var(--ink-3); padding-top: 2px; }
.faq-q-text { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.faq-icon { font-size: 22px; font-weight: 300; color: var(--ink-2); line-height: 1; }

.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p {
  padding: 0 44px 24px 42px;
  color: var(--ink-2); font-size: 15.5px; line-height: 1.65;
  max-width: 62ch;
}

/* ============================================================================
   CTA STRIP
   ============================================================================ */
.cta-strip {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--ink); color: var(--bg);
  border-bottom: 1px solid var(--line);
}
.cta-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 48px; align-items: end;
}
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; align-items: start; } }
.cta-strip .mono.muted { color: oklch(0.68 0.010 60); }
.cta-title {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 10px 0 14px;
}
.cta-lead { color: oklch(0.82 0.010 60); max-width: 50ch; font-size: 16px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-strip .btn-primary { background: var(--bg); color: var(--ink); }
.cta-strip .btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.cta-strip .btn-ghost { color: oklch(0.9 0.010 60); }
.cta-strip .btn-ghost:hover { background: oklch(0.28 0.014 60); color: var(--bg); }
@media (max-width: 900px) { .cta-actions { justify-content: flex-start; } }

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer { padding: clamp(48px, 6vw, 80px) 0 32px; background: var(--bg-2); }
.footer-top {
  display: grid; grid-template-columns: 1.2fr 2.2fr; gap: 48px;
  padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-img { height: 26px; margin-bottom: 14px; }
.footer-tag { color: var(--ink-3); margin: 4px 0 14px; font-size: 14px; }
.footer-flags { display: flex; flex-direction: column; gap: 4px; }
.footer-flags a { color: var(--ink-2); }

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 560px) { .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
.footer-cols h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 14px; font-weight: 500;
}
.footer-cols li { padding: 4px 0; }
.footer-cols a { color: var(--ink-2); font-size: 14.5px; }
.footer-cols a:hover { color: var(--ink); }

.footer-ascii {
  color: var(--ink-3); overflow: hidden; white-space: nowrap;
  padding: 28px 0 14px; font-size: 11px; line-height: 1.2;
}
@media (max-width: 700px) { .footer-ascii { display: none; } }

.footer-bot {
  display: flex; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
}

/* ============================================================================
   THEME TOGGLE (footer)
   ============================================================================ */
.footer-mid {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 16px;
}
.theme-toggle {
  display: inline-flex; align-items: center; gap: 12px;
}
.theme-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: var(--surface);
}
.theme-switch button {
  border: 0; background: transparent; color: var(--ink-3);
  font: 500 12px/1 var(--sans); letter-spacing: 0.04em;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button.on {
  background: var(--ink); color: var(--bg);
}

/* ============================================================================
   PAGE HEADER (subpages)
   ============================================================================ */
.page-header {
  border-bottom: 1px solid var(--line);
  padding: 72px 0 54px;
  background:
    radial-gradient(600px 240px at 85% 0%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 70%),
    var(--bg);
}
.page-header .mono.tiny.muted { margin-bottom: 18px; display: block; }
.page-title {
  font-family: var(--sans);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02; letter-spacing: -0.02em;
  font-weight: 500; color: var(--ink);
  max-width: 18ch; margin: 0 0 18px;
  text-wrap: balance;
}
.page-lead {
  max-width: 62ch; font-size: 19px; line-height: 1.55; color: var(--ink-2);
  text-wrap: pretty;
}

/* ============================================================================
   STORY — LONG FORM
   ============================================================================ */
.story-long-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .story-long-grid { grid-template-columns: 1fr; } }

.story-photo-lg {
  position: sticky; top: 96px;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-2);
}
.story-photo-lg img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }
.story-photo-lg figcaption {
  padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; gap: 4px;
}
.story-caption-line { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-2); }

.story-long-text { display: flex; flex-direction: column; gap: 40px; }
.story-chapter h2 {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.015em;
  margin: 8px 0 14px; color: var(--ink);
  text-wrap: balance;
}
.story-chapter p {
  font-size: 18px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px;
  text-wrap: pretty; max-width: 64ch;
}
.story-chapter p em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink); font-size: 1.05em; }
.story-chapter + .story-chapter { padding-top: 32px; border-top: 1px solid var(--line); }
.story-signoff {
  font-size: 20px !important; margin-top: 22px !important;
  padding: 22px 24px; background: var(--bg-2); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.story-signoff strong { color: var(--ink); font-weight: 600; }
.story-ctas { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* ============================================================================
   LEGAL PAGES
   ============================================================================ */
.legal-section { padding-top: 48px; }
.legal-wrap {
  display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start;
}
@media (max-width: 900px) { .legal-wrap { grid-template-columns: 1fr; } }

.legal-toc {
  position: sticky; top: 96px; display: flex; flex-direction: column; gap: 6px;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
}
.legal-toc .muted { margin-bottom: 8px; letter-spacing: 0.1em; }
.legal-toc a {
  color: var(--ink-2); text-decoration: none; padding: 4px 0;
  border-bottom: 1px dashed transparent; transition: color .15s ease, border-color .15s ease;
}
.legal-toc a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
@media (max-width: 900px) { .legal-toc { position: static; } }

.legal-body { max-width: 68ch; }
.legal-body h2 {
  font-family: var(--sans); font-weight: 500;
  font-size: 24px; letter-spacing: -0.01em;
  margin: 40px 0 14px; padding-top: 24px;
  border-top: 1px solid var(--line); color: var(--ink);
}
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-body p, .legal-body li {
  font-size: 17px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty;
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.legal-body a:hover { color: var(--accent); }

.legal-notice {
  background: color-mix(in oklab, var(--accent) 10%, var(--bg));
  border: 1px dashed var(--accent);
  padding: 14px 18px; border-radius: var(--r-sm);
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  margin-bottom: 32px;
}
.legal-notice .mono.tiny {
  display: inline-block; margin-right: 10px; color: var(--ink);
  font-weight: 500; letter-spacing: 0.08em;
}

/* ============================================================================
   STATIC FAQ (details/summary — for subpages)
   ============================================================================ */
.faq-item-static {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-item-static summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 0; color: var(--ink); font-size: 19px; font-weight: 500;
  letter-spacing: -0.005em;
}
.faq-item-static summary::-webkit-details-marker { display: none; }
.faq-item-static summary::after {
  content: "+"; margin-left: auto; font-family: var(--mono);
  color: var(--ink-3); font-size: 22px; line-height: 1;
  transition: transform .2s ease;
}
.faq-item-static[open] summary::after { content: "−"; }
.faq-item-static .faq-a {
  padding: 0 0 22px 46px; max-width: 72ch;
}
.faq-item-static .faq-a p {
  color: var(--ink-2); font-size: 16px; line-height: 1.65; margin: 0;
}

/* ============================================================================
   TIMELINE page extras
   ============================================================================ */
.timeline-note {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--line); color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ============================================================================
   VPS custom config card
   ============================================================================ */
.custom-config-card {
  max-width: 560px; margin-top: 8px;
}

/* ============================================================================
   INK THEME (dark) — overrides Paper
   ============================================================================ */
[data-theme="ink"] {
  --bg:      oklch(0.16 0.012 260);
  --bg-2:    oklch(0.20 0.014 260);
  --bg-3:    oklch(0.24 0.014 260);
  --surface: oklch(0.19 0.013 260);
  --ink:     oklch(0.96 0.008 90);
  --ink-2:   oklch(0.82 0.010 90);
  --ink-3:   oklch(0.64 0.012 90);
  --ink-4:   oklch(0.48 0.012 90);
  --line:    oklch(0.30 0.014 260);
  --line-2:  oklch(0.40 0.015 260);
  --accent:      oklch(0.74 0.14 60);
  --accent-ink:  oklch(0.16 0.012 260);
  --accent-soft: oklch(0.32 0.08 60);
  --green:       oklch(0.72 0.14 145);
}
[data-theme="ink"] .hero-right .card,
[data-theme="ink"] .brand-img { filter: invert(1) hue-rotate(180deg); }

/* THEME ICON TOGGLE (nav) */
.theme-icon-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .2s ease;
}
.theme-icon-btn:hover { color: var(--ink); border-color: var(--line-2); transform: rotate(-12deg); }
.theme-icon-btn svg { display: block; }

/* NEWS — home strip */
.news-strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.news-strip-all { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; letter-spacing: 0.08em; }
.news-strip-all:hover { color: var(--accent); }
.news-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .news-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .news-cards { grid-template-columns: 1fr; } }
.news-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s ease, transform .2s ease;
}
.news-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.news-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-card-cats { display: flex; gap: 4px; flex-wrap: wrap; }
.news-chip {
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  background: color-mix(in oklab, var(--accent) 12%, var(--bg));
  color: var(--ink); font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.06em;
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
}
.news-card-title { font: 500 18px/1.25 var(--sans); letter-spacing: -0.01em; color: var(--ink); margin: 4px 0; text-wrap: balance; }
.news-card-excerpt {
  font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0; text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-more { color: var(--ink-3); letter-spacing: 0.08em; margin-top: auto; }
.news-card:hover .news-card-more { color: var(--accent); }

/* NEWS — index */
.news-filters { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 32px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.news-filter {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  font: 500 13px/1 var(--sans); cursor: pointer; transition: all .18s ease;
}
.news-filter:hover { color: var(--ink); border-color: var(--line-2); }
.news-filter.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.news-filter-count { color: var(--ink-4); font-size: 11px; }
.news-filter.on .news-filter-count { color: color-mix(in oklab, var(--bg) 70%, var(--ink)); }
.news-year-group { margin-bottom: 56px; }
.news-year { font-size: 44px; letter-spacing: -0.02em; color: var(--ink-4); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 400; }
.news-year-posts { display: flex; flex-direction: column; }
.news-row {
  display: grid; grid-template-columns: 160px 1fr 40px; gap: 32px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: background .18s ease;
}
.news-row:hover { background: var(--bg-2); }
.news-row:hover .news-row-arrow { transform: translateX(4px); color: var(--accent); }
.news-row-date { padding-top: 6px; letter-spacing: 0.06em; }
.news-row-title { font: 500 22px/1.25 var(--sans); letter-spacing: -0.01em; color: var(--ink); margin: 0 0 10px; text-wrap: balance; }
.news-row-excerpt { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; max-width: 62ch; text-wrap: pretty; }
.news-row-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.news-row-arrow { font-size: 22px; color: var(--ink-4); padding-top: 6px; transition: transform .18s ease, color .18s ease; }
@media (max-width: 720px) { .news-row { grid-template-columns: 1fr; gap: 8px; } .news-row-arrow { display: none; } }
.news-empty { padding: 48px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.news-foot { margin-top: 24px; }

/* NEWS — post page */
.post-article { padding: 72px 0 96px; }
.post-container { max-width: 760px; }
.post-back { display: inline-block; color: var(--ink-3); letter-spacing: 0.08em; margin-bottom: 32px; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.post-back:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.post-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.post-meta-dot { color: var(--ink-4); }
.post-cats { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.post-title { font-family: var(--sans); font-weight: 500; font-size: clamp(36px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 18px; text-wrap: balance; }
.post-excerpt { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin: 0; text-wrap: pretty; max-width: 60ch; }
.post-body { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.post-body p, .post-body ul { margin: 0 0 18px; max-width: 62ch; text-wrap: pretty; }
.post-body .lede { font-size: 21px; line-height: 1.55; color: var(--ink); font-weight: 400; padding-bottom: 8px; }
.post-body h2 { font-family: var(--sans); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; color: var(--ink); margin: 40px 0 14px; }
.post-body ul { padding-left: 20px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.post-body a:hover { color: var(--accent); }
.post-body em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink); font-size: 1.05em; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-pullquote {
  margin: 32px 0; padding: 26px 28px 22px;
  background: var(--bg-2); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink);
}
.post-pullquote .quote-mark { font-size: 44px; line-height: 0; color: var(--accent); margin-right: 4px; vertical-align: -10px; }
.post-pullquote footer { margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav-link {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; color: var(--ink-2); background: var(--surface);
  transition: border-color .18s ease, color .18s ease;
}
.post-nav-link:hover { border-color: var(--ink-3); color: var(--ink); }
.post-nav-older { text-align: right; }
.post-nav-title { font: 500 15px/1.3 var(--sans); color: var(--ink); }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
