/* ============================================================
   LinkFace · Site styles
   Semantic classes replacing the prototype's inline styles.
   Faithful to the approved Claude Design visual (CLAUDE.md):
   Sora + Inter, navy/blue/amber, pill buttons, soft navy shadows.
   Mobile-first; enhances up at >=820px (tabs) like the original.
   ============================================================ */

/* ---- Layout helpers ---------------------------------------- */
.lf-container { max-width: var(--maxw-content); margin: 0 auto; }
.lf-section { padding: clamp(68px, 9vw, 104px) var(--gutter); }
.lf-section--tint { background: var(--bg-soft); border-top: 1px solid var(--line); }
.lf-section--white { background: #fff; }
.lf-head { text-align: center; margin: 0 auto clamp(34px, 5vw, 52px); max-width: 720px; }
.lf-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 16px;
}
.lf-eyebrow--amber { color: var(--amber-500); }
.lf-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--text-strong);
  margin: 0;
}
.lf-lead {
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.6;
  color: var(--slate-500);
  margin: 18px 0 0;
}

/* ---- Buttons (pill) ---------------------------------------- */
.lf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.lf-btn--primary {
  color: var(--navy-900);
  background: var(--amber-500);
  box-shadow: var(--glow-amber);
}
.lf-btn--primary:hover { background: var(--amber-600); transform: translateY(-2px); text-decoration: none; }
.lf-btn--sm { font-size: 14px; padding: 9px 18px; }
.lf-btn--lg { font-size: 16px; padding: 15px 28px; }
.lf-btn--block { width: 100%; }
.lf-btn:disabled { opacity: .6; cursor: default; pointer-events: none; }

/* ---- Header / nav ------------------------------------------ */
.lf-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.lf-brand { display: block; flex: none; }
.lf-brand img { height: 26px; width: auto; display: block; }
.lf-nav { display: flex; gap: clamp(16px, 2vw, 28px); font-size: 15px; }
.lf-navlink { color: var(--ink-800); text-decoration: none; font-weight: 500; transition: color .2s var(--ease-out); }
.lf-navlink:hover { color: var(--blue-500); text-decoration: none; }
.lf-header__actions { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 16px); flex: none; }

/* Language switcher */
.lf-lang { position: relative; }
.lf-lang-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 6px 9px; cursor: pointer;
  font-family: var(--font-body); transition: border-color .2s var(--ease-out);
}
.lf-lang-trigger:hover { border-color: var(--line-strong); }
.lf-flag {
  display: inline-flex; width: 22px; height: 15px; border-radius: 3px;
  overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.lf-flag svg { display: block; }
.lf-lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 6px; min-width: 186px;
  display: flex; flex-direction: column; gap: 2px;
}
.lf-lang-menu[hidden] { display: none; }
.lf-lang-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 11px; border: none; background: none; border-radius: 8px;
  cursor: pointer; font: 500 14px var(--font-body); color: var(--ink-800);
  text-align: left; text-decoration: none; transition: background .15s var(--ease-out);
}
.lf-lang-item:hover { background: var(--bg-soft); text-decoration: none; }
.lf-lang-item__check { margin-left: auto; color: var(--blue-500); }

/* Mobile menu toggle (hamburger) */
.lf-menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-800); cursor: pointer;
}
.lf-menu-toggle:hover { border-color: var(--line-strong); }

/* ---- Hero -------------------------------------------------- */
.lf-hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 11vw, 120px) var(--gutter) clamp(76px, 10vw, 104px);
  color: #fff;
  background:
    radial-gradient(1000px 620px at 50% -18%, rgba(47, 85, 151, .5), transparent 60%),
    radial-gradient(900px 500px at 100% 120%, rgba(255, 192, 0, .06), transparent 55%),
    linear-gradient(180deg, #0b1b38, #0f2347);
}
.lf-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 46px);
  -webkit-mask-image: radial-gradient(720px 380px at 50% 2%, #000, transparent 72%);
  mask-image: radial-gradient(720px 380px at 50% 2%, #000, transparent 72%);
}
.lf-hero__inner {
  position: relative; max-width: 960px; margin: 0 auto;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.lf-hero__eyebrow {
  display: inline-block; font-weight: 700; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-500); margin-bottom: 22px;
}
.lf-hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(33px, 5.6vw, 54px); line-height: 1.06; letter-spacing: -.025em;
  margin: 0 0 24px; color: #fff; max-width: 20ch;
  text-wrap: balance; /* even out line lengths, avoid an orphan last word */
}
.lf-hero__lead {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.55;
  color: #cdd8ee; max-width: 680px; margin: 0 0 32px;
}

/* ---- Proof band -------------------------------------------- */
.lf-proof {
  background: #0f2347; color: #fff;
  padding: clamp(44px, 6vw, 68px) var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.lf-proof__inner { max-width: var(--maxw-content); margin: 0 auto; }
.lf-proof__header {
  text-align: center; font-weight: 600; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; color: #8fa0c2;
  margin: 0 0 clamp(28px, 4vw, 40px);
}
/* Mobile-first: 1 column → 2×2 (>=520px) → 4-in-a-row (>=960px).
   Explicit column counts avoid the awkward 3+1 wrap around ~770px. */
.lf-proof__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 0; /* spacing comes from symmetric cell padding so dividers sit centered */
}
.lf-stat { text-align: center; padding: 22px 8px; }
.lf-stat + .lf-stat { border-top: 1px solid rgba(255, 255, 255, .08); }
.lf-stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 50px); line-height: 1.05; letter-spacing: -.02em; color: #fff;
}
.lf-stat__num span { color: var(--amber-500); }
.lf-stat__lbl {
  font-size: 14.5px; line-height: 1.45; color: #aebbd6;
  margin: 10px auto 0; max-width: 230px;
}
.lf-proof__caption {
  display: flex; align-items: flex-start; justify-content: center; gap: 8px;
  text-align: center; font-size: 13px; line-height: 1.5; color: #8fa0c2;
  margin: clamp(26px, 3.4vw, 34px) 0 0;
}
/* Keep the arrow aligned to the first line of text (not centered on the block) */
.lf-proof__caption svg { flex: none; margin-top: calc((1.5em - 15px) / 2); }

/* 2×2 grid: vertical divider between the two columns, horizontal before row 2 */
@media (min-width: 520px) {
  .lf-proof__grid { grid-template-columns: repeat(2, 1fr); }
  .lf-stat { padding: clamp(18px, 3vw, 30px) clamp(16px, 3vw, 30px); }
  .lf-stat + .lf-stat { border-top: none; }
  .lf-stat:nth-child(2n) { border-left: 1px solid rgba(255, 255, 255, .08); }
  .lf-stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}

/* 4-in-a-row: three vertical dividers, no horizontal */
@media (min-width: 960px) {
  .lf-proof__grid { grid-template-columns: repeat(4, 1fr); }
  .lf-stat:nth-child(n + 3) { border-top: none; }
  .lf-stat + .lf-stat { border-left: 1px solid rgba(255, 255, 255, .08); }
}

/* ---- Deliver (centered prose) ------------------------------ */
.lf-deliver__inner { max-width: 820px; margin: 0 auto; text-align: center; }
.lf-deliver__eyebrow { margin-bottom: 18px; }
.lf-deliver__title { margin: 0 0 26px; }
.lf-deliver__p1 { font-size: clamp(16px, 1.9vw, 18px); line-height: 1.65; color: var(--slate-500); margin: 0 0 22px; }
.lf-deliver__p2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(18px, 2.4vw, 23px); line-height: 1.4; letter-spacing: -.01em;
  color: var(--ink-900); margin: 0 auto; max-width: 640px;
}

/* ---- Segments ("Para quem") -------------------------------- */
.lf-seg-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.lf-tabwrap { padding: 30px 40px 0; }
.lf-tabs {
  display: flex; gap: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.lf-tabs::-webkit-scrollbar { display: none; }
.lf-tab {
  flex: none; white-space: nowrap;
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  position: relative; padding: 0 0 16px;
  font-size: clamp(15px, 1.6vw, 17px); font-weight: 600; color: var(--ink-800);
  transition: color .2s var(--ease-out);
}
.lf-tab:hover { color: var(--blue-500); }
.lf-tab[aria-selected="true"] { color: var(--ink-900); }
.lf-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--amber-500); border-radius: 3px 3px 0 0;
}
.lf-seg-panel {
  padding: clamp(30px, 4vw, 40px);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.lf-seg-panel[hidden] { display: none; }
.lf-seg-photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.lf-seg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-seg-ph {
  border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--bg-soft-2);
  aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 11px; text-align: center; padding: 24px;
}
.lf-seg-ph__label { font: 600 13px var(--font-body); color: var(--slate-500); }
.lf-seg-ph__hint { font: 400 12px var(--font-body); color: var(--slate-400); max-width: 200px; }
.lf-seg-blocks { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 26px); }
.lf-seg-block h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(17px, 2vw, 20px); line-height: 1.3; letter-spacing: -.01em;
  color: var(--ink-900); margin: 0 0 9px;
}
.lf-seg-block p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--slate-500); }

/* Mobile: stacked accordion-free cards (all visible) */
.lf-seg-stack { display: none; flex-direction: column; gap: 16px; }
.lf-seg-mcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.lf-seg-mcard__bar { height: 4px; background: linear-gradient(90deg, var(--blue-500), var(--amber-500)); }
.lf-seg-mcard__head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 0; }
.lf-seg-mcard__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--amber-500); flex: none; }
.lf-seg-mcard__head h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--ink-900); margin: 0; }
.lf-seg-mcard__body { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.lf-seg-mcard .lf-seg-photo, .lf-seg-mcard .lf-seg-ph { aspect-ratio: 16/9; border-radius: 12px; }

/* ---- Platform cards ---------------------------------------- */
.lf-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 2.4vw, 24px); max-width: 800px; margin: 0 auto;
}
.lf-card {
  background: var(--surface-card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-sm); padding: 30px;
}
.lf-card__icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 20px; background: linear-gradient(150deg, var(--blue-500), var(--navy-700)); color: #fff;
}
.lf-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  line-height: 1.3; letter-spacing: -.01em; color: var(--text-strong); margin: 0 0 10px;
}
.lf-card p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--slate-500); }

/* ---- Partnership ------------------------------------------- */
.lf-partner-wrap { max-width: 600px; margin: 0 auto; }
.lf-partner-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  text-decoration: none; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--amber-500); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 32px 34px;
  transition: var(--transition-lift), border-color var(--dur-base) var(--ease-out);
}
.lf-partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); text-decoration: none; }
.lf-partner-card img { height: 40px; width: auto; display: block; }
.lf-partner-card__kicker { display: inline-block; font-weight: 700; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); }
.lf-partner-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.015em; color: var(--ink-900); margin: 0; }
.lf-partner-card p { font-size: 15px; line-height: 1.62; color: var(--slate-500); margin: 0; }
.lf-partner-card__link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--blue-500); }

/* Clients marquee */
.lf-clients { margin-top: clamp(40px, 5vw, 52px); }
.lf-clients__label { text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); margin: 0 0 24px; }
.lf-marquee-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.lf-marquee-track { display: flex; gap: 14px; width: max-content; animation: lf-marquee 30s linear infinite; }
.lf-marquee-track:hover { animation-play-state: paused; }
@keyframes lf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lf-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; } }
.lf-client-slot {
  flex: none; width: 178px; height: 80px; border: 1.5px dashed var(--line-strong);
  border-radius: 12px; display: grid; place-items: center; color: var(--slate-400);
  font: 500 12px var(--font-body); background: #fff;
}
.lf-clients__more { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; color: var(--slate-500); margin: 22px 0 0; }

/* ---- About panel ------------------------------------------- */
.lf-about__inner { max-width: 1080px; margin: 0 auto; }
.lf-about-panel {
  position: relative; overflow: hidden; border-radius: 22px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 72px); color: #fff;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255, 192, 0, .07), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  box-shadow: var(--shadow-lg);
}
.lf-about-panel .lf-grid-overlay {
  -webkit-mask-image: radial-gradient(500px 300px at 90% 10%, #000, transparent 72%);
  mask-image: radial-gradient(500px 300px at 90% 10%, #000, transparent 72%);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 44px);
}
.lf-about-panel__content { position: relative; max-width: 760px; }
.lf-about-panel h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.8vw, 38px); line-height: 1.14; letter-spacing: -.02em; color: #fff; margin: 0 0 24px; }
.lf-about-panel p { font-size: clamp(16px, 1.9vw, 18px); line-height: 1.65; margin: 0 0 18px; }
.lf-about-panel p:first-of-type { color: #cdd8ee; }
.lf-about-panel p:last-child { color: #aebbd6; margin-bottom: 0; }

/* ---- Final CTA band ---------------------------------------- */
.lf-final {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0f2347, var(--blue-600)); color: #fff;
  padding: clamp(72px, 10vw, 112px) var(--gutter); text-align: center;
}
.lf-final .lf-grid-overlay {
  -webkit-mask-image: radial-gradient(700px 360px at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(700px 360px at 50% 0%, #000, transparent 72%);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 46px);
}
.lf-final__inner { position: relative; max-width: 720px; margin: 0 auto; }
.lf-final h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.1; letter-spacing: -.02em; color: #fff; margin: 0 0 18px; }
.lf-final p { font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: #cdd8ee; margin: 0 0 32px; }

/* ---- Footer ------------------------------------------------ */
.lf-footer { background: var(--navy-900); color: #b9c5dd; padding: clamp(44px, 6vw, 64px) var(--gutter) 32px; }
.lf-footer__inner { max-width: var(--maxw-content); margin: 0 auto; }
.lf-footer__top {
  display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start;
  justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.lf-footer__brand { max-width: 320px; }
/* Width-based sizing + height:auto keeps the aspect ratio intact even when the
   footer brand column shrinks on mobile (600×125 → 144px wide renders at 30px). */
.lf-footer__logo { width: 144px; max-width: 100%; height: auto; display: block; margin-bottom: 14px; }
.lf-footer__tagline { font-size: 13.5px; line-height: 1.6; color: #8fa0c2; margin: 0; }
.lf-foot-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.lf-foot-col { display: flex; flex-direction: column; gap: 11px; }
.lf-foot-col__title { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5a6a8a; margin-bottom: 3px; }
.lf-foot-link { color: #b9c5dd; text-decoration: none; font-size: 14px; transition: color .2s var(--ease-out); }
.lf-foot-link:hover { color: #fff; text-decoration: none; }
.lf-footer__legal { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-top: 24px; }
.lf-footer__lgpd { font-size: 13px; line-height: 1.6; color: #8fa0c2; margin: 0; max-width: 640px; }
.lf-foot-legal-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.lf-foot-legal-links .lf-foot-link { font-size: 13px; }
.lf-footer__copyright { font-size: 12.5px; color: #5a6a8a; margin: 20px 0 0; }

/* ---- Modal ------------------------------------------------- */
.lf-modal { position: fixed; inset: 0; z-index: var(--z-overlay); display: flex; align-items: flex-start; justify-content: center; padding: clamp(16px, 4vh, 56px) 18px; overflow-y: auto; }
.lf-modal[hidden] { display: none; }
.lf-modal__overlay { position: fixed; inset: 0; background: rgba(8, 18, 38, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: lf-overlay-in .2s var(--ease-out); border: none; cursor: pointer; }
.lf-modal__dialog { position: relative; width: 100%; max-width: 540px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: lf-modal-in .26s var(--ease-out); margin: auto; }
.lf-modal__bar { height: 4px; background: linear-gradient(90deg, var(--blue-500), var(--amber-500)); }
.lf-modal__body { padding: clamp(26px, 4vw, 36px); }
.lf-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.lf-modal__header h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3vw, 27px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink-900); margin: 0 0 8px; }
.lf-modal__subtitle { font-size: 14.5px; line-height: 1.55; color: var(--slate-500); margin: 0; }
.lf-modal-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: none; background: var(--bg-soft); color: var(--slate-500); cursor: pointer; transition: background .18s var(--ease-out), color .18s var(--ease-out); flex: none; }
.lf-modal-close:hover { background: var(--bg-soft-2); color: var(--ink-900); }
@keyframes lf-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lf-modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

.lf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lf-field-group { display: flex; flex-direction: column; gap: 6px; }
.lf-field-group--full { grid-column: 1 / -1; }
.lf-field-group label { font-size: 12.5px; font-weight: 600; color: var(--ink-800); }
.lf-field { width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 14.5px; color: var(--ink-900); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.lf-field::placeholder { color: var(--slate-400); }
.lf-field:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47, 85, 151, .16); }
textarea.lf-field { resize: vertical; min-height: 92px; }
.lf-form__submit { margin-top: 22px; }
.lf-form__privacy { font-size: 12px; line-height: 1.5; color: var(--slate-400); margin: 14px 0 0; text-align: center; }
.lf-form__privacy a { color: var(--blue-500); text-decoration: underline; }

/* Honeypot: visually hidden, out of flow, off tab order (anti-spam) */
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Shared submit status (sending / success / error / invalid) */
.lf-form-status { font-size: 13.5px; line-height: 1.5; text-align: center; margin: 12px 0 0; min-height: 1.2em; }
.lf-form-status.is-sending { color: var(--slate-500); }
.lf-form-status.is-success { color: var(--success); }
.lf-form-status.is-error,
.lf-form-status.is-invalid { color: var(--danger); }

.lf-modal__success { text-align: center; padding: 12px 4px 6px; }
.lf-modal__success-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: rgba(46, 139, 87, .12); color: var(--success); }
.lf-modal__success h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(21px, 2.8vw, 26px); line-height: 1.2; letter-spacing: -.02em; color: var(--ink-900); margin: 0 0 10px; }
.lf-modal__success p { font-size: 15px; line-height: 1.6; color: var(--slate-500); margin: 0 auto 24px; max-width: 380px; }

/* ---- Scroll reveal ----------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Generic prose pages (legal/support) ------------------- */
.lf-page { padding: clamp(48px, 7vw, 88px) var(--gutter); background: #fff; }
.lf-page__inner { max-width: var(--maxw-prose); margin: 0 auto; }
.lf-page__eyebrow { margin-bottom: 14px; }
.lf-page h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; letter-spacing: -.02em; color: var(--text-strong); margin: 0 0 12px; }
.lf-page__updated { font-size: 13.5px; color: var(--slate-400); margin: 0 0 36px; }
.lf-page h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -.015em; color: var(--ink-900); margin: 38px 0 14px; }
.lf-page h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2vw, 20px); color: var(--ink-900); margin: 26px 0 10px; }
.lf-page p, .lf-page li { font-size: 15.5px; line-height: 1.7; color: var(--slate-500); }
.lf-page ul, .lf-page ol { padding-left: 22px; margin: 0 0 18px; }
.lf-page li { margin-bottom: 8px; }
.lf-page a { color: var(--blue-500); text-decoration: underline; }

/* Wider variant for card-based pages (Support): cards breathe, while the
   intro/form stay at a comfortable reading measure. */
.lf-page--wide .lf-page__inner { max-width: 940px; }
.lf-page--wide .lf-support-intro,
.lf-page--wide .lf-support-form { max-width: 640px; }

/* Brand icon tile (blue→navy gradient), shared by Support cards */
.lf-icon-tile {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 14px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, var(--blue-500), var(--navy-700)); color: #fff;
}
.lf-icon-tile svg { width: 22px; height: 22px; }

/* ---- Notice banner (provisional content) ------------------- */
.lf-notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fdf3e0; border: 1px solid #f3d79a; border-left: 4px solid var(--warning);
  border-radius: 12px; padding: 14px 16px; margin: 0 0 32px;
  font-size: 13.5px; line-height: 1.55; color: #7a5a12;
}
.lf-notice svg { flex: none; margin-top: 1px; color: var(--warning); }

/* ---- Table of contents ------------------------------------- */
.lf-toc { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); padding: 18px 20px; margin: 0 0 36px; }
.lf-toc__title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); margin: 0 0 10px; }
.lf-toc ol { margin: 0; padding-left: 20px; }
.lf-toc li { margin-bottom: 6px; font-size: 14.5px; }
.lf-toc a { color: var(--blue-500); text-decoration: none; }
.lf-toc a:hover { text-decoration: underline; }

/* ---- Support: contact + topics ----------------------------- */
.lf-support-intro { font-size: clamp(16px, 1.9vw, 18px); line-height: 1.6; color: var(--slate-500); margin: 0 0 32px; }
.lf-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 44px; }
.lf-contact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 22px; }
.lf-contact-card h2 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.lf-contact-card p { font-size: 14px; line-height: 1.55; color: var(--slate-500); margin: 0 0 10px; }
.lf-contact-card__value { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ink-800); }
a.lf-contact-card__value { color: var(--blue-500); text-decoration: none; word-break: break-word; }
a.lf-contact-card__value:hover { text-decoration: underline; }
.lf-topic-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0 0 44px; }
.lf-topic-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.lf-topic-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--ink-900); }
.lf-topic-card p { font-size: 14px; line-height: 1.55; color: var(--slate-500); margin: 0; }
.lf-support-form { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: clamp(22px, 4vw, 32px); }
.lf-support-form h2 { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 22px); margin: 0 0 6px; }
.lf-support-form > p { font-size: 13.5px; color: var(--slate-500); margin: 0 0 20px; }
.lf-support-form .lf-field-group { margin-bottom: 14px; }
.lf-turnstile:not(:empty) { margin: 4px 0 16px; }

/* ============================================================
   Responsive — mobile-first toggles
   ============================================================ */

/* Segments: stacked cards (mobile) → tabs (>=820px). Independent of the nav. */
.lf-seg-card { display: none; }
.lf-seg-stack { display: flex; }

@media (min-width: 820px) {
  .lf-seg-card { display: block; }
  .lf-seg-stack { display: none; }
}

/* Header: keep the hamburger until the full nav (5 links + language + CTA)
   comfortably fits on one line. The CTA copy is longest in ES
   ("Agenda una conversación"), so the desktop nav only appears at >=1024px —
   below that the mid-width zone (~820–1000px) overflowed and looked broken. */
.lf-nav--desktop { display: none; }
.lf-cta--desktop { display: none; }
.lf-menu-toggle { display: inline-flex; }

@media (min-width: 1024px) {
  .lf-nav--desktop { display: flex; }
  .lf-cta--desktop { display: inline-flex; }
  .lf-menu-toggle { display: none; }
}

/* Mobile dropdown nav panel */
.lf-mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: var(--z-nav);
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: 14px var(--gutter) 20px; display: flex; flex-direction: column; gap: 4px;
}
.lf-mobile-nav[hidden] { display: none; }
.lf-mobile-nav a { padding: 12px 6px; font-size: 16px; font-weight: 500; color: var(--ink-800); border-bottom: 1px solid var(--line); }
.lf-mobile-nav a:last-of-type { border-bottom: none; }
.lf-mobile-nav .lf-btn { margin-top: 12px; }

/* Narrow segment panel → single column */
@media (max-width: 700px) {
  .lf-seg-panel { grid-template-columns: 1fr; }
}

/* Modal grid + footer stack on small screens */
@media (max-width: 560px) { .lf-form-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .lf-foot-nav { flex-direction: column; gap: 22px; }
  .lf-footer__legal { flex-direction: column; align-items: flex-start; gap: 12px; }
}
