:root {
  color-scheme: light;
  --ink: #18332f;
  --ink-soft: #526762;
  --forest: #173c36;
  --forest-2: #24574d;
  --sage: #a9c1ae;
  --sage-soft: #e8f0e8;
  --cream: #faf7ef;
  --paper: #fffdf8;
  --gold: #c89445;
  --line: #d9dfd8;
  --shadow: 0 24px 70px rgb(23 60 54 / 12%);
  --radius: 28px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 100%;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

[data-lang="en"] { display: none !important; }
html[data-locale="en"] [data-lang="es"] { display: none !important; }
html[data-locale="en"] [data-lang="en"] { display: revert !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--forest);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #e2a848;
  outline-offset: 4px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgb(24 51 47 / 8%);
  background: rgb(250 247 239 / 92%);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { border-radius: 11px; box-shadow: 0 6px 18px rgb(23 60 54 / 18%); }
.brand b { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.06rem; }
.site-nav { display: flex; justify-content: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--forest); }

.language-switcher { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); }
.language-switcher button { min-width: 42px; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 99px; background: transparent; color: var(--ink-soft); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.language-switcher button[aria-pressed="true"] { background: var(--forest); color: white; }
.menu-button { display: none; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 800; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  min-height: 650px;
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hero::before { content: ""; position: absolute; z-index: -1; inset: -30% auto auto -15%; width: 480px; height: 480px; border-radius: 50%; background: rgb(169 193 174 / 24%); filter: blur(8px); }
.hero-copy { padding: clamp(40px, 7vw, 88px); padding-right: clamp(28px, 5vw, 64px); }
.eyebrow { margin: 0 0 14px; color: var(--forest-2); font-size: .76rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.09; letter-spacing: -.025em; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(2.6rem, 6vw, 5.1rem); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.38rem; }
.lede { max-width: 660px; margin: 0 0 30px; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 99px; font-weight: 800; text-align: center; text-decoration: none; }
.button.primary { background: var(--forest); color: white; box-shadow: 0 10px 24px rgb(23 60 54 / 22%); }
.button.primary:hover { background: var(--forest-2); }
.button.secondary { border-color: var(--line); background: white; }
.availability { display: flex; align-items: center; gap: 9px; margin: 26px 0 0; color: var(--ink-soft); font-size: .82rem; }
.status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgb(200 148 69 / 14%); }
.hero-art { align-self: stretch; min-height: 520px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); width: min(calc(100% - 40px), 1000px); margin: 38px auto; }
.trust-strip p { display: grid; gap: 2px; margin: 0; padding: 14px 24px; border-right: 1px solid var(--line); text-align: center; }
.trust-strip p:last-child { border: 0; }
.trust-strip b { color: var(--forest); font-family: Georgia, serif; font-size: 1.65rem; }
.trust-strip span { color: var(--ink-soft); font-size: .82rem; }

.section { width: min(calc(100% - 40px), var(--max)); margin: clamp(78px, 10vw, 140px) auto; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { min-height: 280px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.feature-card:nth-child(even) { transform: translateY(28px); }
.feature-card p { color: var(--ink-soft); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 38px; border-radius: 16px; background: var(--sage-soft); color: var(--forest); font-size: 1.35rem; }

.app-preview { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 680px; overflow: hidden; border-radius: 38px; background: var(--forest); color: white; }
.preview-copy { padding: clamp(36px, 7vw, 84px); }
.preview-copy .eyebrow { color: #c8dfcc; }
.check-list { display: grid; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 32px; color: #e7f0ea; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #e1b66d; font-weight: 900; }
.phone-stage { align-self: stretch; display: grid; place-items: end center; padding: 54px 40px 0; background: radial-gradient(circle at 50% 40%, #5d8072, transparent 58%); }
.phone { width: min(330px, 85%); padding: 10px; overflow: hidden; border: 2px solid rgb(255 255 255 / 32%); border-bottom: 0; border-radius: 38px 38px 0 0; background: #10221f; box-shadow: 0 28px 80px rgb(0 0 0 / 36%); }
.phone img { width: 100%; border-radius: 28px 28px 0 0; }

.privacy-callout { display: grid; grid-template-columns: 180px 1fr; gap: 50px; align-items: start; padding: clamp(34px, 6vw, 74px); border: 1px solid #c8d8ca; border-radius: 38px; background: #edf4ec; }
.privacy-mark { display: grid; place-items: center; width: 160px; height: 160px; border-radius: 50%; background: var(--forest); color: white; font-size: 4.6rem; }
.privacy-callout p { max-width: 800px; color: #405b54; }
.privacy-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.privacy-points span { padding: 8px 13px; border: 1px solid #b9cdbb; border-radius: 99px; background: rgb(255 255 255 / 50%); font-size: .85rem; }
.text-link { color: var(--forest); font-weight: 900; text-underline-offset: 5px; }

.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 20px 4px; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.faq summary::after { content: "+"; color: var(--forest-2); font-family: system-ui; font-size: 1.5rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 800px; margin: -4px 0 26px; color: var(--ink-soft); }

.support-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px; border-radius: 28px; background: #efe4d0; }
.support-card h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.support-card p { margin: 0; color: #655947; }
.pending { display: inline-block; padding: 10px 14px; border: 1px solid #c8a96f; border-radius: 12px; background: #fff8e8; color: #614a21; font-weight: 800; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; padding: 42px max(20px, calc((100vw - var(--max)) / 2)); background: #102c27; color: #e8f0ea; }
.site-footer > div { display: flex; align-items: center; gap: 12px; }
.site-footer img { border-radius: 9px; }
.site-footer p { margin: 0; font-size: .84rem; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: white; text-underline-offset: 4px; }

.legal-page { width: min(calc(100% - 40px), var(--max)); margin: 0 auto 110px; }
.legal-hero { max-width: 880px; padding: 90px 0 44px; }
.legal-hero h1 { margin-bottom: 18px; }
.legal-hero > p:not(.eyebrow) { color: var(--ink-soft); }
.legal-intro { font-size: 1.2rem; }
.privacy-summary { padding: 28px 34px; border-left: 5px solid var(--gold); border-radius: 0 22px 22px 0; background: #f3e7d2; }
.privacy-summary strong { font-family: Georgia, serif; font-size: 1.45rem; }
.privacy-summary ul { margin-bottom: 0; }
.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: 70px; margin-top: 64px; }
.legal-toc { position: sticky; top: 105px; align-self: start; display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.legal-toc b { margin-bottom: 6px; }
.legal-toc a { color: var(--ink-soft); font-size: .9rem; text-decoration: none; }
.legal-toc a:hover { color: var(--forest); text-decoration: underline; }
.legal-copy { max-width: 790px; }
.legal-copy section { padding: 0 0 44px; }
.legal-copy h2 { margin-bottom: 20px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.legal-copy h3 { margin: 28px 0 8px; font-family: inherit; font-size: 1.05rem; letter-spacing: 0; }
.legal-copy p { color: var(--ink-soft); }
.legal-copy strong { color: var(--ink); }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at center, #edf4ec, var(--cream)); }
.error-card { width: min(100%, 580px); padding: 56px; border-radius: 32px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.error-card img { margin: 0 auto 22px; border-radius: 18px; }
.error-card .language-switcher { margin-top: 28px; }

@media (max-width: 920px) {
  .site-header { grid-template-columns: auto auto 1fr auto; }
  .menu-button { display: inline-flex; align-items: center; gap: 7px; margin-left: 16px; }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 16px; left: 16px; display: none; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: grid; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 370px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip p:nth-child(2) { border: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .app-preview { grid-template-columns: 1fr; }
  .phone-stage { min-height: 590px; }
  .privacy-callout { grid-template-columns: 1fr; }
  .privacy-mark { width: 90px; height: 90px; font-size: 2.6rem; }
  .site-footer { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; }
  .legal-toc { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header { grid-template-columns: 1fr auto auto; min-height: 68px; }
  .brand b { max-width: 130px; font-size: .9rem; line-height: 1.15; }
  .brand img { width: 38px; height: 38px; }
  .menu-button { grid-column: 2; margin: 0; }
  .site-header > .language-switcher { grid-column: 3; }
  .hero { width: min(calc(100% - 20px), var(--max)); margin-top: 10px; border-radius: 26px; }
  .hero-copy { padding: 42px 24px; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.6rem); }
  .hero-actions .button { width: 100%; }
  .hero-art { min-height: 260px; }
  .trust-strip { width: calc(100% - 20px); }
  .trust-strip p { padding: 12px 8px; }
  .section { width: calc(100% - 28px); margin: 78px auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(even) { transform: none; }
  .feature-card { min-height: 0; }
  .feature-icon { margin-bottom: 22px; }
  .app-preview { width: calc(100% - 20px); }
  .preview-copy { padding: 42px 24px; }
  .phone-stage { min-height: 500px; padding-inline: 18px; }
  .privacy-callout { padding: 34px 24px; }
  .support-card { align-items: flex-start; flex-direction: column; padding: 32px 24px; }
  .site-footer { padding-block: 34px; }
  .site-footer nav { flex-wrap: wrap; }
  .legal-page { width: calc(100% - 30px); }
  .legal-hero { padding-top: 58px; }
  .legal-toc { grid-template-columns: 1fr; }
  .privacy-summary { padding: 24px; }
  .error-card { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  :root { --ink-soft: #263d38; --line: #6b7a76; }
  .button, .feature-card, .language-switcher, .legal-toc { border-width: 2px; }
}
