/* Páginas estáticas de bedrink.app (qué es, soporte, privacidad, términos y sus versiones en inglés).
   Mismo estilo que la landing (src/screens/landing.css): fondo de noche, barra en pastilla, tarjetas y pie. */
:root {
  --lime-rgb: 184, 255, 0;
  --pink-rgb: 255, 32, 216;
  --ink: #050506;
  --ink-2: #0f0f13;
  --ink-3: #18181e;
  --line: rgba(255, 255, 255, 0.1);
  --fg: #f6f6f8;
  --text: #c9c9d2;
  --dim: #a3a3ad;
  --faint: #6f6f7a;
  --lime: #b8ff00;
  --lime-soft: #e6f7a0;
  --pink: #ff20d8;
  --droid: #3ddc84;
  --grad: linear-gradient(100deg, var(--lime) 0%, var(--lime-soft) 45%, var(--pink) 100%);
  --font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--ink); color: var(--fg); font: 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image:
    radial-gradient(900px 520px at 85% -10%, rgba(var(--lime-rgb), 0.1), transparent 70%),
    radial-gradient(800px 600px at -10% 20%, rgba(var(--pink-rgb), 0.08), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--lime); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 10px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ── Barra en pastilla ── */
.nav {
  position: fixed; z-index: 50; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px); transform: translateX(-50%);
  width: min(820px, calc(100vw - 24px)); height: 56px; padding: 0 9px 0 12px; border-radius: 18px;
  display: flex; align-items: center; gap: 16px; white-space: nowrap; color: #fff;
  background: linear-gradient(180deg, rgba(38, 38, 44, 0.9), rgba(14, 14, 17, 0.94));
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 16px 36px -14px rgba(0, 0, 0, 0.6);
}
.nav .brand { display: flex; align-items: center; gap: 9px; flex: none; }
.nav .brand .ico { width: 30px; height: 30px; border-radius: 9px; background: #000 url(/landing/icon.png) center/cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.nav .brand img { height: 20px; width: auto; }
.nav-links { display: none; align-items: center; gap: 20px; margin: 0 auto; font-size: 14px; font-weight: 500; }
.nav-links a { color: rgba(255, 255, 255, 0.58); text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-buy {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px;
  background: #fff; color: #000; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .25s cubic-bezier(.3, 1.4, .4, 1);
}
.nav-buy:hover { transform: scale(1.04); }
.nav-buy svg { width: 15px; height: 15px; margin-top: -2px; flex: none; }
.nav-buy .long { display: none; }
@media (min-width: 820px) { .nav-links { display: flex; } .nav-buy { margin-left: 0; } .nav-buy .long { display: inline; } }

/* ── Documento ── */
.doc { max-width: 780px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 128px) max(20px, env(safe-area-inset-right, 0px)) 72px max(20px, env(safe-area-inset-left, 0px)); }
.doc .kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.doc h1 {
  font-size: clamp(42px, 9vw, 72px); line-height: 1; font-weight: 900; letter-spacing: -0.045em; padding-bottom: .08em; text-wrap: balance;
  background: linear-gradient(100deg, #fff 0%, #fff 55%, var(--lime-soft) 80%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.doc .sub { color: var(--dim); font-size: 15px; margin: 16px 0 44px; }
.doc .sub a { color: var(--dim); }
.doc h2 {
  font-size: clamp(21px, 4vw, 26px); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--fg);
  margin: 48px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); text-wrap: balance;
}
.doc h2 span { color: var(--lime); margin-right: 6px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; color: var(--fg); }
.doc p, .doc li { color: var(--text); }
.doc p { margin: 12px 0; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--lime); }
.doc .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  border-radius: 22px; padding: 18px 22px; margin: 16px 0;
}
.doc .card.mail a { font-size: 20px; font-weight: 700; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.doc th { color: var(--fg); }

/* Descarga (qué es) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.store {
  position: relative; display: flex; align-items: center; gap: 14px; width: 230px; max-width: 100%; min-height: 68px; padding: 10px 24px 10px 18px; border-radius: 20px;
  background: var(--fg); color: #050506; text-decoration: none; box-shadow: 0 18px 50px -14px rgba(var(--lime-rgb), .5); transition: transform .2s;
}
.store:hover { transform: translateY(-3px); }
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: 12px; font-weight: 500; opacity: .7; }
.store b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.store.android { background: rgba(255, 255, 255, .04); color: var(--dim); border: 1.5px dashed rgba(255, 255, 255, .22); box-shadow: none; }
.store.android:hover { transform: none; }
.store.android svg { color: var(--droid); }
.store em { position: absolute; top: -10px; right: -8px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--pink); color: #fff; }

/* ── Pie en tarjeta (igual que la landing) ── */
footer { padding-block: 8px calc(20px + env(safe-area-inset-bottom, 0px)); color: var(--faint); font-size: 15px; }
.foot-card {
  position: relative; overflow: hidden; border-radius: clamp(24px, 4vw, 36px); padding: clamp(28px, 5vw, 48px) clamp(22px, 5vw, 52px) clamp(22px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.foot-card::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--pink-rgb), 0.12), transparent 65%); pointer-events: none; }
.foot-card::after { content: ""; position: absolute; inset: -50% auto auto -15%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--lime-rgb), 0.08), transparent 65%); pointer-events: none; }
.foot-card > * { position: relative; }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.foot-brand { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; padding-block: 4px 8px; }
.foot-brand img { height: clamp(40px, 11vw, 52px); width: auto; }
.foot-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.foot-col b { color: var(--fg); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.foot-col a { color: var(--dim); text-decoration: none; transition: color .2s; }
.foot-col a:hover, .foot-col a.on { color: var(--lime); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: clamp(26px, 4vw, 40px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
@media (min-width: 720px) {
  .foot { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; align-self: stretch; padding-block: 0; }
  .foot-brand img { height: 60px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }

/* ── Tema de Halloween (clase .hw en <html>, la pone /landing/season.js) ── */
html.hw {
  --ink: #07040b; --ink-2: #120c18; --ink-3: #1b1322;
  --lime: #ff7a1a; --lime-soft: #ffb25c; --pink: #9b4dff;
  --lime-rgb: 255, 122, 26; --pink-rgb: 155, 77, 255;
}
html.hw img[src*="/landing/logo.png"] { filter: hue-rotate(-48deg); }
html.hw .nav .brand .ico { background-image: url(/landing/icon-halloween.png); }
html.hw body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none; right: 6vw; top: 110px; width: clamp(60px, 10vw, 110px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fffaf0 0%, #f6ecd2 45%, #d9c597 100%);
  box-shadow: 0 0 60px 10px rgba(255, 210, 140, .3), 0 0 160px 30px rgba(255, 140, 60, .15); opacity: .9;
}

/* ── Tema de Navidad (clase .xm en <html>, la pone /landing/season.js) ── */
html.xm {
  --ink: #04070a; --ink-2: #0b1116; --ink-3: #131b22;
  --lime: #ffcf4d; --lime-soft: #ffe58a; --pink: #ff2e4d;
  --lime-rgb: 255, 207, 77; --pink-rgb: 255, 46, 77;
}
html.xm img[src*="/landing/logo.png"] { filter: hue-rotate(50deg); }
html.xm .nav .brand .ico { background-image: url(/landing/icon-christmas.png); }
html.xm body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none; inset: -400px 0 0;
  background-image:
    radial-gradient(2.5px 2.5px at 20px 30px, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(2px 2px at 120px 160px, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(3px 3px at 200px 90px, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(1.8px 1.8px at 300px 260px, rgba(255, 255, 255, .45), transparent 60%);
  background-size: 400px 400px; animation: site-xm-snow 26s linear infinite;
}
@keyframes site-xm-snow { from { transform: translateY(0); } to { transform: translateY(400px); } }
@media (prefers-reduced-motion: reduce) { html.xm body::before { animation: none; } }
