/* ===========================================================
   ZipOS marketing — "Ledger & Ink" (indigo edition)
   Warm paper, indigo ink (matches the Invoice web app),
   vermilion stamp accent. Editorial serif display, mono
   numerals, ruled lines.
   =========================================================== */

:root {
  color-scheme: light;

  /* Paper */
  --paper:       #faf6ee;
  --paper-2:     #f3ede0;
  --paper-3:     #ece4d2;
  --card:        #fffdf8;

  /* Ink */
  --ink:         #1b1b2b;
  --ink-2:       #2c2c3e;
  --muted:       #5b6075;
  --soft:        #8b8fa3;

  /* Lines */
  --line:        #ddd5c2;
  --line-2:      #c9bfa6;
  --rule:        #1b1b2b;

  /* Accents — indigo mirrors the Invoice web app primary (#4f46e5) */
  --green:       #4f46e5;     /* indigo-600 (brand primary; name kept for back-compat) */
  --green-deep:  #4338ca;     /* indigo-700 */
  --green-soft:  #e0e7ff;     /* indigo-100 */
  --indigo:      #4f46e5;
  --indigo-deep: #4338ca;
  --indigo-soft: #e0e7ff;
  --indigo-glow: rgba(79, 70, 229, 0.45);
  --stamp:       #cf3f1f;     /* vermilion stamp (complementary warm accent) */
  --stamp-soft:  #f8e3da;
  --gold:        #b98a2f;

  /* Dark panel — deep indigo night */
  --night:       #1e1b4b;     /* indigo-950 */
  --night-2:     #312e81;     /* indigo-900 */
  --night-line:  #3730a3;     /* indigo-800 */
  --night-text:  #eef2ff;     /* indigo-50 */
  --night-muted: #a5b4fc;     /* indigo-300 */

  /* Type */
  --display: "Fraunces", "Georgia", serif;
  --sans:    "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono:    "Spline Sans Mono", "SF Mono", ui-monospace, monospace;

  /* Shape */
  --r-sm: 3px;
  --r-md: 8px;
  --r-lg: 14px;

  /* Shadow */
  --shadow-card: 0 1px 2px rgba(27, 27, 43, 0.06), 0 12px 32px rgba(27, 27, 43, 0.08);
  --shadow-doc:  0 2px 4px rgba(27, 27, 43, 0.08), 0 24px 64px rgba(27, 27, 43, 0.16);

  /* Layout */
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 31px,
      rgba(27, 27, 43, 0.035) 31px,
      rgba(27, 27, 43, 0.035) 32px
    ),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--green); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  /* logo stays fully visible + static (no comet) when motion is reduced */
  .brand-logo { filter: none !important; transition: none !important; }
  .brand-logo .bl-comet-wrap { animation: none !important; display: none; }
}

/* ---------- type utilities ---------- */

.micro {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.micro.muted { color: var(--muted); }
.micro.accent { color: var(--green); }
.micro.contrast { color: var(--night-muted); }
.muted { color: var(--muted); }

.display {
  font-family: var(--display);
  font-weight: 560;
  font-variation-settings: "opsz" 100;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}

.head-2 {
  font-family: var(--display);
  font-weight: 540;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.head-2.light { color: var(--night-text); }

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

.accent-mark { color: var(--stamp); }
em { font-style: italic; }

/* ---------- buttons ---------- */

.solid-button,
.line-button,
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.solid-button {
  background: var(--green);
  color: #fdfaf2;
  padding: 14px 24px;
  border: 1px solid var(--green-deep);
  box-shadow: 3px 3px 0 rgba(67, 56, 202, 0.28);
}
.solid-button:hover { background: var(--green-deep); transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(67, 56, 202, 0.28); }
.solid-button.compact { padding: 9px 16px; font-size: 14px; box-shadow: 2px 2px 0 rgba(67, 56, 202, 0.24); }
.solid-button.on-dark {
  background: var(--paper);
  color: var(--green-deep);
  border-color: var(--paper);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.solid-button.on-dark:hover { background: #fff; }

.line-button {
  padding: 13px 22px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.line-button:hover { background: var(--ink); color: var(--paper); }
.line-button.on-dark { border-color: var(--night-muted); color: var(--night-text); }
.line-button.on-dark:hover { background: var(--night-text); color: var(--night); border-color: var(--night-text); }

.link-button {
  padding: 9px 6px;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}
.link-button:hover { text-decoration-color: var(--green); color: var(--green); }
.link-button.on-dark { color: var(--night-muted); }
.link-button.on-dark:hover { color: var(--night-text); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-elevated {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

/* ---------- brand logo (animated indigo ring) ----------
   Mirrors the Invoice web app's ring mark (a stroked circle),
   spiced up for marketing: a bright comet sweeps around the ring
   continuously, plus a soft glow and a lift on hover.
   Robust: the ring is fully visible at rest (no opacity tricks),
   so the logo can never get stuck invisible. CSS-only, respects
   prefers-reduced-motion. */
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  /* container has no fill — the ring reads on the paper, like the app */
  background: transparent;
  color: var(--indigo);
  border-radius: 50%;
}
.brand-mark.small { width: 28px; height: 28px; flex-basis: 28px; }

.brand-logo {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
  filter: drop-shadow(0 0 4px rgba(79, 70, 229, 0.25));
  transition: transform 0.28s cubic-bezier(0.2, 1, 0.4, 1), filter 0.3s ease;
}
.brand:hover .brand-logo {
  transform: scale(1.12);
  filter: drop-shadow(0 0 10px rgba(79, 70, 229, 0.6));
}

/* the static gradient ring — always fully visible */
.brand-logo .bl-ring {
  fill: none;
}

/* the comet: a bright glowing dot that orbits the ring.
   Rotation is driven by SMIL <animateTransform> inside the SVG
   (see markup), which is native + universally supported and avoids
   CSS transform-box/origin quirks. CSS only controls hover speed. */
.brand-logo .bl-comet-wrap {
  /* rotation handled by SMIL; nothing needed here */
}
.brand:hover .brand-logo .bl-comet-wrap animateTransform,
.brand:hover .brand-logo .bl-comet-wrap .bl-comet-anim {
  /* SMIL duration can't be changed via CSS; hover handled via JS-free CSS scale on logo instead */
}

/* footer (.small) logos stay calm: no comet, no glow */
.brand-mark.small .brand-logo { filter: none; }
.brand-mark.small .brand-logo .bl-comet-wrap { display: none; }
.brand-word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.nav-links a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 14px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- main shell ---------- */

main { max-width: var(--max); margin: 0 auto; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(40px, 5vw, 72px);
}
.hero.hero-single { grid-template-columns: 1fr; }

.hero-text { min-width: 0; }

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--card);
  text-decoration: none;
}
.tag-live { color: var(--green-deep); border-color: var(--green); background: var(--green-soft); }
.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
  55% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
}
.tag-link:hover { border-color: var(--ink); color: var(--ink); }
.tag-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--soft); text-transform: uppercase; }

.hero-copy {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
  margin: 26px 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-trust span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust span::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
}

/* ---------- invoice document mock ---------- */

.doc-stage {
  position: relative;
  padding: 10px 0 26px;
}

.invoice-doc {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-doc);
  padding: 28px 28px 0;
  transform: rotate(1.2deg);
  font-size: 13px;
}
.invoice-doc::after {
  /* perforated receipt bottom */
  content: "";
  display: block;
  height: 24px;
  margin: 18px -28px 0;
  background: radial-gradient(circle at 12px 24px, var(--paper) 8px, transparent 8.5px) repeat-x;
  background-size: 26px 26px;
}

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.doc-brand { font-family: var(--display); font-weight: 600; font-size: 17px; }
.doc-brand small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; color: var(--soft); letter-spacing: 0.1em; margin-top: 3px; text-transform: uppercase; }
.doc-no { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.7; }
.doc-no strong { display: block; color: var(--ink); font-size: 13px; }

.doc-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
}
.doc-meta b { display: block; font-weight: 600; color: var(--ink); font-family: var(--sans); font-size: 12.5px; margin-top: 2px; text-transform: none; letter-spacing: 0; }

.doc-lines { width: 100%; border-collapse: collapse; margin-top: 4px; }
.doc-lines th {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  text-align: left;
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--line);
}
.doc-lines th:last-child, .doc-lines td:last-child { text-align: right; }
.doc-lines td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.doc-lines td:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.doc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
}
.doc-total span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.doc-total strong { font-family: var(--mono); font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.stamp {
  position: absolute;
  right: 7%;
  bottom: 17%;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--stamp);
  border: 3.5px solid var(--stamp);
  border-radius: var(--r-md);
  padding: 8px 18px;
  transform: rotate(-12deg);
  opacity: 0.92;
  mix-blend-mode: multiply;
  animation: stamp-in 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 0.9s both;
}
@keyframes stamp-in {
  0%   { transform: rotate(-12deg) scale(2.4); opacity: 0; }
  70%  { transform: rotate(-12deg) scale(0.96); opacity: 1; }
  100% { transform: rotate(-12deg) scale(1); opacity: 0.92; }
}

.doc-note {
  position: absolute;
  left: -8px;
  bottom: -6px;
  background: var(--night);
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border-radius: var(--r-sm);
  padding: 10px 16px;
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow-card);
}
.doc-note b { color: #6ee7b7; font-weight: 600; }

/* ---------- fact strip ---------- */

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  border-block: 2px solid var(--rule);
  margin: 0 var(--gutter);
  background: var(--card);
}
.fact-strip > div {
  flex: 1 1 200px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.fact-strip > div:last-child { border-right: none; }
.fact-strip b {
  display: block;
  font-family: var(--display);
  font-weight: 560;
  font-size: 21px;
  margin-bottom: 2px;
}
.fact-strip span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 110px) var(--gutter); }
.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.section-rules { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-meta {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 18px;
}
.section-head .lede { margin-top: 16px; }

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
}
.step {
  padding: 30px 28px 34px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: none; }
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 600;
}
.step h3 {
  font-family: var(--display);
  font-weight: 560;
  font-size: 22px;
  margin: 14px 0 10px;
}
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.step-arrow {
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--stamp);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .step-arrow { display: none; }
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.feature {
  background: var(--card);
  padding: 28px 26px 32px;
  transition: background 0.2s ease;
}
.feature:hover { background: var(--green-soft); }
.f-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--stamp);
  font-weight: 600;
}
.feature h4 {
  font-family: var(--display);
  font-weight: 560;
  font-size: 19px;
  margin: 12px 0 8px;
}
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* ---------- screen band ---------- */

.screen-band { padding: 0 var(--gutter) clamp(56px, 8vw, 100px); }
.screen-band-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 4px;
}
.screen {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-doc);
}
.screen-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.screen-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.screen-addr {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 14px;
}

/* ---------- suite table ---------- */

.apps-table {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
}
.apps-row {
  display: grid;
  grid-template-columns: 64px 200px 1fr 160px;
  gap: 18px;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.apps-row:last-child { border-bottom: none; }
.apps-head {
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  padding-block: 12px;
}
.col-num { font-family: var(--mono); font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.col-name {
  font-family: var(--display);
  font-weight: 560;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.apps-head .col-name { font-family: var(--mono); font-size: 10.5px; font-weight: 500; }
.apps-head .col-desc { font-size: 10.5px; color: var(--soft); }
.col-desc { color: var(--muted); font-size: 14.5px; }
.col-status { justify-self: end; }
.apps-link { transition: background 0.18s ease; }
.apps-link:hover { background: var(--green-soft); }
.apps-link .row-arrow { color: var(--green); transition: transform 0.18s ease; }
.apps-link:hover .row-arrow { transform: translateX(4px); }

.pill {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--paper);
  white-space: nowrap;
}
.pill-on { color: var(--green-deep); border-color: var(--green); background: var(--green-soft); }

@media (max-width: 860px) {
  .apps-row { grid-template-columns: 40px 1fr 130px; }
  .col-desc { display: none; }
}

/* ---------- principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.principle {
  border-top: 2px solid var(--rule);
  padding-top: 20px;
}
.p-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--stamp); font-weight: 600; }
.principle h3 {
  font-family: var(--display);
  font-weight: 560;
  font-size: 21px;
  margin: 12px 0 8px;
}
.principle p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 30px 28px;
}
.price-featured {
  border: 2px solid var(--green);
  box-shadow: var(--shadow-card);
  position: relative;
}
.price-featured::before {
  content: "Most teams pick this";
  position: absolute;
  top: -13px;
  left: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--green);
  color: #fdfaf2;
  border-radius: 999px;
  padding: 5px 14px;
}
.price-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price-tier { font-family: var(--display); font-weight: 600; font-size: 22px; }
.price-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); text-align: right; }
.price-tag.accent { color: var(--green); }
.price-amount {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin: 18px 0 8px;
}
.amt-cur { font-size: 22px; vertical-align: 14px; margin-right: 2px; color: var(--muted); }
.amt-per { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--soft); margin-left: 6px; }
.price-list {
  list-style: none;
  margin: 8px 0 26px;
  padding: 0;
  flex: 1;
}
.price-list li {
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
  position: relative;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 700;
}
.price-cta { justify-content: center; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; } }

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

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.faq-item {
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
}
.faq-item h3 {
  font-family: var(--display);
  font-weight: 560;
  font-size: 18px;
  margin: 0 0 8px;
}
.faq-item p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
@media (max-width: 720px) { .faq-list { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */

.cta {
  margin: clamp(40px, 6vw, 80px) var(--gutter);
  background:
    radial-gradient(1200px 400px at 80% -20%, rgba(129, 140, 248, 0.18), transparent),
    var(--night);
  border-radius: var(--r-lg);
  padding: clamp(44px, 6vw, 80px) clamp(28px, 5vw, 72px);
  color: var(--night-text);
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--night-line);
  border-radius: calc(var(--r-lg) - 4px);
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-text .micro { display: block; margin-bottom: 16px; }
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.site-footer {
  border-top: 2px solid var(--rule);
  padding: clamp(40px, 5vw, 64px) var(--gutter) 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.foot-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-h {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 4px;
}
.foot-col a {
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
}
.foot-col a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.foot-col .muted { font-size: 14.5px; }
.foot-fine {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--soft);
}
@media (max-width: 720px) { .foot-cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- legal / support pages ---------- */

.legal-hero {
  padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(32px, 4vw, 48px);
  max-width: 880px;
}
.legal-title {
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 18px 0 16px;
}
.legal-lede { font-size: 1.08rem; line-height: 1.65; color: var(--muted); margin: 0; max-width: 60ch; }
.legal-updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--soft); margin: 22px 0 0; text-transform: uppercase; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: 0 var(--gutter) clamp(56px, 7vw, 96px);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--rule);
}
.legal-toc a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 0 8px 16px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.legal-toc a:hover { color: var(--green); border-left-color: var(--green); }

.legal-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-card);
}
.policy-section { margin-bottom: 36px; }
.policy-section:last-child { margin-bottom: 0; }
.policy-section h2 {
  font-family: var(--display);
  font-weight: 560;
  font-size: 22px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.policy-section p { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin: 0 0 10px; }
.policy-section ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.policy-section a { color: var(--green); }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; border-left: none; border-top: 2px solid var(--rule); padding-top: 12px; }
  .legal-toc a { padding: 4px 0; border-left: none; margin-left: 0; }
}

/* ---------- support page ---------- */

.support-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.support-card { background: var(--card); padding: 28px 26px; }
.support-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--stamp); font-weight: 600; }
.support-card h3 { font-family: var(--display); font-weight: 560; font-size: 19px; margin: 12px 0 8px; }
.support-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
@media (max-width: 720px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
