/* ===== Brand theme: change these variables ===== */
:root {
  --brand: #1F2A44;        /* deep navy (primary) */
  --brand-contrast: #fff;
  --accent: #F28C28;       /* safety orange (buttons, accents) */
  --accent-contrast: #1F2A44;
  --text: #1F2A44;         /* headings */
  --muted: #5B6472;        /* slate gray body text */
  --bg: #F7F5F0;           /* warm off-white */
  --bg-alt: #EFEBE2;
  --surface: #ffffff;
  --border: #DCD6CA;
  --danger: #B42318;
  --radius: 12px;
  --maxw: 1100px;
  --font: "Inter", "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--muted); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.narrow { max-width: 720px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--text); font-weight: 800; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.2rem; }

.site-header { position: sticky; top: 0; background: rgba(247,245,240,.96); border-bottom: 1px solid var(--border); z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .75rem 0; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.nav-toggle { background: none; border: 1px solid var(--border); border-radius: 8px; padding: .4rem .8rem; font: inherit; cursor: pointer; }
#site-nav { flex-basis: 100%; display: none; }
#site-nav.open { display: block; }
#site-nav ul { list-style: none; margin: .5rem 0 0; padding: 0; }
#site-nav a { display: block; padding: .6rem 0; text-decoration: none; color: var(--text); }
@media (min-width: 760px) {
  .nav-toggle { display: none; }
  #site-nav { display: block; flex-basis: auto; }
  #site-nav ul { display: flex; gap: 1.5rem; margin: 0; }
}

.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--brand); font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost { background: transparent; color: var(--brand); }

.hero { padding: 4rem 0 3.5rem; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }
.intro { color: var(--muted); max-width: 65ch; }
.grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }

.steps { list-style: none; padding: 0; display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.step-num { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: .75rem; }

.tier.featured { border: 2px solid var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.badge { align-self: flex-start; background: var(--accent); color: #1c1c1c; font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; margin: 0 0 .5rem; }
.price { margin: .25rem 0 .5rem; }
.amount { font-size: 2rem; font-weight: 700; }
.period { color: var(--muted); }
.features { padding-left: 1.2rem; margin: 0 0 1.5rem; flex: 1; }
.tier .btn { margin-top: auto; }

.faq-list { margin-top: 1.5rem; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .75rem 0 0; color: var(--muted); }

.contact-form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .8rem; font: inherit; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.error { color: var(--danger); font-size: .9rem; margin: .25rem 0 0; min-height: 1em; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; }

.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: .95rem; }
.site-footer p { margin: .25rem 0; }
.plans-note { margin-top: 1.5rem; color: var(--text); }
.consent { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--brand); }
.consent label { font-weight: 400; flex: 1; }
.consent .error { flex-basis: 100%; }
.hint { font-size: .9rem; margin: .25rem 0 0; color: var(--muted); }
/* Scripted lead flow (rendered by leadflow.js only) */
.lead-flow { border: 2px solid var(--brand); border-radius: 12px; padding: 1rem; margin: 0 0 2rem; }
.lead-flow fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lead-flow legend { font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; }
.lf-progress { margin: 0 0 .75rem; font-size: .9rem; }
.lf-opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border: 1px solid #ccd; border-radius: 8px; margin-bottom: .5rem; }
.lf-opt input { width: 1.2rem; height: 1.2rem; flex: none; }
.lf-opt label { flex: 1; cursor: pointer; overflow-wrap: anywhere; }
.lf-opt:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.lf-nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.lf-nav .btn { flex: 1 1 8rem; }
.lead-flow input[type=text], .lead-flow input[type=email], .lead-flow input[type=url], .lead-flow input[type=tel] { width: 100%; box-sizing: border-box; }
