/* ============================================================
   VITALDERMA — Skin Health · Telediagnóstico dermatológico con IA
   Design system
   ============================================================ */

:root {
  /* Brand */
  --navy:      #06034A;   /* deep primary */
  --navy-2:    #0B0738;   /* gradient companion */
  --navy-3:    #100C5E;   /* lifted navy panels */
  --blue:      #235ADD;   /* primary action */
  --blue-600:  #1B49BA;   /* hover */
  --cyan:      #08DCF7;   /* bright accent */

  /* Neutrals */
  --ink:       #0C1130;   /* headings on light */
  --body:      #3C4360;   /* body text */
  --muted:     #6B7392;   /* captions */
  --line:      #E5EAF4;   /* hairline borders */
  --line-2:    #EEF2FA;
  --bg:        #FFFFFF;
  --bg-soft:   #F4F7FC;   /* alternating section */
  --bg-tint:   #EEF4FE;   /* faint blue wash */

  /* Gradients */
  --grad-mark: linear-gradient(140deg, #08DCF7 0%, #2C8BF0 48%, #235ADD 100%);
  --grad-deep: linear-gradient(155deg, #0B0738 0%, #06034A 55%, #0D2A86 140%);
  --grad-text: linear-gradient(120deg, #08DCF7 0%, #4D8DF5 55%, #235ADD 100%);

  /* Type */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Radii & shadow */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 2px 10px rgba(12, 19, 48, .05);
  --shadow:    0 18px 50px -22px rgba(12, 19, 48, .28);
  --shadow-lg: 0 40px 90px -40px rgba(12, 19, 48, .42);
  --shadow-cyan: 0 24px 60px -24px rgba(35, 90, 221, .55);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 18px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 132px); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-mark);
}
.section-head { max-width: 740px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 18px;
}
.section-head .lead {
  margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--body);
}

.grad-word {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: var(--grad-mark); color: #fff;
  box-shadow: var(--shadow-cyan);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 30px 70px -22px rgba(35,90,221,.7); }
.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--on-dark:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.btn--lg { padding: 17px 34px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 26px -18px rgba(12,19,48,.3); }
.nav { display: flex; align-items: center; gap: 28px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: auto; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b {
  font-family: var(--font-display); font-size: 20px; letter-spacing: .01em; color: var(--ink);
  font-weight: 800;
}
.brand .wm b span { font-weight: 300; color: var(--ink); }
.brand .wm small {
  font-family: var(--font-display); font-weight: 600; font-size: 9.5px; letter-spacing: .42em;
  color: var(--blue); margin-top: 4px; text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink);
  padding: 10px 14px; border-radius: 10px; cursor: pointer; background: none; border: 0;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--blue); background: var(--bg-tint); }
.nav-link .chev { width: 13px; height: 13px; transition: transform .2s; opacity: .65; }
.nav-item.open .chev { transform: rotate(180deg); }
.nav-cta { margin-left: 10px; }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
/* invisible bridge so the cursor can cross the gap without closing the menu */
.dropdown::before { content: ""; position: absolute; top: -22px; left: -10px; right: -10px; height: 24px; }
.dd-link { display: flex; gap: 13px; align-items: flex-start; padding: 12px 13px; border-radius: 13px; transition: background .15s; }
.dd-link:hover { background: var(--bg-soft); }
.dd-ic {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--blue);
}
.dd-ic svg { width: 19px; height: 19px; }
.dd-txt b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.dd-txt span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* mobile toggle */
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(64px, 8vw, 120px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(680px 520px at 88% -8%, rgba(8,220,247,.16), transparent 60%),
    radial-gradient(640px 540px at 8% 4%, rgba(35,90,221,.12), transparent 58%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5.1vw, 64px); font-weight: 800; }
.hero .lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 21px); max-width: 38ch; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: 13.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--blue); }

/* Hero report mock */
.mock {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 22px;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-top .t { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.mock-top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-mark); }
.mock-tag { font-size: 11.5px; font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; background: var(--bg-tint); color: var(--blue); }
.mock-img { width: 100%; height: 188px; border-radius: var(--r); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line-2); }
.mock-row:last-of-type { border-bottom: 0; }
.mock-row .k { font-size: 13.5px; color: var(--muted); }
.mock-row .v { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.pill-ok { font-size: 12px; font-weight: 600; color: #0E7C53; background: #E4F7EE; padding: 4px 11px; border-radius: 999px; }
.bar { width: 116px; height: 7px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-mark); }
.mock-foot { margin-top: 16px; display: flex; align-items: center; gap: 11px; background: var(--bg-soft); border-radius: var(--r); padding: 13px 15px; }
.mock-foot .stamp { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FFF4E1; color: #B7791F; flex: none; }
.mock-foot .stamp svg { width: 18px; height: 18px; }
.mock-foot small { font-size: 12.5px; color: var(--muted); }
.mock-foot b { display: block; font-family: var(--font-display); font-size: 13.5px; color: var(--ink); }

.mock-badge {
  position: absolute; left: -26px; bottom: 38px; background: var(--navy); color: #fff;
  border-radius: var(--r); padding: 13px 17px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 11px;
}
.mock-badge .n { font-family: var(--font-display); font-weight: 800; font-size: 22px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mock-badge span { font-size: 12px; color: rgba(255,255,255,.72); line-height: 1.3; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; }
.trust .label { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.trust .stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 60px); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); color: var(--ink); letter-spacing: -.02em; }
.stat .num span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .cap { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Benefit cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.bcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 30px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #D4DEF2; }
.bcard .ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-deep); color: #fff; margin-bottom: 22px; }
.bcard .ic svg { width: 25px; height: 25px; }
.bcard h3 { font-size: 21px; margin-bottom: 11px; }
.bcard p { font-size: 15.5px; }

/* ---------- Pipeline / flow ---------- */
.flow-line {
  display: flex; align-items: stretch; gap: 0; margin-top: 52px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--shadow-sm);
}
.flow-step { flex: 1 1 0; min-width: 130px; padding: 22px 20px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; right: -1px; top: 22px; bottom: 22px; width: 1px; background: var(--line);
}
.flow-step .tag { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--cyan); letter-spacing: .12em; }
.flow-step .arrow { color: var(--blue); }
.flow-step h4 { font-size: 16.5px; }
.flow-step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Plataforma feature blocks ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 56px; }
.fcard {
  scroll-margin-top: calc(var(--nav-h) + 26px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px;
  display: flex; gap: 22px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s;
}
.fcard:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.fcard .num {
  flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #fff; background: var(--grad-mark);
}
.fcard h3 { font-size: 20px; margin-bottom: 11px; }
.fcard p { font-size: 15px; }

/* ---------- Steps (Funcionamiento) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step .n {
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-deep); margin-bottom: 20px;
}
.step .ic { position: absolute; top: 30px; right: 28px; color: var(--blue); opacity: .85; }
.step .ic svg { width: 24px; height: 24px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Detail blocks (Funcionamiento dropdown content) ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 50px; }

/* ---------- Routes ---------- */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.route { border-radius: var(--r-lg); padding: 34px; border: 1px solid var(--line); background: #fff; }
.route--std { }
.route--urg { background: var(--grad-deep); border-color: transparent; color: rgba(255,255,255,.82); }
.route--urg h3, .route--urg .rtag b { color: #fff; }
.rtag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.rtag i { width: 10px; height: 10px; border-radius: 50%; }
.route--std .rtag i { background: #0E9E63; }
.route--urg .rtag i { background: var(--cyan); box-shadow: 0 0 0 4px rgba(8,220,247,.25); }
.route--std .rtag b { color: #0E9E63; }
.route--urg .rtag b { color: var(--cyan); }
.route h3 { font-size: 23px; margin-bottom: 12px; }
.route p { font-size: 15.5px; }
.route--urg p { color: rgba(255,255,255,.78); }

/* ---------- Disclaimer band ---------- */
.disclaimer {
  margin-top: 52px; display: flex; gap: 18px; align-items: center;
  background: var(--bg-tint); border: 1px solid #D7E5FB; border-radius: var(--r-lg); padding: 26px 30px;
}
.disclaimer .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.disclaimer .ic svg { width: 24px; height: 24px; }
.disclaimer b { font-family: var(--font-display); color: var(--ink); }
.disclaimer p { font-size: 15px; }

/* ---------- Dark CTA / Contact ---------- */
.contact { position: relative; background: var(--grad-deep); color: rgba(255,255,255,.8); overflow: clip; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(620px 460px at 92% -10%, rgba(8,220,247,.22), transparent 60%),
    radial-gradient(560px 500px at -6% 108%, rgba(35,90,221,.32), transparent 60%);
}
.contact .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact .eyebrow { color: var(--cyan); }
.contact .eyebrow::before { background: var(--cyan); }
.contact h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-top: 18px; }
.contact .lead { margin-top: 20px; font-size: 18px; color: rgba(255,255,255,.78); max-width: 42ch; }
.contact-info { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.cinfo { display: flex; gap: 15px; align-items: flex-start; }
.cinfo .ic { flex: none; width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; color: var(--cyan); }
.cinfo .ic svg { width: 21px; height: 21px; }
.cinfo b { display: block; font-family: var(--font-display); color: #fff; font-size: 16px; }
.cinfo a, .cinfo span { font-size: 14.5px; color: rgba(255,255,255,.72); }
.cinfo a:hover { color: var(--cyan); }

/* Form */
.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(28px, 3vw, 42px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink); }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  transition: border-color .18s, box-shadow .18s, background .18s; width: 100%;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(35,90,221,.12);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7392' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; }
.consent input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.consent label { font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-inline { appearance: none; border: 0; padding: 0; background: none; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; }
.form-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 14px; justify-content: center; }
.form-note svg { width: 14px; height: 14px; color: #0E9E63; }
form.is-sending .btn, .btn:disabled { opacity: .68; cursor: wait; transform: none; }
.form-ok { text-align: center; padding: 30px 10px; display: none; }
.form-ok.show { display: block; }
.form-ok .check { width: 64px; height: 64px; border-radius: 50%; background: #E4F7EE; color: #0E9E63; display: grid; place-items: center; margin: 0 auto 18px; }
.form-ok h3 { font-size: 22px; margin-bottom: 8px; }
.form-ok p { font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.62); padding-block: 56px 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .brand .wm b, .footer .brand .wm b span { color: #fff; }
.footer .brand .wm small { color: var(--cyan); }
.footer .f-about { margin-top: 20px; font-size: 14.5px; max-width: 38ch; color: rgba(255,255,255,.6); }
.footer h5 { font-family: var(--font-display); color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 14.5px; color: rgba(255,255,255,.62); transition: color .15s; }
.footer ul a:hover { color: var(--cyan); }
.footer-bot { margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-bot .legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bot a { font-size: 13px; color: rgba(255,255,255,.55); }
.footer-bot a:hover { color: var(--cyan); }
.footer-bot button { appearance: none; border: 0; padding: 0; background: none; font: inherit; font-size: 13px; color: rgba(255,255,255,.55); cursor: pointer; }
.footer-bot button:hover, .footer-bot button:focus-visible { color: var(--cyan); }
.footer-bot .cr { font-size: 13px; color: rgba(255,255,255,.45); }

.legal-modal { width: min(720px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); border: 0; border-radius: 8px; padding: 0; color: var(--body); box-shadow: var(--shadow-lg); }
.legal-modal::backdrop { background: rgba(6,3,74,.58); backdrop-filter: blur(4px); }
.legal-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.legal-modal__head h3 { font-size: 22px; letter-spacing: 0; }
.legal-modal__close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.legal-modal__close:hover, .legal-modal__close:focus-visible { border-color: var(--blue); color: var(--blue); }
.legal-modal__body { padding: 22px 24px 26px; display: grid; gap: 14px; font-size: 14.5px; line-height: 1.65; }
.legal-modal__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Mobile menu panel ---------- */
.m-panel {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 190; background: #fff;
  transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  padding: 22px var(--gutter) 60px; display: none;
}
.m-panel.open { transform: translateX(0); }
.m-panel .m-link { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); }
.m-panel .m-sub { padding: 4px 0 12px 0; }
.m-panel .m-sub a { display: block; font-size: 15.5px; color: var(--body); padding: 9px 0 9px 16px; }
.m-panel .btn { width: 100%; margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav > .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .m-panel { display: block; }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .feat-grid, .detail-grid, .routes, .form-grid { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { display: none; }
  .flow-step { border-bottom: 1px solid var(--line); }
  .flow-line { flex-direction: column; }
  .mock-badge { left: 12px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .brand .wm small { letter-spacing: .3em; }
}

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