/* OPTMAZO — optmazo.com
 *
 * Rewritten 2026-11-24 for readability. One stylesheet for every page,
 * because the site's CSP (style-src 'self') blocks inline <style> blocks and
 * style="" attributes: a page-level <style> is silently ignored by the browser.
 * That is how /check/ shipped unstyled until this rewrite.
 *
 * System fonts only (font-src falls under default-src 'self'; no web fonts).
 */

:root {
  --primary: #1a5f7a;
  --primary-dark: #0f4356;
  --primary-soft: #e8f1f5;
  --secondary: #2d8f6f;
  --secondary-soft: #e7f4ef;
  --accent: #c9573f;
  --accent-soft: #fbece8;

  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-band: #f1f5f8;
  --text: #0f172a;
  --text-body: #334155;
  --text-muted: #5b6b7f;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --max-width: 1080px;
  --prose: 680px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(26, 95, 122, 0.35);
    text-underline-offset: 3px; transition: color 120ms ease, text-decoration-color 120ms ease; }
a:hover { color: var(--primary-dark); text-decoration-color: currentColor; }

h1, h2, h3 { margin: 0; color: var(--text); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.25; }
h3 { font-size: 1.12rem; line-height: 1.4; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 650; }

ul { padding-left: 1.2rem; }
li { margin: 0.45rem 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Layout ─────────────────────────────────────────────────────────── */

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); margin: 0 auto; }
.narrow { max-width: 640px; }

section { padding: 88px 0; }
.band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin: 0 0 14px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.prose h2 { margin-bottom: 20px; }
.prose > p { font-size: 1.06rem; }

.lede { font-size: 1.12rem; line-height: 1.75; color: var(--text-body); }
.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between;
                          gap: 16px; min-height: 64px; }
.logo { color: var(--text); text-decoration: none; letter-spacing: 0.04em; font-size: 1.02rem; }
.logo strong { font-weight: 750; }
a.logo:hover { color: var(--primary); }

.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; justify-content: flex-end;
       font-size: 0.94rem; font-weight: 500; }
.nav a { color: var(--text-body); text-decoration: none; }
.nav a:hover { color: var(--primary); }
.nav a.nav-cta { color: #fff; background: var(--primary); padding: 7px 14px; border-radius: 999px; }
.nav a.nav-cta:hover { background: var(--primary-dark); color: #fff; }

@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav a.nav-keep { display: inline; }
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: var(--radius-md);
  font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.3;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-lg { padding: 14px 28px; font-size: 1.04rem; }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border); padding: 0.85rem 1.3rem;
  border-radius: var(--radius-sm); font: inherit; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding: 104px 0 88px;
  text-align: center;
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(45, 143, 111, 0.09), transparent 60%),
    radial-gradient(900px 400px at 90% 110%, rgba(26, 95, 122, 0.08), transparent 60%),
    var(--bg);
}
.hero-solo { max-width: 760px; margin: 0 auto; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0 0; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--text-muted); }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--secondary-soft); color: var(--secondary);
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 22px;
}

/* ── Cards ──────────────────────────────────────────────────────────── */

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 28px 30px; box-shadow: var(--shadow-sm);
}
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 700; font-size: 1rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: 6px; }
.card .card-q { color: var(--primary); font-weight: 550; font-size: 0.98rem; margin-bottom: 14px; }
.card p { font-size: 0.98rem; }

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

/* facts row ("who it is for") */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 28px 0 32px; }
.fact { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 18px 16px; }
.fact strong { display: block; font-size: 1.12rem; color: var(--primary); line-height: 1.3; margin-bottom: 4px; }
.fact span { font-size: 0.9rem; color: var(--text-muted); line-height: 1.45; display: block; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* "what it does not do" */
.limit-grid { list-style: none; padding: 0; margin: 0; display: grid;
              grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.limit-grid li {
  margin: 0; position: relative; padding: 18px 20px 18px 52px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.98rem; line-height: 1.6;
}
.limit-grid li::before {
  content: "\00d7"; position: absolute; left: 18px; top: 16px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 1rem; line-height: 22px; text-align: center;
}
@media (max-width: 760px) { .limit-grid { grid-template-columns: 1fr; } }
/* the same grid for plain statements of fact: a neutral dot, not a cross */
.limit-grid.neutral li::before { content: ""; width: 8px; height: 8px; left: 25px; top: 27px;
                                 background: var(--primary); border-radius: 50%; }

.limit-list { padding-left: 1.2rem; }
.limit-list li { margin-bottom: 0.8rem; }

/* call to action */
.cta-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: linear-gradient(160deg, var(--primary-soft), var(--secondary-soft));
  border: 1px solid var(--border); border-radius: 20px; padding: 56px 40px;
}
.cta-card h2 { margin-bottom: 18px; }
.cta-card p { max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 30px 0 18px; }
@media (max-width: 560px) { .cta-card { padding: 40px 22px; } }

/* callout (a quiet boxed note) */
.callout {
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 3px solid var(--secondary);
  border-radius: var(--radius-md); padding: 16px 20px; font-size: 0.95rem; color: var(--text-body);
}
.callout p { margin-bottom: 0.6rem; }

/* ── Statement calculator (/check/) ─────────────────────────────────── */

.tool { max-width: 820px; }
.tool-head { padding: 64px 0 8px; }
.tool-head h1 { margin-bottom: 22px; }
.tool-head .callout { margin-top: 22px; }

.blk {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 30px 28px; margin: 28px 0 0; box-shadow: var(--shadow-sm);
}
.blk-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.blk-head .card-num { margin: 2px 0 0; flex: 0 0 auto; }
.blk h2 { font-size: 1.3rem; line-height: 1.35; }
.blk .why { font-size: 0.98rem; color: var(--text-body); margin: 0 0 22px; }

.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 18px; }
.fld { min-width: 0; display: flex; flex-direction: column; }
/* Line up label / input / hint across a row even when one label wraps to two lines. */
@supports (grid-template-rows: subgrid) {
  .fld { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .fld label { align-self: end; }
}
.fld label { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.fld input {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: inherit; font-size: 1.02rem; font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--bg); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); transition: border-color 120ms ease;
}
.fld input:hover { border-color: var(--text-muted); }
.fld input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.fld .u { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }

.out {
  margin-top: 24px; padding: 20px 22px; border-radius: var(--radius-md);
  background: var(--primary-soft); border: 1px solid rgba(26, 95, 122, 0.18);
}
.out[hidden], .err[hidden] { display: none; }
.out .headline { font-size: 1.5rem; font-weight: 750; color: var(--primary-dark);
                 font-variant-numeric: tabular-nums; margin: 0 0 10px; line-height: 1.3; }
.out p { margin: 0 0 0.75rem; }
.out p:last-child { margin-bottom: 0; }
.out .small { color: var(--text-muted); }
.work {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(26, 95, 122, 0.3);
  overflow-wrap: anywhere;
}
.err { color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm);
       padding: 10px 14px; font-size: 0.92rem; margin: 18px 0 0; }

.tool-foot { margin-top: 64px; }
.tool-foot h2 { margin-bottom: 22px; }
.tool-foot .callout { margin-top: 28px; }

@media (max-width: 560px) {
  .blk { padding: 22px 18px; }
  .tool-head { padding-top: 40px; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; background: var(--bg-soft); }
.site-footer .container { display: flex; flex-direction: column; gap: 12px; }
.site-footer p { margin: 0; font-size: 0.88rem; color: var(--text-muted); max-width: 720px; }
.footer-links a { margin: 0 0.2rem; }
.footer-links a:first-child { margin-left: 0; }

/* ── Questionnaire and counsel form (tap-first) ─────────────────────── */

.progress-wrap { position: sticky; top: 0; z-index: 20; height: 4px; background: var(--bg-band); }
.progress { height: 100%; width: 16%; background: var(--secondary); transition: width 260ms ease; }

.form-section { padding-top: 3rem; }
.values { background: var(--bg-soft); }
.step h1 { font-size: 1.75rem; line-height: 1.25; margin-bottom: 0.7rem; }
.step h2 { font-size: 1.45rem; line-height: 1.3; margin-bottom: 1.2rem; }
.small-lede { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; }

p.q { margin: 2.2rem 0 0.8rem; font-weight: 650; font-size: 1.05rem; line-height: 1.45; color: var(--text); }
.step > p.q:first-of-type { margin-top: 1.3rem; }
.opt-note { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }

.opts { display: flex; flex-direction: column; gap: 0.5rem; }
.opts.cols   { display: grid; grid-template-columns: repeat(6, 1fr); }
.opts.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.opts button {
  font: inherit; text-align: left; padding: 0.85rem 1rem; min-height: 48px;
  color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color 120ms ease, background 120ms ease;
}
.opts.cols button, .opts.cols-3 button { text-align: center; padding: 0.85rem 0.4rem; }
.opts button:hover { border-color: var(--primary); }
.opts button.on { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 600; }

.big-select, .step textarea, .step input[type="email"], .step input[type="text"], .step input[type="url"] {
  width: 100%; padding: 0.85rem 0.9rem; min-height: 48px;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
}
.step textarea { resize: vertical; min-height: 5.5rem; }
.big-select:focus, .step textarea:focus, .step input[type="email"]:focus,
.step input[type="text"]:focus, .step input[type="url"]:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}

.hint { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--text-muted); }

.reveal-box {
  margin: 0 0 0.5rem; padding: 1.15rem 1.3rem; background: var(--bg);
  border: 1px solid var(--border); border-left: 3px solid var(--secondary); border-radius: var(--radius-md);
}
.reveal-box p { margin: 0 0 0.7rem; }

label.check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1rem 0; font-size: 0.96rem; line-height: 1.55; }
label.check input { margin-top: 0.3rem; flex: 0 0 auto; width: 18px; height: 18px; }

.consent-box { margin: 1.5rem 0; padding: 1rem 1.15rem; background: var(--bg-band); border-radius: var(--radius-sm); }
.consent-box p { margin: 0; font-size: 0.86rem; color: var(--text-muted); }

.nav-row { display: flex; gap: 0.75rem; align-items: center; margin-top: 2.25rem; padding-top: 1.5rem;
           border-top: 1px solid var(--border); }
.nav-row .btn-primary { margin-left: auto; }
.nav-row .btn-ghost + .btn-ghost { margin-left: 0; }

.thanks { padding: 3rem 1.5rem; text-align: center; background: var(--bg);
          border: 1px solid var(--border); border-radius: var(--radius-lg); }
.thanks h2 { margin-bottom: 0.8rem; }

.progress.bonus { background: #e8735a; }
.step.bonus .eyebrow { color: #c9573f; }
.fork { margin: 2.25rem 0 0; padding: 1.15rem 1.3rem; background: var(--bg);
        border: 1px solid var(--border); border-left: 3px solid #e8735a; border-radius: var(--radius-md); }
.fork p { margin: 0 0 0.5rem; }

@media (max-width: 560px) {
  .opts.cols { grid-template-columns: repeat(3, 1fr); }
  .step h1 { font-size: 1.5rem; }
  .nav-row { flex-wrap: wrap; }
}

/* ── Legal pages (privacy, disclosures, 404) ────────────────────────── */

.legal-body { max-width: 700px; }
.legal-body h1 { margin-bottom: 14px; }
.legal-body h2 { margin: 2.6rem 0 0.8rem; font-size: 1.25rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-body); }
.legal-body li { margin: 0.5rem 0; }
.legal-updated { font-size: 0.88rem; color: var(--text-muted);
                 padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }

/* ── Small screens and motion ───────────────────────────────────────── */

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .section-head { margin-bottom: 32px; }
}

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