/* =========================================================================
   FALCO Defence — design system (Phase 1)
   Light base · deep navy · olive accent · typography-first · no external requests
   ========================================================================= */

:root {
  /* Palette --------------------------------------------------------------- */
  --navy-900: #0a1a28;   /* deepest, footer / hero band */
  --navy-800: #0e2233;   /* primary ink, dark surfaces */
  --navy-700: #16324a;
  --navy-600: #003462;   /* brand navy, sampled from the FALCO mark */
  --navy-500: #23496b;

  --olive-700: #4f5b2e;
  --olive-600: #5a6835;
  --olive:     #6b7a3f;  /* accent */
  --olive-300: #a9b483;
  --olive-100: #e7eadb;
  --olive-050: #f2f4ea;

  --paper:     #ffffff;
  --paper-alt: #f5f6f2;  /* warm off-white section band */
  --paper-tint:#eef0e9;

  --ink:       #0e2233;
  --ink-soft:  #3c4a58;
  --ink-muted: #5d6b78;
  --ink-onDark:#e9eef4;
  --ink-onDark-muted: #9fb0c0;

  --line:      #dfe3e4;
  --line-soft: #ecefee;
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Type ------------------------------------------------------------------ */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --font-num: ui-monospace, "SF Mono", "Segoe UI Mono", "Roboto Mono",
              Menlo, Consolas, monospace;

  /* Metrics --------------------------------------------------------------- */
  --wrap: 1140px;
  --prose: 68ch;
  --gutter: clamp(20px, 5vw, 48px);
  --block-y: clamp(56px, 8vw, 104px);
  --header-h: 68px;
  --radius: 3px;
  --radius-lg: 4px;
  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
}

/* =========================================================================
   Reset & base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--olive-600); }

button, input, textarea, select { font: inherit; color: inherit; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--olive-100); color: var(--navy-800); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff;
  padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* =========================================================================
   Layout primitives
   ========================================================================= */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.block { padding-block: var(--block-y); }
.block-tight { padding-block: clamp(32px, 5vw, 56px); }

/* Alternating rhythm: give every other content block a paper-alt band */
.block + .block { border-top: 1px solid var(--line-soft); }
.block.trust-strip + .block,
.block.cta-banner + .block { border-top: 0; }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-title {
  font-size: clamp(1.6rem, 1.05rem + 2.1vw, 2.5rem);
}

h1.section-title, .hero-title {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
  letter-spacing: -0.03em;
}

.section-sub {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

.section-sub-flag {
  padding-left: 14px;
  border-left: 3px solid var(--olive-300);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* =========================================================================
   Header
   ========================================================================= */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-bar.is-scrolled { box-shadow: 0 1px 18px rgba(14, 34, 51, 0.08); }

.bar-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-800);
  flex-shrink: 0;
}
.logo:hover { color: var(--navy-800); }
.logo img { width: 34px; height: 34px; object-fit: contain; }

.logo-word {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-word-2 { font-weight: 400; color: var(--ink-muted); }

/* Nav ---------------------------------------------------------------------*/

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-link:hover { color: var(--navy-800); background: var(--paper-alt); }
.nav-link.is-current { color: var(--navy-800); box-shadow: inset 0 -2px 0 var(--olive); }

.chev { transition: transform 0.2s var(--ease); flex-shrink: 0; }
.dropdown-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 264px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(14, 34, 51, 0.13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.dropdown-toggle[aria-expanded="true"] + .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--radius);
}
.dropdown a:hover { background: var(--olive-050); color: var(--navy-800); }
.dropdown a[aria-current="page"] { color: var(--navy-800); font-weight: 600; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang { color: var(--ink-muted); text-decoration: none; padding: 4px 2px; }
.lang:hover { color: var(--olive-600); }
.lang.is-current { color: var(--navy-800); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--olive); }
.lang-sep { color: var(--line); }

/* Burger ------------------------------------------------------------------*/

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--navy-800); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 26, 40, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.nav-overlay.is-active { opacity: 1; pointer-events: auto; }

/* =========================================================================
   Buttons
   ========================================================================= */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn.primary {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.btn.primary:hover { background: var(--olive-600); border-color: var(--olive-600); color: #fff; }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy-800);
}
.btn.ghost:hover { border-color: var(--olive); color: var(--olive-600); background: var(--olive-050); }

/* On dark surfaces */
.trust-strip .btn.ghost,
.cta-banner .btn.ghost { border-color: var(--line-dark); color: #fff; }
.cta-banner .btn.primary { background: var(--olive); border-color: var(--olive); }
.cta-banner .btn.primary:hover { background: #fff; border-color: #fff; color: var(--navy-800); }

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  padding-block: clamp(56px, 9vw, 116px) clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--olive) 0%, var(--olive-300) 22%, transparent 60%);
}
.hero-body { max-width: 24ch; }
.hero-title { max-width: 20ch; }
.hero-sub {
  margin-top: clamp(18px, 2.4vw, 28px);
  max-width: 62ch;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.62;
}
.hero-body { max-width: none; }

/* =========================================================================
   Trust strip (dark band under the hero)
   ========================================================================= */

.trust-strip {
  background: var(--navy-800);
  color: var(--ink-onDark);
  padding-block: clamp(30px, 4vw, 46px);
  border-top: 0;
}
.trust-inner {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}
.trust-statement {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.trust-link {
  display: inline-block;
  margin-left: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--olive-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(169, 180, 131, 0.4);
}
.trust-link:hover { color: #fff; border-bottom-color: #fff; }

.trust-facts {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-onDark-muted);
}
.trust-facts li {
  padding-left: 18px;
  position: relative;
}
.trust-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 8px; height: 1px;
  background: var(--olive-300);
}

/* =========================================================================
   Cards
   ========================================================================= */

.cards {
  display: grid;
  gap: 1px;
  padding: 1px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-soft);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.22s var(--ease);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--olive);
  transition: width 0.3s var(--ease);
}
.card:hover { background: var(--olive-050); }
.card:hover::before { width: 100%; }

.card-title {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.card-title a { color: var(--navy-800); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { color: var(--olive-600); }
.card-link .card-title a::before { content: "→ "; color: var(--olive); font-weight: 400; }

.card-text { color: var(--ink-muted); font-size: 0.94rem; }

.tag {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-600);
}

/* =========================================================================
   Facts row
   ========================================================================= */

.facts-block { background: var(--paper-alt); border-top: 0; }
.facts-row {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.fact { border-top: 2px solid var(--olive); padding-top: 16px; }
.fact-number {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}
.fact-label {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 30ch;
}
.facts-note {
  margin-top: 28px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  max-width: var(--prose);
}

/* =========================================================================
   Steps
   ========================================================================= */

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  max-width: 58rem;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  padding-block: clamp(18px, 2.2vw, 26px);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-num);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.02em;
  padding-top: 0.2em;
}
/* ::before holds column 1 (the number); both text nodes must stay in
   column 2, otherwise auto-placement drops .step-text into the 64px
   number column and it renders as a narrow ribbon. */
.step-title { grid-column: 2; font-size: 1.05rem; font-weight: 650; margin-bottom: 6px; }
.step-text { grid-column: 2; color: var(--ink-muted); font-size: 0.95rem; }

/* =========================================================================
   Scenarios
   ========================================================================= */

.scenarios {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.scenario {
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--paper-alt);
  border-left: 3px solid var(--olive-300);
}
.scenario-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--olive-600);
  margin-bottom: 12px;
}
.scenario-title { font-size: 1.06rem; margin-bottom: 10px; }
.scenario-objective {
  font-size: 0.94rem;
  color: var(--navy-700);
  font-weight: 600;
  margin-bottom: 8px;
}
.scenario-text { font-size: 0.93rem; color: var(--ink-muted); }

/* =========================================================================
   Pains
   ========================================================================= */

.pains { display: grid; gap: 0; max-width: 62rem; }
.pain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(18px, 3vw, 44px);
  padding-block: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.pain:last-child { border-bottom: 1px solid var(--line); }
.pain-problem {
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 20px;
}
.pain-problem::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 2px; background: var(--olive);
}
.pain-solution { color: var(--ink-muted); font-size: 0.96rem; }

/* =========================================================================
   Objections
   ========================================================================= */

.objections { display: grid; gap: 0; max-width: 58rem; }
.objection { padding-block: clamp(18px, 2.2vw, 26px); border-top: 1px solid var(--line); }
.objection:last-child { border-bottom: 1px solid var(--line); }
.objection-q {
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.objection-a { margin: 0; color: var(--ink-muted); font-size: 0.96rem; max-width: var(--prose); }

/* =========================================================================
   Prose / text sections
   ========================================================================= */

.prose-block, .team-block { max-width: 52rem; }

.prose { margin-top: clamp(18px, 2.2vw, 26px); max-width: var(--prose); color: var(--ink-soft); }
.prose > * + * { margin-top: 1.05em; }
.prose p { font-size: 1.02rem; }
.prose h3 {
  font-size: 1.12rem;
  margin-top: 1.9em;
  color: var(--navy-800);
}
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 4px; }
.prose ul li + li { margin-top: 0.5em; }
.prose ul li::before {
  content: "";
  position: absolute; left: -1em; top: 0.72em;
  width: 8px; height: 1px; background: var(--olive);
}
.prose ol { list-style: decimal; }
.prose ol li + li { margin-top: 0.5em; }
.prose strong { color: var(--navy-800); font-weight: 650; }
.prose a { color: var(--navy-600); }
.prose-sm p, .prose-sm li { font-size: 0.95rem; }

/* =========================================================================
   Disclaimer
   ========================================================================= */

.disclaimer {
  max-width: 58rem;
  padding: clamp(22px, 2.6vw, 32px) clamp(22px, 2.6vw, 34px);
  background: var(--paper-alt);
  border-left: 3px solid var(--olive);
}
.disclaimer-title {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  letter-spacing: -0.015em;
}
.disclaimer .prose { margin-top: 14px; }

/* =========================================================================
   Protocol
   ========================================================================= */

.protocol-block { background: var(--paper-alt); border-top: 0; }
.protocol {
  counter-reset: prot;
  display: grid;
  gap: 0;
  max-width: 54rem;
}
.protocol-step {
  counter-increment: prot;
  position: relative;
  padding: 16px 0 16px 60px;
  font-size: 1rem;
  color: var(--navy-800);
  font-weight: 500;
}
.protocol-step::before {
  content: counter(prot);
  position: absolute;
  left: 0; top: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--olive);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-num);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--olive-600);
}
.protocol-step::after {
  content: "";
  position: absolute;
  left: 17px; top: 48px; bottom: -2px;
  width: 1px;
  background: var(--olive-300);
}
.protocol-step:last-child::after { display: none; }

/* =========================================================================
   Contact block
   ========================================================================= */

.contact-block { max-width: 46rem; }
.contact-text { margin-top: 18px; color: var(--ink-soft); font-size: 1.05rem; max-width: var(--prose); }
.contact-email {
  margin-top: 26px;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.contact-email a { color: var(--navy-800); text-decoration: none; border-bottom: 2px solid var(--olive); }
.contact-email a:hover { color: var(--olive-600); }
.contact-promise { margin-top: 14px; color: var(--ink-muted); font-size: 0.95rem; }
.contact-linkedin { margin-top: 8px; font-size: 0.95rem; }

/* =========================================================================
   Form
   ========================================================================= */

.form-block { background: var(--paper-alt); border-top: 0; }
.site-form { max-width: 46rem; }
.site-form fieldset { border: 0; margin: 0; padding: 0; }

.form-legend {
  display: block;
  padding: 0;
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: clamp(22px, 3vw, 32px);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.field { display: grid; gap: 6px; margin: 0; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: 0.01em;
}
.req { color: var(--olive-600); }
.opt { font-weight: 400; color: var(--ink-muted); }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.96rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(107, 122, 63, 0.14);
}
.field textarea { resize: vertical; min-height: 132px; }
.field.has-error input,
.field.has-error textarea { border-color: #a4402f; }

.field-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 22px;
}
.field-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--olive); }
.field-consent label { font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
  color: var(--ink-muted);
}
.form-status.is-ok { color: var(--olive-700); }
.form-status.is-error { color: #a4402f; }

/* =========================================================================
   CTA banner
   ========================================================================= */

.cta-banner {
  background: var(--navy-800);
  color: var(--ink-onDark);
  border-top: 0;
}
.cta-inner {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.cta-title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.cta-text { margin-top: 12px; color: var(--ink-onDark-muted); max-width: 52ch; }
.cta-banner .cta-row { margin-top: 0; }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--navy-900);
  color: var(--ink-onDark-muted);
  padding-block: clamp(40px, 5vw, 64px);
  font-size: 0.9rem;
}
.footer-inner { display: grid; gap: 28px; }
.footer-name {
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.footer-disclaimer { max-width: 68ch; line-height: 1.6; font-size: 0.86rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}
.footer-nav a { color: var(--ink-onDark-muted); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-legal { font-size: 0.82rem; color: #6d8095; }

/* =========================================================================
   Reveal animations
   ========================================================================= */

.reveal, .reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible, .reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.is-visible > *:nth-child(n+6) { transition-delay: 0.34s; }

/* No JS: never hide content */
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1020px) {
  .trust-inner { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }

  .burger { display: flex; }

  /* backdrop-filter makes an element the containing block for its
     position:fixed descendants, which would trap the drawer inside the
     header. Drop it here and use an opaque background instead. */
  .top-bar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fff;
  }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 95;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 20px) 22px 32px;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 44px rgba(14, 34, 51, 0.12);
    transform: translateX(102%);
    /* Hidden while closed: a fixed off-screen panel is NOT clipped by
       body{overflow-x:hidden} and would otherwise widen the document. */
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s var(--ease), visibility 0s;
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-item { width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
    font-size: 1rem;
  }
  .nav-link:hover { background: none; }
  .nav-link.is-current { box-shadow: none; color: var(--olive-600); }

  .dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 12px 12px;
    border: 0;
    box-shadow: none;
    background: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown { display: none; }
  .dropdown-toggle[aria-expanded="true"] + .dropdown { display: block; }
  .dropdown a { padding: 10px 8px; font-size: 0.95rem; border-left: 2px solid var(--line); }
  .dropdown a:hover { border-left-color: var(--olive); }

  .lang-switch {
    margin: 20px 0 0;
    padding: 0;
    border-left: 0;
    font-size: 0.95rem;
  }

  .pain { grid-template-columns: 1fr; gap: 8px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; }
}

/* =========================================================================
   Print
   ========================================================================= */

@media print {
  .top-bar, .nav, .burger, .nav-overlay, .skip-link,
  .cta-banner, .form-block, .cta-row { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .block { padding-block: 14pt; border-top: 1px solid #ccc; }
  .trust-strip, .site-footer { background: #fff !important; color: #000 !important; }
  .trust-statement, .footer-name, .cta-title { color: #000 !important; }
  .trust-facts, .footer-disclaimer, .footer-nav a { color: #333 !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  a { color: #000; text-decoration: underline; }
  .card, .scenario, .disclaimer, .facts-block, .protocol-block { background: #fff !important; }
  h1, h2, h3 { page-break-after: avoid; }
  .step, .objection, .pain, .scenario { page-break-inside: avoid; }
}
