/* Vellforge: shared styles for every page.
   Warm charcoal and brass. Dark only, like the app's own icon. */

:root {
  --bg:       #0D0C0B;
  --bg-2:     #12110F;
  --surface:  #181715;
  --raised:   #1F1E1B;
  --raised-2: #26241F;
  --line:     rgba(243, 239, 233, 0.08);
  --line-2:   rgba(243, 239, 233, 0.14);
  --ink:      #F3EFE9;
  --ink-2:    #BAB3A9;
  --muted:    #8C857B;
  --brass:    #E0B25C;
  --brass-2:  #F1CB80;
  --brass-d:  #B8873A;
  --glow:     rgba(224, 178, 92, 0.16);
  --blue:     #3B6FD4;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(1rem, 5vw, 3rem);
  --radius: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brass); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px;
}

/* Longhands on purpose: rules that add vertical padding to a .wrap element
   (sections, the hero) must not wipe out its side gutter, or the reverse. */
.wrap { max-width: 68rem; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: 52rem; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--raised);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

h1, h2, h3 { text-wrap: balance; }
h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4.4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
}
h3 { letter-spacing: -0.015em; }
.intro { color: var(--ink-2); max-width: 54ch; margin: 0 0 2.5rem; font-size: 1.06rem; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-weight: 650; font-size: 0.98rem; text-decoration: none;
  border-radius: 999px;
  padding: 0.78rem 1.3rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary {
  background: var(--brass); color: #1A1306;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 10px 30px -10px rgba(224,178,92,0.6);
}
.btn.primary:hover { background: var(--brass-2); transform: translateY(-1px); }
.btn.ghost { color: var(--ink); border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); }
.btn.ghost:hover { border-color: rgba(243,239,233,0.3); background: rgba(255,255,255,0.05); }
.btn.small { padding: 0.48rem 0.95rem; font-size: 0.86rem; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- Navigation ---------- */

.nav { position: sticky; top: 0; z-index: 10; background: rgba(13,12,11,0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 60px; }
.nav nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.92rem; }
.nav nav a { color: var(--ink-2); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }
.nav nav .btn { color: #1A1306; }
@media (max-width: 40rem) { .nav nav a.hide-sm { display: none; } }

.mark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.mark svg { display: block; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero::before {
  /* A low brass glow behind the desktop picture. */
  content: ""; position: absolute; inset: auto -20% -10% -20%; height: 70%;
  background: radial-gradient(60% 60% at 50% 60%, var(--glow), transparent 70%);
  pointer-events: none;
}
#embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner {
  position: relative; text-align: center;
  padding-top: clamp(3.5rem, 10vw, 6.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
.announce {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.84rem; color: var(--ink-2); text-decoration: none;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  border-radius: 999px; padding: 0.32rem 0.85rem 0.32rem 0.38rem; margin-bottom: 1.8rem;
}
.announce b {
  font-family: var(--mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #1A1306; background: var(--brass);
  border-radius: 999px; padding: 0.12rem 0.5rem;
}
.announce:hover { color: var(--ink); border-color: rgba(243,239,233,0.28); }

h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 7.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 auto 1.3rem;
  max-width: 15ch;
}
h1 em { font-style: normal; color: var(--brass); }
.lede {
  font-size: clamp(1.05rem, 2.3vw, 1.25rem);
  line-height: 1.5; color: var(--ink-2);
  max-width: 44ch; margin: 0 auto 2rem;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 1rem; }
.fine { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--muted); margin: 0; }

/* ---------- The desktop picture ----------
   A drawing rather than a screenshot: it never goes stale and scales with
   the page. Everything inside sizes in container units. */

.desk {
  container-type: inline-size;
  position: relative;
  width: min(100%, 60rem);
  aspect-ratio: 16 / 10;
  margin: clamp(2.5rem, 7vw, 4.5rem) auto 0;
  border-radius: clamp(10px, 1.6cqw, 18px);
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(70% 90% at 15% 110%, rgba(224,178,92,0.55), transparent 60%),
    radial-gradient(60% 80% at 95% 0%, rgba(89,110,170,0.55), transparent 60%),
    linear-gradient(160deg, #2A2724, #161412 60%);
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 120px -30px rgba(0,0,0,0.9);
}
.desk .menubar {
  position: absolute; inset: 0 0 auto 0; height: 4.2cqw;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.6cqw; font-size: 1.45cqw; color: rgba(255,255,255,0.92);
  background: rgba(20,18,16,0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.desk .menubar .left, .desk .menubar .right { display: flex; align-items: center; gap: 1.8cqw; }
.desk .menubar .left b { font-weight: 700; }
.desk .menubar svg { height: 1.9cqw; width: auto; display: block; }
.desk .menubar .vf { padding: 0.35cqw 0.6cqw; border-radius: 0.5cqw; background: rgba(255,255,255,0.18); }
.desk .menubar .faint { opacity: 0.5; }

.desk .win {
  position: absolute; top: 6.2cqw; bottom: 2cqw;
  border-radius: 1.1cqw; overflow: hidden;
  background: rgba(30,28,26,0.92);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 2cqw 5cqw -1cqw rgba(0,0,0,0.6);
}
.desk .win.l { left: 2cqw; width: calc(50% - 3cqw); }
.desk .win.r { right: 2cqw; width: calc(50% - 3cqw); background: rgba(242,238,232,0.95); }
.desk .win .bar { height: 3.2cqw; display: flex; align-items: center; gap: 0.7cqw; padding: 0 1.2cqw; }
.desk .win .bar i { width: 1.05cqw; height: 1.05cqw; border-radius: 50%; display: block; background: #FF5F57; }
.desk .win .bar i:nth-child(2) { background: #FEBC2E; }
.desk .win .bar i:nth-child(3) { background: #28C840; }
.desk .win .lines { padding: 1.4cqw 2cqw; display: grid; gap: 1.1cqw; }
.desk .win .lines span { display: block; height: 1.1cqw; border-radius: 0.6cqw; background: rgba(255,255,255,0.12); }
.desk .win.r .lines span { background: rgba(0,0,0,0.1); }
.desk .win .lines span.w70 { width: 70%; } .desk .win .lines span.w45 { width: 45%; }
.desk .win .lines span.w85 { width: 85%; } .desk .win .lines span.accent { background: rgba(224,178,92,0.55); width: 35%; }
.desk .win .tile { margin: 0 2cqw; height: 13cqw; border-radius: 1cqw; background: linear-gradient(135deg, rgba(59,111,212,0.25), rgba(224,178,92,0.25)); }

/* The open Vellforge menu, hanging from its icon. */
.desk .menu {
  position: absolute; top: 4.7cqw; right: 9cqw; width: 30cqw;
  font-size: 1.35cqw; color: var(--ink);
  background: rgba(36,34,31,0.88);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: 1.2cqw; padding: 0.6cqw;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 3cqw 6cqw -1cqw rgba(0,0,0,0.75);
}
.desk .menu .h { font-size: 1.05cqw; font-weight: 700; color: var(--muted); padding: 0.7cqw 1cqw 0.25cqw; }
.desk .menu .i { display: flex; justify-content: space-between; padding: 0.38cqw 1cqw; border-radius: 0.6cqw; }
.desk .menu .i.hl { background: var(--blue); color: #fff; }
.desk .menu .i.ro { color: var(--muted); }
.desk .menu .i span:last-child { color: var(--muted); font-family: var(--mono); font-size: 1.15cqw; }
.desk .menu .i.hl span:last-child { color: rgba(255,255,255,0.8); }
.desk .menu .sep { height: 1px; background: rgba(255,255,255,0.1); margin: 0.5cqw 0.8cqw; }
.desk .menu .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.35cqw; padding: 0.7cqw 1cqw 0.5cqw; }
.desk .menu .grid i { display: block; height: 1.7cqw; border-radius: 0.35cqw; background: rgba(186,179,169,0.2); }
.desk .menu .grid i.on { background: var(--blue); }

/* ---------- Sections ---------- */

section { padding-top: clamp(4rem, 10vw, 7rem); padding-bottom: clamp(4rem, 10vw, 7rem); }

/* ---------- Add-on cards ---------- */

.addons { display: grid; gap: 1rem; }
@media (min-width: 50rem) { .addons { grid-template-columns: repeat(2, 1fr); } }

.addon {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--raised), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 80px;
}
.addon:target { border-color: var(--brass-d); }
.addon .demo {
  position: relative; height: 13.5rem; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 100% at 50% 0%, rgba(255,255,255,0.04), transparent 70%);
}
.addon .body { padding: 1.5rem 1.6rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.addon .head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.65rem; }
.addon .head svg { width: 30px; height: 30px; flex: none; }
.addon h3 { font-weight: 700; font-size: 1.3rem; margin: 0; }
.addon .role { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brass); margin-left: auto; }
.addon p { color: var(--ink-2); margin: 0 0 1rem; font-size: 0.97rem; }
.addon ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.4rem; }
.addon li { color: var(--ink-2); font-size: 0.92rem; padding-left: 1.3rem; position: relative; }
.addon li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 0.45rem; height: 0.45rem; border-radius: 2px; background: var(--brass); opacity: 0.8; }
.addon .foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1rem;
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
}
.addon .foot a { color: var(--ink-2); text-decoration: none; }
.addon .foot a:hover { color: var(--brass); }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 0.18rem 0.6rem; }

/* Snap demo: a window glides into the left half while a preview shows where. */
.snap-demo .screen { position: absolute; inset: 1.4rem 2rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); }
.snap-demo .preview { position: absolute; top: 0.5rem; bottom: 0.5rem; left: 0.5rem; width: calc(50% - 0.75rem); border-radius: 9px; border: 2px solid rgba(59,111,212,0.85); background: rgba(59,111,212,0.18); opacity: 0; animation: snap-preview 4.5s ease-in-out infinite; }
.snap-demo .window { position: absolute; top: 18%; left: 32%; width: 42%; height: 58%; border-radius: 9px; background: #2C2A27; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 14px 30px -10px rgba(0,0,0,0.8); animation: snap-window 4.5s ease-in-out infinite; }
.snap-demo .window::before { content: ""; position: absolute; top: 9px; left: 10px; width: 34px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #FF5F57 0 8px, transparent 8px 13px, #FEBC2E 13px 21px, transparent 21px 26px, #28C840 26px 34px); }
.snap-demo .tiles { position: absolute; top: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 9px; background: rgba(36,34,31,0.95); box-shadow: 0 0 0 1px rgba(255,255,255,0.1); opacity: 0; animation: snap-tiles 4.5s ease-in-out infinite; }
.snap-demo .tiles i { display: block; width: 30px; height: 19px; border-radius: 4px; background: rgba(186,179,169,0.22); }
.snap-demo .tiles i:first-child { background: rgba(224,178,92,0.7); }
.snap-demo .cursor { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.25); top: 26%; left: 52%; animation: snap-cursor 4.5s ease-in-out infinite; }
@keyframes snap-window {
  0%, 12%   { top: 18%; left: 32%; width: 42%; height: 58%; }
  40%       { top: 26%; left: 6%;  width: 42%; height: 58%; }
  52%, 88%  { top: 0.5rem; left: 0.5rem; width: calc(50% - 0.75rem); height: calc(100% - 1rem); }
  100%      { top: 18%; left: 32%; width: 42%; height: 58%; }
}
@keyframes snap-preview { 0%, 28% { opacity: 0; } 36%, 50% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes snap-tiles { 0%, 60% { opacity: 0; transform: translate(-50%, -6px); } 66%, 84% { opacity: 1; transform: translate(-50%, 0); } 92%, 100% { opacity: 0; } }
@keyframes snap-cursor {
  0%, 12% { top: 26%; left: 52%; }
  40%     { top: 34%; left: 26%; }
  52%, 60% { top: 34%; left: 4%; }
  70%, 84% { top: 8%; left: 47%; }
  100%    { top: 26%; left: 52%; }
}

/* Scroll demo: two devices, scrolling opposite ways. */
.scroll-demo { display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 1.4rem 1.6rem; gap: 1rem; }
.scroll-demo .dev { text-align: center; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.scroll-demo .dev b { display: block; color: var(--ink); font-family: var(--display); font-size: 0.95rem; font-weight: 650; margin-top: 0.6rem; }
.scroll-demo .pad { width: 120px; height: 84px; border-radius: 12px; background: rgba(255,255,255,0.05); box-shadow: 0 0 0 1px var(--line-2); position: relative; overflow: hidden; margin: 0 auto; }
.scroll-demo .mouse { width: 58px; height: 92px; border-radius: 29px; background: rgba(255,255,255,0.05); box-shadow: 0 0 0 1px var(--line-2); position: relative; margin: 0 auto; }
.scroll-demo .mouse::after { content: ""; position: absolute; top: 16px; left: 50%; width: 6px; height: 18px; margin-left: -3px; border-radius: 3px; background: var(--brass); }
.scroll-demo .arrow { position: absolute; left: 50%; width: 0; height: 0; margin-left: -9px; border-left: 9px solid transparent; border-right: 9px solid transparent; }
.scroll-demo .pad .arrow { top: 32px; border-bottom: 13px solid var(--ink); animation: up 1.8s ease-in-out infinite; }
.scroll-demo .mouse .arrow { top: 50px; border-top: 13px solid var(--brass); animation: down 1.8s ease-in-out infinite; }
@keyframes up { 0% { transform: translateY(12px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
@keyframes down { 0% { transform: translateY(-10px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Bar demo: icons left of the divider fold away when the chevron is clicked. */
.bar-demo { display: grid; place-items: center; padding: 1.5rem; }
.bar-demo .strip { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-radius: 10px; background: rgba(20,18,16,0.9); box-shadow: 0 0 0 1px var(--line-2); max-width: 100%; overflow: hidden; }
.bar-demo .hide { display: flex; gap: 12px; overflow: hidden; animation: fold 4s ease-in-out infinite; max-width: 220px; }
.bar-demo .ic { width: 16px; height: 16px; border-radius: 4px; background: rgba(243,239,233,0.6); flex: none; }
.bar-demo .ic.r { border-radius: 50%; } .bar-demo .ic.t { width: 30px; height: 10px; border-radius: 3px; }
.bar-demo .div { width: 2px; height: 18px; border-radius: 1px; background: var(--brass); flex: none; }
.bar-demo .chev { color: var(--brass); font-weight: 700; font-size: 1rem; line-height: 1; flex: none; width: 10px; text-align: center; }
.bar-demo .chev::before { content: "›"; animation: chev 4s steps(1) infinite; }
.bar-demo .clock { font-size: 0.78rem; color: var(--ink-2); flex: none; white-space: nowrap; }
.bar-demo .caption { margin-top: 1rem; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
@media (max-width: 30rem) {
  .bar-demo .strip, .bar-demo .hide { gap: 8px; }
  .bar-demo .strip { padding: 0 10px; }
  .bar-demo .ic.t { width: 22px; }
  .bar-demo .caption { text-align: center; }
}
@keyframes fold { 0%, 35% { max-width: 220px; opacity: 1; } 45%, 85% { max-width: 0; opacity: 0; } 95%, 100% { max-width: 220px; opacity: 1; } }
@keyframes chev { 0% { content: "›"; } 40% { content: "‹"; } 90% { content: "›"; } }

/* Buttons demo: a mouse's side buttons, and three fingers on a trackpad. */
.buttons-demo { display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 1.2rem 1.6rem; gap: 1rem; }
.buttons-demo svg { width: 120px; height: 120px; display: block; margin: 0 auto; }
.buttons-demo .lbl { text-align: center; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.4rem; }
.buttons-demo .lbl b { color: var(--ink); font-family: var(--display); font-size: 0.95rem; font-weight: 650; display: block; }
.buttons-demo .pulse { animation: pulse 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.buttons-demo .pulse.d2 { animation-delay: 1.1s; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 40%, 60% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .snap-demo *, .scroll-demo *, .bar-demo *, .bar-demo .chev::before, .buttons-demo * { animation: none !important; }
  .snap-demo .window { top: 0.5rem; left: 0.5rem; width: calc(50% - 0.75rem); height: calc(100% - 1rem); }
  .snap-demo .tiles { opacity: 1; }
}

/* ---------- Shortcut highlight ---------- */

.keys { display: flex; justify-content: center; align-items: center; gap: 0.6rem; margin: 0 0 2rem; flex-wrap: wrap; }
.key {
  width: clamp(64px, 12vw, 96px); aspect-ratio: 1; border-radius: 16px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
  padding: 0.7rem 0.8rem; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink);
  background: linear-gradient(180deg, #2A2825, #1C1B18);
  box-shadow: 0 0 0 1px var(--line-2), 0 1px 0 rgba(255,255,255,0.08) inset, 0 14px 30px -14px rgba(0,0,0,0.9);
}
.key small { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); align-self: flex-start; }
.key.accent { color: var(--brass); box-shadow: 0 0 0 1px var(--brass-d), 0 1px 0 rgba(255,255,255,0.08) inset, 0 14px 40px -14px rgba(224,178,92,0.55); }
.plus { color: var(--muted); font-size: 1.1rem; }

/* ---------- Details grid ---------- */

.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail { padding: 1.4rem 1.4rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail h4 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 650; display: flex; align-items: center; gap: 0.55rem; }
.detail h4::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--brass); flex: none; }
.detail p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 2rem 4rem; }
@media (min-width: 54rem) { .faq { grid-template-columns: 1fr 1.6fr; } }
.faq h2 { position: sticky; top: 90px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600; font-size: 1.02rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 1.2rem; transition: transform 0.2s ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: -0.3rem 0 1.2rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- Final call to action ---------- */

.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 28px; border: 1px solid var(--line-2);
  padding: clamp(3rem, 8vw, 5rem) var(--pad);
  background:
    radial-gradient(60% 90% at 50% 120%, rgba(224,178,92,0.42), transparent 70%),
    radial-gradient(40% 50% at 50% 100%, rgba(241,203,128,0.35), transparent 70%),
    var(--surface);
}
.cta h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta .intro { margin-left: auto; margin-right: auto; }
.cta .steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: step; font-size: 0.9rem; color: var(--ink-2); }
.cta .steps li { counter-increment: step; }
.cta .steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-right: 0.45rem; border-radius: 50%; font-family: var(--mono); font-size: 0.72rem; color: var(--brass); border: 1px solid var(--brass-d); }

/* ---------- Tables, steps and callouts (docs) ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface); }
td { color: var(--ink-2); }
td strong { color: var(--ink); font-weight: 600; }
.req { color: var(--brass); }

/* ---------- Docs ---------- */

.doc { padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0 0 1rem; text-align: left; max-width: none; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 3rem; padding: 0; list-style: none; }
.doc .toc a {
  display: inline-block; text-decoration: none; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.88rem;
}
.doc .toc a:hover { color: var(--ink); border-color: rgba(243,239,233,0.3); }
.doc article { max-width: 46rem; scroll-margin-top: 80px; padding-top: 2.75rem; margin-top: 2.75rem; border-top: 1px solid var(--line); }
.doc article:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.doc h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.doc h3 { font-size: 1.12rem; margin: 2rem 0 0.5rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.35rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .table-wrap { margin: 1rem 0 1.5rem; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--line); padding-top: 3rem; padding-bottom: 3.5rem; font-size: 0.9rem; color: var(--muted); }
.foot { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .foot { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.foot .brand p { margin: 0.7rem 0 0; max-width: 30ch; }
.foot h5 { margin: 0 0 0.8rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-note { font-family: var(--mono); font-size: 0.72rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
