/* RemoteBeyond — Design System
   Claro / minimalista / acento morado (marca). Compartido entre las 4 páginas. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-soft-2: #eef1f5;
  --ink: #0f1115;
  --ink-soft: #4b5563;
  --ink-faint: #8a93a3;
  --line: #e6e8ec;
  --accent: #2c0a71;
  --accent-dark: #1e0750;
  --accent-soft: #efeafb;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 21, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 17, 21, 0.06);
  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; color: var(--ink-soft); }
.lede { font-size: 1.15rem; line-height: 1.6; }

.section {
  padding: 96px 0;
}
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }
.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.footer-brand .logo-img { height: 48px; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Hero */
.hero {
  padding: 88px 0 80px;
  text-align: center;
}
.hero h1 { max-width: 820px; margin: 0 auto 22px; }
.hero .lede { max-width: 620px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-faint); }

/* Logo strip */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 36px 0;
}
.logo-strip span {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* Grid / cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; }

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.metric .num {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}
.metric .label { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

/* Talent grid ("Meet the talent" cards) */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) {
  .talent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .talent-grid { grid-template-columns: 1fr; }
}
.talent-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
}
.talent-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  background: var(--bg-soft-2);
}
.talent-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.talent-name .verified { color: var(--accent-dark); font-size: 12px; }
.talent-role {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: 3px;
}
.talent-bio {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 10px;
  line-height: 1.5;
}

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.compare thead th {
  background: var(--bg-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { font-weight: 600; color: var(--ink); }
.compare .col-brand { color: var(--accent-dark); font-weight: 700; background: var(--accent-soft); }
.tick { color: var(--accent-dark); font-weight: 700; }
.cross { color: var(--ink-faint); }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial .stars { color: var(--accent-dark); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial blockquote {
  margin: 0 0 20px;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.6;
}
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-soft-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--ink-soft);
}
.who .name { font-weight: 600; font-size: 14px; }
.who .role { font-size: 13px; color: var(--ink-faint); }

/* Guarantee */
.guarantee {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.guarantee h2, .guarantee p { color: var(--white); }
.guarantee p { color: rgba(255,255,255,0.7); }
.guarantee-badge {
  flex-shrink: 0;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
}

/* FAQ — 2-column grid on desktop/tablet, single column on mobile */
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}
@media (max-width: 760px) {
  .faq-list { grid-template-columns: 1fr; }
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); background: var(--accent-soft); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p { padding: 0 0 22px; font-size: 14.5px; max-width: 680px; }

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--bg-soft);
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.field .error-msg {
  font-size: 12.5px;
  color: #dc2626;
  display: none;
}
.field.has-error input, .field.has-error select { border-color: #dc2626; }
.field.has-error .error-msg { display: block; }
.form-note { font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 14px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}
.form-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 18px;
}

/* CTA band */
.cta-band {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 520px; margin: 0 auto 28px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 14px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; }
.footer-col h4 { color: var(--white); font-size: 13.5px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--white); }
.footer-credit {
  text-align: center;
  padding-top: 18px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
}
.footer-credit a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.footer-credit a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* Roles section (tabs, all content in-page) */
.roles-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.roles-tab {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.roles-tab:hover { border-color: var(--accent); color: var(--accent-dark); }
.roles-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.roles-panel { display: none; }
.roles-panel.is-active { display: block; }
.role-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.role-card h3 { font-size: 17px; }
.role-card p { font-size: 14px; flex-grow: 1; }
.role-card .role-rate {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-dark);
}
.role-card .btn {
  align-self: flex-start;
  padding: 9px 16px;
  font-size: 13.5px;
}

/* Mega menu (Roles) */
.mega-menu-wrap { position: relative; }
.mega-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0;
}
.mega-trigger:hover { color: var(--ink); }
.mega-caret { font-size: 10px; transition: transform 0.2s ease; }
.mega-menu-wrap.is-open .mega-trigger { color: var(--ink); }
.mega-menu-wrap.is-open .mega-caret { transform: rotate(180deg); }

.mega-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(880px, 92vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}
.mega-menu-wrap.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 32px;
}
.mega-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 14px;
  font-weight: 700;
}
.mega-links { display: flex; flex-direction: column; gap: 2px; }
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
}
.mega-link:hover { background: var(--bg-soft); }
.mega-link .mega-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.mega-link strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.mega-link small { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.mega-feature-card {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mega-feature-card .eyebrow { align-self: flex-start; }
.mega-feature-card h4 { font-size: 15px; color: var(--ink); margin: 4px 0 8px; letter-spacing: 0; text-transform: none; }
.mega-feature-card p { font-size: 13px; margin-bottom: 18px; flex-grow: 1; }

/* Mobile-only Roles accordion — separate component from the mega-menu
   above, hidden by default; the mobile media query switches it on
   and hides the desktop mega-menu in its place. */
.mobile-roles-block { display: none; }

/* Desktop/tablet mega-menu only (hover dropdown). Mobile has its own rules below. */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }

/* Role page hero (two-column: content + sticky CTA) */
.role-hero {
  padding: 48px 0 0;
}
.role-hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.role-hero h1 { margin-bottom: 18px; }
.role-quick-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.role-quick-facts .fact { display: flex; flex-direction: column; gap: 4px; }
.role-quick-facts .fact .value { font-size: 20px; font-weight: 800; color: var(--ink); }
.role-quick-facts .fact .label { font-size: 12.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.03em; }

/* Sticky sidebar CTA card */
.role-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.sidebar-card .rate {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ink);
}
.sidebar-card .rate span { font-size: 1rem; font-weight: 600; color: var(--ink-faint); }
.sidebar-card ul { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 24px; }
.sidebar-card li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.sidebar-card li .tick { color: var(--accent-dark); font-weight: 700; }

/* Responsibilities list */
.responsibility-list { display: flex; flex-direction: column; gap: 14px; }
.responsibility-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.responsibility-list .resp-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.responsibility-list p { margin: 0; font-size: 14.5px; }
.responsibility-list strong { color: var(--ink); }

/* Skills chips */
.skills-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.skills-chips span {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Savings calculator */
.calculator {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.calc-slider-row { margin-bottom: 28px; }
.calc-slider-row label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.calc-slider-row label .calc-hours-value { color: var(--accent-dark); }
.calc-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
}
.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.calc-result {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}
.calc-result.is-savings { background: var(--accent-soft); }
.calc-result .calc-label { font-size: 12.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.calc-result .calc-value { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.calc-result.is-savings .calc-value { color: var(--accent-dark); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .role-hero-grid { grid-template-columns: 1fr; }
  .role-sidebar { position: static; }
  .calc-results { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .role-quick-facts { gap: 20px; }
  .calculator { padding: 24px; }
}

/* Consultation page: form + info two-column layout */
.consult-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .consult-grid { grid-template-columns: 1fr; }
}

/* Placeholder badge (visible only in mockup, remove-friendly) */
.placeholder-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .guarantee { flex-direction: column; text-align: center; }
}
@media (max-width: 760px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 56px 0; }
  .hero { padding: 52px 0 44px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .cta-band { padding: 32px 24px; }
  .guarantee { padding: 32px 24px; gap: 24px; }
  .compare { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .form-card { padding: 24px; }
}

/* ============================================================
   Mobile navigation — built independently from the desktop/tablet
   header nav (which stays a horizontal bar with a hover mega-menu).
   Below 760px the same markup is restyled into a full-height,
   centered drawer so it doesn't inherit desktop dropdown behavior.
   ============================================================ */
@media (max-width: 760px) {
  .header-actions .btn-secondary { display: none; }
  .nav-toggle { display: flex; }

  .nav-links { display: none; }

  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 76px; left: 0; right: 0;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 4px 24px 40px;
    gap: 0;
    z-index: 55;
  }

  /* Top-level links: full-width rows, centered, with a divider so the
     drawer reads as a clean stacked list instead of a squeezed bar. */
  .nav-links > a {
    width: 100%;
    max-width: 360px;
    text-align: center;
    padding: 17px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  /* The desktop/tablet hover mega-menu is retired entirely on mobile —
     replaced by .mobile-roles-block below, a standalone component that
     shares zero selectors with it, so there is no cascade to fight. */
  .mega-menu-wrap { display: none; }

  .mobile-roles-block {
    display: block;
    width: 100%;
    max-width: 360px;
  }
  .mobile-roles-trigger {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line);
    text-align: center;
    padding: 17px 4px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
  }
  .mobile-roles-caret {
    display: inline-block;
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s ease;
  }
  .mobile-roles-block.is-open .mobile-roles-caret { transform: rotate(180deg); }

  .mobile-roles-panel { display: none; }
  .mobile-roles-block.is-open .mobile-roles-panel {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    margin: 10px 0;
    padding: 4px 0 12px;
  }
  .mobile-roles-heading {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--ink-faint);
    margin: 14px 0 6px;
    padding: 0 16px;
  }
  .mobile-role-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px 20px;
  }
  .mobile-role-icon {
    display: block;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 4px;
  }
  .mobile-role-title {
    display: block;
    width: 100%;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
  }
  .mobile-role-sub {
    display: block;
    width: 100%;
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 2px;
  }

  /* Lock background scroll while the drawer is open */
  body.nav-open { overflow: hidden; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .logo-strip { gap: 28px; }
  .header-actions { gap: 10px; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: 13.5px; }
}
