/* Parynth — parynth.com
   Tokens follow the Complete Brand Manual §9. Light values are chosen for
   contrast on white rather than inverted: Execution Green at #25D07F reads
   1.9:1 on white, so the light theme darkens it to #0E7A49 (4.8:1). */

:root {
  --bg: #07111F;
  --bg-band: #091522;
  --panel: #0D1B2A;
  --sunk: #0A1420;
  --rule: #1B2C3F;
  --rule-soft: #14243A;
  --rule-strong: #2B4059;
  --rule-strong-2: #36506E;
  --ink: #F5F7FA;
  --ink-2: #DCE4EE;
  --ink-3: #C8D3E0;
  --body: #A9B7C7;
  --muted: #91A0B5;
  --accent: #6D3EF2;
  --accent-text: #A99CFF;
  --accent-hover: #C4BAFF;
  --accent-edge: #3A2E86;
  --accent-wash: #0F1E30;
  --green: #3FDC93;
  --green-wash: #0A2620;
  --blue: #5FA3FF;
  --amber: #EAB857;
  --dim: #7A8CA3;
  --shadow: none;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-band: #F4F7FA;
  --panel: #FFFFFF;
  --sunk: #F6F8FB;
  --rule: #DCE3EB;
  --rule-soft: #E2E8EF;
  --rule-strong: #C2CDD9;
  --rule-strong-2: #B5C1CF;
  --ink: #0B1420;
  --ink-2: #1E2D3C;
  --ink-3: #35475A;
  --body: #45576A;
  --muted: #55677A;
  --accent: #6D3EF2;
  --accent-text: #5A2FD8;
  --accent-hover: #4725B5;
  --accent-edge: #D7CDFA;
  --accent-wash: #F2EEFE;
  --green: #0E7A49;
  --green-wash: #E1F4E9;
  --blue: #1A5FC4;
  --amber: #86600A;
  --dim: #55677A;
  --shadow: 0 1px 2px rgba(11, 20, 32, .05), 0 1px 3px rgba(11, 20, 32, .04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .18s ease, color .18s ease;
}

h1, h2, h3, .wordmark {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mono {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #FFF;
  padding: 12px 18px; border-radius: 0 0 5px 0; z-index: 50;
  text-decoration: none; font-size: 14px; font-weight: 600;
}
.skip:focus { left: 0; color: #FFF; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 64px); }

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

.site-head { border-bottom: 1px solid var(--rule-soft); }

.nav {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 32px; padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.wordmark { font-size: 17px; font-weight: 700; letter-spacing: .15em; }

.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; flex-grow: 1; }
.nav-links a { font-size: 14px; color: var(--ink-3); text-decoration: none; padding-block: 12px; }
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.quiet { font-size: 14px; color: var(--ink-3); text-decoration: none; padding: 12px 4px; }
.quiet:hover { color: var(--ink); }

.theme-switch {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 12px;
  background: var(--sunk); border: 1px solid var(--rule); border-radius: 4px;
  color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.theme-switch:hover { color: var(--ink); border-color: var(--rule-strong); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 20px;
  border-radius: 5px; text-decoration: none;
  font-size: 14px; font-weight: 600; line-height: 1.2;
}
.btn-lg { min-height: 48px; padding: 14px 28px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
[data-theme="light"] .btn-primary:hover { color: #FFFFFF; }
.btn-ghost { border: 1px solid var(--rule-strong-2); color: var(--ink-2); font-weight: 500; }
.btn-ghost:hover { color: var(--ink); border-color: var(--rule-strong); }

/* ---------- type scale ---------- */

h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1; font-weight: 700; margin: 0; }
.h-xl { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.08; font-weight: 700; margin: 0 0 16px; }
.h-lg { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; font-weight: 600; margin: 0 0 16px; max-width: 22em; }
.h-md { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; font-weight: 600; margin: 0 0 16px; }

.eyebrow {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 14px;
}
.eyebrow.muted { color: var(--muted); }

.lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-3); margin: 0; max-width: 34em; }
.sub { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; color: var(--body); margin: 0 0 40px; max-width: 60em; }
.sub.center { text-align: center; margin-inline: auto; margin-bottom: 30px; }
.cap {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}

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

.hero {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 88px);
}
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: clamp(18px, 2vw, 26px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.convergence { flex: 1 1 380px; min-width: 0; padding: clamp(20px, 2.5vw, 30px); }

.venue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.venue-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--sunk); border: 1px solid var(--rule);
  border-radius: 5px; padding: 13px 16px;
  font-size: 13.5px; color: var(--ink-3);
}
.venue-list .mono { font-size: 14px; color: var(--ink); }

.arrow { display: flex; justify-content: center; padding: 6px 0; color: var(--accent-text); }

.canonical { background: var(--accent-wash); border: 1px solid var(--accent-edge); border-radius: 5px; padding: 16px; }
.canonical-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 13.5px; }

.tag { font-size: 10px; letter-spacing: .08em; padding: 3px 8px; border-radius: 3px; }
.tag-ok { background: var(--green-wash); color: var(--green); }

.metrics { display: flex; flex-wrap: wrap; gap: 16px 26px; margin: 0; }
.metrics dt {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
}
.metrics dd { margin: 3px 0 0; font-size: 19px; color: var(--ink); }
.metrics .pos { color: var(--green); }

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

.band { background: var(--bg-band); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.band .wrap { padding-block: clamp(40px, 5vw, 64px); }
.section { padding-block: clamp(48px, 6vw, 80px); }

.grid { display: grid; gap: 20px; }
.grid-220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: 6px; padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 18px; font-weight: 600; margin: 12px 0 8px; }
.card p { font-size: 13.5px; line-height: 1.55; color: var(--body); margin: 0; }
.card .step { font-size: 10px; letter-spacing: .1em; color: var(--accent-text); margin: 0; }

.lifecycle {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: 6px; overflow: hidden;
}
.lifecycle article { background: var(--panel); padding: 28px 22px; }
.lifecycle h3 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.lifecycle p { font-size: 13px; line-height: 1.55; color: var(--body); margin: 0; }

/* ---------- api split ---------- */

.split {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px);
}
.split-copy { flex: 1 1 400px; min-width: 0; }
.split-copy .sub { margin-bottom: 22px; }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-3); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 15px; height: 9px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.code-panel { flex: 1 1 380px; min-width: 0; background: var(--sunk); padding: clamp(18px, 2vw, 26px); overflow-x: auto; }
.code-panel pre { margin: 0; font-size: 12.5px; line-height: 1.85; color: var(--body); }
.c-verb { color: var(--green); }
.c-dim { color: var(--dim); }
.c-key { color: var(--blue); }
.c-str { color: var(--amber); }
.c-num { color: var(--ink); }

/* ---------- closing ---------- */

.closing { padding-block: clamp(56px, 7vw, 88px); text-align: center; }

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

.site-foot { border-top: 1px solid var(--rule-soft); }
.foot-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-block: 30px;
}
.brand-sm { display: flex; align-items: center; gap: 10px; }
.brand-sm .mono { font-size: 11.5px; color: var(--muted); }
.disclaimer { font-size: 11.5px; line-height: 1.6; color: var(--muted); margin: 0; flex: 1 1 420px; min-width: 0; text-align: right; }

@media (max-width: 700px) {
  .disclaimer { text-align: left; }
}

/* ------------------------------------------------------------ the form -- */
/* One form for both requests. The two buttons it replaces were mailto: links,
   which hand the visitor off to whatever the operating system thinks an email
   client is — on a machine with none configured that is a chooser dialog, and
   on a shared browser it is nothing at all. */

.reveal { max-width: 660px; margin: 0 auto; }
.reveal-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; list-style: none; user-select: none;
}
/* Both are needed: the pseudo-element for WebKit, list-style for the rest. */
.reveal-trigger::-webkit-details-marker { display: none; }
.reveal[open] .reveal-trigger { display: none; }
.reveal-trigger:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* A panel, so the form reads as one object rather than loose fields sitting on
   the page band. Text goes left even though the section above it is centred:
   centred labels over left-aligned inputs is the arrangement that made this
   look unfinished. */
.request-form {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  display: flex; flex-direction: column; gap: 18px;
}

.field { margin: 0; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field-row .field { flex: 1 1 220px; }

.request-form label, .request-form legend {
  font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0;
  letter-spacing: 0.005em;
}
.opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.request-form input[type="text"],
.request-form input[type="email"],
.request-form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--sunk); border: 1px solid var(--rule-strong);
  border-radius: 5px; padding: 11px 13px; min-height: 46px;
  transition: border-color .12s ease;
}
.request-form input::placeholder, .request-form textarea::placeholder { color: var(--dim); }
.request-form textarea { min-height: 88px; resize: vertical; }
.request-form input:hover, .request-form textarea:hover { border-color: var(--rule-strong-2); }
.request-form input:focus-visible, .request-form textarea:focus-visible {
  outline: 2px solid var(--accent-text); outline-offset: 1px; border-color: var(--accent-text);
}

/* The radio group sits on its own row and fills the width: it is the first
   question, and the answer changes who reads the request. */
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 9px; }
.choice {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--sunk); border: 1px solid var(--rule-strong);
  border-radius: 5px; padding: 10px 16px; min-height: 44px; flex: 1 1 auto;
  justify-content: center; transition: border-color .12s ease, background .12s ease;
}
.choice input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.choice span { font-size: 14.5px; color: var(--ink-2); font-weight: 400; white-space: nowrap; }
.choice:hover { border-color: var(--rule-strong-2); }
.choice:has(input:checked) { border-color: var(--accent-text); background: var(--accent-wash); }
.choice:has(input:checked) span { color: var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 1px; }

/* The jurisdiction note belongs to the row, not to one column: hanging it under
   a single input made that column taller than its neighbour and pulled the row
   out of line. */
.row-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: -6px 0 0; }

.form-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding-top: 4px; border-top: 1px solid var(--rule); margin-top: 2px;
}
.form-actions { padding-top: 18px; }
.form-actions .btn { border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; }
#form-status:not(:empty) { color: var(--green); }
#form-status.is-error { color: var(--amber); }

/* The honeypot. Hidden from sight and from assistive technology, because a
   visitor who cannot see it must not be asked to fill it in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { text-align: center; font-size: 12.5px; color: var(--muted); margin: 22px 0 0; }

.form-done {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--accent-wash); border: 1px solid var(--accent-edge);
  border-radius: 8px; padding: 24px 26px;
}
.done-head {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 0 8px;
}
.done-body { font-size: 14.5px; line-height: 1.6; color: var(--ink-3); margin: 0; }
.form-done:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

/* --------------------------------------------------------- small pages -- */

.page-narrow { max-width: 620px; margin-inline: auto; padding-block: clamp(70px, 12vh, 140px); text-align: center; }
.page-narrow .sub { margin-inline: auto; }
.page-narrow .cta-row { justify-content: center; margin-top: 8px; }
.page-note {
  margin: 34px auto 0; max-width: 54ch; padding: 16px 18px; text-align: left;
  background: var(--accent-wash); border: 1px solid var(--accent-edge); border-radius: 6px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-3);
}
