/* Claims Hunters — site styles
   Brand: night black + purple gradient (claimshunters.com), logo purple #4F2A74 / gray #8A95A5,
   serif display headings, lion artwork on dark heroes. Mobile first in spirit: thumb-sized
   targets, safe-area aware bars, swipeable cards, motion only when the user allows it. */
:root {
  --night: #05070d;
  --night-2: #0d0b14;
  --purple: #6212bd;
  --purple-2: #a535ff;
  --purple-ink: #6c14c9;
  --brand-purple: #4f2a74;
  --brand-gray: #8a95a5;
  --violet: #b04aff;
  --lilac: #c987ff;
  --bg: #fbfafc;
  --surface: #ffffff;
  --soft: #f4effa;
  --ink: #1d2230;
  --muted: #5d6574;
  --line: #e6dfee;
  --radius: 18px;
  --wrap: 1140px;
  --header-h: 68px;
  --grad: linear-gradient(135deg, var(--purple), var(--purple-2));
  --shadow: 0 1px 2px rgba(29, 10, 50, .06), 0 12px 32px rgba(29, 10, 50, .09);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --sans-strong: Montserrat, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* Smooth cross-page transitions (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--purple-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand-purple); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
h1, h2 { font-family: var(--serif); font-weight: 800; line-height: 1.1; color: #211d27; margin: 0 0 .55em; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-family: var(--sans-strong); font-weight: 800; line-height: 1.3; color: #28212d; margin: 0 0 .6em; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.1rem; }
h2.h3 { font-family: var(--sans-strong); font-size: 1.1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.hl { color: var(--violet); }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--violet); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(5, 7, 13, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background .3s, box-shadow .3s; padding-top: env(safe-area-inset-top, 0px); }
.site-header.scrolled { background: rgba(5, 7, 13, .9); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--sans-strong); letter-spacing: .02em; font-size: 1.02rem; white-space: nowrap; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand span { font-weight: 600; color: #cfd6de; }
.brand b { font-weight: 800; color: var(--lilac); }
.site-nav { display: flex; align-items: center; gap: 14px; }
.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.site-nav li { margin: 0; position: relative; }
.site-nav a, .sub-toggle { color: #eef0f5; text-decoration: none; font-size: .94rem; padding: 8px 11px; border-radius: 10px; display: block; background: none; border: 0; font-family: inherit; cursor: pointer; line-height: 1.4; white-space: nowrap; }
.site-nav a:hover, .sub-toggle:hover, .site-nav a[aria-current="page"] { background: rgba(176, 74, 255, .16); color: #fff; }
.sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); display: none; }
.sub a { color: var(--ink); }
.sub a:hover, .sub a[aria-current="page"] { background: var(--soft); color: var(--brand-purple); }
.has-sub.open .sub { display: block; }
@media (min-width: 1101px) { .nav-home { display: none; } }
@media (hover: hover) and (min-width: 1101px) { .has-sub:hover .sub { display: block; } .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.sheet-only { display: none !important; }
.header-tools { display: flex; align-items: center; gap: 8px; }

/* EN | ES segmented control — always visible */
.lang-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.lang-toggle a { min-width: 46px; min-height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; font-size: .85rem; font-weight: 800; letter-spacing: .06em; color: #cfd6de; text-decoration: none; transition: background .2s, color .2s; }
.lang-toggle a:hover { color: #fff; }
.lang-toggle a[aria-current="true"] { background: var(--grad); color: #fff; box-shadow: 0 2px 10px rgba(122, 34, 223, .45); }

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); cursor: pointer; padding: 0; position: relative; }
.burger, .burger::before, .burger::after { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; content: ""; }
.burger { top: 21px; }
.burger::before { left: 0; top: -6px; }
.burger::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 800; text-decoration: none; border: 2px solid transparent; font-size: 1rem; line-height: 1.2; cursor: pointer; font-family: inherit; transition: transform .15s var(--ease), box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(122, 34, 223, .3); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 30px rgba(122, 34, 223, .45); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: inherit; border-color: #fff; }
.btn-dark { background: #17131c; color: #fff; }
.btn-dark:hover { background: #241a2b; color: #fff; }
.site-nav .btn { min-height: 40px; padding: 8px 16px; font-size: .94rem; }
.site-nav .btn-primary, .site-nav .btn-primary:hover, .site-nav .btn-primary[aria-current="page"] { background: var(--grad); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Hero with the lion ---------- */
.hero { position: relative; overflow: hidden; overflow: clip; isolation: isolate; background: var(--night); color: #eef0f5; padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; z-index: -2; top: -6%; bottom: -6%; right: -4%; width: min(62%, 860px); background: url("/assets/img/lion.jpg") center / cover no-repeat; transform-origin: 60% 40%; animation: lion-in 1.6s var(--ease) both;
  /* scroll parallax: --p goes 0 -> 1 while the hero scrolls away (CSS timeline or JS fallback) */
  translate: 0 calc(var(--p, 0) * 28%); scale: calc(1 + var(--p, 0) * .16); filter: brightness(calc(1 - var(--p, 0) * .7)); will-change: translate, scale; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night) 0%, rgba(5,7,13,.92) 38%, rgba(5,7,13,.45) 70%, rgba(5,7,13,.2) 100%), linear-gradient(0deg, var(--night) 0%, transparent 22%); }
.hero h1, .hero h2 { color: #fff; }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 58ch; color: #e6e8ef; }
.hero .eyebrow { color: var(--lilac); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero-sub { padding: clamp(44px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); }
.hero-sub::before { width: min(52%, 700px); opacity: .85; }
.hero-sub::after { background: linear-gradient(90deg, var(--night) 0%, rgba(5,7,13,.95) 45%, rgba(5,7,13,.6) 100%), linear-gradient(0deg, var(--night) 0%, transparent 25%); }
.hero-sub h1 { max-width: 22ch; }
.hero .wrap > *, .hero-grid > div > * { animation: rise .9s var(--ease) both; }
.hero-grid > div > :nth-child(2), .hero .wrap > :nth-child(2) { animation-delay: .08s; }
.hero-grid > div > :nth-child(3), .hero .wrap > :nth-child(3) { animation-delay: .16s; }
.hero-grid > div > :nth-child(4), .hero .wrap > :nth-child(4) { animation-delay: .24s; }
.hero-grid > div > :nth-child(5), .hero .wrap > :nth-child(5) { animation-delay: .32s; }
.hero-grid > aside { animation: rise 1s .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lion-in { from { opacity: 0; transform: scale(1.08); } }
/* The lion sinks, zooms and dims as you scroll past the hero. Native scroll-driven animation where supported; main.js sets --p elsewhere. */
@supports (animation-timeline: view()) {
  .hero::before { animation: lion-in 1.6s var(--ease) both, lion-drift linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
  @keyframes lion-drift { from { translate: 0 0; scale: 1; filter: brightness(1); } to { translate: 0 28%; scale: 1.16; filter: brightness(.3); } }
}
/* Home hero: full-bleed looping video instead of the lion (poster shows while it loads or if autoplay is blocked) */
.hero-video { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--night) url("/assets/video/hero-poster.jpg") center / cover no-repeat; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; animation: video-in 1.4s var(--ease) both; }
@keyframes video-in { from { opacity: 0; transform: scale(1.05); } }
.hero-has-video { min-height: min(88vh, 860px); display: flex; align-items: center; }
.hero-has-video::before { display: none; }
.hero-has-video::after { background: linear-gradient(90deg, rgba(5,7,13,.86) 0%, rgba(5,7,13,.6) 48%, rgba(5,7,13,.3) 100%), linear-gradient(0deg, var(--night) 0%, transparent 28%); }
.eyebrow { font-size: .95rem; font-weight: 800; letter-spacing: .01em; color: #8b31bd; margin-bottom: .6em; display: block; }

/* Pause/play for the hero video (WCAG 2.2.2) */
.video-toggle { position: absolute; z-index: 2; right: max(16px, env(safe-area-inset-right)); bottom: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(5, 7, 13, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.video-toggle:hover { background: rgba(5, 7, 13, .8); border-color: #fff; }
.video-toggle::before { content: ""; width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; box-sizing: border-box; }
.video-toggle.is-paused::before { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.gallery:focus-visible { outline-offset: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; font-size: .95rem; color: #d8cfdf; }
.trust li { margin: 0; }
.trust strong { color: #fff; font-family: var(--serif); }
.trust a { color: inherit; text-decoration-color: rgba(255, 255, 255, .45); }
.trust a:hover { color: #fff; text-decoration-color: currentColor; }
.crumbs { font-size: .9rem; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: var(--lilac); }

/* ---------- Eligibility box ---------- */
.eligible { background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.eligible::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.eligible h2, .eligible h3 { font-size: 1.3rem; margin-bottom: .8em; color: #222633; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 34px; margin-bottom: .75em; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); }
.checks li::after { content: ""; position: absolute; left: 8px; top: 6px; width: 6px; height: 11px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 740px; margin-bottom: 36px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
@media (hover: hover) { .card:has(a):hover { box-shadow: var(--shadow); } }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; font-weight: 800; text-decoration: none; padding: 10px 0 2px; }
.card .more::after { content: " →"; }
.card-feature { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.tag { display: inline-block; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start; }

/* ---------- Photos (real inspections + community, from the previous claimshunters.com) ---------- */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.photo figcaption { padding: 10px 14px 12px; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.photo-wide img { aspect-ratio: 16 / 9; }
.prose > .photo, .wrap > .photo { margin: 1.6em 0 2em; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.6em 0 2em; }
.photo-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-grid.four .photo img { aspect-ratio: 4 / 5; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 1.6em 0 2em; }
.gallery .photo img { aspect-ratio: 4 / 5; }
.card { overflow: hidden; }
.card-media { margin: -24px -24px 18px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .card:hover .card-media img { transform: scale(1.05); } }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps > li { counter-increment: step; position: relative; padding: 22px 22px 22px 78px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-family: var(--serif); display: grid; place-items: center; }
.steps h3 { margin-bottom: .3em; }
.steps p:last-child { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px; }
.stat b { display: block; font-size: 2.2rem; font-family: var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

.callout { border-left: 4px solid var(--violet); background: var(--surface); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-legal { border-left-color: var(--brand-gray); background: #f3f1f6; font-size: .95rem; }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; margin: 1em 0 1.5em; font-size: .98rem; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: #17131c; color: #fff; }
.compare tbody th { font-weight: 700; color: var(--brand-purple); width: 30%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; padding: 14px 52px 14px 18px; font-weight: 800; color: #28212d; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 18px 16px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq[open] .answer { animation: rise .35s var(--ease) both; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(90deg, rgba(10,8,16,.97), rgba(25,10,37,.9) 55%, rgba(20,8,30,.55)), url("/assets/img/lion.jpg") right center / auto 170% no-repeat, var(--night); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d8cfdf; max-width: 62ch; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.contact-cards a { font-weight: 800; font-size: 1.08rem; }
address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #b9b2c2; padding: 56px 0 calc(40px + var(--safe-b)); font-size: .95rem; border-top: 1px solid rgba(176, 74, 255, .2); }
.site-footer h2 { color: #fff; font-family: var(--sans-strong); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1em; }
.site-footer a { color: #eef0f5; text-decoration: none; }
.site-footer a:hover { color: var(--lilac); text-decoration: underline; }
.site-footer li a { display: inline-block; padding: 4px 0; }
.footer-logo { width: 150px; height: auto; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 32px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3em; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: .85rem; color: #8f97a6; }
.footer-legal a { display: inline-block; padding: 10px 6px; }

/* ---------- Mobile action bar (frosted, thumb zone) ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px max(12px, env(safe-area-inset-left)) calc(10px + var(--safe-b)); background: rgba(5, 7, 13, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(255, 255, 255, .08); transition: transform .3s var(--ease); }
.action-bar .btn { flex: 1; min-height: 50px; font-size: 1rem; }
.action-bar .btn-dark { background: rgba(255, 255, 255, .1); }
.menu-open .action-bar { transform: translateY(110%); }

/* ---------- "¿Prefiere español?" hint ---------- */
.lang-hint { position: fixed; z-index: 70; right: 16px; bottom: calc(16px + var(--safe-b)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(5, 7, 13, .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); border: 1px solid rgba(176, 74, 255, .35); font-weight: 700; font-size: .95rem; opacity: 0; transform: translateY(20px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.lang-hint.show { opacity: 1; transform: none; }
.lang-hint .btn { min-height: 40px; padding: 8px 14px; font-size: .9rem; border-radius: 999px; }
.lang-hint button { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.2rem; cursor: pointer; }


/* ---------- Tablet & phone ---------- */
@media (max-width: 1100px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: inline-block; }
  .site-nav { position: fixed; z-index: 49; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px)); flex-direction: column; align-items: stretch; gap: 20px; padding: 12px 20px calc(24px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; background: var(--night); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s .28s; }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s; }
  .menu-open, .menu-open body { overflow: hidden; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav a, .sub-toggle { padding: 14px 4px; width: 100%; text-align: left; font-size: 1.35rem; font-weight: 700; border-radius: 0; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: none; color: var(--lilac); }
  .sub-toggle { pointer-events: none; color: #8f97a6; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; padding: 18px 4px 6px; }
  .sub-toggle::after { display: none; }
  .sub { display: block; position: static; box-shadow: none; background: none; padding: 0 0 8px; min-width: 0; }
  .sub a { color: #eef0f5; font-size: 1.1rem; font-weight: 600; padding: 10px 4px 10px 14px; }
  .sub a:hover, .sub a[aria-current="page"] { background: none; color: var(--lilac); }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .site-nav .nav-cta .btn { min-height: 54px; padding: 12px 20px; font-size: 1.05rem; text-align: center; justify-content: center; border-radius: 14px; }
  .site-nav .nav-cta .btn-ghost { border: 2px solid rgba(255, 255, 255, .3); }
  .menu-open .lang-hint, .menu-open chat-widget { display: none; }
  .sheet-only { display: inline-flex !important; color: #fff; }
  .site-nav.open > ul > li, .site-nav.open .nav-cta { animation: rise .45s var(--ease) both; }
  .site-nav.open > ul > li:nth-child(2) { animation-delay: .03s; }
  .site-nav.open > ul > li:nth-child(3) { animation-delay: .06s; }
  .site-nav.open > ul > li:nth-child(4) { animation-delay: .09s; }
  .site-nav.open > ul > li:nth-child(5) { animation-delay: .12s; }
  .site-nav.open .nav-cta { animation-delay: .15s; }

  .hero-grid, .cols-2, .content-grid, .cta-inner { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
  .hero::before { background-image: url("/assets/img/lion-640.jpg"); width: 100%; right: 0; top: 0; bottom: auto; height: min(115vw, 620px); opacity: .7; }
  .hero::after { background: linear-gradient(180deg, rgba(5,7,13,.55) 0%, rgba(5,7,13,.82) 45%, var(--night) 85%); }
  .hero-sub::before { opacity: .45; height: min(100vw, 520px); }
  .hero-has-video { min-height: 0; display: block; }
  .video-toggle { bottom: auto; top: 14px; }
  /* Darker at the top: the eyebrow sits over the brightest part of the video (sky) */
  .hero-has-video::after { background: linear-gradient(180deg, rgba(5,7,13,.7) 0%, rgba(5,7,13,.7) 50%, rgba(5,7,13,.82) 100%); }
  .hero-has-video .eyebrow, .hero-has-video h1, .hero-has-video .lead { text-shadow: 0 1px 12px rgba(5, 7, 13, .7); }
  .hero-video { bottom: auto; height: min(125vw, 820px); -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
  .cta-band { background: linear-gradient(180deg, rgba(10,8,16,.94), rgba(25,10,37,.96)), url("/assets/img/lion-640.jpg") center / cover no-repeat, var(--night); }
  .aside-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: calc(100px + var(--safe-b)); }
  .action-bar { display: flex; }
  .lang-hint { left: 12px; right: 12px; bottom: calc(82px + var(--safe-b)); border-radius: 18px; justify-content: space-between; }

  /* Swipeable cards (home damage types) */
  .cards.swipe { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 18px; scroll-padding-left: 16px; }
  .cards.swipe::-webkit-scrollbar { display: none; }
  .cards.swipe > * { flex: 0 0 min(80%, 320px); scroll-snap-align: start; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .hero::before { background-image: url("/assets/img/lion.jpg"); height: min(80vw, 760px); }
}
@media (max-width: 700px) {
  .photo-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* Community gallery: swipe like the damage cards */
  .gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 4px 16px 14px; scroll-padding-left: 16px; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery > * { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .photo-grid:not(.four) { grid-template-columns: 1fr; }
  .photo figcaption { font-size: .84rem; padding: 8px 12px 10px; }
  .brand { font-size: .92rem; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 16px 6px; }
  .stat b { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps > li { padding: 20px 18px 20px 68px; }
  .steps > li::before { left: 16px; top: 20px; width: 36px; height: 36px; }
  .eligible { padding: 22px 20px; }
  .cta-band .btn-row .btn { flex: 1 1 100%; }
}
@media (max-width: 370px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
