/* ==========================================================================================
   Compass Afar -- marketing site (v3). Plain CSS, no build step.
   Colours, fonts, radii and shadows are copied from the app's frontend/theme.css so the site and
   the app read as one brand. If the app's palette changes, change the tokens below to match.
   Motion is transform / opacity (one exception: the entry wordmark's blur-to-sharp), and all of
   it is switched off under prefers-reduced-motion (the block at the end of this file).
   This file's name carries a version: see the note in index.html before changing it.
   ========================================================================================== */
/* ---- typefaces: the app's own (frontend/vendor/fonts), served from /fonts. No request to Google Fonts. ---- */
@font-face{
  font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
}
@font-face{
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope-latin-var.woff2") format("woff2");
}
@font-face{
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

:root{
  color-scheme: light dark;
  --p2: #fdf6f9; --p3: #fbeaf1; --p4: #f9deea; --p5: #f7d2e4;
  --page: var(--p2);
  --page-rgb: 253, 246, 249;
  --surface: #ffffff;
  --border: var(--p4);
  --border-strong: #e98bbd;
  --accent: #e85a99;
  --accent-deep: #c93e7d;
  --accent-rgb: 201, 62, 125;
  --link: #ad3269;
  --btn-bg: #c93e7d; --btn-ink: #ffffff;
  --ink: #241820;
  --ink-soft: #6f5963;
  --ink-faint: #a98da0;
  --metro: #f2c200; --metro-ink: #241820;
  --cercanias: #c8102e; --cercanias-ink: #ffffff;
  --risk: #b3263f; --risk-ink: #ffffff; --risk-bg: #fbe3e8;
  --safe: #227a52; --safe-bg: #e3f3ea;
  --map-bg: #f3eedb; --map-park: #cfe3c0; --map-road: #c3bb9e;
  --phone: #241820;
  --ink-rgb: 36, 16, 25;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius-l: 28px; --radius-m: 16px; --radius-s: 10px; --radius-pill: 999px;
  --shadow-card: 0 8px 20px -14px rgba(var(--ink-rgb), .28);
  --shadow-float: 0 24px 48px -24px rgba(var(--ink-rgb), .38);
  --shadow-accent: 0 10px 24px -10px rgba(var(--accent-rgb), .55);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 24px;
  --section: 80px;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark){
  :root{
    --p2: #1e161b; --p3: #271b22; --p4: #33232c; --p5: #452c3a;
    --page: #171114;
    --page-rgb: 23, 17, 20;
    --surface: #1c1418;
    --border: #3a2830;
    --border-strong: #b34e83;
    --accent: #f0679f;
    --accent-deep: #f388b3;
    --accent-rgb: 240, 103, 159;
    --link: #f388b3;
    --btn-bg: #f0679f; --btn-ink: #2a0b18;
    --ink: #f6ecf0;
    --ink-soft: #cba9b8;
    --ink-faint: #8d6e7a;
    --risk: #ff8fa3; --risk-ink: #421a24; --risk-bg: #421a24;
    --safe: #6fd39e; --safe-bg: #163a29;
    --map-bg: #241f16; --map-park: #23331f; --map-road: #4a4436;
    --phone: #0b0709;
    --ink-rgb: 0, 0, 0;
    --shadow-card: 0 8px 20px -14px rgba(0,0,0,.6);
    --shadow-float: 0 24px 48px -24px rgba(0,0,0,.8);
    --shadow-accent: 0 10px 24px -12px rgba(240, 103, 159, .45);
  }
}

*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body{
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img,svg{ max-width: 100%; display: block; }
a{ color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover{ text-decoration-thickness: 2px; }
button{ font: inherit; color: inherit; }
:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p{ margin: 0; }

.wrap{
  width: 100%; max-width: 1168px; margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.skip{ position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 10px 14px; border-radius: var(--radius-s); z-index: 110; }
.skip:focus{ left: var(--gutter); top: 10px; }
.sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }
.vh{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon{ flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow{ font: 600 .8125rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--link); }

/* ---- buttons ---- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 56px; padding: 0 28px;
  border: 0; cursor: pointer; background: var(--btn-bg); color: var(--btn-ink); border-radius: var(--radius-pill);
  font: 700 1.0625rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-accent);
  transition: transform .2s var(--ease-out);
}
.btn .arrow{ transition: transform .2s var(--ease-out); }
.btn:hover{ transform: translateY(-2px); }
.btn:hover .arrow{ transform: translateX(4px); }
.btn:active{ transform: scale(.97); }
.btn:focus-visible{ border-radius: var(--radius-pill); }
.btn-invert{ background: var(--btn-ink); color: var(--btn-bg); box-shadow: 0 12px 28px -14px rgba(var(--ink-rgb), .55); }
.btn-ghost{ background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn-ghost:hover{ background: var(--p3); }

/* ---- the compass dial: same geometry and colours as the app's logo (frontend/compass.js) ---- */
.dial{ overflow: visible; }
.face{ fill: var(--surface); stroke: var(--border-strong); }
.tick{ stroke: var(--border-strong); }
.cardinal{ stroke: var(--ink-soft); }
.north{ stroke: var(--accent); }
.inner{ fill: none; stroke: var(--border); }
.letter{ font: 600 7.5px var(--font-mono); fill: var(--ink-soft); }
.letter-n{ fill: var(--accent-deep); }
.needle{ transform-origin: 50px 50px; transform: rotate(var(--needle, 0deg)); }
.needle-n{ fill: var(--accent); }
.needle-s{ fill: var(--ink-faint); opacity: .7; }
.pivot{ fill: var(--surface); stroke: var(--accent-deep); }
/* the idle needle: a slow sway around its resting angle (until the cursor or the phone's tilt takes over: .live) */
@keyframes sway{
  0%, 100%{ transform: rotate(24deg); }
  30%{ transform: rotate(31deg); }
  70%{ transform: rotate(18deg); }
}

/* ==========================================================================================
   ENTRY SCREEN (landing page, first visit of a session). The app's launch look: the dial on
   the brand pink. The ticks draw in clockwise, the needle swings and settles north, the
   wordmark arrives letter by letter, then the tagline and the Explore button (in by 2 s).
   Explore / scroll / Enter: the needle snaps north, the dial flies to the header logo and the
   screen slides up. site.v3.js adds html.entry-on before first paint, then html.entry-out.
   ========================================================================================== */
html.entry-on{ overflow: hidden; }
html.entry-on .entry{ display: block; }
.entry{ position: fixed; inset: 0; z-index: 100; }
.entry-bg{
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 38%, rgba(255,255,255,.2), rgba(255,255,255,0) 70%), var(--btn-bg);
  transition: transform .65s cubic-bezier(.65, 0, .35, 1);
}
.entry-stage{
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  text-align: center; color: var(--btn-ink);
}
.entry-compass{
  width: clamp(160px, 46vw, 200px);
  transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(var(--fs, 1));
  transition: transform .6s var(--ease-out); will-change: transform;
}
.entry-compass svg{ width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(var(--ink-rgb), .28)); }
.entry .face{ transform-origin: 50px 50px; animation: e-face .5s var(--ease-out) both; }
.entry .tick{ animation: e-fade .25s ease both; }
.entry .tick:nth-child(1){ animation-delay: 60ms; } .entry .tick:nth-child(2){ animation-delay: 78ms; } .entry .tick:nth-child(3){ animation-delay: 96ms; } .entry .tick:nth-child(4){ animation-delay: 114ms; } .entry .tick:nth-child(5){ animation-delay: 132ms; } .entry .tick:nth-child(6){ animation-delay: 150ms; } .entry .tick:nth-child(7){ animation-delay: 168ms; } .entry .tick:nth-child(8){ animation-delay: 186ms; } .entry .tick:nth-child(9){ animation-delay: 204ms; } .entry .tick:nth-child(10){ animation-delay: 222ms; } .entry .tick:nth-child(11){ animation-delay: 240ms; } .entry .tick:nth-child(12){ animation-delay: 258ms; } .entry .tick:nth-child(13){ animation-delay: 276ms; } .entry .tick:nth-child(14){ animation-delay: 294ms; } .entry .tick:nth-child(15){ animation-delay: 312ms; } .entry .tick:nth-child(16){ animation-delay: 330ms; } .entry .tick:nth-child(17){ animation-delay: 348ms; } .entry .tick:nth-child(18){ animation-delay: 366ms; } .entry .tick:nth-child(19){ animation-delay: 384ms; } .entry .tick:nth-child(20){ animation-delay: 402ms; } .entry .tick:nth-child(21){ animation-delay: 420ms; } .entry .tick:nth-child(22){ animation-delay: 438ms; } .entry .tick:nth-child(23){ animation-delay: 456ms; } .entry .tick:nth-child(24){ animation-delay: 474ms; }
.entry .inner{ animation: e-fade .4s ease .45s both; }
.entry .letter{ animation: e-fade .4s ease .55s both; }
.entry .needle{ animation: e-needle 1.15s ease-in-out .2s both; }
.entry .dial.live .needle{ animation: none; }
.entry.snap .needle{ transition: transform .2s var(--ease-out); }
.entry-text{ display: flex; flex-direction: column; align-items: center; transition: opacity .25s ease; }
.entry-word{ margin-top: 32px; font: 600 clamp(2.75rem, 12vw, 4.25rem)/1.05 var(--font-display); letter-spacing: .005em; }
.entry-word .ch{ display: inline-block; animation: e-ch .5s var(--ease-out) both; }
.entry-word .sp{ width: .26em; }
.entry-word .ch:nth-child(1){ animation-delay: 700ms; } .entry-word .ch:nth-child(2){ animation-delay: 736ms; } .entry-word .ch:nth-child(3){ animation-delay: 772ms; } .entry-word .ch:nth-child(4){ animation-delay: 808ms; } .entry-word .ch:nth-child(5){ animation-delay: 844ms; } .entry-word .ch:nth-child(6){ animation-delay: 880ms; } .entry-word .ch:nth-child(7){ animation-delay: 916ms; } .entry-word .ch:nth-child(8){ animation-delay: 952ms; } .entry-word .ch:nth-child(9){ animation-delay: 988ms; } .entry-word .ch:nth-child(10){ animation-delay: 1024ms; } .entry-word .ch:nth-child(11){ animation-delay: 1060ms; } .entry-word .ch:nth-child(12){ animation-delay: 1096ms; }
.entry-tag{ margin-top: 16px; font-size: 1.125rem; line-height: 1.5; max-width: 40ch; text-wrap: balance; animation: e-rise .45s var(--ease-out) 1.25s both; }
.entry-go{ margin-top: 32px; animation: e-pop .5s var(--ease-spring) 1.5s both; }
@keyframes e-face{ from{ opacity: 0; transform: scale(.82); } }
@keyframes e-fade{ from{ opacity: 0; } }
@keyframes e-needle{
  0%{ opacity: 0; transform: rotate(-200deg); }
  12%{ opacity: 1; }
  55%{ transform: rotate(18deg); }
  75%{ transform: rotate(-8deg); }
  90%{ transform: rotate(3deg); }
  100%{ opacity: 1; transform: rotate(0deg); }
}
@keyframes e-ch{ from{ opacity: 0; transform: translateY(.45em); filter: blur(6px); } to{ opacity: 1; transform: none; filter: blur(0); } }
@keyframes e-rise{ from{ opacity: 0; transform: translateY(12px); } }
@keyframes e-pop{ from{ opacity: 0; transform: scale(.7); } }
html.entry-out .entry{ pointer-events: none; }
html.entry-out .entry-bg{ transform: translateY(-100%); }
html.entry-out .entry-text{ opacity: 0; }
html.entry-on .brand-dial{ opacity: 0; }   /* the flying dial lands here, then this one takes over */

/* ---- header ---- */
.site-header{
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top);
  background: rgba(var(--page-rgb), .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.site-header::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); opacity: 0; transition: opacity .3s ease; }
.site-header.scrolled::after{ opacity: 1; }
.site-header .wrap{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 64px; }
.brand{ display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 600 1.25rem/1 var(--font-display); letter-spacing: -.01em; }
.brand-dial{ width: 30px; height: 30px; }
.brand-dial .face{ stroke: var(--accent); }
.site-nav{ display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a{
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill);
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.site-nav a:hover, .site-nav a[aria-current="true"]{ color: var(--ink); }
.site-nav a:not(.nav-cta)::after{
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.site-nav a[aria-current="true"]::after{ transform: scaleX(1); }
.site-nav .nav-cta{ margin-left: 8px; padding: 0 20px; background: var(--btn-bg); color: var(--btn-ink); transition: transform .2s var(--ease-out); }
.site-nav .nav-cta:hover{ color: var(--btn-ink); transform: translateY(-2px); }
.site-nav .nav-cta[aria-current="true"]{ color: var(--btn-ink); }
.menu-btn{ display: none; }
@media (max-width: 719px){
  .js .menu-btn{
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
    border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer;
  }
  .js .menu-btn:hover{ background: var(--p3); }
  .js .site-nav{
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px max(var(--gutter), env(safe-area-inset-right)) 20px max(var(--gutter), env(safe-area-inset-left));
    background: var(--page); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-float);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .2s ease, transform .25s var(--ease-out), visibility 0s linear .25s;
  }
  .js .site-nav.open{ opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .js .site-nav a{ min-height: 52px; padding: 0 4px; font-size: 1.0625rem; border-radius: 0; }
  .js .site-nav a:not(.nav-cta)::after{ display: none; }
  .js .site-nav .nav-cta{ margin: 12px 0 0; justify-content: center; border-radius: var(--radius-pill); }
}

/* ---- hero ---- */
.hero{ position: relative; isolation: isolate; padding-block: 24px var(--section); }
.hero-bg{ position: absolute; inset: -80px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--page-rgb), 0) 55%, var(--page)); }
/* the gradient: three soft blobs of the brand pinks, drifting slowly (transform only) */
.blob{ position: absolute; width: clamp(420px, 62vw, 900px); aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.blob.a{ left: -18%; top: -30%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .26), rgba(var(--accent-rgb), 0)); animation: drift-a 18s ease-in-out infinite alternate; }
.blob.b{ right: -22%; top: -12%; background: radial-gradient(closest-side, rgba(232, 128, 174, .32), rgba(232, 128, 174, 0)); animation: drift-b 20s ease-in-out infinite alternate; }
.blob.c{ left: 22%; top: 30%; background: radial-gradient(closest-side, rgba(247, 210, 228, .7), rgba(247, 210, 228, 0)); animation: drift-c 16s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark){
  .blob.b{ background: radial-gradient(closest-side, rgba(162, 78, 123, .34), rgba(162, 78, 123, 0)); }
  .blob.c{ background: radial-gradient(closest-side, rgba(69, 44, 58, .8), rgba(69, 44, 58, 0)); }
}
@keyframes drift-a{ to{ transform: translate(14%, 12%) scale(1.15); } }
@keyframes drift-b{ to{ transform: translate(-16%, 14%) scale(.9); } }
@keyframes drift-c{ to{ transform: translate(10%, -16%) scale(1.2); } }

.hero .wrap{ display: grid; gap: 32px; }
.hero-visual{ order: -1; }
.hero-compass{ width: min(40vw, 168px); border-radius: 50%; }
.hero-dial{ width: 100%; height: auto; --needle: 24deg; filter: drop-shadow(0 16px 28px rgba(var(--ink-rgb), .18)); }
.hero-dial .needle{ animation: sway 7s ease-in-out infinite; }
.hero-dial.live .needle{ animation: none; }
.tilt-hint{ margin-top: 12px; font-size: .875rem; color: var(--ink-soft); }
.hero h1{ font-size: clamp(2.625rem, 1.55rem + 4.6vw, 4.5rem); font-weight: 700; letter-spacing: -.025em; }
.hero h1 .hl{ display: block; color: var(--accent-deep); }
.hero .sub{ margin-top: 24px; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); max-width: 34ch; }
.actions{ margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px){ .actions .btn{ flex: 1 1 100%; } }
.trust{ margin-top: 16px; font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.chips{ list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip{
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  background: rgba(var(--page-rgb), .7); border: 1px solid var(--border); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
  transition: transform .2s var(--ease-out);
}
.chip .icon{ color: var(--link); }
.chip:hover{ transform: translateY(-2px); border-color: var(--border-strong); }
.chip:active{ transform: scale(.97); }
/* the hero arrives once the entry screen has gone (html.ready) */
.js .hero-copy > *, .js .hero-visual{ opacity: 0; transform: translateY(16px); }
html.ready .hero-copy > *, html.ready .hero-visual{ opacity: 1; transform: none; transition: opacity .6s ease-out, transform .6s var(--ease-out); }
html.ready .hero-copy > :nth-child(2){ transition-delay: 80ms; }
html.ready .hero-copy > :nth-child(3){ transition-delay: 160ms; }
html.ready .hero-copy > :nth-child(4){ transition-delay: 240ms; }
html.ready .hero-copy > :nth-child(5){ transition-delay: 320ms; }
html.ready .hero-visual{ transition-delay: 120ms; }

/* ---- marquee: Madrid places and universities in ghost type, two rows in opposite directions ---- */
.marquee{ padding-block: 8px; overflow: hidden; display: grid; gap: 4px; }
.mq-row{ overflow: hidden; }
.mq-track{ display: flex; width: max-content; will-change: transform; }
.mq-track span{ flex: none; font: 600 clamp(2.75rem, 9vw, 6rem)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--p5); white-space: nowrap; }
.mq-track span::after{ content: "·"; margin-inline: .3em; }
@supports (-webkit-text-stroke: 1px black){
  .mq-track span{ color: transparent; -webkit-text-stroke: 1.25px var(--border-strong); }
}
.mq-row.run .mq-track{ animation: mq 60s linear infinite; }
.mq-row.rev.run .mq-track{ animation-direction: reverse; }
.marquee:hover .mq-track, .marquee.off .mq-track{ animation-play-state: paused; }
@keyframes mq{ to{ transform: translateX(-50%); } }

/* ---- sections ---- */
.section{ padding-block: var(--section) 0; }
.section-head h2{ font-size: clamp(2.25rem, 1.9rem + 1.6vw, 2.75rem); margin-top: 12px; }
.closing{ padding-bottom: var(--section); }
/* scroll reveals (site.v3.js adds .in; 80 ms apart within one batch). Without JS nothing is hidden. */
.reveal{ transition: opacity .5s ease-out, transform .5s var(--ease-out); }
.js .reveal{ opacity: 0; transform: translateY(16px); }
.js .reveal.in{ opacity: 1; transform: none; }
/* headings: a mask wipe (the line rises out of a clipped box) */
.wipe{ display: block; overflow: hidden; padding-bottom: .14em; }
.wipe > span{ display: block; transition: transform .7s var(--ease-out); }
.js .wipe > span{ transform: translateY(112%); }
.js .wipe.in > span{ transform: none; }

/* ---- features: tabs + detail panel ---- */
.feat{ margin-top: 40px; display: grid; gap: 24px; }
html:not(.js) .tabs{ display: none; }
.tabs{ position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tab{
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 76px; padding: 8px 2px; border: 0; border-radius: var(--radius-m); background: none; cursor: pointer;
  font: 600 .75rem/1.2 var(--font-sans); color: var(--ink-soft); text-align: center;
  transition: transform .2s var(--ease-out);
}
.tab:hover{ color: var(--ink); }
.tab:active{ transform: scale(.96); }
.tab[aria-selected="true"]{ color: var(--link); }
.tab:focus-visible{ border-radius: var(--radius-m); }
.tab-ind{
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: var(--radius-m); background: var(--p3); box-shadow: inset 0 0 0 1px var(--border);
  transition: transform .35s var(--ease-out); pointer-events: none;
}
.tab-ind::before{ content: ""; position: absolute; left: 30%; right: 30%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }

.panel{
  display: grid; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 28px 24px 32px; box-shadow: var(--shadow-card);
}
html:not(.js) .panel + .panel{ margin-top: 16px; }
.js .panels{ display: grid; }
.js .panel{
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .15s ease-out, transform .25s var(--ease-out), visibility 0s linear .25s;
}
.js .panel.active{ opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease-out .05s, transform .25s var(--ease-out) .05s, visibility 0s; }
.panel-copy h3{ font-size: 1.5rem; line-height: 1.15; }
.panel-copy p{ margin-top: 12px; color: var(--ink-soft); max-width: 46ch; }
.ticks{ list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li{ position: relative; padding-left: 32px; font-weight: 500; }
.ticks li::before{ content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--p3); }
.ticks li::after{ content: ""; position: absolute; left: 7px; top: calc(.2em + 5px); width: 6px; height: 9px; border: solid var(--link); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.honest{ margin-top: 24px; font-size: .875rem; color: var(--ink-soft); max-width: var(--measure); }

/* the phone: an illustration built from HTML/CSS, never a screenshot */
.phone{ width: 236px; height: 428px; margin-inline: auto; padding: 9px; border-radius: 42px; background: var(--phone); box-shadow: var(--shadow-float), inset 0 0 0 1.5px rgba(255,255,255,.14); }
.screen{ position: relative; height: 100%; border-radius: 33px; background: var(--page); overflow: hidden; padding: 38px 14px 14px; font-size: .75rem; line-height: 1.35; }
.screen::before{ content: ""; position: absolute; top: 10px; left: 50%; width: 64px; height: 17px; margin-left: -32px; border-radius: var(--radius-pill); background: var(--phone); }
.demo{ height: 100%; transition: opacity .3s ease; }
.phone.fade .demo{ opacity: 0; }
.demo b{ display: block; font-weight: 700; font-size: .8125rem; }
.demo small{ display: block; font-size: .6875rem; color: var(--ink-soft); }
.scr-title{ font: 600 1.125rem/1.2 var(--font-display); letter-spacing: -.01em; margin-bottom: 14px; }
.scr-note{ margin-top: 12px; font: 600 .5625rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.scr-chip{ width: max-content; margin: 12px auto 0; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-weight: 700; }
/* the demos' shared moves; site.v3.js adds .play while the phone is on screen and its tab is open */
.play .a-in{ animation: a-in .45s var(--ease-out) both; }
.play .a-pop{ animation: a-pop .5s var(--ease-spring) both; }
.play .a-draw{ animation: a-draw .55s ease-in-out both; }
@keyframes a-in{ from{ opacity: 0; transform: translateY(8px); } }
@keyframes a-pop{ from{ opacity: 0; transform: scale(.5); } }
@keyframes a-draw{ from{ transform: translateY(-101%); } }
.play .dl-1{ animation-delay: .3s; } .play .dl-2{ animation-delay: .6s; } .play .dl-3{ animation-delay: .9s; }
.play .dl-4{ animation-delay: 1.2s; } .play .dl-5{ animation-delay: 1.5s; } .play .dl-6{ animation-delay: 1.8s; }
.play .dl-7{ animation-delay: 2.1s; } .play .dl-8{ animation-delay: 2.4s; } .play .dl-9{ animation-delay: 2.7s; }
/* routes */
.rt{ list-style: none; margin: 0; padding: 0; }
.rt li{ position: relative; padding: 0 0 16px 24px; }
.rt li:last-child{ padding-bottom: 0; }
.rt li::before{ content: ""; position: absolute; left: 2px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--page); border: 3px solid var(--seg, var(--ink-faint)); z-index: 1; }
.rt .seg{ position: absolute; left: 6px; top: 10px; bottom: -4px; width: 3px; overflow: hidden; }
.rt .seg i{ position: absolute; inset: 0; background: var(--seg, var(--ink-faint)); }
.rt .walk .seg i{ background: repeating-linear-gradient(to bottom, var(--ink-faint) 0 4px, transparent 4px 8px); }
.rt .metro{ --seg: var(--metro); }
.rt .cerc{ --seg: var(--cercanias); }
.line{ display: inline-block; font: 600 .625rem/1 var(--font-mono); padding: 3px 5px; border-radius: 5px; margin-right: 5px; vertical-align: 1px; }
.line.metro{ background: var(--metro); color: var(--metro-ink); }
.line.cerc{ background: var(--cercanias); color: var(--cercanias-ink); }
/* housing */
.lst{ padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 4px; }
.lst + .lst{ margin-top: 10px; }
.flag{ display: inline-flex; align-items: center; gap: 5px; width: max-content; margin-top: 6px; padding: 5px 9px; border-radius: var(--radius-pill); font-weight: 700; font-size: .6875rem; transform-origin: left center; }
.flag.bad{ background: var(--risk-bg); color: var(--risk); }
.flag.ok{ background: var(--safe-bg); color: var(--safe); }
.flag .icon{ stroke-width: 2.2; }
/* budget: the ring is two half discs turning inside two clipped halves, so it fills with transforms only */
.ring{ position: relative; width: 128px; height: 128px; margin: 4px auto 16px; border-radius: 50%; background: var(--p4); }
.half{ position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; }
.half.r{ left: 50%; } .half.l{ left: 0; }
.half i{ position: absolute; top: 0; width: 100%; height: 100%; background: var(--accent); }
.half.r i{ left: -100%; border-radius: 64px 0 0 64px; transform-origin: 100% 50%; transform: rotate(180deg); }
.half.l i{ left: 100%; border-radius: 0 64px 64px 0; transform-origin: 0 50%; transform: rotate(65deg); }
.hole{ position: absolute; inset: 13px; border-radius: 50%; background: var(--page); display: grid; place-content: center; text-align: center; }
.count{ display: block; height: 1.2em; overflow: hidden; font: 600 1.5rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.strip{ display: block; transform: translateY(-83.3333%); }
.strip span{ display: block; height: 1.2em; }
.play .half.r i{ animation: from-zero 1s linear .3s both; }
.play .half.l i{ animation: from-zero .36s linear 1.3s both; }
.play .strip{ animation: strip 1.36s steps(5, end) .3s both; }
@keyframes from-zero{ from{ transform: rotate(0deg); } }
@keyframes strip{ from{ transform: none; } }
.cats{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cats li{ display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .6875rem; }
.cats i{ width: 9px; height: 9px; border-radius: 50%; }
.c1{ background: var(--accent-deep); } .c2{ background: #e880ae; } .c3{ background: #f3aecb; } .c4{ background: var(--p5); box-shadow: inset 0 0 0 1px var(--border-strong); }
/* events: a deck that shuffles */
.deck{ position: relative; height: 132px; margin-top: 4px; }
.ev{ position: absolute; left: 0; right: 0; top: 0; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); display: grid; gap: 3px; }
.ev .cat{ font: 600 .5625rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.e1{ z-index: 3; } .e2{ z-index: 2; transform: translateY(14px) scale(.94); opacity: .85; } .e3{ z-index: 1; transform: translateY(28px) scale(.88); opacity: .6; }
.play .ev{ animation: deck 6s infinite; }
.play .e2{ animation-delay: -4s; } .play .e3{ animation-delay: -2s; }
@keyframes deck{
  0%, 28%{ transform: none; opacity: 1; z-index: 3; }
  31%{ transform: translateX(115%) rotate(9deg); opacity: 0; z-index: 3; }
  32%{ transform: translateY(28px) scale(.88); opacity: 0; z-index: 1; }
  36%, 61.3%{ transform: translateY(28px) scale(.88); opacity: .6; z-index: 1; }
  66.3%, 94.6%{ transform: translateY(14px) scale(.94); opacity: .85; z-index: 2; }
  99.6%, 100%{ transform: none; opacity: 1; z-index: 3; }
}
/* campus map */
.map{ position: relative; height: 196px; border-radius: 16px; background: var(--map-bg); border: 1px solid var(--border); overflow: hidden; }
.map i{ position: absolute; }
.park{ left: -12px; bottom: -16px; width: 104px; height: 84px; border-radius: 45% 60% 0 0; background: var(--map-park); }
.road{ background: var(--map-road); }
.r1{ left: -5%; right: -5%; top: 60%; height: 7px; transform: rotate(-8deg); }
.r2{ top: -5%; bottom: -5%; left: 64%; width: 7px; transform: rotate(10deg); }
.blk{ border-radius: 6px; background: var(--p5); border: 1px solid var(--border-strong); }
.b1{ left: 12%; top: 16%; width: 36%; height: 24%; } .b2{ left: 76%; top: 14%; width: 18%; height: 30%; } .b3{ left: 70%; top: 72%; width: 24%; height: 18%; }
.pin{ position: absolute; left: calc(30% - 17px); top: calc(28% - 31px); }
.pin path{ fill: var(--accent-deep); } .pin circle{ fill: var(--surface); }
.pin-shadow{ position: absolute; left: calc(30% - 8px); top: calc(28% - 2px); width: 16px; height: 6px; border-radius: 50%; background: rgba(var(--ink-rgb), .3); }
.play .pin{ animation: pin-drop .7s cubic-bezier(.3, 1.5, .6, 1) .5s both; }
.play .pin-shadow{ animation: pin-shadow .7s ease .5s both; }
@keyframes pin-drop{ from{ transform: translateY(-120px); opacity: 0; } 30%{ opacity: 1; } }
@keyframes pin-shadow{ from{ transform: scale(.2); opacity: 0; } }
/* emergency card */
.sos{ position: relative; width: 124px; height: 124px; margin: 6px auto 14px; display: grid; place-items: center; }
.sos-btn{ position: relative; width: 92px; height: 92px; border-radius: 50%; background: var(--risk); color: var(--risk-ink); display: grid; place-content: center; text-align: center; }
.sos-btn b{ font: 700 1.75rem/1 var(--font-display); }
.sos-btn small{ color: inherit; font-weight: 700; font-size: .5625rem; margin-top: 2px; }
.pulse{ position: absolute; inset: 16px; border-radius: 50%; background: var(--risk); opacity: 0; }
.play .pulse{ animation: pulse 2s ease-out infinite; }
.play .p2{ animation-delay: 1s; }
@keyframes pulse{ 0%{ transform: scale(1); opacity: .45; } 100%{ transform: scale(1.6); opacity: 0; } }
.rows{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rows li{ padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
/* chat */
.chat{ display: grid; gap: 8px; }
.bub{ justify-self: start; max-width: 90%; padding: 9px 12px; border-radius: 16px 16px 16px 5px; background: var(--surface); border: 1px solid var(--border); }
.bub.me{ justify-self: end; border-radius: 16px 16px 5px 16px; background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; font-weight: 600; }
.reply{ display: grid; }
.reply > *{ grid-area: 1 / 1; align-self: start; }
.typing{ display: inline-flex; gap: 4px; padding: 12px; opacity: 0; }
.typing i{ width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.play .typing{ animation: typing 1.7s ease .5s both; }
.play .typing i{ animation: dot .9s ease-in-out infinite; }
.play .typing i:nth-child(2){ animation-delay: .15s; } .play .typing i:nth-child(3){ animation-delay: .3s; }
@keyframes typing{ 0%{ opacity: 0; } 12%, 85%{ opacity: 1; } 100%{ opacity: 0; } }
@keyframes dot{ 0%, 60%, 100%{ transform: none; } 30%{ transform: translateY(-4px); } }
/* community */
.seg2{ display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: var(--radius-pill); background: var(--p4); font-weight: 700; text-align: center; }
.seg2 span{ padding: 6px; border-radius: var(--radius-pill); }
.seg2 .on{ background: var(--surface); }
.avs{ display: flex; margin: 14px 0 12px; padding-left: 8px; }
.av{ width: 38px; height: 38px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; font: 700 .8125rem/1 var(--font-sans); color: #fff; border: 2px solid var(--page); }
.v1{ background: #c93e7d; } .v2{ background: #8a5a70; } .v3{ background: #ad3269; } .v4{ background: #d2548f; } .v5{ background: #6f5963; }
.post{ margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 3px; }

/* ---- how it works ---- */
.steps{ list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.step{ position: relative; padding: 28px 24px 32px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.num{ display: block; font: 600 3.5rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--p5); }
@supports (-webkit-text-stroke: 1px black){
  .num{ color: transparent; -webkit-text-stroke: 1.25px var(--border-strong); }
}
.step-ico{ position: absolute; top: 28px; right: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--p3); color: var(--link); }
.step h3{ margin-top: 24px; font-size: 1.5rem; line-height: 1.15; }
.step p{ margin-top: 8px; color: var(--ink-soft); }

/* ---- final call to action ---- */
.cta-panel{
  background: var(--btn-bg); color: var(--btn-ink); border-radius: 32px; padding: 64px 24px;
  display: grid; justify-items: center; gap: 32px; text-align: center;
}
.cta-panel h2{ font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); }
.cta-panel h2 span{ display: block; }
.cta-note{ margin-top: -12px; font-size: .875rem; font-weight: 600; opacity: .9; }

/* ---- footer ---- */
.site-footer{ border-top: 1px solid var(--border); padding-block: 16px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); color: var(--ink-soft); font-size: .875rem; }
.site-footer .wrap{ display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }
.site-footer a{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--ink-soft); overflow-wrap: anywhere; }
.site-footer a:hover{ color: var(--ink); }
.site-footer .copy{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.site-footer .dot{ color: var(--ink-faint); }
@media (max-width: 719px){
  /* phones: Privacy · Terms on one line, then the email, then the copyright */
  .site-footer .dot.wide{ display: none; }
  .site-footer .mail, .site-footer .copy{ flex-basis: 100%; }
}

/* ---- long-form pages (privacy, terms) ---- */
.doc{ padding-block: 32px 80px; }
.doc .wrap{ max-width: 808px; }
.doc h1{ font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem); margin-top: 12px; }
.doc .updated{ margin-top: 16px; font: 600 .8125rem/1.4 var(--font-mono); letter-spacing: .04em; color: var(--ink-soft); }
.doc h2{ font-size: 1.625rem; line-height: 1.15; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc h3{ font: 700 1.0625rem/1.35 var(--font-sans); letter-spacing: 0; margin-top: 24px; }
.doc p, .doc ul, .doc dl{ margin-top: 16px; }
.doc ul{ padding-left: 1.2em; }
.doc li{ margin-top: 8px; }
.doc li::marker{ color: var(--border-strong); }
.summary{ margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 8px 24px 24px; box-shadow: var(--shadow-card); }
.summary h2{ border: 0; margin-top: 0; padding-top: 16px; font-size: 1.25rem; }
.data{ margin-top: 16px; border-top: 1px solid var(--border); }
.data > div{ padding: 16px 0; border-bottom: 1px solid var(--border); display: grid; gap: 4px; }
.data dt{ font-weight: 700; }
.data dd{ margin: 0; color: var(--ink-soft); }
.data dd strong{ color: var(--ink); font-weight: 600; }
.toc{ margin-top: 24px; font-size: .9375rem; }
.toc ol{ margin: 8px 0 0; padding-left: 1.4em; columns: 1; }
.toc li{ margin-top: 2px; }
.toc a{ display: inline-block; padding: 5px 0; }
.lede{ margin-top: 16px; color: var(--ink-soft); max-width: var(--measure); }

/* ---- 404 ---- */
.lost{ padding-block: 48px 96px; }
.lost .wrap{ display: grid; gap: 24px; justify-items: start; }
.lost .hero-dial{ width: 148px; filter: none; }
.lost .hero-dial .needle{ animation: wander 7s ease-in-out infinite alternate; }
.lost h1{ font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem); max-width: 16ch; }
@keyframes wander{
  0%{ transform: rotate(-70deg); } 30%{ transform: rotate(48deg); } 55%{ transform: rotate(-22deg); } 80%{ transform: rotate(95deg); } 100%{ transform: rotate(20deg); }
}

@media (min-width: 480px){
  .tab{ font-size: .8125rem; }
}
@media (min-width: 720px){
  :root{ --gutter: 32px; --section: 120px; }
  body{ font-size: 1.125rem; }
  .toc ol{ columns: 2; column-gap: 32px; }
  .data > div{ grid-template-columns: 13rem 1fr; gap: 24px; }
  .site-header .wrap{ min-height: 72px; }
  .panel{ grid-template-columns: minmax(0, 1fr) 236px; gap: 40px; padding: 40px; }
  .steps{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
  .feat{ margin-top: 56px; }
  .cta-panel{ padding: 104px 32px; border-radius: 40px; }
}
@media (min-width: 960px){
  .hero{ padding-block: 56px var(--section); }
  .hero .wrap{ grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 48px; align-items: center; }
  .hero-visual{ order: 0; justify-self: center; }
  .hero-compass{ width: min(30vw, 360px); }
  /* the tabs become a vertical list beside the panel */
  .feat{ grid-template-columns: 272px minmax(0, 1fr); gap: 40px; align-items: start; }
  .tabs{ grid-template-columns: 1fr; gap: 4px; }
  .tab{ flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 56px; padding: 0 20px; font-size: 1.0625rem; text-align: left; }
  .tab:hover{ transform: translateX(3px); }
  .tab-ind::before{ left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .panel{ padding: 48px; gap: 48px; min-height: 524px; }
}

@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-copy > *, .js .hero-visual{ opacity: 1; transform: none; }
  .js .wipe > span{ transform: none; }
}
