/* Safe Circle Pro — marketing site
   Palette from docs/18-icons-and-imagery.md. Teal text uses a darker shade for contrast. */
:root {
  --navy: #0B3C6F;
  --navy-deep: #0B2545;
  --blue: #1E88D6;
  --blue-text: #14629E;
  --teal: #1FA58A;
  --teal-text: #11705D;
  --paper: #F5F9FC;      /* matches the illustration backgrounds */
  --white: #FFFFFF;
  --tint: #E6EEF5;
  --tint-2: #D5E2EE;
  --text: #13263D;
  --muted: #4A5D72;
  --border: #D3DEE9;
  --radius-s: 8px;
  --radius-m: 18px;
  --wrap: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Safety bar ---------- */
.safety-bar { background: var(--navy-deep); color: #E9F1F8; font-size: 14px; }
.safety-bar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 44px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.safety-bar a { color: #fff; font-weight: 700; }
.quick-exit { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy-deep); border: 0; border-radius: 999px; padding: 7px 14px 7px 10px; font: inherit; font-weight: 700; cursor: pointer; min-height: 32px; }
.quick-exit img { width: 18px; height: 18px; }
.quick-exit kbd { font: inherit; font-weight: 500; opacity: .7; font-size: 12px; }
.quick-exit:hover { background: var(--tint); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; }
.brand .pro { color: var(--teal-text); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: var(--radius-s); }
.nav a:hover { background: var(--paper); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--teal); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-s); padding: 10px 12px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; min-height: 44px; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--teal); }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 16px; border-radius: 999px; padding: 13px 24px; min-height: 48px; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--paper); color: var(--navy); }
.nav .btn { padding: 10px 18px; min-height: 44px; font-size: 15px; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.paper { background: var(--paper); }
.navy { background: var(--navy); color: #E4EDF6; }
.navy h2, .navy h3 { color: #fff; }
.navy a { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid currentColor; }
.navy .eyebrow { color: #7FD8C4; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.navy .lede { color: #C9D9EA; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 88px; background: var(--paper); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; border: 56px solid rgba(31,165,138,.07); right: -260px; top: -260px; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--teal-text); }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: var(--radius-m); }
.hero-note { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 36px; color: var(--muted); font-size: 15px; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note img { width: 22px; height: 22px; }
.page-hero { padding: 72px 0 72px; }
.page-hero .wrap { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 920px) {
  .hero .wrap, .page-hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 72px 0; }
}

/* ---------- Before / after ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare figure { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; }
.compare img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.compare figcaption { padding: 20px 24px 24px; }
.compare figcaption strong { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; }
.compare figcaption span { color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.tag-before { background: var(--tint); color: var(--muted); }
.tag-after { background: #DDF3EC; color: var(--teal-text); }
.problems { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; padding: 0; list-style: none; }
.problems li { border-top: 3px solid var(--tint-2); padding-top: 14px; font-size: 15px; color: var(--muted); }
.problems strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
@media (max-width: 920px) { .compare { grid-template-columns: 1fr; } .problems { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .problems { grid-template-columns: 1fr; } }

/* ---------- Claims ---------- */
.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.claim { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-m); padding: 32px; }
.claim .ring { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 0 0 6px rgba(127,216,196,.25); }
.claim .ring img { width: 34px; height: 34px; }
.claim p { color: #C9D9EA; font-size: 16px; }
.claim a { font-weight: 700; }
@media (max-width: 920px) { .claims { grid-template-columns: 1fr; } }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); padding: 26px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--blue); transform: translateY(-2px); }
.feature .ic { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--tint-2); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic img { width: 28px; height: 28px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 1020px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Escalation strip ---------- */
.stages { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.stages li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px 14px; text-align: center; }
.stages img { width: 52px; height: 52px; margin: 0 auto 12px; }
.stages .n { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stages .t { display: block; font-weight: 700; color: var(--navy); line-height: 1.3; margin-top: 4px; font-size: 15px; }
.stages .d { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
@media (max-width: 1020px) { .stages { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .stages { grid-template-columns: repeat(2, 1fr); } }
.note { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-left: 4px solid var(--teal); border-radius: var(--radius-s); padding: 18px 20px; margin-top: 32px; color: var(--muted); font-size: 15px; }
.note img { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.note strong { color: var(--navy); }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 112px; }
.split.flip > .split-art { order: 2; }
.split-art { background: var(--paper); border-radius: var(--radius-m); overflow: hidden; }
.paper .split-art { background: #fff; }
.split-art img { width: 100%; }
.split-art.contain img { max-width: 440px; margin: 0 auto; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--teal); margin-top: 8px; }
.navy .ticks li::before { border-color: #7FD8C4; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > .split-art { order: 0; } .split + .split { margin-top: 72px; } }

/* ---------- Icon list / legend ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.legend li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.legend img { width: 22px; height: 22px; }
.icon-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; list-style: none; padding: 0; margin: 0; }
.icon-list li { display: flex; gap: 16px; align-items: flex-start; }
.icon-list .ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.paper .icon-list .ic { background: #fff; }
.navy .icon-list .ic { background: #fff; }
.icon-list .ic img { width: 26px; height: 26px; }
.icon-list strong { display: block; color: var(--navy); margin-bottom: 2px; }
.navy .icon-list strong { color: #fff; }
.icon-list span { font-size: 15px; color: var(--muted); }
.navy .icon-list span { color: #C9D9EA; }
@media (max-width: 920px) { .icon-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .icon-list { grid-template-columns: 1fr; } }

/* ---------- Wide image band ---------- */
.band-img { border-radius: var(--radius-m); overflow: hidden; background: var(--paper); margin-top: 8px; }
.band-img img { width: 100%; }

/* ---------- Cards (pricing / instruments) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); padding: 36px; display: flex; flex-direction: column; }
.card.lead { border: 2px solid var(--navy); position: relative; }
.card .badge { position: absolute; top: -14px; left: 32px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.card .head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.card .head img { width: 40px; height: 40px; }
.card .head h3 { margin: 0; font-size: 1.4rem; }
.card .price { font-size: 1.05rem; color: var(--muted); margin: 6px 0 18px; }
.card .price strong { color: var(--navy); font-size: 1.6rem; display: block; }
.card .ticks { margin-bottom: 28px; flex: 1; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 40px 18px 0; list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 3px solid var(--teal); }
.faq details[open] summary::after { background: var(--teal); }
.faq details p { color: var(--muted); padding-right: 40px; }

/* ---------- References ---------- */
.refs { font-size: 15px; color: var(--muted); padding-left: 1.2em; }
.refs li { margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--paper); padding: 0; }
.cta .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.cta-art img { width: 100%; border-radius: var(--radius-m); }
@media (max-width: 920px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 15px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius-s); background: #fff; color: var(--text); min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(30,136,214,.2); }
.field.check { display: flex; gap: 12px; align-items: flex-start; }
.field.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--navy); }
.field.check label { font-weight: 400; color: var(--text); margin: 0; }
.field .err { color: #A3261C; font-size: 14px; font-weight: 600; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #A3261C; }
.field.invalid .err { display: block; }
.form-status { border-radius: var(--radius-s); padding: 16px 18px; margin-top: 16px; display: none; }
.form-status.show { display: block; background: #DDF3EC; color: #0B4A3E; }
.price .price-note { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.form-status.show.problem { background: #FBE9E7; color: #7A1D15; border-left: 4px solid #A3261C; }
.cta .fine a, .hero .fine a, .note a { text-decoration: underline; text-underline-offset: 2px; }
.aside-card { background: var(--paper); border-radius: var(--radius-m); overflow: hidden; }
.aside-card img { width: 100%; max-height: 340px; object-fit: cover; object-position: bottom; }
.aside-card .inner { padding: 28px; }
.aside-card .inner p { color: var(--muted); font-size: 15px; }
@media (max-width: 920px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 80px 0 110px; }
.notfound img { width: 300px; margin: 0 auto 24px; border-radius: 50%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B9CBDD; font-size: 15px; padding: 64px 0 32px; }
.site-footer a { color: #E4EDF6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .pro { color: #7FD8C4; }
.site-footer .tagline { margin-top: 14px; color: #B9CBDD; }
.site-footer h3 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-help { background: rgba(255,255,255,.06); border-radius: var(--radius-s); padding: 16px 18px; }
.foot-help p { margin: 0 0 6px; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Gentle reveal on scroll (motion-safe only) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Feature cards as links */
a.feature { display: block; text-decoration: none; color: inherit; }
a.feature h3 { color: var(--navy); }
.ticks strong { color: var(--navy); }
.navy .ticks strong { color: #fff; }

/* Pricing: four plans, comparison table */
.cards.four { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.four .card { padding: 28px 24px; }
.cards.four .card .head h3 { font-size: 1.25rem; }
@media (max-width: 1120px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards.four { grid-template-columns: 1fr; } }
.fine { color: var(--muted); font-size: 15px; margin-top: 20px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare-table.addon-table { min-width: 0; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th { color: var(--navy); font-weight: 700; background: var(--tint); }
.compare-table tbody th { font-weight: 600; color: var(--text); }
.compare-table td { color: var(--muted); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.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; }
