/* Cateran — site styles. No build step, no framework. */
:root {
  --ink: #0f2233;
  --ink-2: #33475b;
  --muted: #5b6b7a;
  --line: #dde3e8;
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --bg-dark: #0f2233;
  --green: #2e7d32;
  --green-dark: #1f5f24;
  --green-soft: #e7f2e4;
  --warn: #b4531a;
  --radius: 10px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
h1 em, h2 em { font-style: normal; color: var(--green); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--bg-dark); color: #d4dde5; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a:not(.btn) { color: #9fd49a; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: .8em; }
.dark .eyebrow { color: #9fd49a; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 550; padding: 8px 12px; border-radius: 6px; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { background: var(--bg-soft); color: var(--green-dark); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { background: var(--green-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.dropdown { position: relative; }
.dropdown > button { background: none; border: 0; font: inherit; font-size: .95rem; font-weight: 550; color: var(--ink); padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.dropdown > button:hover { background: var(--bg-soft); }
.dropdown > button::after { content: " ▾"; font-size: .75em; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(15,34,51,.12); padding: 8px; }
.dropdown.open .dropdown-menu { display: block; }
@media (hover: hover) { .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; } }
.dropdown-menu a { display: block; padding: 10px 12px; }
.dropdown-menu small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; box-shadow: 0 12px 30px rgba(15,34,51,.1); }
  .nav.open { display: flex; }
  .dropdown > button { display: none; }
  .dropdown-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .dropdown-menu small { display: none; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 650; padding: 13px 22px; border-radius: 8px; border: 2px solid var(--green); line-height: 1.2; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
.dark .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.dark .btn.ghost:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 72px; background: radial-gradient(900px 420px at 85% 0%, #e3f0df 0%, rgba(227,240,223,0) 70%), linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(15,34,51,.07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%); pointer-events: none; }
.hero > .wrap { position: relative; }
.trust-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.trust-line span::before { content: "✓ "; color: var(--green); font-weight: 700; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 18px 40px rgba(15,34,51,.08); }
.hero-card h2 { font-size: 1.15rem; margin-bottom: .8em; }
.hero-card ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.hero-card li { position: relative; padding-left: 28px; margin-bottom: .7em; font-size: .98rem; }
.hero-card li::before { content: "!"; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fbe9df; color: var(--warn); font-weight: 800; font-size: .75rem; display: grid; place-items: center; }
.hero-card a { font-weight: 650; }
.page-hero { padding: 64px 0 56px; }
.page-hero .lead { margin-bottom: 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 56px 0; } }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.proof div { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.proof div:last-child { border-right: 0; }
.proof strong { display: block; font-size: 2rem; color: var(--ink); line-height: 1.1; }
.proof span { font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .proof { grid-template-columns: 1fr; } .proof div { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; } .proof div:last-child { border-bottom: 0; } }

/* Cards & grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card p { font-size: 1rem; }
.card .more { margin-top: auto; font-weight: 650; text-decoration: none; }
.card .more::after { content: " →"; }
.card:has(.more) { position: relative; }
.card .more::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card.feature { border-top: 4px solid var(--green); }
.card.warn { border-top: 4px solid var(--warn); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--green-soft); color: var(--green-dark); padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; align-self: flex-start; }
.tag.warn { background: #fbe9df; color: var(--warn); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231f5f24' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step p { font-size: .98rem; margin: 0; }
.dark .step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.dark .step::before { background: var(--green); }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 1rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-weight: 650; }
.compare td:first-child { font-weight: 600; color: var(--ink); }
.compare td:last-child { background: var(--green-soft); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* Quote */
.quote { font-size: 1.35rem; line-height: 1.5; color: var(--ink); max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0 0 1em; }
.quote cite { font-style: normal; font-size: 1rem; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

/* CTA band */
.cta-band { background: var(--bg-dark); color: #d4dde5; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band p { margin: 0; max-width: 40em; }
.cta-band .btn-row { margin-top: 0; }
.cta-band .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #c3ccd4; border-radius: 8px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { font-weight: 600; }
.form-status.error { color: var(--warn); }

.contact-box { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.contact-box p { margin-bottom: .6em; }

/* Founder */
.founder { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.founder .photo { width: 220px; aspect-ratio: 1; border-radius: 14px; background: var(--bg-soft) center/cover; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 12px; }
@media (max-width: 700px) { .founder { grid-template-columns: 1fr; } }

.certs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.certs li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: .88rem; margin: 0; }

/* Footer */
.site-footer { background: #0a1824; color: #9fb0bf; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #d4dde5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-brand { font-size: 1.4rem; font-weight: 750; color: #fff; letter-spacing: .04em; margin-bottom: .4em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }

/* ---------- Icons ---------- */
.icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card.warn .icon { background: #fbe9df; color: var(--warn); }
.card { transition: transform .15s ease, box-shadow .15s ease; }
a.card, .card:has(.more) { cursor: pointer; }
.card:has(.more):hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,34,51,.09); }

/* ---------- Fit / not fit ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit > div { border-radius: var(--radius); padding: 28px; }
.fit .yes { background: var(--green-soft); }
.fit .no { background: #fff; border: 1px solid var(--line); }
.fit ul { list-style: none; padding: 0; margin: 0; }
.fit li { position: relative; padding-left: 28px; font-size: 1rem; }
.fit .yes li::before { content: "✓"; position: absolute; left: 0; color: var(--green-dark); font-weight: 800; }
.fit .no li::before { content: "–"; position: absolute; left: 4px; color: var(--muted); font-weight: 800; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* ---------- Health check ---------- */
.hc { max-width: 820px; margin: 0 auto; }
.hc-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 28px; }
.hc-progress div { height: 100%; width: 0; background: var(--green); transition: width .25s ease; }
.hc-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; background: #fff; }
.hc-q legend { float: left; width: 100%; font-weight: 650; color: var(--ink); margin-bottom: 12px; padding: 0; }
.hc-q legend small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.hc-opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.hc-opts label { position: relative; }
.hc-opts input { position: absolute; opacity: 0; }
.hc-opts span { display: inline-block; padding: 9px 18px; border: 1px solid #c3ccd4; border-radius: 99px; font-size: .95rem; cursor: pointer; user-select: none; }
.hc-opts input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.hc-opts input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.hc-result { display: none; border-radius: 14px; padding: 32px; margin-top: 28px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px rgba(15,34,51,.08); }
.hc-result.show { display: block; }
.hc-score { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.hc-dial { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--ink); flex: none; }
.hc-dial small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); text-align: center; margin-top: -4px; }
.hc-level { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin: 0; }
.hc-level.ok { color: var(--green-dark); } .hc-level.mid { color: #9a6a00; } .hc-level.bad { color: var(--warn); }
.hc-flags { margin: 16px 0 0; }
.hc-flags li { margin-bottom: .6em; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,34,51,.08); }
  .mobile-cta .btn { text-align: center; padding: 12px 10px; font-size: .95rem; }
  body.has-mobile-cta { padding-bottom: 72px; }
}

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }
.post-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,34,51,.09); }
.post-card h2 { font-size: 1.3rem; margin-bottom: .5em; }
.post-card.featured { grid-column: 1 / -1; border-top: 4px solid var(--green); }
.post-card.featured h2 { font-size: 1.65rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { font-size: 1rem; }
.post-card .read { margin-top: auto; font-weight: 650; color: var(--green-dark); }
.post-meta { font-size: .88rem; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.post-meta .tag { margin: 0; }
.article { max-width: 740px; margin: 0 auto; }
.article h2 { font-size: 1.55rem; margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { font-size: 1.08rem; }
.article ul, .article ol { margin: 0 0 1.2em; }
.article .callout { background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 8px; padding: 18px 22px; margin: 1.6em 0; }
.article .callout p:last-child { margin: 0; }
.article-cta { max-width: 740px; margin: 48px auto 0; background: var(--bg-dark); color: #d4dde5; border-radius: 14px; padding: 32px; }
.article-cta h2 { color: #fff; font-size: 1.4rem; margin-top: 0; }
.article-cta .btn-row { margin-top: 1em; }
.article-cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.article-cta .btn.ghost:hover { border-color: #fff; color: #fff; }
