/* Public landing page styles. Reuses the design tokens defined in app.css
   (:root custom properties). All landing rules are namespaced under .lp-*
   classes (or body.landing) so nothing leaks into the authenticated app UI. */

body.landing {
  /* Landing-only type system + one warm signal accent for the "missing /
     overdue" completeness story. Scoped to .landing so the authenticated app
     UI keeps system-ui. */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --lp-amber: #b06f1f;
  --lp-amber-bg: #fbf1e2;
  --lp-paper: #fcfaf6;
  --lp-ink: var(--color-brand-navy);

  background: var(--lp-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display serif for the brand wordmark and every section/hero heading — the
   single biggest move away from a generic system-ui template look. */
.lp-brand,
.lp-hero-copy h1,
.lp-section-title,
.lp-final-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.lp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.lp-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 60px;
}
/* Brand: monogram tile + serif wordmark. */
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-brand-navy);
  text-decoration: none;
}
.lp-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--color-brand-navy);
  box-shadow: 0 4px 10px -4px rgba(26, 58, 92, 0.6);
}
.lp-brand-mark svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.lp-brand-name {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lp-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: 0.5rem;
}
.lp-nav a {
  position: relative;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
  transition: color 0.16s ease;
}
/* Underline that grows from the left on hover and for the in-view section. */
.lp-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.lp-nav a:hover {
  color: var(--color-brand-navy);
  text-decoration: none;
}
.lp-nav a:hover::after,
.lp-nav a.is-active::after {
  transform: scaleX(1);
}
.lp-nav a.is-active {
  color: var(--color-brand-navy);
  font-weight: 600;
}
.lp-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Segmented language switch: SK · EN · UA (no-JS form, one submit per code). */
.lp-langseg {
  display: inline-flex;
  margin: 0;
  padding: 2px;
  gap: 2px;
  background: var(--color-surface-page);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.lp-langseg-btn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 5px 11px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text-subtle);
  transition: background 0.16s ease, color 0.16s ease;
}
.lp-langseg-btn:hover {
  color: var(--color-brand-navy);
}
.lp-langseg-btn.is-active {
  background: var(--color-brand-navy);
  color: #fff;
  box-shadow: 0 3px 8px -3px rgba(26, 58, 92, 0.5);
}
.lp-langseg-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Login as a refined outline pill (rebalances the right side). */
.lp-login {
  padding: 7px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  color: var(--color-brand-navy);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.lp-login:hover {
  background: var(--color-brand-navy);
  border-color: var(--color-brand-navy);
  color: #fff;
  text-decoration: none;
}

/* ── Mobile menu (CSS-only <details> disclosure, shown only on small screens) */
.lp-menu {
  display: none; /* desktop uses the inline .lp-nav instead */
  position: relative;
  margin: 0;
}
.lp-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand-navy);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-strong);
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}
.lp-menu-toggle::-webkit-details-marker { display: none; }
.lp-menu-toggle::before {
  content: "\2630"; /* hamburger glyph */
  font-size: 1.15rem;
  line-height: 1;
}
.lp-menu[open] .lp-menu-toggle::before { content: "\2715"; /* × when open */ }
.lp-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  padding: 0.4rem;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(26, 58, 92, 0.16);
  z-index: 60;
}
.lp-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.8rem;
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 6px;
}
.lp-menu-panel a:hover {
  background: var(--color-surface-page);
  text-decoration: none;
}
.lp-menu-login {
  margin-top: 0.2rem;
  border-top: 1px solid var(--color-border-subtle);
  font-weight: 600;
  color: var(--color-brand-navy) !important;
}
/* Menu variant of the language switch: full-width stacked items with native
   names, matching the mobile menu list. */
.lp-langseg--menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0.3rem 0 0;
  padding: 0.4rem 0 0;
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  border-radius: 0;
  background: transparent;
}
.lp-langseg--menu .lp-langseg-btn {
  text-align: left;
  min-height: 40px;
  padding: 0 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: 0;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  /* Layered atmosphere: a soft navy-to-paper wash, a faint dotted grid, and a
     subtle top radial glow — depth instead of a flat fill. */
  background:
    radial-gradient(900px 360px at 78% -10%, rgba(42, 125, 225, 0.10), transparent 60%),
    linear-gradient(180deg, var(--color-surface-header) 0%, var(--lp-paper) 100%);
  padding: 4.5rem 0 4.5rem;
  overflow: hidden;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(26, 58, 92, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}
.lp-hero .lp-container { position: relative; z-index: 1; }
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.lp-hero-copy h1 {
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-brand-navy);
  margin: 0 0 1.1rem;
}
.lp-hero-sub {
  font-size: 1.18rem;
  color: var(--color-text-muted);
  margin: 0 0 1.6rem;
  max-width: 36rem;
}

/* Orchestrated load: headline, sub, and CTA rise in sequence. */
.lp-hero-copy h1,
.lp-hero-sub,
.lp-hero-copy .lp-hero-cta,
.lp-hero-copy .lp-lead-note,
.lp-hero-mockup {
  animation: lp-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lp-hero-sub { animation-delay: 0.08s; }
.lp-hero-copy .lp-hero-cta { animation-delay: 0.16s; }
.lp-hero-copy .lp-lead-note { animation-delay: 0.24s; }
.lp-hero-mockup { animation-delay: 0.18s; }
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero CTA ("Try for free" → /register). */
.lp-hero-cta {
  margin: 0;
}
.lp-lead-note {
  margin: 0.75rem 0 0;
}
.lp-secondary-cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent-hover);
}

.lp-lead-trust {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-subtle);
}
.lp-lead-trust::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 700;
  margin-right: 0.45rem;
}

/* Hero product mockup */
.lp-hero-mockup {
  display: flex;
  justify-content: center;
}
.lp-mock-card {
  width: 100%;
  max-width: 360px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  /* Layered shadow for real depth + a faint top highlight. */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 6px rgba(26, 58, 92, 0.06),
    0 18px 40px -12px rgba(26, 58, 92, 0.28);
  padding: 1.3rem 1.4rem;
}
.lp-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.lp-mock-client {
  font-weight: 700;
  color: var(--color-text-strong);
  font-size: 1.05rem;
}
.lp-mock-period {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  margin-bottom: 1rem;
}
.lp-mock-progress-bar {
  height: 8px;
  border-radius: 5px;
  background: var(--color-border);
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.lp-mock-progress-bar span {
  display: block;
  height: 100%;
  background: var(--color-success);
  transform-origin: left center;
  animation: lp-fill 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
@keyframes lp-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
/* Warm signal accent for the "missing" chips in the mockup. */
.lp-mock-missing .status-chip--missing {
  background: var(--lp-amber-bg);
  color: var(--lp-amber);
  border-color: rgba(176, 111, 31, 0.28);
}
.lp-mock-progress-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.lp-mock-progress-label strong {
  color: var(--color-brand-navy);
}
.lp-mock-missing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.lp-mock-missing-label {
  font-size: 0.82rem;
  color: var(--color-text-subtle);
  margin-right: 0.2rem;
}
.lp-mock-export {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-mock-export:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(42, 125, 225, 0.6);
  text-decoration: none;
}

/* ── Generic sections ───────────────────────────────────────────────────── */
/* Offset in-page anchor jumps so section titles are not hidden under the
   60px sticky header. */
.lp-section,
.lp-final-cta {
  scroll-margin-top: 72px;
}
.lp-section {
  padding: 3.5rem 0;
}
.lp-section-tint {
  background: #f4efe6; /* warm paper tint, matches the --lp-paper base */
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}
.lp-section-title {
  font-size: 2.15rem;
  line-height: 1.15;
  color: var(--color-brand-navy);
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 38rem;
}
.lp-section-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 44rem;
  margin: -1rem auto 2rem;
}

/* Card grids */
.lp-card-grid {
  display: grid;
  gap: 1.2rem;
}
.lp-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lp-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lp-card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.lp-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-table);
  padding: 1.3rem 1.3rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
/* Subtle lift on the interactive feature/value/trust cards. */
.lp-feature:hover,
.lp-card-value:hover,
.lp-trust:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: 0 14px 30px -16px rgba(26, 58, 92, 0.4);
}
.lp-card h3 {
  font-size: 1.02rem;
  color: var(--color-brand-navy);
  margin: 0 0 0.5rem;
}
.lp-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
}
.lp-card-value h3 {
  margin: 0;
}
.lp-card-value {
  border-left: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
/* Numerals on the solution value cards (counter scoped per section). */
#solution .lp-card-grid,
#solution-business .lp-card-grid { counter-reset: lp-val; }
#solution .lp-card-value::before,
#solution-business .lp-card-value::before {
  counter-increment: lp-val;
  content: counter(lp-val, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  flex: none;
}

/* Trust cards: line icon + title + supporting sentence. */
.lp-trust {
  text-align: left;
}
.lp-trust h3 {
  margin: 0.7rem 0 0.4rem;
}
.lp-trust-icon {
  width: 26px;
  height: 26px;
  stroke: var(--color-accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ── Audience split (accountant vs business owner) ───────────────────────────
   A CSS-only segmented switcher: two radio inputs precede .lp-aud-panels, and
   ~ sibling selectors reveal only the matching audience panel. Same behaviour
   on every screen size — one audience shown at a time. No JS. */
.lp-aud-radio {
  /* Off-screen but focusable, so the segmented labels stay keyboard-operable. */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.lp-aud-switch {
  display: flex;
  gap: 0.5rem;
  margin: 0 auto 1.75rem;
  max-width: 30rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem;
  background: var(--color-surface-card);
}
.lp-aud-tab {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lp-aud-tab:hover {
  color: var(--color-brand-navy);
}
/* Active tab follows the checked radio. The radios sit before every audience
   block, so `~ *` reaches the switch (nested in #problem) wherever it lives. */
#aud-accountant:checked ~ * .lp-aud-tab--accountant,
#aud-business:checked ~ * .lp-aud-tab--business {
  background: var(--color-brand-navy);
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(26, 58, 92, 0.4);
}
/* Hide the non-selected audience, both as nested panels (inside #problem) and
   as whole sections tagged with the column class (the solution sections). */
#aud-accountant:checked ~ .lp-aud-col--business,
#aud-accountant:checked ~ * .lp-aud-col--business,
#aud-business:checked ~ .lp-aud-col--accountant,
#aud-business:checked ~ * .lp-aud-col--accountant {
  display: none;
}
/* Keyboard focus visibility for the radio-driven tabs. */
#aud-accountant:focus-visible ~ * .lp-aud-tab--accountant,
#aud-business:focus-visible ~ * .lp-aud-tab--business {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
/* The "how Accordix fixes it" line under each pain. */
.lp-aud-fix {
  margin-top: 0.6rem !important;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-brand-navy) !important;
  font-weight: 500;
}

/* Built-for-both: two labeled benefit columns with check lists. */
.lp-twoup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 62rem;
  margin: 0 auto;
}
.lp-twoup-col {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-table);
  padding: 1.7rem 1.7rem;
}
.lp-twoup-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-brand-navy);
  margin: 0 0 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--color-border-subtle);
}
.lp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-size: 0.97rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}
.lp-checklist li:last-child { margin-bottom: 0; }
.lp-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(42, 125, 225, 0.12);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
}
.lp-twoup-cta {
  text-align: center;
  margin: 2.2rem 0 0;
}
/* Refined standalone CTA button (the in-page anchors that link to the demo). */
.lp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  background: var(--color-brand-navy);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 12px 28px -12px rgba(26, 58, 92, 0.55);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.lp-cta-btn:hover {
  background: #163049;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(26, 58, 92, 0.6);
  text-decoration: none;
}
.lp-cta-btn-arrow {
  transition: transform 0.16s ease;
}
.lp-cta-btn:hover .lp-cta-btn-arrow {
  transform: translateX(3px);
}

/* How it works — connected timeline (numbers sit on a shared connector line) */
.lp-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-steps::before {
  content: "";
  position: absolute;
  top: 26px; /* vertical center of the 52px number badges */
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--color-border-strong);
  z-index: 0;
}
.lp-step {
  position: relative;
  z-index: 1;
  background: transparent;
  text-align: center;
  padding: 0 0.6rem;
}
.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-brand-navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 auto 1rem;
  /* Ring in the section's paper color so the connector appears to pass behind. */
  box-shadow: 0 0 0 7px var(--lp-paper), 0 6px 16px -6px rgba(26, 58, 92, 0.5);
}
.lp-step h3 {
  font-size: 1rem;
  color: var(--color-brand-navy);
  margin: 0 0 0.4rem;
}
.lp-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Before / after */
.lp-beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.lp-before {
  border-top: 4px solid var(--color-danger);
  background: linear-gradient(180deg, rgba(190, 60, 60, 0.05), transparent 60%), var(--color-surface-card);
}
.lp-after {
  border-top: 4px solid var(--color-success);
  background: linear-gradient(180deg, rgba(40, 140, 80, 0.06), transparent 60%), var(--color-surface-card);
}
.lp-before h3,
.lp-after h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.lp-list {
  margin: 0;
  padding-left: 1.2rem;
}
.lp-list li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.45rem;
}
.lp-list-before li::marker { content: "✕  "; color: var(--color-danger); }
.lp-list-after li::marker  { content: "✓  "; color: var(--color-success); }

/* Example workflow */
.lp-workflow {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.4rem;
}
.lp-workflow li {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
  padding-left: 0.3rem;
}
.lp-workflow li::marker {
  color: var(--color-accent);
  font-weight: 700;
}

/* Trust note */
.lp-trust-note {
  margin-top: 1.8rem;
  margin-bottom: 0;
  font-weight: 500;
  color: var(--color-text-strong);
}

/* FAQ */
.lp-faq {
  max-width: 46rem;
}
.lp-faq-item {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
}
.lp-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-brand-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: "+";
  color: var(--color-text-subtle);
  font-weight: 400;
}
.lp-faq-item[open] summary::after { content: "−"; }
.lp-faq-item p {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Final CTA */
.lp-final-cta {
  background: var(--color-brand-navy);
  color: #fff;
  padding: 3.5rem 0;
}
.lp-final-inner {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}
.lp-final-cta h2 {
  font-size: 1.9rem;
  color: #fff;
  margin: 0 0 0.8rem;
}
.lp-final-cta p {
  color: var(--color-brand-navy-text);
  font-size: 1.05rem;
  margin: 0 0 1.4rem;
}
.lp-final-secondary {
  margin-top: 1rem !important;
  font-size: 0.92rem;
  opacity: 0.85;
}
/* The final section is navy, so its CTA button inverts to stay visible. */
.lp-final-cta .lp-cta-btn {
  background: #fff;
  color: var(--color-brand-navy);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.45);
}
.lp-final-cta .lp-cta-btn:hover {
  background: var(--color-surface-page);
}

/* Footer */
.lp-footer {
  background: var(--color-surface-page);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text-subtle);
  font-size: 0.85rem;
}
.lp-footer-brand {
  font-weight: 800;
  color: var(--color-brand-navy);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.lp-footer p { margin: 0.2rem 0; }

/* Visible focus for keyboard users on landing links/buttons */
.lp-header a:focus-visible,
.lp-nav a:focus-visible,
.lp-faq-item summary:focus-visible,
body.landing .btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scroll-reveal for section titles — progressive enhancement only. Browsers
   without scroll-driven animations simply show the titles (no animation). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lp-section-title,
    .lp-section-lead {
      animation: lp-rise both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

/* Honor reduced-motion: disable load and scroll animations entirely. */
@media (prefers-reduced-motion: reduce) {
  .lp-hero-copy h1,
  .lp-hero-sub,
  .lp-hero-copy .lp-hero-cta,
  .lp-hero-copy .lp-lead-note,
  .lp-hero-mockup,
  .lp-mock-progress-bar span,
  .lp-section-title,
  .lp-section-lead {
    animation: none !important;
  }
  .lp-card,
  .lp-aud-tab { transition: none !important; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lp-hero-copy h1 { font-size: 2rem; }
  .lp-card-grid-3,
  .lp-card-grid-4,
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  /* Connector only makes sense across a single row of four. */
  .lp-steps::before { display: none; }

  /* Compact mobile header: swap the inline nav + header extras for one menu.
     The header keeps only the brand + hamburger; the language switch and Login
     live inside the menu panel. */
  .lp-nav { display: none; }
  .lp-header-actions > .lp-langseg,
  .lp-header-actions > .lp-login { display: none; }
  .lp-menu { display: block; }

  /* Stack Before/After and the built-for-both columns early on tablets. */
  .lp-beforeafter { grid-template-columns: 1fr; }
  .lp-twoup { grid-template-columns: 1fr; }

  /* Comfortable touch targets on landing CTAs and tappable controls. */
  body.landing .btn,
  .lp-cta-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .lp-faq-item summary { min-height: 44px; align-items: center; }
}

@media (max-width: 560px) {
  .lp-card-grid-2,
  .lp-card-grid-3,
  .lp-card-grid-4,
  .lp-steps { grid-template-columns: 1fr; }
  .lp-hero { padding: 2.5rem 0 3rem; }
  .lp-hero-copy h1 { font-size: 1.7rem; }
  .lp-section { padding: 2.5rem 0; }
  .lp-section-title { font-size: 1.5rem; }

  /* Denser cards on phones. */
  .lp-card { padding: 1.1rem; }

  /* How it works: number on the left, text on the right (compact rows). */
  .lp-step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.9rem;
    row-gap: 0.15rem;
    align-items: center;
    text-align: left;
  }
  .lp-step-num {
    grid-row: 1 / span 2;
    margin: 0;
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    box-shadow: none;
  }
  .lp-step h3,
  .lp-step p { grid-column: 2; }

  /* Final CTA: trim the large vertical padding on phones. */
  .lp-final-cta { padding: 2.5rem 0; }
}

/* Small-phone tier: keep the header within 320px and tighten the hero. */
@media (max-width: 400px) {
  .lp-container { padding: 0 1rem; }
  .lp-brand-name { font-size: 1.15rem; }
  .lp-hero { padding: 2rem 0 2.5rem; }
  .lp-hero-copy h1 { font-size: 1.55rem; line-height: 1.15; }
  .lp-header-actions { gap: 0.5rem; }
  .lp-menu-toggle-label { display: none; } /* icon-only toggle on tiny screens */
}
