/* Mobile-first landing system. Theme tokens live in theme.css. */

:root {
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --ink: #143f39;
  --ink-deep: #0c2b27;
  --accent: #b7d3a4;
  --accent-ink: #10241c;
  --hero-a: #123e38;
  --hero-b: #1c5b50;
  --paper: #ffffff;
  --surface: #f3f6f4;
  --text: #1c2b28;
  --muted: #5c6f6a;
  --line: #e1ebe6;
  --header-fg: #ffffff;
  --header-solid: rgba(12, 43, 39, 0.94);
  --phone-bg: rgba(255, 255, 255, 0.12);
  --phone-fg: #ffffff;
  --hero-fg: #f4faf7;
  --soft: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 50px rgba(16, 36, 32, 0.12);
  --radius: 18px;
  --max: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1rem;
}

body.has-bar { padding-bottom: 76px; }

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

a { color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.trustbar {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.trustbar-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 10px 0;
}

.trustbar-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.layout-search .trust-dot { background: var(--accent); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--header-fg);
  background: var(--header-solid);
  backdrop-filter: blur(16px);
}

.home .header {
  background: transparent;
  margin-bottom: calc(var(--header-h) * -1);
  backdrop-filter: none;
}

.home .header.is-stuck {
  background: var(--header-solid);
  backdrop-filter: blur(16px);
}

.layout-search .header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
}

.layout-search.home .header { background: transparent; }
.layout-search .header.is-stuck { background: rgba(255, 255, 255, 0.96); border-bottom-color: var(--line); }

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-right: auto;
  min-width: 0;
  font-size: 0.92rem;
}

.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.brand svg { width: 40px; height: 40px; flex: none; }

.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name small {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.62rem;
  opacity: 0.75;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--soft);
  background: transparent;
  color: inherit;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.layout-search .nav-toggle { border-color: var(--line); }

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #fff;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
}

.layout-search .nav-links { background: #fff; color: var(--ink); }

.nav-links.is-open { display: flex; }

.nav-links a {
  text-decoration: none;
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }

.layout-search .nav-links a:hover,
.layout-search .nav-links a[aria-current="page"] { background: #f1f3fb; }

.nav-drop summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.nav-drop summary::-webkit-details-marker { display: none; }

.nav-drop summary::after { content: " ▾"; font-size: 0.75em; opacity: 0.7; }

.nav-drop ul { list-style: none; margin: 0; padding: 0 0 8px 10px; }

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--phone-bg);
  color: var(--phone-fg);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--soft);
}

.phone-btn svg { width: 16px; height: 16px; }
.phone-mobile { display: inline-flex; padding: 10px; border-radius: 999px; }

.layout-search .phone-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.hero {
  padding: 36px 0 64px;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(165deg, var(--hero-a), var(--hero-b) 62%, var(--ink-deep));
  color: var(--hero-fg);
}

.layout-search .hero {
  background:
    radial-gradient(720px 340px at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    linear-gradient(180deg, var(--surface), #fff 72%);
  color: var(--text);
}

.home .hero { padding-top: calc(var(--header-h) + 28px); }

.hero-grid, .split, .form-layout, .footer-grid, .niche-grid, .steps, .benefit-grid, .type-grid, .contact-grid {
  display: grid;
  gap: 28px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--soft);
  color: var(--hero-fg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layout-search .kicker {
  background: #fff;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 12px; }

h1 { font-size: clamp(2.15rem, 8vw, 4.4rem); font-weight: 800; }

h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }

h3 { font-size: 1.15rem; }

.hero h1 { margin-top: 16px; color: var(--hero-fg); }

.layout-search .hero h1 { color: var(--ink); }

.accent { color: var(--accent); }

.lede {
  font-size: 1.05rem;
  max-width: 46rem;
  color: inherit;
  opacity: 0.92;
  margin: 0 0 22px;
}

.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn-full { width: 100%; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.hero-visual { display: grid; place-items: center; position: relative; }

.portrait {
  width: min(340px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.float-chip {
  position: absolute;
  left: 6%;
  bottom: 8%;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  max-width: 180px;
}

.float-chip strong { display: block; font-size: 0.95rem; }

.section { padding: 64px 0; }

.section-head { max-width: 640px; margin-bottom: 28px; }

.section-label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.surface { background: var(--surface); }

.steps { grid-template-columns: 1fr; }

.step, .card, .type-card, .niche-card, .form-card, .legal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(16, 36, 32, 0.03);
}

.step-num, .type-ico, .niche-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 12px;
}

.niche-ico svg { width: 22px; height: 22px; }

.niche-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.niche-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.niche-card p { color: var(--muted); margin: 0 0 16px; flex: 1; }

.niche-card span { font-weight: 700; color: var(--ink); }

.type-grid { grid-template-columns: 1fr 1fr; }

.type-card { text-align: left; }
.type-card img { width: 42px; height: 42px; margin-bottom: 8px; object-fit: contain; }
.type-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.benefit-list li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.benefit-list strong { display: block; }
.benefit-list span { color: var(--muted); }

.media-frame {
  border-radius: 28px;
  overflow: hidden;
  min-height: 240px;
  background: var(--ink);
}

.media-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }

.form-card { padding: 18px; color: var(--text); }
.field.wide { grid-column: 1 / -1; }
.form-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
}

.progress li {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.progress li::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  margin-bottom: 6px;
}

.progress li.is-active,
.progress li.is-done { color: var(--ink); }

.progress li.is-active::before,
.progress li.is-done::before { background: var(--accent); }

.form-step[hidden] { display: none; }

.fields { display: grid; gap: 12px; }

.field { display: grid; gap: 6px; }

.field label { font-weight: 700; font-size: 0.92rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #cfd8d4;
  background: #fff;
  padding: 10px 12px;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); }

.form-nav { display: flex; gap: 10px; margin-top: 8px; }
.form-nav .btn { flex: 1; }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #24332f;
}

.consent input { width: 20px; height: 20px; margin-top: 3px; }
.consent a { color: var(--ink); }

.gov-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff8e8;
  color: #3d2e10;
  border: 1px solid #efd7a2;
  font-size: 0.92rem;
}

.layout-search .gov-note {
  background: #f4f6ff;
  color: #1d2754;
  border-color: #d5def8;
}

.form-message {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8efe8;
  color: #6b3414;
}

.form-message.is-error { background: #fdecec; color: #8d1d1d; }

.form-success {
  padding: 8px 4px 12px;
}

.form-success h3 { font-size: 1.6rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 8px 0 0; }

.cta {
  background: linear-gradient(160deg, var(--hero-a), var(--ink-deep));
  color: #fff;
  border-radius: 28px;
  padding: 32px 22px;
}

.layout-search .cta { color: #fff; }

.footer {
  background: var(--ink-deep);
  color: #e7f0ec;
  padding: 48px 0 28px;
}

.layout-search .footer { background: #12141c; color: #e6e8f2; }

.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer h2, .footer h3 { color: #fff; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 8px 0; }

.disclaimer { font-size: 0.86rem; color: #d5e0db; }
.layout-search .disclaimer { color: #c9cde0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.avensa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.avensa img { width: 26px; height: auto; }

.page-hero { padding: 28px 0 10px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--ink); }

.legal-card { padding: 8px 22px 28px; }
.legal-card h2 { margin-top: 28px; font-size: 1.35rem; }
.legal-card p, .legal-card li { color: #33423e; }
.partners { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.partners span {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.mobile-bar .btn { min-height: 46px; }

.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 46;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.fab-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.fab-menu {
  display: none;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  min-width: 230px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.fab.is-open .fab-menu { display: grid; }

.fab-menu a {
  text-decoration: none;
  padding: 12px 14px;
  display: grid;
  border-bottom: 1px solid var(--line);
}

.fab-menu a strong { display: block; }
.fab-menu a span { color: var(--muted); font-size: 0.85rem; }

.note { color: var(--muted); font-size: 0.92rem; }

.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.topic-pills a {
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.layout-search .topic-pills a {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }

@media (min-width: 720px) {
  .fields.two, .contact-grid, .split, .form-layout { grid-template-columns: 1fr 1fr; }
  .steps, .niche-grid { grid-template-columns: repeat(3, 1fr); }
  .type-grid { grid-template-columns: repeat(4, 1fr); }
  .benefit-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .footer-grid { grid-template-columns: 1.3fr 0.8fr 0.9fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 88px; }
  .portrait { width: min(420px, 38vw); }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    color: inherit;
    box-shadow: none;
    padding: 0;
    gap: 2px;
  }
  .layout-search .nav-links { background: transparent; color: inherit; }
  .nav-links a { padding: 8px 12px; }
  .nav-links a:hover,
  .nav-links a[aria-current="page"],
  .layout-search .nav-links a:hover,
  .layout-search .nav-links a[aria-current="page"] { background: var(--soft); }
  .layout-search .nav-links a:hover { background: #eef1f8; }
  .nav-drop { position: relative; }
  .nav-drop summary { padding: 8px 12px; }
  .nav-drop ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    color: var(--ink);
    min-width: 240px;
    padding: 8px;
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .nav-drop[open] ul { display: grid; }
  .nav-drop ul a { color: var(--ink); }
  .phone-desktop { display: inline-flex; }
  body.has-bar { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .fab { display: flex; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .layout-search .hero-grid,
  .layout-bear .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

@media (max-width: 520px) {
  .brand-name small { display: none; }
}

@media (min-width: 720px) {
  .brand { font-size: 1rem; }
}

@media (max-width: 959px) {
  .phone-desktop { display: none; }
}

@media (min-width: 960px) {
  .phone-mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .niche-card { transition: none; }
}

.field { position: relative; }
.field select.is-invalid,
.field input.is-invalid,
.field textarea.is-invalid { border-color: #c0392b; }
.field-error-popup {
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 6px;
}
button[type=submit]:disabled,
button[type=submit].is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
