/* ============================================================
   Quota — design tokens
   Ink/mint system carried over from the app itself (brand
   continuity), extended with a "spec sheet" monospace voice
   for the privacy-disclosure content that's the actual point
   of this site.
   ============================================================ */
:root {
  --ink: #0b0c0f;
  --surface: #15171c;
  --surface-2: #1c1f26;
  --surface-3: #23272f;
  --line: #272b33;
  --line-soft: #1e2128;

  --mint: #00d9a3;
  --mint-bright: #4ff3c8;
  --mint-dim: #0a3d31;
  --gold: #f5b93d;
  --red: #ff6b6b;

  --text: #eceef1;
  --text-dim: #9aa0ab;
  --text-faint: #5c626e;

  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1120px;
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  min-height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 40% at 18% 0%, rgba(0, 217, 163, 0.10), transparent 60%),
    radial-gradient(40% 30% at 100% 10%, rgba(245, 185, 61, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 12, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand .mark { width: 26px; height: 26px; }
.navlinks { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--text-dim); }
.navlinks a { transition: color .15s ease; white-space: nowrap; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--text); }
.nav-cta {
  background: var(--mint); color: #00281e; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; transition: transform .15s ease, background .15s ease;
  touch-action: manipulation;
}
.nav-cta:hover { background: var(--mint-bright); transform: translateY(-1px); }
.nav-toggle { display: none; touch-action: manipulation; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  touch-action: manipulation;
}
.btn-primary { background: var(--mint); color: #00281e; }
.btn-primary:hover { background: var(--mint-bright); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--mint);
  background: var(--mint-dim); border: 1px solid rgba(0, 217, 163, 0.25);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 15ch; }
.hero h1 .accent { color: var(--mint); }
.hero-sub { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--text-dim); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

/* ---------- Ring signature ---------- */
.ring-figure { display: flex; align-items: center; justify-content: center; }
.ring-wrap { position: relative; width: 340px; height: 340px; }
.ring-wrap svg { width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--surface-3); stroke-width: 14; }
.ring-progress {
  fill: none; stroke: var(--mint); stroke-width: 14; stroke-linecap: round;
  transform-origin: 50% 50%; transform: rotate(-90deg);
  stroke-dasharray: 720; stroke-dashoffset: 720;
  animation: ring-fill 1.8s cubic-bezier(.2,.8,.2,1) 0.3s forwards;
}
@keyframes ring-fill { to { stroke-dashoffset: 194; } }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-center .n { font-family: var(--display); font-size: 15px; color: var(--text-faint); letter-spacing: 0.02em; }
.ring-center .v { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--text); margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .ring-progress { animation: none; stroke-dashoffset: 194; } }

/* ---------- Receipt / spec-sheet block ---------- */
.receipt {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.receipt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--text-faint);
}
.receipt-head .path { color: var(--text-dim); }
.receipt-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; border-bottom: 1px solid var(--line-soft);
  gap: 16px;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-key { color: var(--text-dim); }
.receipt-val { display: flex; align-items: center; gap: 8px; color: var(--text); flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.receipt-val.no { color: var(--text-faint); }
.tag { font-size: 10.5px; padding: 2px 7px; border-radius: 5px; letter-spacing: 0.03em; }
.tag-off { background: rgba(255,107,107,0.12); color: var(--red); border: 1px solid rgba(255,107,107,0.25); }
.tag-on { background: rgba(0,217,163,0.12); color: var(--mint); border: 1px solid rgba(0,217,163,0.25); }

/* ---------- Sections ---------- */
section { padding: 88px 0; position: relative; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--mint); text-transform: uppercase; margin-bottom: 14px; display: block; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 16px; color: var(--text-dim); font-size: 17px; line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
}
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--mint-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--mint);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

.divider { height: 1px; background: var(--line-soft); border: none; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--mint) 0%, var(--gold) 130%);
  border-radius: 28px; padding: 64px 56px; color: #0c1210;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { color: #0c1210; font-size: clamp(26px, 3.4vw, 36px); max-width: 20ch; }
.cta-band p { color: rgba(12,18,16,0.72); margin-top: 10px; font-size: 15.5px; }
.cta-band .btn-primary { background: #0c1210; color: #fff; }
.cta-band .btn-primary:hover { background: #1a2320; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.foot-brand .mark { width: 22px; height: 22px; }
.foot-col h4 { font-family: var(--body); font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; font-weight: 600; }
.foot-col ul { display: flex; flex-direction: column; gap: 11px; }
.foot-col a { color: var(--text-dim); font-size: 14.5px; transition: color .15s ease; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: 13px; }
.foot-bottom .disclosure { max-width: 60ch; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; }

/* ---------- Legal doc layout ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 92px; }
.legal-toc summary {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 16px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 4px 0;
}
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after {
  content: "▾"; color: var(--mint); font-size: 11px; transition: transform .15s ease;
}
.legal-toc details[open] summary::after { transform: rotate(180deg); }
.legal-toc summary:hover { color: var(--text-dim); }
.legal-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-dim);
  transition: background .15s ease, color .15s ease;
}
.legal-toc a::before { content: counter(toc); font-family: var(--mono); color: var(--text-faint); }
.legal-toc a:hover { background: var(--surface); color: var(--text); }

.legal-body h2 { font-size: 15px; font-family: var(--mono); color: var(--mint); text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 4px; }
.legal-section { padding: 34px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 90px; }
.legal-section:first-child { padding-top: 0; }
.legal-section h3 { font-family: var(--body); font-size: 22px; font-weight: 600; margin: 6px 0 16px; color: var(--text); }
.legal-section p, .legal-section li { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; }
.legal-section p + p, .legal-section ul { margin-top: 14px; }
.legal-section ul { display: flex; flex-direction: column; gap: 10px; padding-left: 22px; }
.legal-section li { list-style: disc; }
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--mint);
  border-radius: 10px; padding: 18px 20px; font-size: 14.5px; color: var(--text-dim); margin-top: 18px;
}
.legal-callout.warn { border-left-color: var(--gold); }
.legal-meta { font-family: var(--mono); font-size: 13px; color: var(--text-faint); margin-bottom: 8px; }

/* ---------- Misc page bits ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero .kicker { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); max-width: 18ch; }
.page-hero p { margin-top: 18px; color: var(--text-dim); font-size: 18px; max-width: 52ch; }

.principles { display: flex; flex-direction: column; }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line-soft); }
.principle:last-child { border-bottom: 1px solid var(--line-soft); }
.principle .num { font-family: var(--mono); color: var(--mint); font-size: 15px; }
.principle h3 { font-size: 20px; margin-bottom: 8px; }
.principle p { color: var(--text-dim); font-size: 15.5px; line-height: 1.65; max-width: 62ch; }

.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line-soft); }
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step .badge { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--mint); }
.step h4 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.step code { font-family: var(--mono); background: var(--surface-3); padding: 2px 7px; border-radius: 5px; font-size: 13px; color: var(--mint-bright); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-card .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--mint-dim); display: flex; align-items: center; justify-content: center; color: var(--mint); margin-bottom: 18px; }
.contact-card h3 { font-size: 18px; margin-bottom: 8px; }
.contact-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 16px; }
.contact-card a.email { font-family: var(--mono); color: var(--mint); font-size: 15px; }

.faq-item { padding: 24px 0; border-top: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-item h4 { font-size: 16.5px; margin-bottom: 8px; }
.faq-item p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ring-figure { order: -1; }
  .ring-wrap { width: 240px; height: 240px; }
  .nav-cta { display: none; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; margin-bottom: 12px; }
  .navlinks {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 28px 16px;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line); color: var(--text);
    width: 44px; height: 44px; border-radius: 10px; font-size: 16px; cursor: pointer;
  }
  .cta-band { flex-direction: column; text-align: center; padding: 48px 28px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 64px 0 48px; }
  section { padding: 64px 0; }
  .receipt-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .receipt-val { justify-content: flex-start; text-align: left; }
  .receipt-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band h2 { font-size: 24px; }
}
