/* ==========================================================================
   Dr. Bruno Penque — Landing Page
   Sistema visual: navy profundo + dourado, liquid glass sobre texturas orgânicas
   ========================================================================== */

:root {
  --navy-950: #0D1630;
  --navy-900: #132048;
  --navy-800: #1B2A57;
  --blue-700: #27397A;
  --gold: #C9A063;
  --gold-soft: #E4C893;
  --gold-deep: #85652F;
  --paper: #F7F3EE;
  --cream: #EDE6DC;
  --ink: #10131C;
  --muted: #5B606E;
  --light-text: #F7F3EE;
  --light-muted: rgba(247, 243, 238, .74);
  --line: rgba(13, 22, 48, .12);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;
  --r-xl: 38px;
  --r-lg: 28px;
  --r-md: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --glass-light: linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .26));
  --glass-dark: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
  --glass-shadow: 0 24px 70px rgba(13, 22, 48, .10);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--gold); color: var(--navy-950);
  border-radius: 999px; text-decoration: none; transition: top .3s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.center { text-align: center; }
.only-desktop { display: none; }
.br-desktop { display: none; }

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy-950);
  letter-spacing: -.01em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 8.6vw, 2.6rem); }
h2 { font-size: clamp(2rem, 7vw, 3.2rem); }
h3 { font-family: var(--sans); font-size: 1.06rem; font-weight: 600; line-height: 1.35; color: var(--navy-950); }

.eyebrow {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.dark .eyebrow { color: var(--gold-soft); }
.dark h1, .dark h2, .dark h3 { color: var(--light-text); }

.section { position: relative; padding: 88px 0; overflow: hidden; overflow: clip; }
.section-head { max-width: 780px; margin: 0 auto 44px; position: relative; }
.section-lead { margin-top: 18px; font-size: 1.04rem; color: var(--muted); }
.dark .section-lead { color: var(--light-muted); }

/* ---------- Surfaces & textures ---------- */
.dark {
  color: var(--light-text);
  background:
    radial-gradient(circle at 86% 16%, rgba(39, 57, 122, .55), transparent 46%),
    radial-gradient(circle at 10% 88%, rgba(201, 160, 99, .14), transparent 42%),
    linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 55%, #0F1A3B 100%);
}
.light {
  background:
    radial-gradient(circle at 12% 18%, rgba(228, 200, 147, .30), transparent 40%),
    radial-gradient(circle at 88% 74%, rgba(39, 57, 122, .09), transparent 46%),
    url("assets/grain.png"),
    var(--paper);
  background-size: auto, auto, 180px, auto;
}
.texture {
  position: absolute; inset: -12%;
  pointer-events: none;
  background: url("assets/texture-light.svg") center / 1450px repeat;
  opacity: .82;
  animation: textureFloat 34s ease-in-out infinite alternate;
  will-change: transform;
}
.dark .texture { background-image: url("assets/texture-dark.svg"); opacity: .92; }
.dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(228, 200, 147, .22) 1px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: .25;
  -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 55%);
          mask-image: radial-gradient(circle at 80% 20%, #000, transparent 55%);
}
@keyframes textureFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-3%, 2%, 0); }
}

/* Liquid glass */
.glass, .glass-dark { position: relative; isolation: isolate; overflow: hidden; }
.glass {
  background: var(--glass-light);
  border: 1px solid rgba(255, 255, 255, .64);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
          backdrop-filter: blur(18px) saturate(120%);
}
.glass-dark {
  background: var(--glass-dark);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 44px rgba(4, 8, 28, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
          backdrop-filter: blur(18px) saturate(120%);
}
.glass::before, .glass-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .34), transparent 38%);
}
.glass-dark::before { background: linear-gradient(135deg, rgba(255, 255, 255, .13), transparent 40%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent {
  background: var(--gold);
  color: var(--navy-950);
  box-shadow: 0 12px 32px rgba(201, 160, 99, .26);
}
.btn-accent:hover { background: #D6B176; }
.btn-primary { background: var(--navy-950); color: var(--light-text); box-shadow: 0 12px 30px rgba(13, 22, 48, .18); }
.btn-primary:hover { background: var(--navy-800); }
.btn-ghost-line { background: rgba(255, 255, 255, .4); border-color: rgba(13, 22, 48, .2); color: var(--navy-950); }
.btn-ghost-line:hover { border-color: var(--navy-950); }
.btn-text { background: none; color: var(--navy-950); padding: 0 10px; text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover { transform: none; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: .84rem; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .72rem; }

/* ---------- Header (dark glass) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  background: rgba(13, 22, 48, .64);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
          backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background-color .4s var(--ease), height .4s var(--ease);
}
.site-header.is-scrolled { background: rgba(13, 22, 48, .94); }

.header-inner {
  height: 100%;
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; color: var(--light-text); }
.brand-role { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-top: 3px; }

.menu-toggle {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  display: grid; place-content: center; gap: 6px;
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--light-text); transition: transform .4s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: rgba(13, 22, 48, .97);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  padding: 6px var(--gutter) 28px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav ul { display: flex; flex-direction: column; }
.nav a {
  display: block; padding: 15px 2px;
  font-family: var(--serif); font-size: 1.45rem; color: var(--light-text);
  text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nav-cta { width: 100%; margin-top: 22px; min-height: 52px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 10px) 0 56px; overflow: hidden; overflow: clip; }
.hero-grid { display: flex; flex-direction: column; position: relative; z-index: 1; }
.hero-media {
  margin: 0 -8px;
  border-radius: 24px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}
.hero-media img { width: 100%; aspect-ratio: 1 / 1; max-height: 52svh; object-fit: cover; object-position: 50% 26%; }
.hero-copy { text-align: center; margin-top: -4px; }
.hero-lead { margin: 16px auto 0; max-width: 34ch; color: var(--light-muted); font-size: 1.02rem; }
.hero-actions { margin-top: 24px; }
.hero-actions .btn { width: 100%; max-width: 380px; }
.hero-cred { margin-top: 16px; font-size: .82rem; color: rgba(247, 243, 238, .62); }

.authority-shell {
  margin-top: 44px;
  border-radius: var(--r-lg);
  padding: 6px;
  z-index: 1;
  -webkit-backdrop-filter: blur(22px) saturate(125%);
          backdrop-filter: blur(22px) saturate(125%);
}
.authority-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.authority-item {
  padding: 18px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.authority-item strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--light-text); line-height: 1.2; }
.authority-item span { font-size: .84rem; color: var(--light-muted); line-height: 1.45; }
.tagline {
  text-align: center;
  padding: 16px 8px 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-soft);
}
.tagline i { font-style: normal; font-size: .6rem; margin: 0 8px; opacity: .8; }
@media (max-width: 420px) {
  .tagline { font-size: .64rem; letter-spacing: .14em; }
  .tagline i { margin: 0 5px; }
}

/* ---------- Need cards ---------- */
.need-grid { display: grid; gap: 14px; position: relative; }
.need-card { padding: 28px 24px; border-radius: var(--r-lg); }
.need-num { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--gold-deep); margin-bottom: 10px; }
.need-card h3 { margin-bottom: 8px; }
.need-card p { color: var(--muted); font-size: .97rem; }

.identification-close {
  margin-top: 22px;
  border-radius: var(--r-lg);
  padding: 26px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.identification-close p { font-family: var(--serif); font-size: 1.38rem; line-height: 1.3; color: var(--navy-950); max-width: 40ch; }
.identification-close .btn { width: 100%; max-width: 340px; }

/* ---------- Journey ---------- */
.journey::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(228, 200, 147, .14);
  right: -260px; top: -180px; pointer-events: none;
}
.journey-list { display: grid; gap: 14px; margin-bottom: 40px; position: relative; }
.journey-step { padding: 28px 24px; border-radius: 24px; }
.step-num { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--gold-soft); margin-bottom: 14px; }
.journey-step h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-bottom: 8px; }
.journey-step p { color: var(--light-muted); font-size: .97rem; }
.journey .btn-lg { width: 100%; max-width: 400px; }

/* ---------- Areas ---------- */
.area-grid { display: grid; gap: 14px; position: relative; }
.area { padding: 28px 24px; border-radius: var(--r-lg); }
.area h3 { font-family: var(--serif); font-size: 1.62rem; font-weight: 500; line-height: 1.15; margin-bottom: 18px; }
.area dl { display: grid; gap: 12px; }
.area dl > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.area dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; padding-top: 3px; }
.area dd { color: var(--muted); font-size: .96rem; }

.medical-note, .notice {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--muted);
}
.medical-note { padding: 18px 22px; border-radius: var(--r-md); -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; }
.about-media {
  padding: 10px;
  border-radius: 34px;
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--glass-shadow);
}
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; }
.about-copy h2 { margin-bottom: 20px; }
.doctor-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.doctor-facts li {
  padding: 7px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--navy-950);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 4px 14px rgba(13, 22, 48, .05);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
          backdrop-filter: blur(18px) saturate(118%);
}
.doctor-facts li:first-child { background: var(--navy-950); color: var(--light-text); border-color: var(--navy-950); }
.about-copy > p:not(.eyebrow) { margin-bottom: 14px; }
.about-points { margin: 26px 0 30px; display: grid; gap: 14px; }
.about-points li { padding-left: 22px; position: relative; color: var(--muted); }
.about-points li::before { content: ""; position: absolute; left: 0; top: .74em; width: 10px; height: 1px; background: var(--gold); }
.about-points strong { color: var(--navy-950); font-weight: 600; }
.about-copy .btn { width: 100%; }

/* ---------- Conversion ---------- */
.conversion-shell {
  max-width: 920px; margin: 0 auto;
  border-radius: var(--r-xl);
  padding: 44px 24px;
  text-align: center;
  -webkit-backdrop-filter: blur(24px) saturate(120%);
          backdrop-filter: blur(24px) saturate(120%);
}
.conversion-shell h2 { margin-bottom: 16px; }
.conversion-shell > p:not(.eyebrow) { color: var(--light-muted); max-width: 52ch; margin: 0 auto 30px; }
.conversion-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.conversion-actions .btn { width: 100%; max-width: 380px; }
.conversion-modes { font-size: .84rem; color: rgba(247, 243, 238, .6); }

/* ---------- Carousel ---------- */
.carousel { position: relative; --per-view: 1; --gap: 14px; }
.carousel-viewport { overflow: hidden; touch-action: pan-y; border-radius: 24px; }
.carousel-track { display: flex; gap: var(--gap); will-change: transform; }
.carousel-track.is-animating { transition: transform .6s var(--ease); }
.carousel-slide { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); min-width: 0; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
          backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 8px 22px rgba(13, 22, 48, .08);
  display: grid; place-items: center;
  transition: background-color .3s var(--ease);
}
.carousel-arrow:hover { background: rgba(255, 255, 255, .8); }
.carousel-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--navy-950); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.carousel-dots { display: flex; gap: 2px; align-items: center; }
.carousel-dot { width: 30px; height: 24px; border: 0; padding: 0; background: transparent; display: grid; place-items: center; }
.carousel-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px;
  background: rgba(13, 22, 48, .2);
  transition: width .35s var(--ease), background-color .35s var(--ease);
}
.carousel-dot[aria-current="true"]::before { width: 26px; background: var(--gold); }

.result-img { border-radius: 24px; overflow: hidden; background: var(--cream); }
.result-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.result-caption { margin-top: 12px; font-size: .9rem; color: var(--muted); text-align: center; }

.review {
  height: 100%;
  padding: 26px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .84));
  border: 1px solid rgba(13, 22, 48, .06);
  display: flex; flex-direction: column; gap: 14px;
}
.review-top { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--navy-950); color: var(--gold-soft);
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-weight: 600; color: var(--navy-950); line-height: 1.3; }
.review-date { font-size: .82rem; color: var(--muted); }
.review-g { margin-left: auto; width: 22px; height: 22px; flex: none; }
.review-stars { color: var(--gold); letter-spacing: 3px; }
.review-text { font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-expanded .review-text { -webkit-line-clamp: unset; display: block; }
.review-more { align-self: flex-start; border: 0; background: none; padding: 0; font-size: .86rem; font-weight: 600; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.reviews .center .btn { margin-top: 32px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 900px; }
.accordion { display: grid; gap: 12px; position: relative; }
.acc-item {
  border-radius: 22px;
  -webkit-backdrop-filter: blur(18px) saturate(118%);
          backdrop-filter: blur(18px) saturate(118%);
}
.acc-item h3 { margin: 0; }
.acc-btn {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 18px 20px 22px;
  border: 0; background: none; text-align: left;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.45; color: var(--navy-950);
}
.acc-btn::after {
  content: ""; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background:
    linear-gradient(var(--navy-950), var(--navy-950)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--navy-950), var(--navy-950)) center / 1.5px 11px no-repeat,
    rgba(255, 255, 255, .7);
  border: 1px solid rgba(13, 22, 48, .1);
  transition: transform .4s var(--ease), background-color .4s var(--ease);
}
.acc-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel p { padding: 0 22px 22px; color: var(--muted); }
.faq-cta {
  margin-top: 26px;
  border-radius: var(--r-lg);
  padding: 24px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.faq-cta p { color: var(--navy-950); font-weight: 500; }
.faq-cta .btn { width: 100%; max-width: 300px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(247, 243, 238, .78); padding: 56px 0 28px; font-size: .92rem; }
.footer-inner { display: grid; gap: 28px; }
.site-footer .brand-name { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.footer-brand p { line-height: 1.55; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links a, .link-btn { color: rgba(247, 243, 238, .86); text-decoration: none; border: 0; background: none; padding: 0; font-size: .92rem; }
.footer-links a:hover, .link-btn:hover { color: var(--gold-soft); }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(228, 200, 147, .18); display: grid; gap: 6px; font-size: .82rem; color: rgba(247, 243, 238, .6); }

/* ---------- Modal (glass bottom sheet → painel) ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: end center; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 8, 26, .62);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  animation: fade .35s var(--ease);
}
.modal-panel {
  position: relative;
  width: 100%; max-width: 680px;
  max-height: 94vh; overflow-y: auto;
  border-radius: 26px 26px 0 0;
  padding: 32px 20px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(251, 248, 245, .9), rgba(242, 236, 230, .82));
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 120px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(26px) saturate(125%);
          backdrop-filter: blur(26px) saturate(125%);
  animation: rise .45s var(--ease);
}
.modal-panel h2 { font-size: clamp(1.75rem, 6.4vw, 2.4rem); padding-right: 40px; margin-bottom: 18px; }
.modal-panel .eyebrow { margin-bottom: 8px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(13, 22, 48, .12); background: rgba(255, 255, 255, .6);
  display: grid; place-items: center;
}
.modal-close svg { width: 16px; height: 16px; stroke: var(--navy-950); stroke-width: 1.6; fill: none; }

.progress { height: 5px; border-radius: 99px; background: rgba(13, 22, 48, .08); overflow: hidden; }
.progress span {
  display: block; height: 100%; width: 33.34%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-700), var(--gold));
  transition: width .5s var(--ease);
}
.step-count { margin: 10px 0 18px; font-size: .8rem; color: var(--muted); }
.step-count b { color: var(--navy-950); }

.lead-step legend { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--navy-950); margin-bottom: 14px; padding: 0; line-height: 1.2; }
.choice-grid { display: grid; gap: 10px; }
.choice-card { position: relative; display: block; }
.choice-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-card span {
  display: grid; gap: 2px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(13, 22, 48, .1);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
          backdrop-filter: blur(16px) saturate(118%);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.choice-card strong { font-size: .98rem; font-weight: 600; color: var(--navy-950); }
.choice-card small { font-size: .86rem; color: var(--muted); }
.choice-card:hover span { border-color: rgba(13, 22, 48, .3); }
.choice-card input:checked + span { background: var(--navy-950); border-color: var(--navy-950); }
.choice-card input:checked + span strong { color: var(--light-text); }
.choice-card input:checked + span small { color: var(--light-muted); }
.choice-card input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: .86rem; font-weight: 500; color: var(--navy-950); }
.field input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border-radius: 16px; border: 1px solid rgba(13, 22, 48, .14);
  background: rgba(255, 255, 255, .8); font-size: 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 160, 99, .2); }
.field .is-invalid { border-color: #A4433A; }
.confirm-card {
  margin-top: 6px; padding: 14px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8);
  font-size: .9rem; color: var(--muted);
  display: grid; gap: 2px;
}
.confirm-card b { color: var(--navy-950); font-weight: 600; }
.form-error { margin-top: 12px; color: #A4433A; font-size: .9rem; }
.lead-actions { display: flex; gap: 10px; margin-top: 20px; }
.lead-actions [data-next] { flex: 1; white-space: nowrap; padding: 0 18px; }
.form-note { margin-top: 14px; font-size: .8rem; color: var(--muted); text-align: center; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* ---------- Cookies ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 110;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(251, 248, 245, .9), rgba(242, 236, 230, .84));
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 18px 60px rgba(4, 8, 28, .28);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
          backdrop-filter: blur(22px) saturate(125%);
  display: grid; gap: 12px;
  font-size: .88rem; line-height: 1.5;
  animation: rise .45s var(--ease);
}
.cookie-banner p { color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-banner .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
.cookie-banner .cookie-actions .btn { padding: 0 8px; white-space: nowrap; letter-spacing: .04em; }
.cookie-banner .cookie-actions [data-cookie="customize"] { grid-column: 1 / -1; order: 3; min-height: 30px; }
.modal-sm { max-width: 520px; }
.cookie-cats { display: grid; gap: 10px; margin-bottom: 20px; }
.cookie-cat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(13, 22, 48, .08); }
.cookie-cat span { display: grid; gap: 2px; }
.cookie-cat strong { color: var(--navy-950); font-size: .95rem; }
.cookie-cat small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.cookie-cat input { width: 22px; height: 22px; accent-color: var(--navy-950); flex: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Legal & error pages ---------- */
.legal { padding: calc(var(--header-h) + 48px) 0 72px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.7rem; margin: 36px 0 12px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--gold-deep); }
.legal-header .header-inner { justify-content: space-between; }
.legal-header .brand { align-items: flex-start; }
.back-link { font-size: .86rem; font-weight: 500; color: var(--light-text); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.error-page .code { font-family: var(--serif); font-size: clamp(5rem, 22vw, 9rem); color: var(--gold); line-height: 1; }
.error-page h1 { margin: 10px 0 14px; }
.error-page p { color: var(--muted); max-width: 42ch; margin: 0 auto 28px; }

/* ==========================================================================
   ≥ 400px
   ========================================================================== */
@media (min-width: 400px) {
  .choice-grid.two { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Tablet ≥ 768px
   ========================================================================== */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .section { padding: 112px 0; }
  .br-desktop { display: inline; }

  .hero-media { margin: 0; }
  .hero-media img { aspect-ratio: 16 / 12; max-height: 56vh; object-position: 50% 30%; }
  .hero-actions .btn { width: auto; }

  .authority-list { grid-template-columns: repeat(4, 1fr); }
  .authority-item { padding: 22px 16px; }

  .need-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .need-card { padding: 32px 28px; min-height: 220px; }
  .identification-close { flex-direction: row; justify-content: space-between; text-align: left; padding: 28px 32px; }
  .identification-close .btn { width: auto; flex: none; }

  .journey-list { grid-template-columns: 1fr 1fr; gap: 18px; }
  .journey .btn-lg { width: auto; }

  .area-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .area { padding: 34px 32px; }

  .about-copy .btn { width: auto; }
  .conversion-shell { padding: 64px 48px; }
  .conversion-actions .btn { width: auto; }

  .faq-cta { flex-direction: row; justify-content: space-between; text-align: left; padding: 22px 26px 22px 30px; }
  .faq-cta .btn { width: auto; }

  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-links { align-items: flex-end; }

  .modal { place-items: center; padding: 24px; }
  .modal-panel { border-radius: 32px; padding: 44px 40px 36px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }

  .cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 500px; padding: 22px; }
  .cookie-banner .cookie-actions { grid-template-columns: auto 1fr 1fr; }
  .cookie-banner .cookie-actions [data-cookie="customize"] { grid-column: auto; order: 0; min-height: 42px; }

  .carousel { --per-view: 2; --gap: 20px; }
  .carousel-arrow { width: 48px; height: 48px; }
}

/* ==========================================================================
   Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --header-h: 84px; }
  .site-header.is-scrolled { height: 72px; }

  .only-desktop { display: inline; }
  .only-mobile { display: none; }

  .header-inner { justify-content: space-between; gap: 32px; }
  .brand { align-items: flex-start; }
  .menu-toggle { display: none; }
  .nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    display: flex; align-items: center; gap: 30px;
  }
  .nav ul { flex-direction: row; gap: 28px; }
  .nav a {
    padding: 6px 0; border: 0; position: relative;
    font-family: var(--sans); font-size: .88rem; font-weight: 500; color: rgba(247, 243, 238, .86);
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--gold-soft); transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
  }
  .nav a:hover { color: var(--light-text); }
  .nav a:hover::after { transform: scaleX(1); }
  .nav-cta { width: auto; margin: 0; min-height: 46px; }

  h1 { font-size: clamp(3rem, 4.1vw, 4rem); }

  .hero { padding: calc(var(--header-h) + 48px) 0 72px; min-height: 760px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(380px, .78fr); align-items: center; gap: 64px; }
  .hero-copy { order: -1; text-align: left; margin: 0; }
  .hero-lead { margin: 24px 0 0; max-width: 46ch; font-size: 1.1rem; }
  .hero-actions { margin-top: 36px; }
  .hero-cred { margin-top: 24px; }
  .hero-media {
    border-radius: 34px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 40px 80px rgba(2, 6, 22, .45);
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-media img { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 120px); min-height: 520px; object-position: 50% 28%; }
  .authority-shell { margin-top: 64px; }

  .need-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .journey-list { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .journey-step { padding: 32px 26px; }

  .about-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }

  .carousel { --per-view: 3; --gap: 20px; }
}

@media (min-width: 1440px) {
  .container, .header-inner { max-width: 1280px; }
}

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