/* Hermod site design system — tokens carried over from the approved cowork
   mockup (hermodwebsitemockup.html in the handoff folder). */

:root {
  --ink: #0a1220;
  --gold: #efbe2f;
  --gold-soft: #ffd75c;
  --gold-deep: #b98d10;
  --paper: #ffffff;
  --surface: #f5f8fc;
  --line: #dde5f0;
  --line-strong: #c6d3e4;
  --text: #132033;
  --text-muted: #54677f;
  --text-faint: #7b8ca3;
  --ok: #1a7f5a;
  --ok-bg: #e7f5ef;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(12, 28, 52, .06), 0 2px 8px rgba(12, 28, 52, .05);
  --shadow-md: 0 4px 12px rgba(12, 28, 52, .08), 0 16px 40px rgba(12, 28, 52, .10);
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: inherit; }

/* Header */

.site-header {
  background: var(--ink);
  color: #fff;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.wordmark {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  text-decoration: none;
  color: #fff;
}

.wordmark-dot { color: var(--gold); }

.site-nav a {
  color: #c9d6e8;
  text-decoration: none;
  margin-left: 1.4rem;
  font-size: .95rem;
}

.site-nav a:hover { color: #fff; }

/* Hero */

.hero {
  background: var(--ink);
  color: #fff;
  padding: 4.5rem 0 5rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 1rem;
  max-width: 21ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-soft);
}

/* .hero .wrap > .lede out-specifies the generic .wrap > .lede reset further
   down, which was stripping the centering margin and muted-on-dark color. */
.hero .wrap > .lede {
  color: #9fb6d2;
  font-size: 1.15rem;
  max-width: 56ch;
  margin: 0 auto 2rem;
}

.hero .serif-note {
  font-family: var(--serif);
  font-style: italic;
  color: #9fb6d2;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: .7rem 1.3rem;
  border-radius: var(--radius-sm);
}

.btn:hover { background: var(--gold-soft); }

/* Pillars */

.pillars {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.7rem;
}

.pillar h2 {
  font-size: 1.25rem;
  letter-spacing: -.015em;
  margin: 0 0 .5rem;
}

.pillar p {
  color: var(--text-muted);
  margin: 0;
}

/* Generic page (privacy, docs) */

.page {
  padding: 3rem 0 4rem;
}

.page-narrow { max-width: 760px; }

.page h1 {
  font-size: 2.1rem;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 .4rem;
}

.page h2 {
  font-size: 1.3rem;
  letter-spacing: -.015em;
  margin: 2.2rem 0 .6rem;
}

.page .effective {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.page p, .page li { color: var(--text); }

.page li { margin: .35rem 0; }

.page code {
  font-family: var(--mono);
  font-size: .87em;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .1em .38em;
  border-radius: 5px;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #c9d6e8;
  padding: 2.8rem 0;
  font-size: .95rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-wordmark { font-size: 1.15rem; }

.footer-tag {
  color: #9fb6d2;
  max-width: 38ch;
  margin: .6rem 0 0;
}

.footer-meta { text-align: right; }

.footer-meta p { margin: .3rem 0; }

.footer-meta a { color: #c9d6e8; }

@media (max-width: 640px) {
  .footer-meta { text-align: left; }
}

/* ============================================================
   Landing page sections (second wave — ported from the approved
   mockup's design system)
   ============================================================ */

.center { text-align: center; }

.hero .btn-row {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.6rem 0 0;
}

.pill-coming {
  display: inline-block;
  border: 1px solid rgba(239, 190, 47, .55);
  color: var(--gold-soft);
  font-weight: 650;
  font-size: .92rem;
  padding: .66rem 1.2rem;
  border-radius: var(--radius-sm);
}

.hero .lede { margin-inline: auto; }
.hero h1 { margin-inline: auto; }
.hero .serif-note { margin-top: 1.4rem; }

.hero-proof {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.8rem 0 0;
  font-size: .9rem;
  color: #9fb6d2;
}

.hero-proof .dot,
.pill .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: .5rem;
  vertical-align: 2px;
}

.hero-shot {
  margin: 2.8rem auto 0;
  max-width: 980px;
}

.hero-shot img,
.screen-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-md);
}

.hero-shot figcaption {
  margin-top: .8rem;
  font-size: .83rem;
  color: #66809f;
}

/* Sections */

section { padding: 4.2rem 0; }
section.hero { padding: 4.5rem 0 4.8rem; }

.tint {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-dark {
  background: var(--ink);
  color: #fff;
}

.band-dark .lede, .band-dark p { color: #9fb6d2; }
.band-dark h2, .band-dark h3 { color: #fff; }

.sec-head { max-width: 720px; margin-bottom: 2.4rem; }
.sec-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 750;
  color: var(--gold-deep);
  margin: 0 0 .5rem;
}

.eyebrow.on-dark { color: var(--gold-soft); }

section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -.02em;
  line-height: 1.18;
  margin: 0 0 .7rem;
}

.sec-head .lede, .wrap > .lede {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0;
}

.band-dark .sec-head .lede { color: #9fb6d2; }

.narrow { max-width: 760px; }

/* Before / after */

.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.ba-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.7rem;
}

.ba-col.herm { border-color: rgba(239, 190, 47, .55); }

.ba-col h3 {
  font-size: 1.02rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .18em .7em;
  border-radius: 20px;
}

.pill-grey { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-muted); }
.pill-gold { background: rgba(239, 190, 47, .18); border: 1px solid rgba(185, 141, 16, .4); color: var(--gold-deep); }

ol.steps {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--text-muted);
}

ol.steps li { margin: .4rem 0; }

.ba-total {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: .7rem;
}

.ba-total b { font-size: 1.35rem; letter-spacing: -.02em; }
.ba-total span { color: var(--text-faint); font-size: .88rem; }

/* Stats band */

.stats-band { padding: 3.4rem 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

.stat b {
  display: block;
  font-size: 1.9rem;
  letter-spacing: -.03em;
  color: var(--gold-soft);
}

.stat span {
  display: block;
  font-weight: 650;
  color: #fff;
  margin: .15rem 0 .3rem;
}

.stat em {
  display: block;
  font-style: normal;
  font-size: .85rem;
  color: #66809f;
}

.stats-note {
  margin: 1.6rem 0 0;
  font-size: .83rem;
  color: #66809f;
}

/* How it works */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.flow-num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-soft);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .8rem;
}

.flow-step h3 { font-size: 1.12rem; margin: 0 0 .4rem; }
.flow-step p { color: var(--text-muted); margin: 0; }

.how-cta {
  margin-top: 2.6rem;
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1d2f4a; }

.aside-note { font-size: .9rem; color: var(--text-faint); }

/* Inside the app */

.screen-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.2rem;
  align-items: center;
  margin-top: 2.6rem;
}

.screen-row.flip { grid-template-columns: 2fr 3fr; }
.screen-row.flip .screen-shot { order: 2; }

@media (max-width: 860px) {
  .screen-row, .screen-row.flip { grid-template-columns: 1fr; gap: 1.1rem; }
  .screen-row.flip .screen-shot { order: 0; }
}

.screen-copy h3 { font-size: 1.15rem; margin: 0 0 .45rem; }
.screen-copy p { margin: 0; font-size: .97rem; }
.screen-copy b { color: #dbe7f5; }

.screen-shot { margin: 0; }
.screen-shot.standalone img { border-color: var(--line-strong); }

/* Feature cards */

.grid { display: grid; gap: 1.3rem; }
.g3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 960px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.5rem;
}

.card h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.card p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* Reconciliation */

.recon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

.recon-story {
  background: var(--paper);
  border: 1px solid rgba(239, 190, 47, .55);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.7rem;
}

.recon-story h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.recon-story p { color: var(--text-muted); }
.recon-story p:last-child { margin-bottom: 0; }

.recon-steps {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--text-muted);
}

.recon-steps li { margin: 0 0 1rem; }
.recon-steps b { color: var(--text); }

/* Founder story */

.story-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 2.6rem;
  align-items: start;
}

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

.story-text p { color: var(--text-muted); margin: 0 0 1rem; }

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--text);
  border-left: 3px solid var(--gold);
  margin: 1.8rem 0 0;
  padding: .2rem 0 .2rem 1.2rem;
}

.vignettes { display: grid; gap: 1.1rem; }

.vignette {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}

.vignette h3 { font-size: .98rem; margin: 0 0 .35rem; }
.vignette p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* Trust */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem;
  align-items: center;
}

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

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  font-size: .95rem;
  color: var(--text-muted);
}

.check-list li { display: flex; gap: .65rem; padding: .42rem 0; }

.check-list li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 800;
}

.trust-link { margin-top: 1.5rem; }

/* Pricing */

.price-card {
  max-width: 440px;
  border-color: rgba(239, 190, 47, .55);
  box-shadow: 0 2px 10px rgba(190, 150, 30, .1);
}

.price-card h3 { margin-bottom: .15rem; }

.card p.price {
  font-size: 2.1rem;
  font-weight: 780;
  color: var(--ink);
  letter-spacing: -.03em;
  margin: .3rem 0 .2rem;
}

.price span { font-size: .9rem; font-weight: 500; color: var(--text-faint); }

.card p.price-sub { font-size: .86rem; color: var(--text-faint); margin-bottom: .9rem; }

/* FAQ */

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: .7rem;
  padding: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: .9rem 1.2rem;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2rem;
  color: var(--gold-deep);
  font-weight: 800;
}

.faq details[open] summary::before { content: "–"; }

.faq .ans { padding: 0 1.2rem 1rem 2.4rem; }
.faq .ans p { color: var(--text-muted); margin: 0; }

/* Final CTA */

.final-cta h2 { max-width: 18ch; margin-inline: auto; }
.final-cta .lede { margin: 1.1rem auto 0; max-width: 52ch; }

.center-row { justify-content: center; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1.9rem; }

.final-cta .serif-note { margin: 2rem 0 0; color: #7c96b6; font-family: var(--serif); font-style: italic; }

/* ============================================================
   Docs
   ============================================================ */

.docs-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding-top: 2.6rem;
  padding-bottom: 4rem;
  align-items: start;
}

@media (max-width: 820px) {
  .docs-shell { grid-template-columns: 1fr; gap: 1.6rem; }
}

.grouplabel {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 750;
  color: var(--text-faint);
  margin: 0 0 .7rem;
}

.docsnav { display: grid; gap: .15rem; }

.docsnav a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .93rem;
  padding: .42rem .6rem;
  border-radius: var(--radius-sm);
}

.docsnav a:hover { background: var(--surface); color: var(--text); }

.docsnav a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
}

.docsnav .num {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.docs-main { min-width: 0; }

.crumb {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
  margin: 0 0 1rem;
}

.doc h1 {
  font-size: 1.9rem;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 .7rem;
}

.doc h2 { font-size: 1.25rem; letter-spacing: -.015em; margin: 2rem 0 .5rem; }
.doc h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.doc p, .doc li { color: var(--text); }
.doc > p:first-of-type { color: var(--text-muted); font-size: 1.05rem; }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  margin: 1.4rem 0;
}

.callout.warn { border-left-color: var(--ok); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.doc-steps {
  list-style: none;
  counter-reset: docstep;
  padding: 0;
  margin: 2rem 0;
}

.doc-steps > li {
  counter-increment: docstep;
  position: relative;
  padding: 0 0 1.8rem 3rem;
  border-left: 1px solid var(--line);
  margin-left: 1rem;
}

.doc-steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }

.doc-steps > li::before {
  content: counter(docstep);
  position: absolute;
  left: -1.05rem;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-soft);
  font-weight: 800;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-steps h3 { margin-top: .25rem; }

.path {
  display: inline-block;
  font-family: var(--mono);
  font-size: .82em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .15em .6em;
  color: var(--text-muted);
}

.docnav-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.docnav-foot a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
}

.docnav-foot a span {
  display: block;
  font-size: .75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: .15rem;
}

.docnav-foot .next { text-align: right; }

.docs-index { padding-left: 1.2rem; }
.docs-index li { margin: .6rem 0; }

/* Footer extras */

.footer-head {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  font-weight: 750;
  color: #7c96b6;
  margin: 0 0 .5rem;
}

.footer-links p { margin: .3rem 0; }
.footer-links a { color: #c9d6e8; }

.recon-shot { margin: 0 0 2.2rem; max-width: 980px; }

.recon-shot figcaption {
  margin-top: .8rem;
  font-size: .83rem;
  color: var(--text-faint);
}
