/* =========================================================
   CASTARA ADA — styles.css
   Palette: navy on white + gold accent (all text >= 4.5:1)
   Base font size: 18px minimum throughout
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy:        #0B2545;  /* primary text + dark sections   ~14:1 on white */
  --navy-700:    #13315C;  /* secondary dark surface */
  --navy-900:    #061629;  /* deepest surface (tech box) */
  --gold:        #C8A150;  /* decorative accent + button bg (navy text ~6:1) */
  --gold-deep:   #8A6A1C;  /* gold text on white (~5:1, AA pass) */
  --bg:          #FFFFFF;
  --bg-soft:     #F5F8FC;  /* soft section background */
  --ink:         #0B2545;  /* body text = navy */
  --ink-muted:   #44546A;  /* muted text (~7:1 on white) */
  --ink-on-dark: #EAF1FA;  /* body text on navy (~13:1) */
  --line:        #DCE5F1;  /* hairlines */
  --line-dark:   #284067;  /* hairlines on dark surfaces */

  --maxw: 1140px;
  --maxw-narrow: 760px;
  --radius: 14px;
  --header-h: 76px;

  --font-display: "DM Sans", "Ubuntu", system-ui, sans-serif;
  --font-body: "DM Sans", "Ubuntu", system-ui, sans-serif;
  --font-logo: "Orbitron", "DM Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px floor */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); }
.section-tech { background: var(--navy-900); }
.section-contact { background: var(--bg-soft); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Focus visibility (WCAG 2.4.7 / 2.4.11) ---------- */
:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible,
.section-tech :focus-visible { outline-color: var(--gold); }

/* scroll offset so anchored content isn't hidden under sticky header */
:target { scroll-margin-top: calc(var(--header-h) + 16px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Visually hidden (for captions) ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.logo {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-decoration: none;
}
.logo:focus-visible { outline-offset: 5px; }

.primary-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;            /* target size (WCAG 2.5.8) */
  padding: 0.5rem 0.9rem;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy);
  border-radius: 8px;
}
.nav-menu a:hover { background: var(--bg-soft); text-decoration: underline; }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  font-weight: 700 !important;
}
.nav-menu a.nav-cta:hover,
.nav-menu a.nav-cta:focus-visible {
  background: var(--navy-700);
  color: #fff !important;
  text-decoration: none !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;     /* target size */
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.section-dark .btn-ghost,
.section-tech .btn-ghost { color: #fff; border-color: var(--gold); }
.section-dark .btn-ghost:hover { background: var(--gold); color: var(--navy); }
.btn-block { display: flex; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 520px at 80% -10%, rgba(200,161,80,0.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding-block: clamp(2rem, 6vh, 4rem);
}
.hero-inner { max-width: 880px; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  color: var(--navy);
  text-wrap: balance;
}
.accent-text { color: var(--gold-deep); }
.hero-sub {
  font-size: clamp(1.125rem, 2.2vw, 1.4rem);
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Stat bar ---------- */
.stat-bar {
  background: var(--navy);
  color: var(--ink-on-dark);
  padding-block: clamp(2rem, 5vw, 3rem);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.0625rem;
  color: var(--ink-on-dark);
}

/* ---------- Section typography ---------- */
.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.9rem;
}
.eyebrow-on-dark { color: var(--gold); }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 1.6rem;
  text-wrap: balance;
}
.section-dark .section-title,
.section-tech .section-title { color: #fff; }

.prose p { margin: 0 0 1.15rem; font-size: 1.1875rem; color: var(--ink); }
.prose .lead {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}
.prose-on-dark p { color: var(--ink-on-dark); }
.lead-on-dark { color: #fff !important; }

/* ---------- Check list ---------- */
.check-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.8rem 1.5rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.125rem;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 3px;
  transform: rotate(45deg);
}

/* ---------- Math table ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.math-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;
  min-width: 520px;
}
.math-table th, .math-table td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.math-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-soft);
}
.math-table tbody th { font-weight: 500; color: var(--ink-muted); }
.math-table td { color: var(--ink); }
.math-table .total-row th,
.math-table .total-row td {
  font-weight: 800;
  color: var(--navy);
  border-top: 2px solid var(--navy);
  border-bottom: none;
}

/* ---------- Benefit grid ---------- */
.benefit-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.benefit-icon { font-size: 2rem; display: block; margin-bottom: 0.6rem; }
.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--navy);
}
.benefit-card p { margin: 0; font-size: 1.0625rem; color: var(--ink-muted); }

/* ---------- Process list ---------- */
.process-list {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.process-list li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.5rem 1.4rem 5rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 1.5rem; top: 1.4rem;
  width: 2.4rem; height: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
}
.process-list h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--navy);
}
.process-list p { margin: 0; color: var(--ink-muted); font-size: 1.0625rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: start;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.price-card-feature {
  border: 2px solid var(--navy);
  box-shadow: 0 18px 50px -22px rgba(11,37,69,0.35);
}
.price-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--navy);
}
.price-amount { margin: 0 0 0.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.price-setup { font-size: 1.0625rem; color: var(--ink-muted); font-weight: 500; }
.price-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--navy);
}
.price-main-sm { font-size: 2.2rem; }
.price-period { font-size: 1.25rem; color: var(--ink-muted); font-weight: 500; }
.price-note { color: var(--ink-muted); font-size: 1.0625rem; margin: 0 0 1.25rem; }
.price-features { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.6rem; }
.price-features li {
  position: relative; padding-left: 1.8rem; font-size: 1.0625rem;
}
.price-features li::before {
  content: "\2713";
  position: absolute; left: 0; top: 0;
  color: var(--gold-deep); font-weight: 800;
}
.pricing-footnote { text-align: center; margin-top: 1.75rem; color: var(--ink-muted); font-weight: 500; }

/* ---------- Tech / nerd box ---------- */
.tech-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
}
.tech-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--ink-on-dark);
}
.tech-list li::before {
  content: "\003E"; /* > */
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}
.tech-footnote { color: #9FB3CE; font-style: italic; margin-top: 1.25rem; }

/* ---------- Contact form ---------- */
.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
  max-width: 560px;
}
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
}
.req { color: var(--gold-deep); }
.optional { color: var(--ink-muted); font-weight: 500; }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-height: 52px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--navy); outline: none; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.field.has-error input,
.field.has-error textarea { border-color: #B3261E; }
.field-error {
  color: #B3261E;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
/* Honeypot — visually hidden but not display:none (bots fill it) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}
.form-status {
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 0.5rem 0 0;
  min-height: 1.4em;
}
.form-status.is-success { color: #1B7A43; }
.form-status.is-error { color: #B3261E; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--ink-on-dark);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.logo-footer { color: #fff; font-size: 1.4rem; display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { color: #B7C6DC; font-size: 1.0625rem; margin: 0; }
.footer-head {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.9rem;
}
.footer-col address { font-style: normal; color: #B7C6DC; font-size: 1.0625rem; line-height: 1.7; }
.footer-col address a,
.footer-links a { color: var(--gold); text-decoration: none; }
.footer-col address a:hover,
.footer-links a:hover { text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem;
}
.footer-legal { padding-top: 2rem; }
.footer-copy { color: #B7C6DC; font-size: 1.0625rem; margin: 0 0 1rem; }
.footer-affil,
.footer-disclaimer {
  color: #8FA3BF;
  font-size: 1.125rem;       /* 18px floor honored */
  line-height: 1.6;
  margin: 0 0 1rem;
}
.footer-disclaimer strong { color: #B7C6DC; }

/* =========================================================
   RESPONSIVE — breakpoint guarantees full hero on any screen
   ========================================================= */
@media (max-width: 860px) {
  :root { --header-h: 68px; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
    box-shadow: 0 24px 40px -28px rgba(11,37,69,0.4);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }
  .nav-menu.is-open { transform: translateY(0); visibility: visible; }
  .nav-menu a { width: 100%; min-height: 52px; padding: 0.75rem 0.5rem; font-size: 1.125rem; }
  .nav-cta { margin-top: 0.5rem; justify-content: center; }

  .stat-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .check-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Short / landscape screens: keep hero fully visible */
@media (max-height: 720px) and (min-width: 861px) {
  .hero { min-height: auto; padding-block: clamp(3rem, 10vh, 5rem); }
  .hero-title { font-size: clamp(2.4rem, 5.5vw, 4rem); }
}

@media (max-width: 460px) {
  .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .price-main { font-size: 2.5rem; }
}

/* =========================================================
   REDUCED MOTION (WCAG 2.3.3 / 2.2.2) — disable all motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* reveal elements must be visible without JS animation */
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* High-contrast / forced colors support */
@media (forced-colors: active) {
  .btn { border: 2px solid currentColor; }
  .check-list li::before,
  .process-list li::before { forced-color-adjust: none; }
}

/* =========================================================
   INFOGRAPHIC — automated litigation flow
   ========================================================= */
.flow {
  margin: 2.5rem auto 0;
  max-width: 1000px;
  padding: 2rem;
  background: var(--navy);
  border-radius: var(--radius);
}
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.flow-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1rem;
  background: var(--navy-700);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  text-align: center;
}
.flow-step-pay { border-color: var(--gold); }
.flow-icon { font-size: 1.9rem; line-height: 1; color: var(--gold); }
.flow-step-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: #fff;
}
.flow-step-text { font-size: 0.95rem; color: #B7C6DC; line-height: 1.45; }
.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 700;
}
.flow-cap {
  margin-top: 1.25rem;
  color: #9FB3CE;
  font-size: 1rem;
  font-style: italic;
  text-align: center;
}
@media (max-width: 720px) {
  .flow-steps { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); align-self: center; padding: 0.25rem 0; }
}

/* =========================================================
   FOOTER link-button (Cookie Preferences)
   ========================================================= */
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: none;
  border: none;
  color: var(--gold);
  font: inherit;
  font-size: 1.0625rem;
  cursor: pointer;
  text-decoration: none;
}
.link-btn:hover { text-decoration: underline; }

/* =========================================================
   COOKIE CONSENT BANNER
   ========================================================= */
.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: #fff;
  border-top: 3px solid var(--gold);
  box-shadow: 0 -18px 50px -24px rgba(11,37,69,0.45);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.cc-banner[hidden] { display: none; }
.cc-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}
.cc-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.cc-text p { margin: 0; color: var(--ink-muted); font-size: 1.0625rem; max-width: 70ch; }
.cc-text a { color: var(--gold-deep); font-weight: 600; }

.cc-options { display: grid; gap: 0.75rem; }
.cc-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cc-option-name { display: block; font-weight: 700; color: var(--navy); font-size: 1.0625rem; }
.cc-option-desc { display: block; color: var(--ink-muted); font-size: 1rem; }
.cc-option input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--navy); flex: none; cursor: pointer; }
.cc-option input:disabled { cursor: not-allowed; opacity: 0.6; }

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
.cc-btn { min-height: 48px; padding-inline: 1.3rem; }
.cc-btn[hidden] { display: none; }

@media (min-width: 861px) {
  .cc-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .cc-options { grid-column: 1 / -1; order: 3; }
  .cc-actions { order: 2; }
}
@media (max-width: 520px) {
  .cc-actions { justify-content: stretch; }
  .cc-btn { flex: 1 1 45%; }
}

/* =========================================================
   LEGAL PAGE
   ========================================================= */
.legal-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.legal-jump {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.legal-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 1.2rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
}
.legal-jump a:hover { background: var(--navy-700); }

.legal-doc h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.6rem;
}
.legal-list { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.legal-list li { margin-bottom: 0.5rem; font-size: 1.0625rem; }
.legal-contact {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.0625rem;
}
.section-soft .legal-contact { background: #fff; }
.legal-doc .prose a { color: var(--gold-deep); font-weight: 600; }

/* =========================================================
   INFOGRAPHIC — the traditional remediation loop (circle)
   ========================================================= */
.cycle {
  margin: 2.5rem auto 0;
  max-width: 1000px;
  padding: 2.5rem 2rem;
  background: var(--navy);
  border-radius: var(--radius);
}
.cycle-ring {
  position: relative;
  width: min(580px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0.5rem auto;
}
/* dashed orbit path */
.cycle-ring::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 2px dashed var(--line-dark);
  border-radius: 50%;
}
/* gold dot that travels the loop, showing it never stops */
.cycle-orbit {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  animation: cycleSpin 16s linear infinite;
  transform-origin: center;
}
.cycle-orbit::after {
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  width: 16px; height: 16px;
  margin-left: -8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(200, 161, 80, 0.18);
}
@keyframes cycleSpin { to { transform: rotate(360deg); } }

.cycle-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  padding: 0.5rem;
}
.cycle-hub-icon { font-size: 1.9rem; line-height: 1; font-weight: 700; color: var(--navy); }
.cycle-hub-text { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; line-height: 1.15; }

.cycle-nodes { list-style: none; margin: 0; padding: 0; }
.cycle-node {
  position: absolute;
  top: var(--y); left: var(--x);
  transform: translate(-50%, -50%);
  width: 162px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.9rem 0.8rem;
  background: var(--navy-700);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  text-align: center;
}
.cycle-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 0.15rem;
}
.cycle-node-title { display: block; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.cycle-node-text { color: #B7C6DC; font-size: 0.9rem; line-height: 1.35; }
.cycle-cap {
  margin-top: 1.5rem;
  color: #9FB3CE;
  font-style: italic;
  text-align: center;
  font-size: 1rem;
}

/* Mobile: unwrap the circle into a readable vertical list */
@media (max-width: 760px) {
  .cycle-ring {
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    margin: 0;
  }
  .cycle-ring::before,
  .cycle-orbit { display: none; }
  .cycle-nodes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    order: 0;
  }
  .cycle-node {
    position: static;
    transform: none;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
  }
  .cycle-num { margin-bottom: 0; flex: none; }
  .cycle-hub {
    position: static;
    transform: none;
    width: auto;
    aspect-ratio: auto;
    border-radius: 12px;
    flex-direction: row;
    gap: 0.6rem;
    margin-top: 1rem;
    order: 1;
  }
  .cycle-hub-text { font-size: 1.05rem; }
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { margin: 0; }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 64px;
  padding: 1.4rem 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  color: var(--navy);
}
.faq-trigger:hover { color: var(--gold-deep); }
.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold-deep);
  border-radius: 2px;
}
.faq-icon::before { top: 10px; left: 1px; width: 20px; height: 3px; }       /* horizontal bar */
.faq-icon::after  { top: 1px; left: 10px; width: 3px; height: 20px;          /* vertical bar */
  transition: transform 0.25s ease; }
.faq-trigger[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); } /* + becomes − */
.faq-trigger[aria-expanded="true"] { color: var(--gold-deep); }

.faq-panel-inner { padding: 0 0.25rem 1.6rem; }
.faq-panel-inner p {
  margin: 0 0 0.9rem;
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.faq-panel-inner p:last-child { margin-bottom: 0; }
.faq-panel-inner strong { color: var(--navy); }
