/* ─────────────────────────────────────────────────────────────────────────
   ui-corp.css: corporate + utility pages on top of /ui.css.
   Pages: about, contact, terms, policy, pricing, progress, review, weak-spots.
   Colors come only from ui.css tokens (plus rgba of those tokens).
   ───────────────────────────────────────────────────────────────────────── */

/* ── Shared ── */
.c-body { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.u-hero .u-lede { margin-top: 16px; }
.u-hero h1 em { font-style: normal; color: var(--or2); }

/* icon slot: emoji or drawn glyph sits in a fixed tile so headings align */
.c-ico {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ordim); border: 1px solid var(--orline);
  font-size: 20px; line-height: 1; font-weight: 400;
  background-position: center; background-repeat: no-repeat; background-size: 20px;
}
.c-ico--free {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e86209' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 9.9-1'/%3E%3C/svg%3E");
}

/* long-form column: sections as direct children of .u-prose */
:where(.c-doc section) > * + * { margin-top: 16px; }
.c-doc > section + section { margin-top: 0; }
.c-doc > section:first-child > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.c-doc p, .c-doc li { font-size: 17px; line-height: 1.75; }

/* full-width breakout for card grids inside a prose column */
.c-wide {
  width: min(1080px, calc(100vw - 2 * var(--gut)));
  margin-left: 50%; transform: translateX(-50%);
}

/* ─────────────────────────────────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────────────────────────────────── */
.c-story {
  background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--or);
  border-radius: 0 var(--r3) var(--r3) 0; padding: clamp(22px, 3vw, 32px);
}
.c-story > * + * { margin-top: 14px; }
.c-doc .c-story p { font-size: 18px; line-height: 1.75; color: var(--ink); }

.c-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.c-doc .c-social h3 {
  margin: 0 6px 0 0; font-family: var(--f-mono); font-size: 14px; font-weight: 600; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink2);
}
.c-doc .c-social a {
  margin: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line2); border-radius: 999px; background: var(--bg);
  color: var(--ink); font-size: 14.5px; font-weight: 700; text-decoration: none;
}
.c-doc .c-social a:hover { border-color: var(--or); color: var(--ink); }

.values-grid.c-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; margin-bottom: 28px; }
.value-card.u-card { padding: 24px 24px 22px; }
.c-doc .value-card h3 {
  display: flex; align-items: center; gap: 14px; margin: 0 0 12px;
  font-size: 1.2rem; line-height: 1.25;
}
.c-doc .value-card p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink2); }
@media (max-width: 640px) { .values-grid.c-wide { grid-template-columns: minmax(0, 1fr); } }

.c-doc > section:last-child { margin-top: 56px; }
.c-mission {
  background: radial-gradient(700px 300px at 100% 0, rgba(249,115,22,.14), transparent 60%), var(--nv);
  color: var(--ntext); border-radius: var(--r3); padding: clamp(26px, 4vw, 44px);
}
.c-mission > * + * { margin-top: 12px; }
.c-doc .c-mission h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: .12em;
  text-transform: uppercase; color: var(--nt2); margin: 0 0 14px;
}
.c-doc .c-mission h3::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--or); flex: none; }
.c-doc .c-mission p, .c-doc .c-mission li { color: var(--nt2); }
.c-doc .c-mission p:first-of-type { font-family: var(--f-head); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; line-height: 1.3; color: #fff; }
.c-doc .c-mission strong { color: var(--ntext); }
.c-mission ul { padding-left: 1.3em; }
.c-mission li + li { margin-top: 6px; }
@media (max-width: 640px) {
  .c-doc .c-story p { font-size: 16.5px; line-height: 1.7; }
  .c-doc p, .c-doc li { font-size: 16.5px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────────────────────── */
.contact-main {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 40px; align-items: start;
}
.contact-methods { display: grid; gap: 16px; }
.contact-method {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 6px;
  align-items: start; padding: 24px;
}
.contact-method > :not(.contact-method-icon) { grid-column: 2; }
.contact-method-icon {
  grid-column: 1; grid-row: 1 / span 3; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 12px; font-size: 26px; line-height: 1;
  background: var(--ordim); border: 1px solid var(--orline);
}
/* the two method titles are h2 (heading order: h1 > h2), sized like card titles */
.contact-method h2 {
  font-family: var(--f-body); font-size: 1.25rem; line-height: 1.25; letter-spacing: -.005em; margin-top: 2px;
}
.contact-method p { color: var(--ink2); font-size: 15.5px; line-height: 1.6; }
.contact-method a {
  justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px;
  color: var(--ink); font-weight: 700; font-size: 15.5px; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.contact-method a:hover { text-decoration-color: var(--ink); }

.contact-form.u-card { padding: clamp(22px, 3vw, 36px); }
.contact-form h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 7px; font-family: var(--f-mono); font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink2);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; min-height: 48px; padding: 12px 14px; font-size: 16px; line-height: 1.4;
  color: var(--ink); background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-group select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a6690' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.form-group textarea { height: 140px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink2); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--or); background-color: var(--bg); box-shadow: 0 0 0 3px var(--orglow);
}
.submit-btn.u-btn { min-width: 200px; margin-top: 4px; }
.form-message { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); font-size: 15px; }
.form-message.success { background: var(--gdim); border: 1px solid rgba(22,163,74,.3); color: var(--green); }
.form-message.error { background: var(--rdim); border: 1px solid rgba(220,38,38,.3); color: var(--red); }

.faq-section { grid-column: 1 / -1; width: 100%; max-width: var(--prose); margin-top: clamp(24px, 5vw, 56px); }
.faq-section h2 { margin-bottom: 20px; }
.faq-section .faq-item { border-bottom: 1px solid var(--line); }
.faq-section .faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--ink);
}
.faq-question:hover > span:first-child { text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; }
.faq-toggle { flex: 0 0 auto; font-size: 14px; color: var(--ink2); transition: transform .2s; }
.faq-toggle.rotate { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 0 20px; }
.faq-answer.show { display: block; }
.faq-answer p { color: #24385c; line-height: 1.7; max-width: 680px; }
@media (max-width: 960px) {
  .contact-main { grid-template-columns: minmax(0, 1fr); }
  .contact-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .contact-methods, .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-method { padding: 20px; column-gap: 14px; }
  .contact-method-icon { width: 44px; height: 44px; font-size: 22px; }
  .contact-method a { font-size: 14.5px; }
  .submit-btn.u-btn { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────────────────
   TERMS + PRIVACY (legal prose)
   ───────────────────────────────────────────────────────────────────────── */
.c-legal p, .c-legal li { font-size: 16.5px; line-height: 1.75; }
.c-legal .meta {
  display: inline-block; font-family: var(--f-mono); font-size: 14px; line-height: 1.6; color: var(--ink2);
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px;
}
.c-legal .meta strong { color: var(--ink); font-weight: 600; }
.c-legal .toc {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 22px 26px; margin-top: 28px; margin-bottom: 8px;
}
.c-legal .toc h2 {
  margin: 0 0 8px; padding: 0; border: 0; font-family: var(--f-mono); font-size: 14px; font-weight: 600; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink2);
}
.c-legal .toc ol { columns: 2; column-gap: 32px; padding-left: 1.6em; margin: 0; }
.c-legal .toc li { font-size: 15px; line-height: 1.4; margin: 0; break-inside: avoid; }
.c-legal .toc li + li { margin-top: 0; }
.c-legal .toc li::marker { font-family: var(--f-mono); font-size: 14px; color: var(--ink2); font-weight: 500; }
/* 44 px rows: the TOC is a list of tap targets, not running text */
.c-legal .toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.c-legal .toc a:hover { text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; }
.u-callout.success { border-left-color: var(--green); background: var(--gdim); }
.u-callout.success strong, .u-callout.highlight strong { color: var(--ink); }
.c-legal .table-wrap { width: 0; min-width: 100%; margin: 24px 0; }
.c-legal .table-wrap table { min-width: 640px; }
.c-legal .table-wrap.fit table { min-width: 0; }
.c-legal td { font-size: 15px; }
.c-legal td { line-height: 1.55; }
.c-seealso {
  margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--line);
}
.c-legal .c-seealso { font-size: 14.5px; color: var(--ink2); }

/* Ezoic disclosure (policy, from PR #36): an h3 + p section in the prose, the
   "Do Not Sell or Share" links inline in p/li, and the embed Ezoic fills in */
.c-legal a.ez-do-not-sell { color: var(--ink); font-weight: 700; }
#ezoic-privacy-policy-embed { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 16px; }
#ezoic-privacy-policy-embed:empty { margin-top: 0; }
#ezoic-privacy-policy-embed > * + * { margin-top: 16px; }
#ezoic-privacy-policy-embed :is(p, li, td, th, span, div) { font-size: 15px; line-height: 1.6; color: #24385c; }
#ezoic-privacy-policy-embed :is(h2, h3, h4) { margin-top: 28px; font-family: var(--f-body); font-size: 1.15rem; color: var(--ink); }
#ezoic-privacy-policy-embed table { width: 100%; border-collapse: collapse; }
#ezoic-privacy-policy-embed :is(td, th) { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
#ezoic-privacy-policy-embed a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .c-legal .toc ol { columns: 1; } .c-legal .toc { padding: 18px 20px; } }

/* ─────────────────────────────────────────────────────────────────────────
   PRICING (rework 2026-11-05): hero with stats, plan cards, what Pro does,
   value math (navy, like the outer pages' data section), Free vs Pro table,
   FAQ, final CTA. Numbered H2s and answer lines as on the outer pages.
   ───────────────────────────────────────────────────────────────────────── */
main.pr { counter-reset: prsec; }
.founding-pill.u-tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  background: rgba(245,184,64,.1); border-color: rgba(245,184,64,.35); color: var(--gold);
}
.hero .sub.u-lede { margin-top: 18px; }
.hero.u-hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem); }

.pr-sec { padding: clamp(56px, 7vw, 88px) 0; }
.pr-tint { background: var(--bg2); border-block: 1px solid var(--line); }
.pr-h { max-width: 760px; }
.pr-h::before {
  counter-increment: prsec; content: counter(prsec, decimal-leading-zero); content: counter(prsec, decimal-leading-zero) / "";
  display: block; width: fit-content; margin-bottom: 10px; padding-left: 26px;
  background: linear-gradient(var(--or), var(--or)) left center / 18px 3px no-repeat;
  font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; line-height: 1.2; color: var(--ink2);
}
.pr-ans { max-width: 68ch; margin-top: 14px; font-size: 19px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.pr-p { max-width: 68ch; margin-top: 8px; font-size: 16.5px; line-height: 1.6; color: var(--ink2); }
.pr-p a, .pr-alt-link {
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--or);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}

/* plan cards sit in the hero so both prices are the first thing on the page; Pro is the larger card */
.pr-hero .sub.u-lede { max-width: 60ch; }
.plans-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; max-width: 920px; margin-top: 32px; }
.plan-card { display: flex; flex-direction: column; }
/* the hero recolors p, strong, a and secondary buttons for navy; inside the white cards put them back */
.u-hero .plan-card .legal-note { color: var(--ink2); }
.u-hero .plan-card .legal-note strong { color: var(--ink); }
.u-hero .plan-card .legal-note a { color: var(--ink2); }
.u-hero .plan-card .plan-sum { color: #24385c; }
.u-hero .plan-card .founding-note { color: var(--ink); }
.u-hero .plan-card .pr-alt-link { color: var(--ink); }
.u-hero .plan-card .u-btn--sec { background: var(--bg); color: var(--ink); border-color: var(--line2); }
.u-hero .plan-card .u-btn--sec:hover { border-color: var(--ink2); }
.plan-card { position: relative; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r3); padding: clamp(24px, 3vw, 32px); }
.plan-card.pro {
  border: 2px solid var(--or); background: linear-gradient(180deg, var(--ordim), var(--bg) 220px);
  box-shadow: 0 24px 50px -28px rgba(249,115,22,.55);
}
.pro-badge {
  position: absolute; top: -13px; left: clamp(22px, 3vw, 30px); padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--or); color: var(--nv); font-family: var(--f-mono); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.plan-name { font-family: var(--f-mono); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.plan-card.pro .plan-name { color: var(--ink); }
.price-big { margin-top: 10px; font-family: var(--f-head); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.price-big sup { margin-right: 2px; font-size: .45em; vertical-align: .85em; }
.plan-card.pro .price-big { font-size: 72px; color: var(--or2); }
.plan-sum { margin: 0 0 20px; font-size: 15.5px; line-height: 1.55; color: #24385c; }
.price-meta { margin: 10px 0 16px; font-family: var(--f-mono); font-size: 14px; color: var(--ink2); }
.plan-btn.u-btn { display: flex; width: 100%; margin-bottom: 12px; }
.pr-alt-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.legal-note { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.legal-note strong { color: var(--ink); }
.legal-note a { color: var(--ink2); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 2px; }
.legal-note a:hover { color: var(--ink); }
.founding-note { margin-top: 12px; padding-left: 12px; border-left: 3px solid var(--or); font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.ic-yes { stroke: var(--green); }
.pr-down { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; }

.chip {
  padding: 1px 8px; border-radius: 999px; white-space: nowrap; align-self: center;
  font-family: var(--f-mono); font-size: 14px; font-weight: 600; letter-spacing: .04em; line-height: 1.3; text-transform: uppercase;
}
.chip-warn, .chip-pro { background: var(--ordim); color: var(--ink); border: 1px solid var(--orline); }
.chip-pro { font-size: 12px; }

/* Free vs Pro: zebra rows, the Pro column tinted; cards under 640px */
.pr-table { max-width: 860px; margin-top: 28px; }
.pr-desc { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 400; line-height: 1.5; color: #24385c; }
.pr-table tbody th strong { color: var(--ink); }
.pr-plan-table td { white-space: nowrap; }
.pr-row-price > * { font-size: 16px; }
.pr-table td b { color: var(--ink); }
.pr-table-cta.u-btn { display: inline-flex; width: auto; min-width: 300px; margin: 22px 0 0; }
/* against other prep: our Pro row tinted instead of a column */
.pr-vs { max-width: 1000px; }
.pr-table.pr-vs tbody td:last-child { box-shadow: none; }
.pr-table.pr-vs thead th:last-child { color: var(--ink2); }
.pr-vs tbody th { white-space: nowrap; }
.pr-vs tbody tr.pr-us > * { background: var(--ordim); }
.pr-vs tbody tr.pr-us th { box-shadow: inset 3px 0 0 var(--or); }
.pr-note { max-width: 80ch; margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.pr-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; }
.pr-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.pr-table th, .pr-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #24385c; }
.pr-table thead > tr > * { background: var(--bg2); border-bottom: 2px solid var(--line2); font-family: var(--f-mono); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.pr-table thead th:last-child { color: var(--ink); }
.pr-table tbody th { font-weight: 600; color: var(--ink); }
.pr-table tbody tr:nth-child(even) > * { background: var(--bg2); }
.pr-table tbody td:last-child { box-shadow: inset 3px 0 0 var(--orline); }
.pr-table tbody tr:last-child > * { border-bottom: 0; }
.pr-ok { font-size: 17px; font-weight: 700; color: var(--green); }
.pr-no { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.faq-grid .faq-item { padding: 22px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r2); }
.faq-grid .faq-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.faq-grid .faq-item p { font-size: 15.5px; line-height: 1.7; color: #24385c; }

.final.u-sec--navy {
  padding: clamp(56px, 7vw, 88px) 0; text-align: center;
  background: radial-gradient(900px 380px at 50% 120%, rgba(249,115,22,.16), transparent 65%), var(--nv);
}
.final h2 em { font-style: normal; color: var(--gold); }
.final p { max-width: 560px; margin: 12px auto 0; font-size: 17px; color: var(--nt2); }
.cta-btn.u-btn { display: flex; width: 100%; min-height: 54px; margin-top: 20px; font-size: 17px; }
.final .cta-btn.u-btn { display: inline-flex; width: auto; min-width: 320px; margin-top: 28px; }
.final p.cta-trust { margin-top: 12px; font-size: 14px; }

.c-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(8,12,22,.72); align-items: center; justify-content: center; padding: 20px; }
.c-overlay-box {
  width: 100%; max-width: 460px; background: var(--bg); border-radius: var(--r3);
  padding: 44px 36px; text-align: center; box-shadow: 0 24px 60px rgba(8,12,22,.35);
}
.c-overlay-ico { font-size: 52px; line-height: 1; margin-bottom: 16px; }
.c-overlay-h { font-family: var(--f-head); font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--ink); margin-bottom: 10px; }
.c-overlay-p { font-size: 15.5px; line-height: 1.7; color: var(--ink2); margin-bottom: 8px; }
.c-overlay-note { font-size: 14px; line-height: 1.6; color: var(--ink2); margin-bottom: 26px; overflow-wrap: anywhere; }
.c-overlay-note strong { color: var(--ink); }
.c-overlay-foot { font-size: 14px; color: var(--ink2); margin-top: 18px; overflow-wrap: anywhere; }
.c-overlay-foot a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; }

@media (max-width: 640px) {
  .plans-grid { display: flex; flex-direction: column; gap: 28px; }
  .plan-card.pro { order: -1; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .final .cta-btn.u-btn { width: 100%; min-width: 0; }
  .pr-ans { font-size: 18px; }
  /* the competitor table as cards: one card per option, labelled lines */
  .table-wrap.pr-vs { overflow: visible; border: 0; border-radius: 0; background: none; }
  .pr-vs table, .pr-vs tbody, .pr-vs tr, .pr-vs th, .pr-vs td { display: block; }
  .pr-vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pr-vs tbody tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 12px 14px;
    background: var(--bg) !important; border: 1px solid var(--line); border-radius: var(--r2);
  }
  .pr-vs tbody tr + tr { margin-top: 6px; }
  .pr-vs tbody tr > * { padding: 0; border: 0; background: none !important; box-shadow: none !important; }
  .pr-vs tbody th { grid-column: 1 / -1; font-size: 15px; }
  .pr-vs td { display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
  .pr-vs td::before { content: attr(data-label) ":"; font-weight: 700; color: var(--ink2); }
  /* Free vs Pro stays a 3-column table: the cells are short */
  .table-wrap.pr-plan-table { overflow: visible; }
  .pr-plan-table th, .pr-plan-table td { padding: 10px 8px; }
  .pr-plan-table thead > tr > * { font-size: 12px; }
  .pr-plan-table td { white-space: normal; font-size: 14px; }
  .pr-plan-table .pr-no { font-size: 11px; }
  .pr-desc { font-size: 13.5px; }
  /* on a phone the shared rows keep only the feature name; the Pro rows keep their line */
  .pr-base .pr-desc { display: none; }
  .pr-vs tbody tr { grid-template-columns: minmax(0, 1fr); }
  .pr-vs td { display: block; }
  .pr-vs td::before { margin-right: 6px; }
  .pr-vs tbody th { white-space: normal; }
  .pr-vs tbody tr.pr-us { background: var(--ordim) !important; border-color: var(--orline); }
  .pr-table-cta.u-btn { display: flex; width: 100%; min-width: 0; }
}
@media (max-width: 480px) {
  .price-big { font-size: 48px; }
  .plan-card.pro .price-big { font-size: 60px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   APP-DRIVEN PAGES: progress, weak-spots, review
   (ids/classes below are queried or generated by each page's script)
   ───────────────────────────────────────────────────────────────────────── */
.c-app .page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.c-app .page-header .breadcrumb { flex-basis: 100%; margin-bottom: 4px; }
.c-app .page-header h1 { margin: 0; }
.c-app .u-hero .page-sub { margin-top: 14px; }
.clear-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; cursor: pointer;
  background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.55); border-radius: var(--r);
  color: var(--ntext); font-size: 14px; font-weight: 600;
}
.clear-btn:hover { background: rgba(220,38,38,.28); }
.u-hero .c-back {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--nline2); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.u-hero .c-back:hover { border-color: var(--nt2); }

/* progress: stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r2); padding: 22px 24px; }
.stat-num { font-family: var(--f-head); font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); font-weight: 700; line-height: 1; color: var(--ink2); }
.stat-num.blue { color: var(--ink); }
.stat-num.green { color: var(--green); }
.stat-num.orange { color: var(--or2); }
.stat-label {
  margin-top: 10px; font-family: var(--f-mono); font-size: 14px; font-weight: 600; line-height: 1.35;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink2);
}
.spider-wrap {
  margin-top: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r3);
  padding: 24px; text-align: center;
}
.spider-title, .section-title { font-family: var(--f-head); font-weight: 700; color: var(--ink); }
.spider-title { font-size: 1.25rem; margin-bottom: 16px; }
.spider-svg { display: block; margin: 0 auto; overflow: visible; width: 260px; height: 260px; }
#spider-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--ink2); }
.c-gate {
  margin-top: 24px; background: var(--bg2); border: 2px dashed var(--line2); border-radius: var(--r3);
  padding: 32px 24px; text-align: center;
}
.c-gate-ico { display: grid; width: 52px; height: 52px; font-size: 26px; margin: 0 auto 14px; }
.c-gate-h { font-family: var(--f-head); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.c-gate-p { max-width: 460px; margin: 8px auto 20px; font-size: 15px; color: var(--ink2); }
.section-title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin: 44px 0 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r2); padding: 18px 20px 20px; }
.cat-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cat-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.cat-pct { font-family: var(--f-mono); font-size: 14px; font-weight: 600; }
.cat-pct.good { color: var(--green); }
.cat-pct.warn { color: var(--ink); }
.cat-pct.bad { color: var(--red); }
.cat-pct.none { color: var(--ink2); }
.prog-bar { height: 8px; background: var(--bg3); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.prog-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
.prog-fill.good { background: var(--green); }
.prog-fill.warn { background: var(--or); }
.prog-fill.bad { background: var(--red); }
.prog-fill.none { background: var(--line); width: 0 !important; }
.cat-meta { font-family: var(--f-mono); font-size: 14px; color: var(--ink2); }
.cat-actions { display: flex; gap: 8px; margin-top: 14px; }
.cat-act-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r);
  background: var(--ordim); border: 1px solid var(--orline); color: var(--ink);
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.cat-act-btn:hover { background: var(--or); border-color: var(--or); color: var(--nv); }

/* empty states (progress + weak-spots) */
.empty-box {
  background: var(--bg); border: 1.5px dashed var(--line2); border-radius: var(--r3);
  padding: clamp(36px, 6vw, 56px) 24px; text-align: center;
}
.empty-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 14px; background: var(--ordim); border: 1px solid var(--orline); font-size: 30px; line-height: 1;
}
.empty-box h3 { font-size: 1.35rem; margin-bottom: 8px; }
.empty-box p { max-width: 420px; margin: 0 auto 20px; font-size: 15.5px; color: var(--ink2); }
.empty-box a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  background: var(--or); color: var(--nv); border-radius: var(--r); font-size: 16px; font-weight: 700; text-decoration: none;
}
.empty-box a:hover { background: var(--or2); box-shadow: 0 6px 20px var(--orglow); }

/* weak-spots report */
#report-wrap { max-width: var(--prose); }
.loading-box { text-align: center; padding: 56px 24px; }
.loading-box p { font-size: 14.5px; color: var(--ink2); }
.spinner {
  width: 36px; height: 36px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--or); animation: c-spin .7s linear infinite;
}
@keyframes c-spin { to { transform: rotate(360deg); } }
.cat-section { margin-bottom: 28px; }
.cat-title {
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2);
}
.spot-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r2); padding: 16px 18px; margin-bottom: 10px; }
.spot-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.spot-name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.spot-pct { font-family: var(--f-mono); font-size: 14px; font-weight: 600; white-space: nowrap; }
.spot-pct.high { color: var(--red); }
.spot-pct.mid { color: var(--ink); }
.spot-pct.low { color: var(--green); }
.spot-bar { height: 6px; background: var(--bg3); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.spot-bar-fill { height: 100%; border-radius: 99px; }
.spot-bar-fill.high { background: var(--red); }
.spot-bar-fill.mid { background: var(--or); }
.spot-bar-fill.low { background: var(--green); }
.spot-meta { font-family: var(--f-mono); font-size: 14px; color: var(--ink2); }
#drill-btn { background: var(--or) !important; color: var(--nv) !important; border-radius: var(--r) !important; min-height: 50px; font-family: var(--f-body); }
#drill-btn:hover { background: var(--or2) !important; }
#drill-upgrade-wall, #review-upgrade-wall { border-color: var(--or) !important; border-radius: var(--r3) !important; }
#drill-upgrade-wall a[href*="checkout"], #review-upgrade-wall a[href*="checkout"] { background: var(--or) !important; color: var(--nv) !important; border-radius: var(--r) !important; min-height: 48px; }
/* script-built upgrade walls: small grey inline notes up to 14 px / --ink2 */
:is(#drill-upgrade-wall, #review-upgrade-wall, #report-content, #topicsList) [style*="font-size:12px"],
:is(#drill-upgrade-wall, #review-upgrade-wall, #report-content, #topicsList) [style*="font-size:13px"] { font-size: 14px !important; }
:is(#drill-upgrade-wall, #review-upgrade-wall, #report-content, #topicsList) [style*="color:#94a3b8"] { color: var(--ink2) !important; }
.page.c-body:has(+ .c-hubwrap) { padding-bottom: 32px; }
.c-hubwrap { padding-bottom: clamp(56px, 7vw, 96px); }
.c-hub { max-width: var(--prose); font-size: 15.5px; line-height: 1.7; color: #24385c; }
.c-hub strong { color: var(--ink); }
.c-hub a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.c-hub a:hover { text-decoration-color: var(--ink); }

/* review */
.review-header h1 { display: flex; align-items: center; gap: 16px; }
.c-ico--h1 { width: 56px; height: 56px; font-size: 28px; background: rgba(249,115,22,.12); }
.review-main { max-width: var(--prose); }
#topicsList > div { border-radius: var(--r3) !important; }
#topicsList a[href="/"] { background: var(--or) !important; color: var(--nv) !important; border-radius: var(--r) !important; font-weight: 700 !important; padding: 12px 22px !important; min-height: 48px; }
#topicsList > div[style*="f0fdf4"] > strong { font-family: var(--f-head); font-size: 20px !important; }
#topicsList > div[style*="fecaca"] {
  border: 1px solid var(--line) !important; border-left: 4px solid var(--red) !important;
  border-radius: 0 var(--r2) var(--r2) 0 !important; padding: 18px 20px !important;
}
#topicsList > div[style*="fecaca"] p:nth-child(2) { font-size: 16px !important; color: var(--ink) !important; }
.start-button, .history-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  background: var(--or); color: var(--nv); border: 0; border-radius: var(--r); cursor: pointer;
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.start-button:hover, .history-button:hover { background: var(--or2); }
.review-actions { margin-top: 20px; }
.nav-button, .nav-button-test {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer;
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.nav-button:hover, .nav-button-test:hover:not(:disabled) { border-color: var(--ink2); }
.nav-button-test:disabled { opacity: .45; cursor: not-allowed; }
.nav-button-test.submit-button { background: var(--or); border-color: var(--or); color: var(--nv); }

.test-container, .results {
  margin-top: 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r3);
  padding: clamp(20px, 3vw, 28px);
}
.test-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.question-number, .timer { font-family: var(--f-mono); font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--ink2); }
.timer { text-transform: uppercase; }
.test-progress { height: 6px; background: var(--bg3); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--or); border-radius: 99px; transition: width .3s; }
.question-container { margin-top: 20px; }
.section-badge {
  display: inline-block; font-family: var(--f-mono); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; background: var(--ordim); color: var(--ink); border: 1px solid var(--orline);
}
.question-text { margin-top: 12px; font-family: var(--f-head); font-size: 1.35rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.answers { list-style: none; margin-top: 14px; }
.answer-item { margin-top: 10px; border: 1px solid var(--line2); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; }
.answer-item:hover { border-color: var(--ink2); }
.answer-item label { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 12px 14px; cursor: pointer; font-size: 15.5px; line-height: 1.5; }
.answer-item input { margin-top: 4px; accent-color: var(--or); }
.answer-item.selected { border-color: var(--or); background: var(--ordim); }
.answer-item.correct { border-color: var(--green); background: var(--gdim); }
.answer-item.incorrect { border-color: var(--red); background: var(--rdim); }
.answer-feedback { margin-left: auto; }
.test-navigation { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.answer-explanation { margin-top: 16px; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); }
.explanation-header { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.explanation-header.correct { color: var(--green); }
.explanation-header.incorrect { color: var(--red); }
.error-notice { margin-top: 12px; padding: 10px 14px; border-radius: var(--r); background: var(--rdim); color: var(--red); font-weight: 600; font-size: 14.5px; }
.progress-message { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r2); }
.results { text-align: center; padding: clamp(32px, 5vw, 48px) 24px; }
.results-ico { display: grid; width: 64px; height: 64px; font-size: 32px; margin: 0 auto 16px; background: var(--gdim); border-color: rgba(22,163,74,.3); }
.results h2 { color: var(--green); }
.score-display { margin: 18px 0 14px; font-family: var(--f-head); font-size: clamp(3.2rem, 2.6rem + 2vw, 4.2rem); font-weight: 700; line-height: 1; color: var(--ink); }
.score-display.pass { color: var(--green); }
.results-lead { font-size: 18px; font-weight: 700; color: var(--green); }
.results-sub { max-width: 520px; margin: 10px auto 24px; color: var(--ink2); }
.results-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .stats-grid { gap: 10px; }
  .stat-card { padding: 16px 12px; }
  .stat-num { font-size: 2rem; }
  .stat-label { letter-spacing: .02em; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .test-header { grid-template-columns: minmax(0, 1fr) auto; }
  .test-progress { grid-column: 1 / -1; grid-row: 2; }
  .review-header h1 { gap: 12px; }
  .c-ico--h1 { width: 46px; height: 46px; font-size: 24px; }
}

/* review: the script shows these with style.display = block; hidden until then
   (before v4 both panels showed on every load, "Congratulations! 100%" included) */
#testContainer, #results { display: none; }
