/* ===================================================================
   Optipos — Landing (diseño Claude Design, modo claro)
   Static SSR · fuentes auto-alojadas · estilos globales.
   El grueso del maquetado va inline en cada página; aquí van la base,
   las clases utilitarias del diseño y las reglas responsive.
   =================================================================== */

/* ── Fuentes auto-alojadas ──────────────────────────────────────── */
@font-face {
  font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/fonts/schibsted-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Base ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f7f4f1;
  color: #16181d;
  font-family: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid #bd6438; outline-offset: 3px; border-radius: 4px; }

/* ── Utilidades del diseño ──────────────────────────────────────── */
.mono { font-family: 'JetBrains Mono', ui-monospace, 'Consolas', monospace; font-variant-numeric: tabular-nums; }
.serif { font-family: ui-serif, Georgia, 'Times New Roman', serif; }
.lift { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lift:hover { transform: translateY(-3px); }
.btn-p { transition: transform .15s ease, box-shadow .2s ease; }
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(189,100,56,.7), inset 0 1px 0 rgba(255,255,255,.22); }
.nav-a { transition: color .15s ease; white-space: nowrap; }
.nav-a:hover { color: #16181d; }

/* FAQ (details/summary) */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { transition: transform .2s ease; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item[open] { border-color: color-mix(in srgb, #bd6438 40%, transparent) !important; }

/* Páginas legales (prosa) */
.lg h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; scroll-margin-top: 90px; }
.lg section { margin-top: 40px; scroll-margin-top: 90px; }
.lg p { color: #41434a; margin: 0 0 16px; line-height: 1.7; font-size: 16px; }
.lg ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 9px; }
.lg li { color: #41434a; line-height: 1.6; font-size: 16px; }
.lg strong { color: #16181d; }
.lg a { color: #bd6438; text-decoration: underline; text-underline-offset: 2px; }
.ph { color: #bd6438; font-weight: 600; background: color-mix(in srgb, #bd6438 12%, transparent); padding: 1px 6px; border-radius: 5px; }
.lg table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.lg th, .lg td { text-align: left; padding: 12px 14px; border: 1px solid #e6e2db; color: #41434a; vertical-align: top; }
.lg th { background: #f1ede8; color: #16181d; font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .r-nav, .r-login { display: none !important; }
  .r4, .r3, .r2, .r-split, .r-pricing, .r-stats { grid-template-columns: 1fr !important; }
  .r-pad { padding-left: 20px !important; padding-right: 20px !important; }
  .r-stats > div[aria-hidden] { display: none !important; }
  .r-center { text-align: center !important; }
  .r-hero-pad { padding-top: 56px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lift, .btn-p, .nav-a, .faq-item summary .plus { transition: none; }
}
