/* ============================================================
   SEALHOLM — CertFlow marketing site
   Register: brand · light, Apple-clean, one committed fjord blue
   ============================================================ */

:root {
  /* color */
  --bg: oklch(0.99 0.002 240);
  --surface: oklch(0.962 0.006 235);
  --ink: oklch(0.23 0.022 245);
  --muted: oklch(0.44 0.028 245);
  --faint: oklch(0.9 0.008 240);
  --brand: oklch(0.42 0.095 235);
  --brand-strong: oklch(0.35 0.09 235);
  --brand-tint: oklch(0.94 0.02 235);
  --ok: oklch(0.55 0.12 155);
  --warn: oklch(0.62 0.14 75);
  --danger: oklch(0.52 0.17 25);
  --deep: oklch(0.26 0.03 245);
  --deep-ink: oklch(0.93 0.01 240);
  --deep-muted: oklch(0.72 0.03 240);

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* z-scale */
  --z-nav: 30;
  --z-modal: 50;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 71rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brand); color: #fff; }

img, svg { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { text-wrap: balance; font-weight: 650; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.mono { font-family: var(--mono); }

/* ------------------------------------------------------------
   Scroll reveal — content is visible by default; only when JS
   marks <html class="anim"> do elements start offset, and IO
   brings them in. No JS, no IO, reduced motion → always visible.
   ------------------------------------------------------------ */
html.anim .fx {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
html.anim .fx.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.anim .fx { transform: none; transition: opacity 0.3s ease; }
}

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
#nav.scrolled { border-bottom-color: var(--faint); }
@media (prefers-reduced-transparency: reduce) {
  #nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.8rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 99px;
  font-size: 0.95rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 550; }

.lang {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--faint);
  border-radius: 99px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang:hover { color: var(--ink); border-color: var(--muted); text-decoration: none; }

/* burger only on small screens */
#menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--faint);
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 550;
  padding: 0.72rem 1.35rem;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s var(--ease-out), background-color 0.2s ease,
              border-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }

.btn-ghost { border-color: var(--faint); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }

.btn-sm { padding: 0.5rem 1rem; min-height: 40px; font-size: 0.9rem; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 21ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero .lede {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.55;
}
.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Dashboard mock (hero visual)
   ------------------------------------------------------------ */
.mock {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  background: #fff;
  box-shadow:
    0 1px 2px oklch(0.2 0.02 245 / 0.05),
    0 24px 60px -24px oklch(0.3 0.05 240 / 0.22);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--faint);
  font-size: 0.82rem;
  color: var(--muted);
}
.mock-dots { display: flex; gap: 5px; }
.mock-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--faint);
}
.mock-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.mock-table th {
  text-align: left;
  font-weight: 550;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid var(--faint);
}
.mock-table td {
  padding: 0.78rem 1.1rem;
  border-bottom: 1px solid var(--faint);
  white-space: nowrap;
}
.mock-table tr:last-child td { border-bottom: 0; }
.mock-table .cn { font-family: var(--mono); font-size: 0.86rem; }
.mock-table .dev { color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 550;
  padding: 0.22rem 0.7rem;
  border-radius: 99px;
}
.pill::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
.pill-ok    { color: var(--ok);    background: oklch(0.55 0.12 155 / 0.1); }
.pill-warn  { color: var(--warn);  background: oklch(0.62 0.14 75 / 0.12); }
.pill-danger{ color: var(--danger);background: oklch(0.52 0.17 25 / 0.1); }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
section { padding-block: clamp(3.5rem, 9vh, 6.5rem); }

.sec-head { max-width: 46rem; }
.sec-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sec-head p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.alt { background: var(--surface); }

/* problem strip */
.problem {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.2rem 2.6rem;
  margin-top: 2.8rem;
}
.problem h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.problem p { margin-top: 0.45rem; color: var(--muted); font-size: 0.97rem; }
.problem .big {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

/* steps — a real sequence, so numbers are earned */
.steps {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.step p { margin-top: 0.5rem; color: var(--muted); font-size: 0.96rem; }
.step code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--surface);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

/* feature rows — alternating, no identical card grid */
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.2rem, 5vh, 3.5rem);
}
.frow + .frow { border-top: 1px solid var(--faint); }
.frow.rev > .fviz { order: -1; }
.frow h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.frow > div > p { margin-top: 0.85rem; color: var(--muted); }
.frow ul { margin-top: 1.1rem; list-style: none; display: grid; gap: 0.55rem; }
.frow ul li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--muted);
  font-size: 0.98rem;
}
.frow ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 0.9rem; height: 0.55rem;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.frow ul li strong { color: var(--ink); font-weight: 600; }

/* terminal viz */
.term {
  background: var(--deep);
  color: var(--deep-ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.75;
  overflow-x: auto;
  box-shadow: 0 20px 50px -24px oklch(0.26 0.03 245 / 0.5);
}
.term .c { color: var(--deep-muted); }
.term .g { color: oklch(0.78 0.14 155); }
.term .y { color: oklch(0.82 0.13 85); }
.term .r { color: oklch(0.74 0.15 25); }
.term .b { color: oklch(0.78 0.09 230); }

/* small visual panels */
.panel {
  background: #fff;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 16px 44px -26px oklch(0.3 0.05 240 / 0.28);
}
.panel + .panel { margin-top: 0.8rem; }
.panel h4 { font-size: 0.95rem; font-weight: 600; }
.panel p { font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }

/* trust strip */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 2.6rem;
}
.trust h3 { font-size: 1.02rem; font-weight: 600; display: flex; align-items: center; gap: 0.6rem; }
.trust h3 svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.trust p { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------
   Pricing
   ------------------------------------------------------------ */
.toggle {
  margin-top: 2rem;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--faint);
  border-radius: 99px;
  padding: 3px;
  position: relative;
  background: #fff;
}
.toggle button {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 550;
  border: 0;
  background: none;
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  cursor: pointer;
  color: var(--muted);
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
  min-height: 40px;
}
.toggle button[aria-pressed="true"] { color: #fff; }
.toggle .thumb {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 99px;
  background: var(--brand);
  transition: transform 0.3s var(--ease-out);
}
.toggle[data-billing="yearly"] .thumb { transform: translateX(100%); }
.toggle-note {
  margin-left: 0.9rem;
  font-size: 0.88rem;
  color: var(--ok);
  font-weight: 550;
}

.plans {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.plan {
  background: #fff;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--brand);
  box-shadow: 0 20px 50px -28px oklch(0.42 0.095 235 / 0.45);
}
.plan h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
.plan .for { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }
.plan .price {
  margin-top: 1.2rem;
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .price small {
  font-size: 0.88rem;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 0;
}
.plan .per { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; min-height: 2.6em; }
.plan ul {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.93rem;
  color: var(--muted);
  flex: 1;
}
.plan ul li { padding-left: 1.5rem; position: relative; }
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 0.85rem; height: 0.5rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: 1.5rem; width: 100%; }
.fairness {
  margin-top: 1.8rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--faint);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 60rem;
}
.fairness strong { color: var(--ink); }

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq { max-width: 46rem; margin-top: 2.4rem; }
.faq details {
  border-bottom: 1px solid var(--faint);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.2rem 1.15rem 0;
  font-weight: 570;
  font-size: 1.02rem;
  position: relative;
  transition: color 0.2s ease;
}
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem; top: 50%;
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div {
  padding: 0 0 1.3rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62ch;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
/* progressive enhancement: browsers with @starting-style get a soft entry
   instead of a hard pop; everyone else keeps the instant (working) default */
@starting-style {
  .faq details[open] > div { opacity: 0; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .faq details > div { transition: opacity 0.2s ease; transform: none; }
}

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.cta-band {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
  max-width: 26ch;
  margin-inline: auto;
}
.cta-band p {
  margin-top: 0.9rem;
  color: oklch(0.9 0.03 235);
  max-width: 50ch;
  margin-inline: auto;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand);
  margin-top: 1.8rem;
}
.cta-band .btn-primary:hover { background: oklch(0.94 0.01 235); }

/* ------------------------------------------------------------
   Forms (demo request, login)
   ------------------------------------------------------------ */
.form-card {
  background: #fff;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 34rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 570;
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 0.68rem 0.9rem;
  border: 1px solid var(--faint);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(0.42 0.095 235 / 0.15);
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.notice {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.93rem;
  margin-bottom: 1.1rem;
}
.notice-ok { background: oklch(0.55 0.12 155 / 0.1); color: oklch(0.4 0.1 155); }
.notice-err { background: oklch(0.52 0.17 25 / 0.09); color: var(--danger); }
.notice-info { background: var(--brand-tint); color: var(--brand-strong); }

/* ------------------------------------------------------------
   Customer area
   ------------------------------------------------------------ */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}
.dl {
  background: #fff;
  border: 1px solid var(--faint);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
}
.dl h3 { font-size: 1.02rem; }
.dl p { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }
.dl .btn { margin-top: 1rem; }
.codebox {
  margin-top: 1rem;
  background: var(--deep);
  color: var(--deep-ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  overflow-x: auto;
  white-space: nowrap;
}
.changelog { max-width: 44rem; margin-top: 1.6rem; }
.changelog li {
  list-style: none;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--faint);
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  font-size: 0.95rem;
}
.changelog .v { font-family: var(--mono); font-size: 0.85rem; color: var(--brand); font-weight: 550; }
.changelog p { color: var(--muted); }

/* ------------------------------------------------------------
   Legal pages
   ------------------------------------------------------------ */
.legal { max-width: 44rem; padding-top: clamp(7rem, 13vh, 9rem); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); margin-top: 0.7rem; font-size: 0.98rem; }
.legal ul { padding-left: 1.2rem; }
.todo {
  background: oklch(0.62 0.14 75 / 0.1);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  color: oklch(0.45 0.1 75);
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
  border-top: 1px solid var(--faint);
  padding: 2.6rem 0 3rem;
  margin-top: clamp(3rem, 8vh, 5rem);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}
.foot-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 630; }
.foot-brand svg { width: 22px; height: 22px; }
.foot-brand + p { margin-top: 0.6rem; font-size: 0.88rem; color: var(--muted); max-width: 34ch; }
.foot-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.foot-links div { display: grid; gap: 0.45rem; align-content: start; }
.foot-links h4 { font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
.foot-links a { color: var(--muted); font-size: 0.9rem; }
.foot-links a:hover { color: var(--ink); text-decoration: none; }
.foot-meta {
  margin-top: 2.2rem;
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 34rem) 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .frow { grid-template-columns: 1fr; }
  .frow.rev > .fviz { order: 0; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, #nav .lang, #nav .btn { display: none; }
  #menu-btn { display: block; }
  #nav.open .nav-links {
    display: grid;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--faint);
    padding: 0.8rem 1.25rem 1.2rem;
    gap: 0.2rem;
  }
  #nav.open .nav-links a { padding: 0.7rem 0.6rem; }
  #nav.open .lang { display: inline-flex; position: absolute; top: 0.85rem; right: 4.4rem; }
  .changelog li { grid-template-columns: 1fr; gap: 0.15rem; }
}

@media (hover: hover) and (pointer: fine) {
  .plan { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
  .plan:hover { border-color: var(--muted); }
  .plan.featured:hover { border-color: var(--brand); }
}
