/* Mapa VPO. Shape rule: buttons pill, tiles 10px, panels 18px. One accent: rust. */
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --f-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --bg: #f0f2f4; --surface: #fbfcfd; --surface-2: #e5e9ed; --field: #ffffff;
  --ink: #14181d; --muted: #536170; --line: #d5dbe1; --line-strong: #aeb8c3;
  --accent: #b93d12; --accent-hover: #9c320e; --accent-ink: #fff7f3; --accent-text: #a8360f;
  --tile: #dde3e9; --tile-ink: #2b3540; --danger: #b42318;
  --r-s: 10px; --r-m: 18px; --r-btn: 999px;
  --shadow: 0 30px 70px -36px rgb(25 35 50 / .45), 0 1px 3px rgb(25 35 50 / .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #161b21; --surface-2: #12161b; --field: #11161b;
    --ink: #e9edf1; --muted: #9ba8b5; --line: #232b34; --line-strong: #36414d;
    --accent: #ff7a45; --accent-hover: #ff9466; --accent-ink: #1d0a03; --accent-text: #ff8f60;
    --tile: #1d242c; --tile-ink: #c4ced8; --danger: #f97066;
    --shadow: 0 30px 70px -30px rgb(0 0 0 / .75);
  }
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; }
.lg-bg { fill: var(--accent); } .lg-fg { fill: var(--accent-ink); }

/* ------------------------------------------------------------------ map hero */
.atlas { padding-block: 36px 0; }
@media (min-width: 1024px) { .atlas { padding-block: 56px 0; } }
.atlas-head { max-width: 760px; margin-bottom: 28px; }
.atlas h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: .98; letter-spacing: -0.05em; margin-bottom: .3em; }
.atlas h1 em { font-style: normal; color: var(--accent-text); }
.atlas-lead { color: var(--muted); font-size: 1.12rem; max-width: 52ch; margin: 0; }
.atlas-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .atlas-grid { grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; } }
.map-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(12px, 3vw, 28px); }
.tilemap { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(5, auto); gap: clamp(4px, 1vw, 10px); }
.tile { position: relative; aspect-ratio: 1.15; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: clamp(6px, 1.2vw, 12px);
  background: var(--tile); color: var(--tile-ink); border: 1px solid transparent; border-radius: 10px; cursor: pointer; text-align: left;
  transition: transform .35s cubic-bezier(.16,1,.3,1), background .25s, color .25s, box-shadow .3s; }
.tile[style*="span 2"], .tile[style*="span 3"] { aspect-ratio: auto; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgb(0 0 0 / .45); }
.tile:active { transform: translateY(0) scale(.98); }
.tile[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.t-id { font-family: var(--f-mono); font-weight: 700; font-size: clamp(.72rem, 1.6vw, .95rem); letter-spacing: .02em; }
.t-name { font-size: .8rem; line-height: 1.15; font-weight: 600; display: none; }
@media (min-width: 700px) { .t-name { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  .js .tilemap .tile { animation: pop .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 30ms + 120ms); }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
}
.map-hint { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

.ccaa-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); min-height: 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
@media (min-width: 960px) { .ccaa-panel { position: sticky; top: 96px; } }
.ccaa-panel.swap > * { animation: swap .5s cubic-bezier(.16,1,.3,1) both; }
.ccaa-panel.swap > *:nth-child(2) { animation-delay: .04s; } .ccaa-panel.swap > *:nth-child(3) { animation-delay: .08s; } .ccaa-panel.swap > *:nth-child(n+4) { animation-delay: .12s; }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.p-kicker { margin: 0; color: var(--muted); font-size: .9rem; }
.p-title { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .1em; }
.p-reg { font-weight: 650; margin: 0 0 .6em; }
.p-note { color: var(--muted); margin: 0 0 1.2em; }
.p-app { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .93rem; }
.p-app img { border-radius: 12px; flex: none; }
.p-app p { margin: 0; color: var(--muted); }
.p-app a { color: var(--accent-text); font-weight: 600; }

/* ------------------------------------------------------------------ sections */
.sec { padding-block: 88px 0; }
.sec h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 22ch; }
.sec-lead { color: var(--muted); max-width: 60ch; margin-bottom: 30px; }

/* registry index: two-column accordion */
.reg-list { display: grid; gap: 0 32px; }
@media (min-width: 820px) { .reg-list { grid-template-columns: 1fr 1fr; } }
.reg-list details { border-bottom: 1px solid var(--line); }
.reg-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 700; }
.reg-list summary::-webkit-details-marker { display: none; }
.reg-list summary .i { transition: transform .3s cubic-bezier(.16,1,.3,1); color: var(--muted); }
.reg-list details[open] summary .i { transform: rotate(45deg); }
.reg-list .body { padding: 0 0 18px; color: var(--muted); font-size: .95rem; }
.reg-list .body a { color: var(--accent-text); font-weight: 600; }

/* app promo: phone screenshots + copy */
.promo { display: grid; gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(24px, 4vw, 48px); overflow: hidden; }
@media (min-width: 900px) { .promo { grid-template-columns: 1fr 1fr; gap: 56px; } }
.promo h2 { margin-bottom: .4em; }
.promo p { color: var(--muted); }
.phones { position: relative; display: flex; justify-content: center; gap: 16px; }
.phones img { width: min(46%, 240px); height: auto; border-radius: 22px; box-shadow: var(--shadow); }
.phones img:last-child { transform: translateY(28px); }
@media (prefers-reduced-motion: no-preference) {
  .js .phones img { transition: transform .9s cubic-bezier(.16,1,.3,1); }
  .js .phones:not(.in) img:first-child { transform: translateY(30px) rotate(-3deg); }
  .js .phones:not(.in) img:last-child { transform: translateY(60px) rotate(3deg); }
}
.store-btn { display: inline-flex; align-items: center; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.facts div { border-top: 2px solid var(--accent); padding-top: 10px; }
.facts strong { display: block; font-size: 1.05rem; }
.facts span { font-size: .85rem; color: var(--muted); }

/* IPREM tool */
.iprem { display: grid; gap: 24px; }
@media (min-width: 960px) { .iprem { grid-template-columns: 5fr 7fr; gap: 40px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(22px, 3vw, 32px); }
.iprem .form { display: grid; gap: 18px; }
.veces { font-family: var(--f-mono); font-size: clamp(3.6rem, 10vw, 6.4rem); line-height: 1; letter-spacing: -0.06em; font-weight: 700; color: var(--accent-text); margin: 4px 0; }
.veces-l { color: var(--muted); margin: 0; }
.ruler { container-type: inline-size; position: relative; margin: 34px 0 10px; height: 54px; }
.ruler-track { position: absolute; left: 0; right: 0; top: 18px; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--accent) 35%, var(--surface-2))); }
.ruler-ticks { position: absolute; left: 0; right: 0; top: 34px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.marker { position: absolute; left: 0; top: 6px; width: 0; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.marker::before { content: ""; position: absolute; left: -2px; top: 0; width: 4px; height: 34px; border-radius: 2px; background: var(--ink); }
.marker[data-over="true"]::before { background: var(--accent); }

/* articles */
.article { padding-block: 48px 0; }
.article-head { max-width: 780px; margin-bottom: 36px; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.045em; }
.article-head p { color: var(--muted); font-size: 1.12rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.callout { border-left: 3px solid var(--accent); padding: 14px 18px; background: var(--surface); border-radius: 0 12px 12px 0; margin: 1.5em 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (prefers-reduced-motion: no-preference) {
  .atlas-head { animation: up .8s cubic-bezier(.16,1,.3,1) both; }
  .ccaa-panel { animation: up .8s .2s cubic-bezier(.16,1,.3,1) both; }
  @keyframes up { from { opacity: 0; transform: translateY(14px); } }
}
