/* ==========================================================================
   Optivance — hardened build
   Design system unchanged (palette and dot motif from the logo).
   Security posture: no third-party requests, no JavaScript, no web fonts
   from a CDN. Everything this stylesheet references is served from this
   same origin, so the page works with script blocked and leaks nothing to
   a third party.
   ========================================================================== */

/* -------------------------------------------------------- self-hosted -- */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-700.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree-400.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/figtree-600.woff2") format("woff2");
}

:root {
  --navy-ink:   #0F1A3C;
  --navy:       #131C46;
  --deep:       #16337A;
  --royal:      #1657CE;
  --azure:      #2E90E0;
  --cyan:       #1FB6C9;
  --cyan-text:  #0E7C89;

  --bg:         #FFFFFF;
  --bg-alt:     #F5F8FD;
  --bg-tint:    #EDF3FE;
  --bg-card:    #FBFCFE;
  --border:     #E1E7F2;
  --border-str: #C9D6EC;
  --text:       #0F1A3C;
  --text-body:  #3A4562;
  --text-muted: #566080;
  --text-soft:  #6B7593;

  --on-dark:      #FFFFFF;
  --on-dark-body: #B7C2DC;
  --on-dark-soft: #8FA0C6;

  --maxw: 1120px;
  --gutter: 24px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 26px;

  --font-display: "Sora", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------- base -- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.14;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.75rem); line-height: 1.07; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.625rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }

p { margin: 0; }
img, svg { max-width: 100%; display: block; }
a { color: var(--royal); text-decoration: none; }
a:hover { color: #113F99; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--royal); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- layout -- */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 88px 0; }
/* Explicit, because this exact trap has already bitten once on this site: a
   display rule anywhere on the element silently outranks the browser's own
   [hidden] { display: none }, and the "hidden" thing renders anyway. */
.section[hidden] { display: none; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--navy-ink); color: var(--on-dark-body); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--tint { background: var(--bg-tint); }

.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split--wide-right { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 56px; margin-bottom: 48px; }
.section-head__lede { max-width: 380px; color: var(--text-muted); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.section-head--center .section-head__lede { max-width: 560px; }

/* --------------------------------------------------------------- bits -- */

.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--royal); }
.eyebrow--muted { color: var(--text-soft); }
.eyebrow--cyan { color: #6FD2DE; }

.tagline {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 34px; padding: 4px 16px; border-radius: 999px;
  background: var(--bg-tint);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--deep); align-self: flex-start;
}

.dot { display: block; border-radius: 999px; flex-shrink: 0; }
.dot--sm { width: 6px; height: 6px; }
.dot--md { width: 9px; height: 9px; }
.dot--lg { width: 13px; height: 13px; }
.dot--navy { background: var(--navy); }
.dot--royal { background: var(--royal); }
.dot--azure { background: var(--azure); }
.dot--cyan { background: var(--cyan); }
.dot-scale { display: flex; align-items: center; gap: 6px; }

.lede { font-size: 1.0625rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); font-size: 0.875rem; }

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--royal); color: #fff; }
.btn--primary:hover { background: #1149AD; color: #fff; }
.btn--ghost { background: #fff; border-color: var(--border-str); color: var(--deep); }
.btn--ghost:hover { border-color: var(--royal); color: var(--royal); }
.btn--sm { min-height: 46px; padding: 0 26px; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; font-size: 0.9375rem; }

/* ------------------------------------- header + CSS-only mobile menu -- */
/* No JavaScript: a hidden checkbox drives the menu. The label is keyboard
   reachable, and the checkbox carries the accessible name.               */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
}
.site-header__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { width: 34px; height: auto; }   /* real mark is 512x498, not square */
.card__mark  { width: 42px; height: auto; }   /* real mark is 512x498, not square */
.brand__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { font-size: 0.9375rem; font-weight: 600; color: var(--text-body); }
.site-nav a:hover { color: var(--royal); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--royal); }
.site-nav .btn { color: #fff; }

.nav-check { position: absolute; opacity: 0; width: 46px; height: 46px; right: var(--gutter); top: 17px; margin: 0; z-index: 3; cursor: pointer; }
.nav-check:focus-visible + .nav-label { outline: 3px solid var(--azure); outline-offset: 2px; }
.nav-label {
  display: none; width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: #fff; z-index: 2;
}
.nav-label .bar { display: block; width: 18px; height: 2px; background: var(--navy-ink); border-radius: 2px; position: relative; }
.nav-label .bar::before, .nav-label .bar::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy-ink); border-radius: 2px; }
.nav-label .bar::before { top: -6px; }
.nav-label .bar::after { top: 6px; }

/* --------------------------------------------------------------- hero -- */

.hero { padding: 88px 0 92px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 72px; align-items: start; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__copy p.lede { max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero { padding: 76px 0 68px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { max-width: 62ch; margin-top: 8px; }

/* -------------------------------------------------------------- cards -- */

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.card--soft { background: var(--bg-card); }
.card--feature { border: 1.5px solid var(--royal); background: #F7FAFF; }
.card--dashed { border: 1px dashed var(--border-str); justify-content: center; }
.card--dark { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-md); padding: 30px; color: var(--on-dark-body); }
.card__num { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; }
.card__top { display: flex; align-items: center; justify-content: space-between; }

.dot-list { display: flex; flex-direction: column; gap: 9px; }
.dot-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; color: var(--text-body); }
.dot-list .dot { margin-top: 8px; }
.dot-list--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }

.pillar { display: flex; gap: 14px; align-items: flex-start; }
.pillar .dot { margin-top: 6px; }
.pillar__title { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.pillar__desc { font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid #DCE4F1; background: #fff; font-size: 0.875rem; font-weight: 600; color: var(--text-body); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__rail { display: flex; align-items: center; gap: 12px; }
.step__rail .line { flex: 1 1 auto; height: 1px; background: rgba(255,255,255,0.14); }
.step__num { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; color: var(--on-dark-soft); }
.step p { color: var(--on-dark-body); font-size: 0.9375rem; }

.quote { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.45; letter-spacing: -0.015em; color: var(--text); }
.rule { height: 1px; background: var(--border); }
.result-tiles { display: flex; flex-direction: column; gap: 16px; }
.result { flex: 1 1 0; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.result__figure { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.result__label { font-size: 0.9rem; color: var(--text-muted); }

.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 12px; border-radius: 999px; background: var(--royal); color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--text); }

/* --------------------------------------------------- contact channels -- */

.channel {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: #fff; color: var(--text);
}
.channel:hover { border-color: var(--royal); color: var(--text); }
.channel__icon { width: 42px; height: 42px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.channel__label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.channel__value { font-size: 0.9375rem; color: var(--royal); word-break: break-word; }
.channel__note { font-size: 0.875rem; color: var(--text-muted); }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px; border: 1px solid var(--border-str);
  border-left: 4px solid var(--azure);
  border-radius: var(--r-sm); background: var(--bg-alt);
  font-size: 0.9375rem; line-height: 1.6; color: var(--text-muted);
}

/* ----------------------------------------------------------- CTA, FAQ -- */

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 56px; }
.cta-band__copy { max-width: 42em; display: flex; flex-direction: column; gap: 12px; }
.cta-band p { color: #43507A; font-size: 1.05rem; }

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 11px; height: 11px;
  border-right: 2px solid var(--royal); border-bottom: 2px solid var(--royal);
  transform: rotate(45deg); transition: transform .2s ease; flex-shrink: 0; margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 22px; color: var(--text-muted); max-width: 70ch; }

/* -------------------------------------------------------------- footer -- */

.site-footer { background: var(--navy-ink); color: var(--on-dark-body); padding: 64px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; margin-bottom: 44px; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 14px; }
.site-footer ul { display: flex; flex-direction: column; gap: 13px; }
.site-footer a, .site-footer li { color: #DDE4F2; font-size: 0.9375rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand__name { color: #fff; }
.site-footer p { color: var(--on-dark-body); font-size: 0.9375rem; }
.site-footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); color: var(--on-dark-soft); font-size: 0.875rem; }

/* ----------------------------------------------------------- 404 page -- */

.error-page { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 120px 0; }

/* --------------------------------------------------------- responsive -- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step__rail .line { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

@media (max-width: 860px) {
  .nav-label { display: inline-flex; }
  .nav-check { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(15, 26, 60, 0.08);
  }
  .nav-check:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 1rem; }
  .site-nav .btn { margin-top: 8px; }
}

@media (min-width: 861px) {
  .nav-check { display: none; }
}

@media (max-width: 700px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 56px; }
  .page-hero { padding: 48px 0 44px; }
  .grid-2, .grid-3, .grid-4, .steps, .dot-list--2col, .split { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
  .cta-band { flex-direction: column; align-items: flex-start; gap: 24px; }
  .card { padding: 28px; }
  .quote { font-size: 1.3rem; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

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

@media print {
  .site-header, .cta-band, .nav-label { display: none; }
  body { font-size: 12pt; color: #000; }
}

/* ==========================================================================
   Utilities
   These exist so no element needs a style="" attribute. That lets the
   Content-Security-Policy in .htaccess forbid inline styles outright,
   which is one of the strongest defences against injected markup.
   ========================================================================== */

.t-navy  { color: var(--navy); }
.t-royal { color: var(--royal); }
.t-azure { color: var(--azure); }
.t-cyan  { color: var(--cyan-text); }
.t-ink   { color: var(--text); }
.t-body  { color: var(--text-body); }

/* Three-dot scales, tinted per service — the logo progression in miniature */
.dot-scale--navy  .dot:nth-child(1) { background: #C7CFE6; }
.dot-scale--navy  .dot:nth-child(2) { background: #8494C4; }
.dot-scale--navy  .dot:nth-child(3) { background: var(--navy); }
.dot-scale--royal .dot:nth-child(1) { background: #C5D6F6; }
.dot-scale--royal .dot:nth-child(2) { background: #6D96E4; }
.dot-scale--royal .dot:nth-child(3) { background: var(--royal); }
.dot-scale--azure .dot:nth-child(1) { background: #CBE4F8; }
.dot-scale--azure .dot:nth-child(2) { background: #7CBAEC; }
.dot-scale--azure .dot:nth-child(3) { background: var(--azure); }
.dot-scale--cyan  .dot:nth-child(1) { background: #C3EBF0; }
.dot-scale--cyan  .dot:nth-child(2) { background: #6FD2DE; }
.dot-scale--cyan  .dot:nth-child(3) { background: var(--cyan); }

.dot--outline { background: var(--navy); box-shadow: 0 0 0 2px #4C5E8F; }
.dot--pale-1 { background: #A2ACD4; }
.dot--pale-2 { background: #4380E4; }
.dot--pale-3 { background: #4FA6EC; }
.dot--pale-4 { background: #3FC7D6; }

.hero-card { border-radius: var(--r-xl); gap: 22px; }
.card-title-sm { font-size: 1.2rem; }
.card-title-md { font-size: 1.25rem; }
.gap-tight { gap: 28px; }
.items-stretch { align-items: stretch; }
.align-end { align-items: flex-end; }
.quote-fig { margin: 0; padding: 44px; gap: 22px; }
.quote-fig blockquote { margin: 0; }

.avatar {
  width: 72px; height: 72px; border-radius: 999px;
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  color: var(--deep);
}
.role { font-size: 0.9rem; font-weight: 600; color: var(--royal); }

.logo-panel { align-items: center; gap: 18px; }
.logo-panel img { border-radius: var(--r-md); background: #fff; max-width: 100%; height: auto; }
.logo-panel p { text-align: center; font-size: 0.9rem; }

.icon--navy  { background: #E3E7F3; }
.icon--royal { background: var(--bg-tint); }
.icon--azure { background: #E4F1FB; }
.icon--cyan  { background: #E1F6F8; }

.jump-list a { display: flex; gap: 12px; align-items: center; font-size: 0.9375rem; font-weight: 600; color: var(--text-body); min-height: 44px; }
.jump-list a:hover { color: var(--royal); }

.brand--sm .brand__name { font-size: 1.05rem; }
.mb-16 { margin-bottom: 16px; }
.pad-64 { padding: 72px 0; }
.pad-68 { padding: 68px 0; }
.band-thin { padding: 40px 0 44px; }

/* ==========================================================================
   Contact form (Cloudflare Pages Function + Turnstile)
   Still no inline styles: the CSP forbids them.
   ========================================================================== */

.form {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .form legend { font-size: 0.875rem; font-weight: 600; color: var(--text-body); padding: 0; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--text);
  background: #fff; border: 1px solid #D7DFEE; border-radius: var(--r-sm);
  padding: 13px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.55; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #98A2BE; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--royal); outline: none; box-shadow: 0 0 0 3px rgba(22, 87, 206, 0.14);
}
.field input:invalid:not(:placeholder-shown) { border-color: #B4341F; }
.hint { font-size: 0.8125rem; color: var(--text-soft); }

.checks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checks__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check {
  display: flex; align-items: center; gap: 11px;
  min-height: 48px; padding: 0 14px;
  border: 1px solid #D7DFEE; border-radius: var(--r-sm); background: #fff;
  font-size: 0.9375rem; font-weight: 400; color: var(--text-body); cursor: pointer;
}
.check input { width: 17px; height: 17px; accent-color: var(--royal); }

/* Honeypot — hidden from people, visible to naive bots. Not display:none,
   which some bots detect; off-screen and out of the tab order instead. */
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

.turnstile-slot { min-height: 65px; }

.form__status {
  display: none;
  padding: 16px 18px; border-radius: var(--r-sm);
  font-size: 0.9375rem; line-height: 1.55;
  border: 1px solid var(--border-str); background: var(--bg-alt);
}
.form__status[data-state="working"], .form__status[data-state="ok"], .form__status[data-state="error"] { display: block; }
.form__status[data-state="ok"] { border-color: #9AD3C4; background: #ECF8F4; color: #12574A; }
.form__status[data-state="error"] { border-color: #E6B4AA; background: #FCF1EE; color: #8A2B18; }

.noscript-note {
  padding: 16px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--border-str); background: var(--bg-alt);
  font-size: 0.9375rem; color: var(--text-muted);
}

.thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 110px 0; }
.thanks .dot-scale { margin-bottom: 4px; }

@media (max-width: 700px) {
  .form { padding: 26px; }
  .checks__grid { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------- Tips feed -- */
/* The tips come from the Facebook page but are rendered as ordinary page
   content and laid out as a scroll-snap carousel. No slider library, no
   third-party request, and it works with JavaScript switched off.        */

.feed__body { min-width: 0; }

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Room for the focus ring and the cards' shadow, and a little breathing
     space at the ends so a snapped card is not flush against the gutter. */
  padding: 4px 4px 18px;
  scroll-padding-left: 4px;
  overscroll-behavior-x: contain;
}

/* Focusable so the strip can be scrolled from the keyboard; the ring is the
   only thing that tells a keyboard user it took focus. */
.carousel:focus-visible { outline: 3px solid var(--azure); outline-offset: 4px; border-radius: var(--r-md); }

.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 999px; }
.carousel::-webkit-scrollbar-thumb { background: var(--border-str); border-radius: 999px; }
.carousel::-webkit-scrollbar-thumb:hover { background: var(--azure); }

.tip-card {
  position: relative;            /* anchors the stretched link below */
  flex: 0 0 340px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

/* The whole card is clickable, but only the "Read the full tip" anchor is a
   real link — its ::after is stretched across the card. Nothing else becomes
   interactive, so the tip's own links keep working and a screen reader still
   hears one link per card rather than a wrapper around everything. */
.tip-card__more::after { content: ""; position: absolute; inset: 0; }

/* Links inside the tip sit above the stretched overlay, or they would be
   unclickable — the overlay covers them. */
.tip-card__text a, .tip-card__link { position: relative; z-index: 1; }

.tip-card:hover { border-color: var(--border-str); box-shadow: 0 10px 28px rgba(15, 26, 60, 0.08); transform: translateY(-2px); }
.tip-card:hover .tip-card__more { color: #113F99; }

/* The card is one click target, so the ring belongs on the card, not on the
   few words of the link inside it. */
.tip-card:focus-within { border-color: var(--azure); box-shadow: 0 0 0 3px rgba(46, 144, 224, 0.35); }
.tip-card__more:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .tip-card { transition: none; }
  .tip-card:hover { transform: none; }
}

.tip-card__out { white-space: nowrap; }

/* ----------------------------------------------------- a tip's page -- */

.tip-wrap { max-width: 760px; display: flex; flex-direction: column; gap: 32px; }

.tip__back { font-size: 0.9375rem; font-weight: 600; align-self: flex-start; }

.tip { display: flex; flex-direction: column; gap: 24px; }

.tip__date {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft);
}

/* Shown whole here, not cropped: this is where the tip is read, and the
   picture is usually the tip. */
.tip__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-alt); }
.tip__media img { width: 100%; height: auto; }

.tip__body { display: flex; flex-direction: column; gap: 18px; }
.tip__body p { font-size: 1.125rem; line-height: 1.75; color: var(--text-body); overflow-wrap: anywhere; }
.tip__body a { text-decoration: underline; text-underline-offset: 2px; }

.tip__engage {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-card);
}

.tip__more { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; border-top: 1px solid var(--border); }

@media (max-width: 700px) {
  .tip__body p { font-size: 1.0625rem; }
  .tip__engage { padding: 20px; }
}

.tip-card__media { background: var(--bg-alt); }
.tip-card__media img { width: 100%; height: 190px; object-fit: cover; display: block; }

.tip-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1 1 auto; }

.tip-card__date {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft);
}

/* The whole tip is in the markup for search engines; the clamp is what keeps
   every card the same height. Cutting the string instead would lose the text
   from the page as well as from the card. */
.tip-card__text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7;
  line-clamp: 7; overflow: hidden;
  color: var(--text-body); font-size: 0.9375rem; line-height: 1.6;
}
.tip-card__text p { margin: 0 0 10px; }
.tip-card__text p:last-child { margin-bottom: 0; }
.tip-card__text a { overflow-wrap: anywhere; }

.tip-card__link {
  font-size: 0.875rem; font-weight: 600;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-card);
}

/* Pinned to the bottom so the link sits on the same line across every card,
   however much text each one has. */
.tip-card__more { margin-top: auto; font-size: 0.9375rem; font-weight: 600; }

@media (max-width: 560px) {
  /* Almost full width, with the next card just visible — the cue that tells
     someone there is more to scroll to. */
  .tip-card { flex-basis: 84vw; }
}


/* The Updates CTA carries two buttons rather than one, which the band's
   space-between would otherwise stretch across the full row. */
.cta-band__actions { flex: 0 0 auto; min-width: 232px; }

@media (max-width: 860px) {
  .cta-band__actions { width: 100%; min-width: 0; }
}


/* ------------------------------------------------------ Template shop -- */
/* shop.html and order-received.html. Same tokens as the rest of the site;
   still no inline styles anywhere, because the CSP forbids them.          */

.pills--stack { flex-direction: column; align-items: flex-start; }
.pills--stack li { gap: 10px; background: #fff; }

.bundle { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 44px; border-radius: var(--r-xl); }
.bundle__buy { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); }
.price--lg { font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3rem); line-height: 1; }
.price--was { color: var(--text-soft); }

.product-grid { align-items: stretch; }
.product h3 { font-size: 1.18rem; }
.product .dot-list { flex: 1 1 auto; }
.product__buy {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--border);
}
.card--dashed.product { justify-content: center; }

.order-items { display: flex; flex-direction: column; gap: 10px; }
.check--item { min-height: 54px; padding: 10px 16px; line-height: 1.35; }
.check--item span:first-of-type { flex: 1 1 auto; }
.check__price { font-family: var(--font-display); font-weight: 600; color: var(--text); white-space: nowrap; }
.check--bundle { border-color: var(--royal); background: #F7FAFF; font-weight: 600; color: var(--text); }
.check--item[data-checked="true"] { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(22, 87, 206, 0.12); }

.order-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 18px; border-radius: var(--r-sm);
  background: var(--bg-tint); font-weight: 600; color: var(--text);
}
.order-total[hidden], .hint[hidden], .lede[hidden] { display: none; }

.notice .dot { margin-top: 7px; flex: 0 0 auto; }
.notice--narrow { max-width: 620px; text-align: left; }

@media (max-width: 1024px) {
  .bundle { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  .bundle { padding: 26px; }
  .bundle__buy { padding: 22px; }
  .product__buy { flex-wrap: wrap; }
}
@media (max-width: 1024px) and (min-width: 701px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The header is sticky, so in-page jumps land clear of it. */
#bundle, #templates, #how, #order { scroll-margin-top: 84px; }

/* Payment choice on the order form. The PayPal button is our own button in
   PayPal's colours — no PayPal script is loaded; the buyer is sent to
   PayPal's page instead (see functions/_shared/paypal.js). */
.pay-option { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: #fff; }
.btn--paypal { background: #FFC439; color: #111; border: 1px solid #F2B600; font-weight: 700; }
.btn--paypal:hover { background: #F2BA36; color: #111; }
.btn--paypal[disabled] { opacity: 0.6; cursor: progress; }
.pay-or { display: flex; align-items: center; gap: 14px; color: var(--text-soft); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.pay-or::before, .pay-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }
.paid-only[hidden], .manual-only[hidden] { display: none; }


/* ==========================================================================
   Motion
   CSS only. Nothing here needs JavaScript, so the CSP is untouched and every
   page still works with script blocked. Where a browser lacks a feature, the
   page simply appears as it did before: every "hidden" start state lives
   inside a keyframe, never in a plain rule, so nothing can get stuck
   invisible. Visitors who ask for reduced motion get none of it (end of
   this block).
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rise   { from { opacity: 0; translate: 0 14px; } }
@keyframes reveal { from { opacity: 0; translate: 0 26px; } }
@keyframes fade   { from { opacity: 0; } }
@keyframes drop   { from { opacity: 0; translate: 0 -8px; } }
@keyframes pop    { from { opacity: 0; scale: 0.97; } }

/* ---- page to page: a soft cross-fade (Chrome, Edge, Safari 18.2+) -------- */
/* The header has its own name, so it holds still while the page changes. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 160ms ease-in both vt-out; }
::view-transition-new(root) { animation: 340ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; translate: 0 10px; } }

/* ---- on arrival: the opening lines settle in, one after another ---------- */
.hero__copy > *,
.page-hero .stack > *,
.thanks > *,
.error-page > * {
  animation: rise 0.75s var(--ease-out) both;
}
.hero__copy > :nth-child(2), .page-hero .stack > :nth-child(2), .thanks > :nth-child(2), .error-page > :nth-child(2) { animation-delay: 0.07s; }
.hero__copy > :nth-child(3), .page-hero .stack > :nth-child(3), .thanks > :nth-child(3), .error-page > :nth-child(3) { animation-delay: 0.14s; }
.hero__copy > :nth-child(4), .page-hero .stack > :nth-child(4), .thanks > :nth-child(4), .error-page > :nth-child(4) { animation-delay: 0.21s; }
.hero__copy > :nth-child(n+5), .page-hero .stack > :nth-child(n+5), .thanks > :nth-child(n+5), .error-page > :nth-child(n+5) { animation-delay: 0.28s; }
.hero__grid > :last-child:not(:first-child),
.page-hero .split > :last-child:not(:first-child) {
  animation: rise 0.9s var(--ease-out) 0.25s both;
}

/* ---- on scroll: sections ease up as they come into view ----------------- */
/* Scroll-driven, so it follows the reader's own pace and needs no script.
   `translate` (not `transform`) is animated on purpose: the hover lift below
   uses `transform`, and the two compose instead of fighting. Only elements
   shorter than a screen are listed: on anything taller (the order form) the
   reveal could still be part-way when the page runs out of scroll. */
@supports (animation-timeline: view()) {
  .section .card,
  .section-head,
  .steps .step,
  .faq details,
  .cta-band,
  .channel,
  .notice,
  .tip-card,
  .jump-list li,
  .dot-list--2col li {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
  .faq details, .dot-list--2col li, .jump-list li { animation-range: entry 0% entry 55%; }
}

/* ---- things you can press ------------------------------------------------ */
.btn {
  transition: background-color .2s var(--ease-soft), border-color .2s var(--ease-soft),
              color .2s var(--ease-soft), box-shadow .25s var(--ease-soft), transform .25s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary:hover { box-shadow: 0 10px 24px -10px rgba(22, 87, 206, 0.55); }
.btn--ghost:hover   { box-shadow: 0 8px 20px -12px rgba(15, 26, 60, 0.25); }
.btn--paypal:hover  { box-shadow: 0 10px 24px -12px rgba(160, 110, 0, 0.55); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: .08s; }
.btn[disabled]:hover { transform: none; box-shadow: none; }

/* Cards that sit in a grid lift a little under the pointer. */
.grid > .card,
.channel {
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s var(--ease-soft);
}
.grid > .card:hover,
.channel:hover {
  transform: translateY(-4px);
  border-color: var(--border-str);
  box-shadow: 0 22px 44px -26px rgba(15, 26, 60, 0.28);
}
.grid > .card--feature:hover { border-color: var(--royal); }

/* Tip photos drift in very slightly on hover. */
.tip-card__media { overflow: hidden; }
.tip-card__media img { transition: scale .7s var(--ease-out); }
.tip-card:hover .tip-card__media img { scale: 1.035; }

/* The arrow in "Read more →" style links nudges forward. */
.link-arrow { display: inline-block; transition: transform .25s var(--ease-out), color .2s var(--ease-soft); }
.link-arrow:hover { transform: translateX(3px); }

/* Nav links: an underline that draws itself in. */
@media (min-width: 861px) {
  .site-nav a:not(.btn) {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
    padding-bottom: 2px;
    transition: color .2s var(--ease-soft), background-size .3s var(--ease-out);
  }
  .site-nav a:not(.btn):hover,
  .site-nav a[aria-current="page"]:not(.btn) { background-size: 100% 2px; }
}

/* The logo mark turns a quarter-breath when you point at it. */
.brand__mark { transition: transform .8s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-18deg); }

/* Mobile menu slides down rather than snapping open. */
.nav-check:checked ~ .site-nav { animation: drop .28s var(--ease-out) both; }

/* ---- forms --------------------------------------------------------------- */
.check, .field input, .field select, .field textarea {
  transition: border-color .2s var(--ease-soft), box-shadow .2s var(--ease-soft), background-color .2s var(--ease-soft);
}
.check:hover { border-color: var(--border-str); }
.order-total:not([hidden]) { animation: pop .35s var(--ease-out) both; }
.hint:not([hidden]) { animation: fade .3s ease both; }
.form__status[data-state] { animation: rise .35s var(--ease-out) both; }

/* ---- FAQ: answers unfold instead of jumping open (Chrome 131+) ----------- */
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height .38s var(--ease-out), content-visibility .38s allow-discrete;
  }
  .faq details[open]::details-content { height: auto; }
}
.faq summary { transition: color .2s var(--ease-soft); }
.faq summary:hover { color: var(--royal); }

/* ---- reduced motion: all of the above, off -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .faq details::details-content { transition: none !important; }
  .btn:hover, .grid > .card:hover, .channel:hover, .link-arrow:hover, .brand:hover .brand__mark { transform: none; }
  .tip-card:hover .tip-card__media img { scale: none; }
}
