/* ==========================================================================
   Kelvane — Design System

   Concept: kelvin (measurement) + vane (direction). The system is built from
   graduation marks, hairline rules and precise spacing. Nothing decorative
   that does not also carry information.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Surfaces */
  --paper:      #FBFAF7;
  --paper-2:    #F3F0E9;
  --paper-3:    #E9E4DA;
  --card:       #FFFFFF;
  --ink:        #0B0E13;

  /* Text */
  --text:       #12161C;
  --text-2:     #545C68;
  --muted:      #8A9099;
  --on-brand:   #FFFFFF;

  /* Brand — deep pine */
  --brand:      #125E4A;
  --brand-2:    #1B8168;
  --brand-deep: #0C4436;
  --brand-wash: #E7F0EC;

  /* Secondary — bronze, used sparingly for emphasis */
  --bronze:     #A9702F;
  --bronze-wash:#F6EEE3;

  /* Structure */
  --line:       #E3DDD2;
  --line-soft:  #EEEAE2;
  --line-strong:#CFC7B8;

  /* Type */
  --display: 'Cabinet Grotesk', 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans:    'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale — tighter and more deliberate than a default ramp */
  --step--2: clamp(0.72rem, 0.70rem + 0.09vw, 0.775rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.90rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.19vw, 1.06rem);
  --step-1:  clamp(1.12rem, 1.05rem + 0.33vw, 1.32rem);
  --step-2:  clamp(1.38rem, 1.24rem + 0.68vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.48rem + 1.32vw, 2.65rem);
  --step-4:  clamp(2.20rem, 1.70rem + 2.45vw, 3.85rem);
  --step-5:  clamp(2.65rem, 1.85rem + 3.95vw, 5.35rem);

  /* Space */
  --sp-1: 0.5rem;  --sp-2: 0.875rem; --sp-3: 1.25rem; --sp-4: 2rem;
  --sp-5: 3rem;    --sp-6: 4.5rem;   --sp-7: 7rem;

  /* Geometry */
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 24px;
  --shadow-1: 0 1px 2px rgba(11,14,19,.04), 0 3px 10px rgba(11,14,19,.04);
  --shadow-2: 0 1px 3px rgba(11,14,19,.05), 0 14px 38px rgba(11,14,19,.08);
  --shadow-brand: 0 10px 30px rgba(18,94,74,.22);

  --ease: cubic-bezier(.22,.61,.36,1);
  --tr: .3s var(--ease);
  --maxw: 1160px;
}

[data-theme="dark"] {
  --paper:      #0B0E13;
  --paper-2:    #11151B;
  --paper-3:    #181D25;
  --card:       #12171E;
  --text:       #F0EEE9;
  --text-2:     #A3ABB8;
  --muted:      #6F7783;
  --brand:      #4FBFA1;
  --brand-2:    #74D6BB;
  --brand-deep: #2A9B7E;
  --brand-wash: #10231D;
  --bronze:     #D19B5E;
  --bronze-wash:#221A10;
  --line:       #232A33;
  --line-soft:  #1A2028;
  --line-strong:#333C48;
  --shadow-1:   0 1px 2px rgba(0,0,0,.4), 0 3px 10px rgba(0,0,0,.3);
  --shadow-2:   0 1px 3px rgba(0,0,0,.45), 0 14px 38px rgba(0,0,0,.5);
  --shadow-brand: 0 10px 30px rgba(79,191,161,.18);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--tr), color var(--tr);
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--brand); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- Layout ------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: 748px; margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 7.5vw, var(--sp-7)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--sp-6)); }
.section--alt { background: var(--paper-2); }
.rule { height: 1px; background: var(--line); border: 0; }

/* --- Typography --------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-5);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.display--sm { font-size: var(--step-4); margin-block: 1rem 1.15rem; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.14; letter-spacing: -0.025em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { color: var(--text-2); }
p + p { margin-top: .85rem; }
.lede { font-size: var(--step-1); line-height: 1.58; color: var(--text-2); max-width: 60ch; }
.accent { color: var(--brand); }

/* Measurement-style label with a graduation tick */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 7px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: .55;
}
.eyebrow--plain::before { display: none; }

.section-head { max-width: 700px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { margin-block: .8rem .9rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: var(--r-sm);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .002em;
  transition: transform var(--tr), background var(--tr), color var(--tr), border-color var(--tr), box-shadow var(--tr);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow-brand); }
[data-theme="dark"] .btn--primary { color: #06120E; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.btn--block { width: 100%; }
.btn--sm { padding: .55rem 1.05rem; font-size: var(--step--2); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: var(--step--1); color: var(--brand);
  border-bottom: 1px solid transparent; transition: gap var(--tr), border-color var(--tr);
}
.link-arrow:hover { gap: .75rem; border-bottom-color: currentColor; }

/* --- Brand mark --------------------------------------------------------- */
.brandmark { display: inline-flex; align-items: center; gap: .6rem; }
.brandmark__word {
  font-family: var(--display); font-weight: 800; font-size: 1.28rem;
  letter-spacing: -.035em; color: var(--text);
}
.kv-mark { flex-shrink: 0; }
/* The header needle is driven by scroll position in site.js, so it is left
   alone here — a CSS transform would override the attribute it writes. Only
   the footer mark gets the hover flourish. */
.footer .kv-mark__needle {
  transition: transform .7s var(--ease);
  transform-box: view-box; transform-origin: 16px 16px;
}
.footer .brandmark:hover .kv-mark__needle { transform: rotate(144deg); }

/* --- Graduation field (background texture) ------------------------------ */
.tick-field {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.tick-field .tk { stroke: var(--line); stroke-width: 1; }
.tick-field .tk.major { stroke: var(--line-strong); }
.tick-field .tk.mark { stroke: var(--brand); opacity: .5; }
.tick-field .tk.warm { stroke: var(--bronze); opacity: .45; }

/* A second copy of the grid in the brand colour, revealed only in a soft
   circle around the pointer — the drafting sheet responding to where you
   are looking. Added by site.js, and only on devices with a real pointer. */
.tick-field__lit {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .5s var(--ease);
  -webkit-mask-image: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 72%);
          mask-image: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 72%);
}
.tick-field__lit.is-on { opacity: 1; }
.tick-field__lit line { stroke: var(--brand) !important; opacity: .85 !important; }

/* Reading position, shown as a graduated rule filling under the header */
.nav__progress { height: 2px; background: transparent; overflow: hidden; }
.nav__progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand));
}
[data-theme="dark"] .nav__progress i { background: linear-gradient(90deg, var(--brand-deep), var(--brand-2)); }

/* Hairline ruler used as a section divider */
.ruler { display: flex; align-items: flex-end; gap: 6px; height: 14px; margin-bottom: 1.6rem; }
.ruler i { display: block; width: 1px; background: var(--line-strong); height: 6px; }
.ruler i:nth-child(5n+1) { height: 14px; background: var(--brand); }

/* --- Navigation --------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.nav__links { display: flex; align-items: center; gap: 1.85rem; margin-left: auto; }
.nav__links a { font-size: var(--step--1); font-weight: 500; color: var(--text-2); position: relative; padding-block: .3rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--brand); transition: width var(--tr);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: .65rem; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text-2); transition: all var(--tr);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 16px; height: 16px; }
/* Default to the light-theme icon so that with scripting off — when no
   data-theme attribute is ever written — one icon shows rather than both. */
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }

.nav__toggle { display: none; }
@media (max-width: 940px) {
  .nav__links {
    position: fixed; inset: 70px 0 auto; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .4rem 0 1.2rem; margin: 0;
    transform: translateY(-115%); transition: transform var(--tr);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { width: 100%; padding: .85rem clamp(1.15rem, 4vw, 2.5rem); font-size: 1rem; }
  .nav__links a::after { display: none; }
  .nav__toggle { display: grid; margin-left: auto; }
  .nav__actions .btn { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3rem, 6.5vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-block: 1.1rem 1.25rem; }
.hero .lede { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.hero__note { margin-top: 1.7rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); display: flex; align-items: flex-start; gap: .5rem; }
.hero__note svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; margin-top: .4em; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { order: -1; max-width: 380px; } }

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }

/* Hero instrument: graduated bezel with a vane needle and a live readout */
.instrument .bezel { fill: none; stroke: var(--line); stroke-width: 1.2; }
.instrument .bezel-inner { fill: none; stroke: var(--line-soft); stroke-width: 1; }
.instrument .ti { stroke: var(--line-strong); stroke-width: 1; }
.instrument .ti-major { stroke: var(--text-2); stroke-width: 1.4; opacity: .55; }

/* Graduations inside the travelling wedge, lit as the needle passes */
.instrument .inst-lit line { stroke: var(--brand); stroke-width: 1.8; }
.instrument .inst-lit { opacity: .9; }

/* Arc showing displacement from north */
.instrument .inst-sweep { stroke: var(--brand); stroke-width: 2.5; fill: none; stroke-linecap: round; opacity: .5; }

.instrument .inst-cardinal {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  fill: var(--muted); text-anchor: middle; letter-spacing: .06em;
}
.instrument .needle-solid { fill: var(--brand); }
.instrument .needle-light { fill: var(--brand); opacity: .38; }
.instrument .hub { fill: var(--paper); stroke: var(--brand); stroke-width: 2; }
.instrument .baseline { stroke: var(--line); stroke-width: 1; }
.instrument .inst-label {
  font-family: var(--mono); font-size: 10.5px; fill: var(--muted);
  letter-spacing: .16em;
}
.instrument .inst-label--on { fill: var(--brand); }
.instrument .inst-readout {
  font-family: var(--mono); font-size: 21px; font-weight: 500;
  fill: var(--text); letter-spacing: .02em; font-variant-numeric: tabular-nums;
}

/* Idle sweep for anyone the script does not take over: no JS, reduced motion,
   or a touch device. site.js adds .kv-live to <html> when it takes control. */
html:not(.kv-live) .instrument .inst-needle,
html:not(.kv-live) .instrument .inst-wedge {
  transform-box: view-box; transform-origin: 212px 182px;
  animation: kv-sweep 16s var(--ease) infinite;
}
@keyframes kv-sweep {
  0%, 34%   { transform: rotate(0deg); }
  46%, 64%  { transform: rotate(38deg); }
  76%, 92%  { transform: rotate(-24deg); }
  100%      { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.kv-live) .instrument .inst-needle,
  html:not(.kv-live) .instrument .inst-wedge { animation: none; }
}

/* --- Page header (interior pages) --------------------------------------- */
.pagehead { position: relative; overflow: hidden; padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(1.5rem, 3vw, 2.5rem); }

/* --- Facts strip -------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 1.5rem 1.6rem 1.5rem 0; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact:not(:first-child) { padding-left: 1.6rem; }
.fact dt { font-family: var(--mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .5rem; }
.fact dd { font-family: var(--display); font-weight: 700; font-size: var(--step-2); line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 780px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 440px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .fact:last-child { border-bottom: 0; }
}

/* --- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: 1.15rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.7rem; transition: border-color var(--tr), box-shadow var(--tr);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: var(--brand); transition: width .45s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.card:hover::before { width: 100%; }
.card__num { font-family: var(--mono); font-size: var(--step--2); color: var(--brand); letter-spacing: .12em; }
.card h3 { margin-block: .8rem .55rem; font-size: var(--step-1); }
.card p { font-size: var(--step--1); line-height: 1.68; }
.card__icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--brand-wash); color: var(--brand); display: grid; place-items: center; margin-bottom: 1.05rem; }
.card__icon svg { width: 19px; height: 19px; }

.deliverables { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  font-family: var(--mono); font-size: var(--step--2); letter-spacing: .01em;
  padding: .28rem .6rem; border-radius: 3px; border: 1px solid var(--line); color: var(--text-2);
}
.chip--brand { background: var(--brand-wash); border-color: transparent; color: var(--brand); font-variant-numeric: tabular-nums; }

/* --- Steps -------------------------------------------------------------- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 104px 1fr; gap: clamp(1rem, 3vw, 2.5rem); padding-block: 2rem; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__idx { font-family: var(--mono); font-size: var(--step--2); color: var(--brand); letter-spacing: .12em; padding-top: .5rem; }
.step h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.step p { max-width: 66ch; }
.step__meta { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: .5rem; } }

/* --- Pricing ------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; align-items: stretch; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; } }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.85rem 1.7rem; display: flex; flex-direction: column; position: relative;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.plan:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.plan--featured { border-color: var(--brand); }
.plan__flag {
  position: absolute; top: -10px; left: 1.7rem;
  font-family: var(--mono); font-size: var(--step--2); letter-spacing: .13em; text-transform: uppercase;
  background: var(--brand); color: var(--on-brand); padding: .25rem .65rem; border-radius: 3px;
}
[data-theme="dark"] .plan__flag { color: #06120E; }
.plan h3 { font-size: var(--step-1); }
.plan__for { font-size: var(--step--1); color: var(--muted); margin-top: .3rem; min-height: 2.8em; }
.plan__price { display: flex; align-items: baseline; gap: .3rem; margin-block: 1.1rem .3rem; }
.plan__price .amt { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 4.5vw, 2.9rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan__price .per { font-family: var(--mono); font-size: var(--step--2); color: var(--muted); }
.plan__bill { font-size: var(--step--2); color: var(--muted); margin-bottom: 1.3rem; }
.plan ul { display: grid; gap: .6rem; margin-block: 1.2rem 1.7rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.plan li { display: grid; grid-template-columns: 17px 1fr; gap: .55rem; font-size: var(--step--1); color: var(--text-2); line-height: 1.52; }
.plan li svg { width: 14px; height: 14px; color: var(--brand); margin-top: .3rem; }
.plan .btn { margin-top: auto; }

.price-note {
  margin-top: 2rem; padding: 1.2rem 1.35rem; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line); font-size: var(--step--1); color: var(--text-2);
}
.price-note strong { color: var(--text); font-weight: 600; }

/* --- Tables ------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 560px; }
table.data th, table.data td { text-align: left; padding: .9rem 1.15rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data thead th { background: var(--paper-2); font-family: var(--mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .11em; color: var(--text-2); font-weight: 500; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td { color: var(--text-2); font-variant-numeric: tabular-nums; }
table.data td:first-child { color: var(--text); font-weight: 500; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.2rem 0; cursor: pointer; font-weight: 600; font-size: var(--step-0);
  list-style: none; transition: color var(--tr);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary .plus { flex-shrink: 0; width: 18px; height: 18px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; transition: transform var(--tr);
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary { color: var(--brand); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq details > div { padding-bottom: 1.3rem; max-width: 72ch; }

/* --- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--step--2); font-weight: 600; letter-spacing: .01em; text-transform: uppercase; font-family: var(--mono); color: var(--text-2); }
.field label .req { color: var(--bronze); }
.field input, .field select, .field textarea {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .78rem .9rem; font-size: var(--step--1); transition: border-color var(--tr), box-shadow var(--tr);
  width: 100%;
}
.field textarea { min-height: 136px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash);
}
.field__hint { font-size: var(--step--2); color: var(--muted); }
.consent { display: grid; grid-template-columns: 17px 1fr; gap: .65rem; align-items: start; font-size: var(--step--1); color: var(--text-2); }
.consent input { width: 15px; height: 15px; margin-top: .25rem; accent-color: var(--brand); }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.form__status { font-size: var(--step--1); padding: .8rem .95rem; border-radius: var(--r-sm); display: none; }
.form__status.ok { display: block; background: var(--brand-wash); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.form__status.err { display: block; background: var(--bronze-wash); color: var(--bronze); border: 1px solid color-mix(in srgb, var(--bronze) 30%, transparent); }

/* --- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 1.35rem; }
.info-list dt { font-family: var(--mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .3rem; }
.info-list dd { font-size: var(--step--1); line-height: 1.6; }
.info-list dd a:hover { color: var(--brand); }
.info-list .tbd { color: var(--muted); font-family: var(--mono); }

/* --- CTA ---------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: #F0EEE9; padding: clamp(2.5rem, 5.5vw, 4.25rem); }
[data-theme="dark"] .cta-band { background: var(--paper-2); border: 1px solid var(--line); }
.cta-band h2 { color: #FBFAF7; max-width: 18ch; }
[data-theme="dark"] .cta-band h2 { color: var(--text); }
.cta-band p { color: rgba(240,238,233,.7); max-width: 52ch; margin-block: 1rem 2rem; }
[data-theme="dark"] .cta-band p { color: var(--text-2); }
.cta-band__inner { position: relative; z-index: 1; }
.cta-band .tick-field .tk { stroke: rgba(255,255,255,.13); }
.cta-band .tick-field .tk.mark { stroke: var(--brand-2); opacity: .55; }

.notice {
  border-left: 2px solid var(--brand); background: var(--brand-wash);
  padding: 1.05rem 1.3rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--step--1);
}
.notice strong { color: var(--text); }

/* --- Legal -------------------------------------------------------------- */
.legal-head { padding-block: clamp(2.5rem, 6vw, 4.25rem) 2rem; border-bottom: 1px solid var(--line); }
.legal-meta { font-family: var(--mono); font-size: var(--step--2); color: var(--muted); display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; }
.legal-body { padding-block: 2.5rem 4rem; }
.legal-body h2 { font-size: var(--step-2); margin-block: 2.5rem 1rem; scroll-margin-top: 88px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: var(--step-1); margin-block: 1.6rem .65rem; }
.legal-body p { margin-bottom: 1rem; }
.legal-body p + p { margin-top: 0; }
.legal-body ul, .legal-body ol { margin-block: 1rem 1.3rem; padding-left: 1.3rem; display: grid; gap: .5rem; }
.legal-body ul li { list-style: disc; color: var(--text-2); }
.legal-body ol li { list-style: decimal; color: var(--text-2); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal-body address { font-style: normal; color: var(--text-2); line-height: 1.8; }
.legal-body code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
.toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem 1.5rem; margin-bottom: 2.5rem; }
.toc h2 { font-family: var(--mono); font-size: var(--step--2) !important; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 .85rem !important; font-weight: 500; }
.toc ol { display: grid; gap: .4rem; padding: 0; margin: 0; }
.legal-body .toc ol li { list-style: none; font-size: var(--step--1); color: var(--text-2); }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: clamp(2.75rem, 5.5vw, 4rem) 0; margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2.25rem; padding-bottom: 2.5rem; }
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__about p { font-size: var(--step--1); line-height: 1.72; max-width: 34ch; margin-top: .9rem; }
.footer h4 { font-family: var(--mono); font-size: var(--step--2); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 500; margin-bottom: 1.05rem; }
.footer ul { display: grid; gap: .55rem; }
.footer ul a, .footer address { font-size: var(--step--1); color: var(--text-2); font-style: normal; line-height: 1.78; }
.footer ul a:hover { color: var(--brand); }
.footer__legal-entity { font-size: var(--step--1); color: var(--text-2); line-height: 1.78; }
.footer__bottom {
  border-top: 1px solid var(--line); padding-block: 1.35rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: var(--step--2); color: var(--muted);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer__bottom nav a:hover { color: var(--brand); }
.pay-row { display: flex; align-items: center; gap: .45rem; color: var(--muted); }
.pay-row svg { width: 14px; height: 14px; flex-shrink: 0; }
.pay-row span { font-size: var(--step--2); }

/* --- Reveal -------------------------------------------------------------
   Content is visible by default. It is only hidden for the entrance
   animation when JavaScript is running, so a script failure or a blocked
   script can never leave a section permanently invisible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- Utilities ---------------------------------------------------------- */
.center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--brand); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --- Print --------------------------------------------------------------
   Clients and their lawyers print the legal documents. Make that readable. */
@media print {
  .nav, .footer, .cta-band, .tick-field, .skip-link, .hero__art { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap, .wrap-narrow { max-width: 100%; padding: 0; }
  .legal-body h2 { page-break-after: avoid; break-after: avoid; }
  .legal-body p, .legal-body li { page-break-inside: avoid; break-inside: avoid; }
  .toc { border: 1px solid #999; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
