/* ============================================================
   Content pages. Sits on top of site.css and reuses its tokens.
   Nothing here overrides the landing page.
   ============================================================ */

/* The landing page's wordmark cycles through faces and its script sets the slot
   width in px. Content pages don't load that script, so the slot would collapse
   to zero and the word would sit on top of the logo. Make it a normal word. */
.nav-mark { position: static; display: inline-block; height: auto; width: auto; }
.nav-mark span { position: static; transform: none; }

/* the same left rail as everything below the hero on the landing page */
.rail {
  width: min(var(--rail), 92vw);
  margin: 0 auto;
}

/* .section on the landing page is a full-height flex box that vertically
   centres one child. Content pages stack several blocks instead, so they
   opt out of both. */
.doc-hero, .doc-section { display: block; min-height: 0; }

/* ---- document hero -------------------------------------------- */
.doc-hero {
  min-height: 0;
  padding-top: clamp(120px, 16vh, 190px);
  padding-bottom: var(--sp-m);
}
.eyebrow {
  font: 500 var(--t-label)/1 "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8A8178;
  margin-bottom: var(--sp-s);
}
.doc-h1 {
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -.02em;
  font-weight: 800;
  max-width: 16ch;
}
.doc-sub {
  margin-top: var(--sp-s);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: #4A423A;
  max-width: 54ch;
}

/* ---- generic content section ---------------------------------- */
.doc-section { min-height: 0; padding-top: var(--sp-m); padding-bottom: var(--sp-m); }
.doc-hero + .doc-section { padding-top: var(--sp-l); }
.doc-section:last-of-type { padding-bottom: var(--sp-l); }

/* ---- prose (legal, about) ------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 {
  font-size: var(--t-h2);
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 800;
  margin-top: var(--sp-l);
  margin-bottom: var(--sp-s);
  scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  margin-top: var(--sp-m);
  margin-bottom: 8px;
}
.prose p, .prose li {
  font-size: var(--t-body);
  line-height: 1.7;
  color: #3B342D;
}
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 0; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* a fact the reader should be able to find fast */
.callout {
  border: 1px solid rgba(26,19,13,.10);
  background: rgba(255,255,255,.55);
  border-radius: 14px;
  padding: var(--sp-s) var(--sp-s);
  margin: var(--sp-m) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* a line that must not be missed before the page goes live */
.todo {
  border-left: 3px solid #C2410C;
  background: rgba(194,65,12,.06);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin: var(--sp-s) 0;
  font: 500 14px/1.6 "DM Mono", ui-monospace, monospace;
  color: #7C2D12;
}

/* ---- table of contents ---------------------------------------- */
.toc { margin: var(--sp-m) 0 0; padding: 0; list-style: none; columns: 2; column-gap: var(--sp-m); }
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc a { font-size: var(--t-body); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .toc { columns: 1; } }

/* ---- key/value block (company details, contact) --------------- */
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px var(--sp-s); margin: var(--sp-s) 0 0; }
.kv dt {
  font: 500 var(--t-label)/1.5 "DM Mono", ui-monospace, monospace;
  letter-spacing: .1em; text-transform: uppercase; color: #8A8178; padding-top: 3px;
}
.kv dd { font-size: var(--t-body); line-height: 1.6; color: #3B342D; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; gap: 2px var(--sp-s); }
  .kv dd { margin-bottom: 12px; } }

/* ---- big contact / stat row ----------------------------------- */
.lead-link {
  display: inline-block;
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 2px;
}
.lead-link:hover { color: var(--accent-deep); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-m); margin: var(--sp-m) 0 0; }
.stat-row .fig {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
.stat-row .cap { margin-top: 8px; font-size: var(--t-body); color: #5A5149; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; gap: var(--sp-s); } }

/* ---- two-column cards ----------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-m); margin-top: var(--sp-m); }
.cards .card {
  border: 1px solid rgba(26,19,13,.10);
  background: rgba(255,255,255,.5);
  border-radius: 16px;
  padding: var(--sp-s);
}
.cards .card h3 { font-size: var(--t-h3); font-weight: 700; margin-bottom: 8px; }
.cards .card p { font-size: var(--t-body); line-height: 1.6; color: #3B342D; margin: 0; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

/* ---- pricing page extras -------------------------------------- */
.faq-pairs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-m); margin-top: var(--sp-m); }
.faq-pairs h3 { font-size: var(--t-h3); font-weight: 700; margin-bottom: 6px; }
.faq-pairs p { font-size: var(--t-body); line-height: 1.7; color: #3B342D; margin: 0; max-width: 46ch; }
@media (max-width: 720px) { .faq-pairs { grid-template-columns: 1fr; } }

/* ---- updated stamp -------------------------------------------- */
.stamp {
  font: 500 var(--t-label)/1.6 "DM Mono", ui-monospace, monospace;
  letter-spacing: .08em; text-transform: uppercase; color: #8A8178;
  margin-top: var(--sp-l);
  padding-top: var(--sp-s);
  border-top: 1px solid rgba(26,19,13,.10);
}

/* ---- features index -------------------------------------------- */
.f-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-m) var(--sp-m); margin-top: var(--sp-l); }
.f-card h3 { font-size: var(--t-h3); font-weight: 700; margin-bottom: 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.f-card h3 a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); }
.f-card h3 a:hover { color: var(--accent-deep); }
.f-state {
  font: 500 10.5px/1 "DM Mono", ui-monospace, monospace;
  letter-spacing: .1em; text-transform: uppercase; color: #8A8178;
  border: 1px solid rgba(26,19,13,.14); border-radius: 100px; padding: 4px 8px;
}
.f-state.f-free { color: var(--accent-deep); border-color: rgba(10,122,119,.3); }
.f-line { font-size: var(--t-body); font-weight: 700; color: var(--ink); margin-bottom: 6px !important; }
.f-card p { font-size: var(--t-body); line-height: 1.65; color: #3B342D; margin: 0; max-width: 46ch; }
@media (max-width: 760px) { .f-grid { grid-template-columns: 1fr; gap: var(--sp-m); } }

/* ---- numbered steps -------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-m); margin-top: var(--sp-m); }
.step { border-top: 2px solid var(--ink); padding-top: var(--sp-s); }
.step-n {
  display: inline-block;
  font: 500 var(--t-label)/1 "DM Mono", ui-monospace, monospace;
  letter-spacing: .1em; color: #8A8178; margin-bottom: 10px;
}
.step h3 { font-size: var(--t-h3); font-weight: 700; margin-bottom: 8px; }
.step p { font-size: var(--t-body); line-height: 1.65; color: #3B342D; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: var(--sp-s); } }

/* ---- plan comparison table ------------------------------------- */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.cmp-wrap { margin-top: var(--sp-l); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
.cmp thead th {
  vertical-align: bottom; text-align: center; padding: 0 12px 16px;
  position: relative; width: 17%;
}
.cmp thead th.hi { background: rgba(255,255,255,.6); border-radius: 14px 14px 0 0; }
.cmp tfoot td.c { padding-top: 18px; }
.cmp tfoot td:nth-child(3) { background: rgba(255,255,255,.6); border-radius: 0 0 14px 14px; padding-bottom: 18px; }
.cmp tbody tr td:nth-child(3) { background: rgba(255,255,255,.6); }
.cmp-tag {
  display: inline-block; margin-bottom: 8px;
  background: var(--ink); color: #fff;
  font: 600 10px/1 "DM Mono", ui-monospace, monospace; letter-spacing: .06em;
  padding: 5px 9px; border-radius: 999px;
}
.cmp-name { display:block; font-size: var(--t-h3); font-weight: 700; }
.cmp-price { display:block; font-size: clamp(26px,2.6vw,34px); font-weight: 800; letter-spacing:-.02em; line-height:1.1; margin-top: 2px; }
.cmp-price small { font-size: 14px; font-weight: 600; color:#8A8178; letter-spacing:0; }
.cmp-sub { display:block; font-size: 12px; color:#8A8178; margin-top: 4px; }

.cmp tbody th[scope="row"] {
  text-align: left; font-weight: 400; font-size: var(--t-body);
  color: #3B342D; padding: 11px 16px 11px 0; width: 49%;
}
.cmp tr.grp th {
  text-align: left; padding: var(--sp-m) 0 8px;
  font: 500 var(--t-label)/1 "DM Mono", ui-monospace, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: #8A8178;
}
.cmp tr.grp:first-child th { padding-top: 6px; }
.cmp tbody tr:not(.grp) { border-top: 1px solid rgba(26,19,13,.07); }
.cmp td.c { text-align: center; padding: 11px 12px; font-size: 14px; }
.cmp .tick { color: var(--accent-deep); font-size: 16px; }
.cmp .dash { color: #C3BBB2; }
.cmp td.soon { color: #8A8178; font-size: 12.5px; }
.cmp td.txt { color: #3B342D; font-size: 13.5px; }

.cmp-btn {
  display: inline-block; padding: 11px 18px; border-radius: 100px;
  border: 1px solid rgba(26,19,13,.22); background: rgba(255,255,255,.6);
  color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none;
  white-space: nowrap;
}
.cmp-btn:hover { background: rgba(255,255,255,.95); color: var(--ink); }
.cmp-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.cmp-btn.primary:hover { background: #09a8a3; color: var(--accent-ink); }

.fine { list-style: none; padding-left: 0; }
.fine li { padding-left: 18px; position: relative; margin-bottom: 11px; }
.fine li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1px; background: #B9B0A6; }

@media (max-width: 720px) {
  .cmp-wrap { margin-inline: calc(var(--sp-s) * -1); padding-inline: var(--sp-s); }
}

/* ---- earnings calculator ---------------------------------------- */
.calc-section { padding-top: var(--sp-m); }
.calc {
  border: 1px solid rgba(26,19,13,.10);
  background: rgba(255,255,255,.6);
  border-radius: 20px;
  padding: clamp(20px, 2.6vw, 34px);
}
.calc-controls { display: grid; gap: var(--sp-m); }
.cc label { display:block; font: 500 var(--t-label)/1 "DM Mono", ui-monospace, monospace;
  letter-spacing:.12em; text-transform:uppercase; color:#8A8178; margin-bottom: 10px; }
.views-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
#views {
  width: 190px; height: 52px; border-radius: 100px;
  border: 1px solid rgba(26,19,13,.16); background: rgba(255,255,255,.85);
  padding: 0 20px; font-family: inherit; font-size: 20px; font-weight: 700;
  color: var(--ink); -webkit-appearance:none; appearance:none;
}
#views:focus { outline: 2px solid var(--accent); outline-offset:1px; border-color:transparent; }
.view-presets { display:flex; gap:6px; }
.view-presets button, .pills button {
  border: 1px solid rgba(26,19,13,.16); background: rgba(255,255,255,.55);
  border-radius: 100px; padding: 9px 15px; min-height: 40px;
  font-family: inherit; font-size: 14px; font-weight: 600; color:#5A5149; cursor:pointer;
}
.view-presets button:hover, .pills button:hover { background: rgba(255,255,255,.95); color: var(--ink); }
.view-presets button.on, .pills button.on {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
}
.pills { display:flex; flex-wrap:wrap; gap:8px; }
.hint { font-size: 12.5px; color:#8A8178; margin-top: 8px; }

.calc-out { margin-top: var(--sp-l); border-top: 1px solid rgba(26,19,13,.10); padding-top: var(--sp-m); }
.out-label { font: 500 var(--t-label)/1 "DM Mono", ui-monospace, monospace;
  letter-spacing:.12em; text-transform:uppercase; color:#8A8178; }
.out-big { font-size: clamp(46px, 8vw, 92px); font-weight: 800; letter-spacing:-.03em; line-height:1.02; margin-top: 10px; }
.out-gap { font-size: var(--t-body); color:#3B342D; margin-top: 10px; max-width: 52ch; }
.out-foot { font-size: 12.5px; color:#8A8178; margin-top: var(--sp-m); }

.bars { list-style:none; padding:0; margin: var(--sp-m) 0 0; display:grid; gap:10px; }
.bars li { display:grid; grid-template-columns: 116px minmax(0,1fr) 92px; align-items:center; gap:14px; }
.b-name { display:flex; align-items:center; gap:9px; font-size:14px; font-weight:600; }
.b-name img { width:17px; height:17px; object-fit:contain; opacity:.55; filter: grayscale(1); }
.b-track { height:10px; border-radius:100px; background: rgba(26,19,13,.07); overflow:hidden; }
.b-fill { display:block; height:100%; border-radius:100px; background: var(--accent); }
.b-val { text-align:right; font-size:14px; font-weight:700; font-variant-numeric: tabular-nums; }
.b-val.zero { font-weight:400; font-style:italic; color:#A79E94; font-size:12.5px; }
@media (max-width: 560px) {
  .bars li { grid-template-columns: 96px minmax(0,1fr) 74px; gap:10px; }
  #views { width: 100%; }
}
