:root {
  color-scheme: light dark;
  --surface: #f6f8f9;
  --text: #202b31;
  --muted: #53656f;
  --accent: #3e5c6b;
  --line: #d5dfe4;
  --square-light: #dee3e6;
  --square-dark: #8ca2ad;
  --button: #e6ecef;
  --frame: #324650;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
[data-lang="es"] { display: none; }
html[lang="es"] [data-lang="en"] { display: none; }
html[lang="es"] [data-lang="es"] { display: revert; }
.shell { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 20px;
  padding: 8px 16px;
  color: var(--surface);
  background: var(--text);
  transform: translateY(-160%);
  z-index: 1;
}
.skip-link:focus { transform: none; }
.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding-block: 20px 14px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.5px;
  text-decoration: none;
}
.wordmark img { border-radius: 7px; }
.main-nav {
  display: flex;
  grid-row: 2;
  grid-column: 1 / -1;
  gap: 26px;
  font-size: 14px;
}
.main-nav a { text-decoration: none; color: var(--muted); }
.main-nav a[aria-current="page"] { color: var(--text); font-weight: 650; }
.main-nav a:hover { color: var(--accent); text-decoration: underline; }
.language-toggle { display: none; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; }
.language-ready .language-toggle { display: flex; }
.language-toggle button {
  min-width: 33px;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.language-toggle button[aria-pressed="true"] { color: var(--text); font-weight: 750; }
.landing { display: grid; align-content: center; gap: 36px; padding-block: 44px 40px; }
h1 { margin: 0; font-size: clamp(2.45rem, 8vw, 4.5rem); line-height: 1.1; letter-spacing: -.055em; font-weight: 750; }
.tagline { max-width: 29ch; margin: 22px 0 28px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 19px;
  border: 1px dashed var(--square-dark);
  border-radius: 10px;
  background: var(--button);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: not-allowed;
}
.app-preview { position: relative; display: grid; place-items: center; padding: 10px 0; isolation: isolate; }
.app-preview::before {
  content: "";
  position: absolute;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  border-radius: 14px;
  background: conic-gradient(var(--square-light) 25%, var(--square-dark) 0 50%, var(--square-light) 0 75%, var(--square-dark) 0) 0 0 / 50% 50%;
  opacity: .28;
  z-index: -1;
}
.phone-frame {
  width: 210px;
  padding: 6px;
  border: 1px solid var(--square-dark);
  border-radius: 28px;
  background: var(--frame);
  box-shadow: 0 16px 35px rgb(39 61 72 / .13);
  overflow: hidden;
}
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 21px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.legal { max-width: 700px; padding-block: 46px 64px; }
.legal h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); letter-spacing: -.04em; }
.effective-date { color: var(--muted); font-size: 14px; margin: 18px 0 38px; }
.legal section + section { margin-top: 28px; }
.legal h2 { font-size: 17px; letter-spacing: -.015em; margin: 0 0 7px; line-height: 1.45; font-weight: 700; }
.legal section p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.not-found { padding-block: 80px; align-self: center; }
.not-found h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); }
.not-found p { color: var(--muted); }
.error-code { font-size: 18px; letter-spacing: .08em; }
.back-link { display: inline-block; margin-top: 16px; }

@media (min-width: 768px) {
  .shell { width: min(1100px, calc(100% - 80px)); }
  .site-header { grid-template-columns: 1fr auto auto; gap: 38px; height: 80px; padding-block: 16px; }
  .main-nav { grid-row: auto; grid-column: auto; gap: 28px; }
  .landing { grid-template-columns: 1.25fr 1fr; gap: 30px; padding-block: 48px; }
  .phone-frame { width: 250px; border-radius: 32px; }
  .phone-frame img { border-radius: 25px; }
  .app-preview::before { max-width: 400px; }
  .legal { padding-block: 64px 80px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #172127;
    --text: #edf2f4;
    --muted: #b2c1c9;
    --accent: #9db7c4;
    --line: #34464f;
    --square-light: #c9d2d7;
    --square-dark: #6f8794;
    --button: #263740;
    --frame: #34464f;
  }
  .app-preview::before { opacity: .12; }
}
