:root {
  color-scheme: light;
  --ink: #24343c;
  --muted: #435b64;
  --teal: #166d7b;
  --teal-dark: #105560;
  --sky: #8fc8d1;
  --ice: #dcedf0;
  --line: #c6dde2;
  --paper: #f6fafb;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-bottom: var(--am-consent-h, 0px); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #7a4380; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
p { line-height: 1.6; }
h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.wrap { width: min(75rem, calc(100% - 4rem)); margin-inline: auto; }

.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner, .site-header nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.7rem); }
.header-inner { min-height: 4.15rem; justify-content: space-between; }
.header-logo { width: clamp(8rem, 16vw, 10rem); }
.site-header nav { font-size: .91rem; font-weight: 650; }
.site-header a { text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.login-button { padding: .55rem .8rem; border: 1px solid #94b9c0; border-radius: .55rem; color: var(--teal-dark); text-align: center; }

.hero { background: linear-gradient(125deg, var(--sky), #afdce3); border-bottom: 1px solid #98c6ce; }
.hero-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(2rem, 4vw, 4.75rem); padding-block: clamp(2.5rem, 5vw, 4.6rem); }
h1 img { width: min(100%, 27rem); }
h1 span { display: block; margin-top: .38rem; font-size: clamp(2.2rem, 4.2vw, 3.7rem); font-weight: 750; line-height: 1.02; letter-spacing: -.05em; }
.hero-copy { max-width: 43ch; margin-top: 1.1rem; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: #233c45; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem; margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; min-height: 45px; padding: .75rem 1.1rem; border-radius: .55rem; background: var(--teal-dark); color: white; font-weight: 750; text-decoration: none; }
.button:hover { background: #093d45; }
.text-link { color: var(--teal-dark); font-weight: 700; text-underline-offset: .23em; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-note, .session-note { margin-top: .9rem; font-size: .9rem; font-weight: 650; color: #233c45; }
.session-note { margin-top: .45rem; }
.hero-preview { padding: .5rem; background: white; border: 1px solid #75aeb8; border-radius: .95rem; box-shadow: 0 14px 32px #14414d2b; }
.hero-preview a, .screen { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: .58rem; background: white; }
.hero-preview img, .screen img { width: 100%; }
figcaption { padding: .45rem .25rem .1rem; font-size: .82rem; color: var(--muted); }

.tools { padding-block: clamp(2.5rem, 5vw, 4.4rem); }
.tool-nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.12rem; }
.tool-nav a { padding: .48rem .78rem; border: 1px solid #accdd3; border-radius: 99px; background: var(--ice); font-size: .89rem; font-weight: 650; color: var(--teal-dark); text-decoration: none; }
.tool-nav a:hover { background: #c2e2e7; }
.feature { display: grid; grid-template-columns: .76fr 1.24fr; align-items: center; gap: clamp(1.15rem, 4vw, 4rem); padding: clamp(1.15rem, 3.1vw, 2.55rem); margin-top: 1.25rem; border: 1px solid var(--line); border-radius: .9rem; background: white; scroll-margin-top: 1rem; }
.feature-pizarra { background: var(--ice); }
.feature p { color: var(--muted); margin-top: .65rem; }
.feature .text-link { display: inline-block; margin-top: .8rem; }
.screen:hover { border-color: var(--teal); }

.faq-band { background: var(--ice); border-block: 1px solid var(--line); }
.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 1.5rem; padding-block: clamp(2rem, 5vw, 4rem); }
.faq details { border-top: 1px solid #b4d1d7; padding: .85rem 0; }
.faq details:last-child { border-bottom: 1px solid #b4d1d7; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: .55rem; color: var(--muted); }
.final { padding-block: clamp(2.3rem, 5vw, 4rem); text-align: center; }
.site-footer { background: white; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem 1.4rem; padding-block: 1.5rem; color: var(--muted); font-size: .9rem; }

@media (max-width: 55rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-preview { max-width: 40rem; }
}
@media (max-width: 46rem) {
  .wrap { width: calc(100% - 2rem); }
  .feature, .faq { grid-template-columns: 1fr; }
}
@media (max-width: 26rem) {
  .nav-guide { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.auth-card {
  max-width: 30rem;
  margin: 1.25rem auto 0;
  padding: clamp(1rem, 4vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: white;
  text-align: left;
}
.auth-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .25rem; border-radius: .65rem; background: var(--ice); }
.auth-nav a { padding: .6rem .35rem; border-radius: .45rem; text-align: center; text-decoration: none; color: var(--teal-dark); font-weight: 700; }
.auth-nav a[aria-current] { background: var(--teal-dark); color: white; }
.auth-mode { margin-top: 1.1rem; scroll-margin-top: 6rem; }
.auth-mode form { display: grid; gap: .45rem; }
.auth-mode form > label { font-size: .92rem; font-weight: 650; }
.auth-mode input:not([type="checkbox"]) { width: 100%; min-height: 44px; margin-bottom: .45rem; padding: .65rem; border: 1px solid #9dbac1; border-radius: .55rem; font: inherit; color: inherit; }
.auth-check { display: flex; align-items: flex-start; gap: .6rem; margin: .3rem 0; font-size: .88rem; line-height: 1.5; }
.auth-check input { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; accent-color: var(--teal-dark); }
.auth-mode button { cursor: pointer; font-family: inherit; }
.auth-mode .button { justify-content: center; border: 0; font-size: 1rem; margin-top: .5rem; }
.auth-mode button:disabled { opacity: .62; cursor: default; }
.auth-status, .auth-notice { margin-top: .65rem; font-size: .9rem; }
.auth-status[data-error], #auth-google-error { color: #a22432; }
.auth-notice { padding: .65rem .8rem; border-radius: .5rem; background: var(--ice); }
.auth-text-button, .auth-forgot { font-size: .88rem; color: var(--teal-dark); }
.auth-text-button { justify-self: start; background: none; border: 0; padding: 0; text-decoration: underline; }
.auth-forgot { display: inline-block; margin-top: .8rem; }
.am-google-btn { display: flex; justify-content: center; align-items: center; gap: .55rem; min-height: 44px; border: 1px solid #9dbac1; border-radius: .55rem; font-weight: 650; color: var(--ink); text-decoration: none; }
.am-google-btn:hover { background: var(--paper); }
.am-or { display: flex; align-items: center; gap: .65rem; margin: .85rem 0; font-size: .88rem; color: var(--muted); }
.am-or::before, .am-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card :is(input, button):focus-visible { outline: 3px solid #7a4380; outline-offset: 3px; }
