/* AG247 landing — design tokens resolve to the landing-page-design system:
   Tailwind type scale, fixed spacing table, Tailwind radii, flat backgrounds. */

:root {
  /* Surfaces (approved dark palette) */
  --bg: #131209;
  --surface: #1f1f1f;
  --surface-2: #272727;
  --surface-3: #313131;
  --black: #000000;

  /* Text */
  --text: #f4f4f1;
  --text-muted: #a6a69d;
  --text-faint: rgba(244, 244, 241, 0.3);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Brand (sampled from AG logo) */
  --green: #439331;
  --green-hover: #52a83e;
  --green-ink: #0b0f08;
  --green-soft: rgba(67, 147, 49, 0.14);
  --olive: #50674b;
  --danger: #f2765f;

  /* Spacing table */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px;
  --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px;
  --s-800: 80px; --s-900: 96px;

  /* Radii (Tailwind) */
  --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px; --r-3xl: 24px; --r-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 700ms;

  --container: 1200px;
  --gutter: var(--s-200);
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --gutter: var(--s-400); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem; line-height: 1.5rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
em, i, cite { font-style: normal; }

:focus-visible { outline: 2px solid var(--green-hover); outline-offset: 2px; border-radius: var(--r-md); }

.skip-link {
  position: absolute; left: var(--s-200); top: -100px; z-index: 100;
  background: var(--green); color: var(--green-ink);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-200); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s-800) 0; }
@media (min-width: 768px) { .section { padding: var(--s-900) 0; } }

/* Type helpers (Tailwind steps) */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.muted { color: var(--text-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-75);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  color: var(--green-hover);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-full); background: currentColor; }

.section-head { max-width: 680px; margin-bottom: var(--s-600); }
.section-head h2 { font-size: 1.875rem; line-height: 2.25rem; margin-top: var(--s-100); }
.section-head p { margin-top: var(--s-200); color: var(--text-muted); font-size: 1.125rem; line-height: 1.75rem; }
@media (min-width: 768px) { .section-head h2 { font-size: 2.25rem; line-height: 2.5rem; } }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent; border-radius: var(--r-full);
  font-size: 1rem; line-height: 1.5rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn i { font-size: 1.125rem; transition: transform var(--dur) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--sm { font-size: 0.875rem; line-height: 1.25rem; }

.btn--primary { background: var(--green); color: var(--green-ink); }
/* Fill wipe on hover: flat lighter layer slides in from the left */
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green-hover);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.btn--primary:hover::before { transform: scaleX(1); }
/* Sheen sweep */
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: -1;
  background: rgba(255, 255, 255, 0.28);
  transform: skewX(-20deg) translateX(0);
  transition: transform 900ms var(--ease);
}
.btn--primary:hover::after { transform: skewX(-20deg) translateX(560%); }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--line-strong); }

.btn[aria-busy="true"] { pointer-events: none; color: transparent; }
.btn[aria-busy="true"]::before { transform: scaleX(1); animation: pulse 1.2s var(--ease) infinite alternate; }
.btn[aria-busy="true"] .btn-busy-label { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green-ink); }
.btn-busy-label { display: none; }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.55; } }

/* ---------- Fluid island nav ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 0 var(--s-200); pointer-events: none; }
.nav {
  pointer-events: auto;
  margin-top: var(--s-300);
  width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  background: rgba(24, 24, 24, 0.6);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav.is-scrolled { background: rgba(24, 24, 24, 0.85); }
.brand { display: inline-flex; align-items: center; gap: var(--s-75); text-decoration: none; font-weight: 700; font-size: 1.125rem; line-height: 1.75rem; letter-spacing: -0.02em; }
.brand img { width: 40px; height: auto; }
.nav-links { display: none; gap: var(--s-50); }
.nav-links a {
  display: inline-block; padding: var(--s-75) var(--s-100); border-radius: var(--r-full);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--text-muted); text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.nav .btn--primary { display: none; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav .btn--primary { display: inline-flex; }
  .burger { display: none; }
}

.burger {
  position: relative; width: 40px; height: 40px; border: 0; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08); cursor: pointer; z-index: 60;
  transition: background-color var(--dur) var(--ease);
}
.burger:hover { background: rgba(255, 255, 255, 0.14); }
.burger span {
  position: absolute; left: 12px; width: 16px; height: 2px; border-radius: var(--r-full); background: var(--text);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-900) var(--s-300) var(--s-600);
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(64px); backdrop-filter: blur(64px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease), visibility 0s; }
.menu ul { display: grid; gap: var(--s-200); }
.menu li { overflow: hidden; }
.menu a:not(.btn) {
  display: inline-block; font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; text-decoration: none; letter-spacing: -0.02em;
}
.menu li > * {
  transform: translateY(48px); opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu.is-open li > * { transform: translateY(0); opacity: 1; }
.menu.is-open li:nth-child(1) > * { transition-delay: 100ms; }
.menu.is-open li:nth-child(2) > * { transition-delay: 150ms; }
.menu.is-open li:nth-child(3) > * { transition-delay: 200ms; }
.menu.is-open li:nth-child(4) > * { transition-delay: 250ms; }
.menu.is-open li:nth-child(5) > * { transition-delay: 300ms; }
.menu.is-open li:nth-child(6) > * { transition-delay: 350ms; }
.menu a[aria-current="true"] { color: var(--green-hover); }
.menu .btn { margin-top: var(--s-300); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--s-900) + var(--s-700)); padding-bottom: var(--s-800); text-align: center; }
.hero .eyebrow { justify-content: center; }
.hero h1 {
  max-width: 680px; margin: var(--s-300) auto 0;
  font-size: 1.875rem; line-height: 2.25rem;
  background: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 400px) { .hero h1 { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; line-height: 1; } }
.hero-sub { max-width: 680px; margin: var(--s-300) auto 0; color: var(--text-muted); font-size: 1.125rem; line-height: 1.75rem; }
.hero-cta { margin-top: var(--s-400); display: flex; justify-content: center; }
.hero-proof { margin-top: var(--s-300); font-size: 0.875rem; line-height: 1.25rem; color: var(--text-muted); }
.hero-proof i { color: var(--green-hover); font-size: 1.125rem; vertical-align: -3px; margin-right: var(--s-50); }

.hero-media { position: relative; margin-top: var(--s-700); }
.hero-frame {
  position: relative; border-radius: var(--r-3xl); padding: var(--s-75);
  background: var(--surface); border: 1px solid var(--line);
}
.hero-frame img { width: 100%; border-radius: var(--r-2xl); aspect-ratio: 1600 / 779; object-fit: cover; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-align: left;
}
@media (min-width: 640px) { .chip { font-size: 0.875rem; line-height: 1.25rem; } }
.chip i { font-size: 1rem; color: var(--green-hover); }
.chip--live { top: var(--s-300); left: var(--s-300); }
.chip--water { bottom: var(--s-300); left: var(--s-300); }
.chip--water strong { color: var(--green-hover); }
.live-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--green-hover); box-shadow: 0 0 0 0 rgba(82, 168, 62, 0.6); animation: live 2s var(--ease) infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(82, 168, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(82, 168, 62, 0); } }
@media (max-width: 639px) {
  .chip--live { top: var(--s-200); left: var(--s-200); }
  .chip--water { display: none; }
}

/* ---------- Stack strip ---------- */
.stack { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s-400) 0; }
.stack-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-200) var(--s-400); }
.stack-label { font-size: 0.875rem; line-height: 1.25rem; color: var(--text-muted); }
.stack-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75); }
.stack-list li {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-50) var(--s-100); border-radius: var(--r-full); border: 1px solid var(--line);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--text);
}
.stack-list i { color: var(--green-hover); }

/* ---------- Problem ---------- */
.problem-grid { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line);
  padding: var(--s-300);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--r-xl); background: var(--green-soft); color: var(--green-hover); font-size: 1.5rem;
}
.card h3 { margin-top: var(--s-300); font-size: 1.25rem; line-height: 1.75rem; }
.card p { margin-top: var(--s-75); color: var(--text-muted); }

/* ---------- Tagline reveal ---------- */
.tagline { padding: var(--s-900) 0; }
.tagline p {
  max-width: 900px; margin: 0 auto;
  font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (min-width: 640px) { .tagline p { font-size: 3rem; line-height: 1; } }
@media (min-width: 1024px) { .tagline p { font-size: 3.75rem; line-height: 1; } }
.tagline .word { color: var(--text-faint); transition: color var(--dur) var(--ease); }
.tagline .word.is-on { color: var(--text); }
.tagline .word.accent.is-on { color: var(--green-hover); }

/* ---------- Solutions tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-75); margin-bottom: var(--s-400); }
@media (min-width: 640px) { .tabs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tabs { display: flex; flex-wrap: wrap; } }
.tab {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-200); border-radius: var(--r-full);
  border: 1px solid var(--line); background: transparent; color: var(--text-muted);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; cursor: pointer; text-align: left;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tab i { font-size: 1.125rem; }
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab:active { transform: scale(0.98); }
.tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--green-ink); }

.panel { display: grid; gap: var(--s-400); align-items: center; }
.panel[hidden] { display: none; }
@media (min-width: 1024px) { .panel { grid-template-columns: 5fr 7fr; gap: var(--s-700); } }
.panel.is-entering { animation: panel-in 800ms var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
.panel h3 { font-size: 1.5rem; line-height: 2rem; }
@media (min-width: 768px) { .panel h3 { font-size: 1.875rem; line-height: 2.25rem; } }
.panel-lead { margin-top: var(--s-200); color: var(--text-muted); font-size: 1.125rem; line-height: 1.75rem; }
.modules { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-300); }
.modules li { padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: var(--surface-2); font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.benefits { display: grid; gap: var(--s-200); margin-top: var(--s-300); }
.benefits li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-100); color: var(--text-muted); }
.benefits li i { color: var(--green-hover); font-size: 1.25rem; margin-top: var(--s-25); }
.benefits strong { color: var(--text); font-weight: 600; }

.panel-media { position: relative; }
.shot {
  border-radius: var(--r-3xl); padding: var(--s-75); background: var(--surface); border: 1px solid var(--line);
}
.shot img { width: 100%; border-radius: var(--r-2xl); }
.inset {
  position: absolute; right: var(--s-200); bottom: calc(var(--s-700) * -1); width: 34%;
  border-radius: var(--r-2xl); padding: var(--s-50); background: var(--surface-2); border: 1px solid var(--line-strong);
}
.inset img { border-radius: var(--r-xl); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.panel-media.has-inset { margin-bottom: var(--s-700); }
@media (max-width: 639px) { .inset { width: 40%; right: var(--s-75); } }

/* ---------- Brand lines ---------- */
.lines-grid { display: grid; gap: var(--s-200); }
@media (min-width: 900px) { .lines-grid { grid-template-columns: 1fr 1fr; } }
.line-card { display: flex; flex-direction: column; padding: var(--s-75); }
.line-card .line-body { padding: var(--s-300); flex: 1; }
.line-card .line-logo { height: 56px; width: auto; }
.line-card p { margin-top: var(--s-200); }
.line-card ul { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-300); }
.line-card ul li { padding: var(--s-50) var(--s-100); border-radius: var(--r-full); border: 1px solid var(--line); font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--text-muted); }
.line-card .line-img { border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.line-card .line-img--contain { object-fit: contain; padding: var(--s-200); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--s-200); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-full);
  border: 1px solid var(--line-strong); font-weight: 700; font-size: 0.875rem; line-height: 1.25rem; color: var(--green-hover);
}
.step h3 { margin-top: var(--s-300); font-size: 1.25rem; line-height: 1.75rem; }
.step p { margin-top: var(--s-75); color: var(--text-muted); }
.devices { margin-top: var(--s-600); border-radius: var(--r-3xl); padding: var(--s-75); background: var(--surface); border: 1px solid var(--line); }
.devices img { width: 100%; border-radius: var(--r-2xl); }

/* ---------- Field gallery ---------- */
.gallery { display: grid; gap: var(--s-100); grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--s-200); } }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-2xl); border: 1px solid var(--line);
  background: var(--surface); padding: 0; cursor: zoom-in; text-align: left;
}
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile:active { transform: scale(0.98); }
.tile-cap {
  position: absolute; left: var(--s-75); right: var(--s-75); bottom: var(--s-75);
  padding: var(--s-75) var(--s-100); border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.65); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 0.75rem; line-height: 1rem; font-weight: 600;
  transform: translateY(8px); opacity: 0.9;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { transform: translateY(0); opacity: 1; }
.tile-cap span { display: block; color: var(--green-hover); }

.lightbox {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: var(--s-75);
  border: 1px solid var(--line-strong); border-radius: var(--r-3xl); background: var(--surface); color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.lightbox[open] { animation: panel-in 600ms var(--ease) both; }
.lightbox img { width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: var(--r-2xl); background: var(--black); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-200); padding: var(--s-100) var(--s-100) var(--s-50); }
.lightbox-bar p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.25rem; }
.icon-btn {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-full);
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 1.125rem;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.98); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: var(--s-600); }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: 4fr 8fr; } }
.faq { display: grid; gap: var(--s-75); }
.faq details { border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--dur) var(--ease); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-200);
  padding: var(--s-200) var(--s-300); font-weight: 600; border-radius: var(--r-2xl);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; font-size: 1.25rem; color: var(--text-muted); transition: transform var(--dur) var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); color: var(--green-hover); }
.faq summary:hover { color: var(--green-hover); }
.faq .answer { padding: 0 var(--s-300) var(--s-300); color: var(--text-muted); }
.faq details[open] .answer { animation: panel-in 600ms var(--ease) both; }

.assurances { display: grid; gap: var(--s-200); margin-top: var(--s-400); }
.assurances li { display: flex; gap: var(--s-100); align-items: flex-start; color: var(--text-muted); }
.assurances i { color: var(--green-hover); font-size: 1.25rem; }
.assurances strong { color: var(--text); font-weight: 600; display: block; }

/* ---------- Final CTA + form ---------- */
.cta-card {
  border-radius: var(--r-3xl); background: var(--surface); border: 1px solid var(--line);
  padding: var(--s-75); display: grid; gap: var(--s-75);
}
@media (min-width: 1024px) { .cta-card { grid-template-columns: 5fr 7fr; } }
.cta-copy { padding: var(--s-300); display: flex; flex-direction: column; gap: var(--s-300); }
@media (min-width: 768px) { .cta-copy { padding: var(--s-400); } }
.cta-copy h2 { font-size: 1.875rem; line-height: 2.25rem; }
@media (min-width: 768px) { .cta-copy h2 { font-size: 2.25rem; line-height: 2.5rem; } }
.cta-photo { border-radius: var(--r-2xl); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-top: auto; }
.contact-list { display: grid; gap: var(--s-100); }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--text-muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.contact-list a:hover { color: var(--text); }
.contact-list i { color: var(--green-hover); font-size: 1.125rem; }

.form { background: var(--surface-2); border-radius: var(--r-2xl); padding: var(--s-300); display: grid; gap: var(--s-200); align-content: start; }
@media (min-width: 768px) { .form { padding: var(--s-400); } }
.form-row { display: grid; gap: var(--s-200); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-75); }
.field > label, .field > legend { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; padding: 0; }
.field input, .field textarea {
  width: 100%; padding: var(--s-100) var(--s-200); border-radius: var(--r-xl);
  background: var(--surface-3); border: 1px solid var(--line); color: var(--text);
  font: inherit; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-hover); background: var(--surface-2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 0.75rem; line-height: 1rem; color: var(--danger); min-height: 1rem; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: grid; grid-template-columns: 1fr; gap: var(--s-75); }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.check {
  position: relative; display: flex; align-items: center; gap: var(--s-75);
  padding: var(--s-100) var(--s-200); border-radius: var(--r-xl); border: 1px solid var(--line);
  background: var(--surface-3); cursor: pointer; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.check:hover { border-color: var(--line-strong); }
.check:active { transform: scale(0.98); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { font-size: 1.25rem; color: var(--text-muted); }
.check .on { display: none; }
.check:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.check:has(input:checked) .on { display: inline; color: var(--green-hover); }
.check:has(input:checked) .off { display: none; }
.check:has(input:focus-visible) { outline: 2px solid var(--green-hover); outline-offset: 2px; }
.form .btn { width: 100%; }
.form-note { font-size: 0.75rem; line-height: 1rem; color: var(--text-muted); }
.form-note a { color: var(--text); }
.form-status { display: none; border-radius: var(--r-xl); padding: var(--s-100) var(--s-200); font-size: 0.875rem; line-height: 1.25rem; border: 1px solid; }
.form-status.is-error { display: flex; gap: var(--s-75); border-color: var(--danger); color: var(--danger); }
.form-success { display: none; text-align: center; padding: var(--s-600) var(--s-300); }
.form-success i { font-size: 3rem; color: var(--green-hover); }
.form-success h3 { margin-top: var(--s-200); font-size: 1.5rem; line-height: 2rem; }
.form-success p { margin-top: var(--s-75); color: var(--text-muted); }
.form.is-sent > :not(.form-success) { display: none; }
.form.is-sent .form-success { display: block; animation: panel-in 800ms var(--ease) both; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s-700) 0 var(--s-400); }
.footer-grid { display: grid; gap: var(--s-500); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; margin-bottom: var(--s-200); }
.footer li + li { margin-top: var(--s-75); }
.footer a { color: var(--text-muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.footer a:hover { color: var(--text); }
.footer address { font-style: normal; color: var(--text-muted); }
.footer-brand p { margin-top: var(--s-200); color: var(--text-muted); max-width: 360px; }
.footer-brand .sub-logos { display: flex; gap: var(--s-200); margin-top: var(--s-300); }
.footer-brand .sub-logos img { height: 32px; width: auto; }
.footer-bottom { margin-top: var(--s-600); padding-top: var(--s-300); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); font-size: 0.875rem; line-height: 1.25rem; color: var(--text-muted); }
.footer-bottom ul { display: flex; gap: var(--s-300); }
.footer-bottom li + li { margin-top: 0; }

/* ---------- Simple pages (privacidad, 404) ---------- */
.page { padding-top: calc(var(--s-900) + var(--s-700)); padding-bottom: var(--s-900); }
.page h1 { font-size: 2.25rem; line-height: 2.5rem; max-width: 680px; background: linear-gradient(90deg, #ffffff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose { max-width: 680px; margin-top: var(--s-400); color: var(--text-muted); }
.prose h2 { color: var(--text); font-size: 1.25rem; line-height: 1.75rem; margin-top: var(--s-500); }
.prose p, .prose ul { margin-top: var(--s-200); }
.prose ul { list-style: disc; padding-left: var(--s-300); }
.prose a { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(64px); filter: blur(12px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: blur(0); }
.js .reveal[data-delay="1"] { transition-delay: 100ms; }
.js .reveal[data-delay="2"] { transition-delay: 200ms; }
.js .reveal[data-delay="3"] { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .tagline .word { color: var(--text); }
}
