/* proksime.com
   Layout: one centred column (max 1160px). A two-column hero with a live radar behind
   the phone, then alternating sections: steps, places, split text/phone, privacy beacon,
   a phone gallery and a closing call to action.
   Colours and type follow the app (mobile/src/ui/theme/tokens.ts): deep ink, one
   coral-to-magenta signature gradient used sparingly, system fonts. Dark only, by choice:
   the radar glow is the brand. Nothing loads from other servers. */

:root {
  color-scheme: dark;
  --bg: #0B0B10;
  --bg-2: #111118;
  --surface: #17171F;
  --surface-hi: #21212C;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #F5F3F7;
  --ink-2: rgba(245, 243, 247, 0.72);
  --ink-3: rgba(245, 243, 247, 0.52);
  --accent: #FF6B8B;
  --ok: #3DD68C;
  --grad: linear-gradient(120deg, #FF6A5C 0%, #F0407A 52%, #C2389F 100%);
  --glow: rgba(240, 64, 122, 0.30);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  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));
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(11, 11, 16, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.02em;
}
.mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.beacon-label i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.6);
  animation: ping 2.4s ease-out infinite;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(60% 55% at 72% 42%, var(--glow) 0%, rgba(194, 56, 159, 0.08) 45%, transparent 75%),
    radial-gradient(50% 40% at 10% 0%, rgba(255, 106, 92, 0.10), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.define { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--ink-2); font-size: 15px; }
.define .word { font: italic 600 22px/1 var(--serif); color: var(--ink); letter-spacing: 0.01em; }
.define .pos { font-variant: small-caps; letter-spacing: 0.06em; color: var(--ink-3); }
.define .gloss { padding-left: 12px; border-left: 1px solid var(--line-2); }
h1 {
  font-size: clamp(54px, 8.6vw, 112px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
}
html[lang="pt-BR"] .hero h1 { font-size: clamp(48px, 6.8vw, 82px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.action {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 14px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.action.primary { background: #FF819A; color: #141018; }
.action.primary:hover { background: #FFA3B5; }
.action.secondary { background: var(--surface); border-color: var(--line-2); }
.action.secondary:hover { background: var(--surface-hi); border-color: var(--ink-3); }
.fine { font-size: 14px; color: var(--ink-2); }

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(520px, 52vw, 700px);
}
.radar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, 150%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.09); }
.r1 { inset: 30%; }
.r2 { inset: 15%; }
.r3 { inset: 0; border-color: rgba(255, 255, 255, 0.06); }
.sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 285deg, rgba(240, 64, 122, 0.0) 285deg, rgba(240, 64, 122, 0.30) 359deg, rgba(255, 140, 160, 0.55) 360deg);
  animation: spin 7s linear infinite;
}
.phone {
  position: relative;
  z-index: 1;
  width: clamp(240px, 25vw, 312px);
  padding: 10px;
  border-radius: 50px;
  background: linear-gradient(160deg, #2c2c36, #131318 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 50px 90px -40px rgba(0, 0, 0, 0.9),
    0 0 140px -30px var(--glow);
}
.phone img { width: 100%; height: auto; border-radius: 40px; background: var(--surface); }
.phone.small { width: clamp(230px, 23vw, 290px); }
.phone.tiny { width: 100%; max-width: 250px; padding: 8px; border-radius: 40px; margin-inline: auto; }
.phone.tiny img { border-radius: 32px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.sub { font-size: 18px; color: var(--ink-2); max-width: 36em; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.steps .num {
  font: 600 14px/1 var(--mono); letter-spacing: 0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps p { color: var(--ink-2); font-size: 16px; }

/* Places */
.place-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.place {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  min-width: 0;
}
.place-name { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.quote {
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  background: var(--surface-hi);
  font-size: 16px; line-height: 1.4; font-weight: 500;
}
.place p:last-child { color: var(--ink-2); font-size: 15.5px; margin-top: auto; }

/* Split */
.split-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.split-visual { display: grid; place-items: center; position: relative; }
.split-visual::before {
  content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 64, 122, 0.18), transparent 65%);
}
.points { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.points li { position: relative; padding-left: 26px; color: var(--ink-2); }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad);
}
.points b, .modes dt { color: var(--ink); font-weight: 650; }
.modes { display: grid; gap: 12px; margin: 4px 0; }
.modes div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.modes dd { margin: 0; color: var(--ink-2); }

/* Privacy */
.privacy-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.beacon {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(240, 64, 122, 0.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-2);
}
.beacon-label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.beacon-id {
  font: 500 clamp(22px, 2.7vw, 34px)/1.25 var(--mono);
  letter-spacing: 0.02em;
  word-spacing: 0.15em;
  /* Exactly three groups of four per line: 14 characters plus the extra word spacing. */
  max-width: 15.6ch;
  overflow-wrap: anywhere;
}
.beacon-id.swap { animation: swap 0.5s ease-out; }
.beacon-bar { height: 6px; border-radius: 6px; background: var(--surface-hi); overflow: hidden; }
.beacon-bar span {
  display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad);
  transform-origin: left center;
  animation: fill 8s linear infinite;
}
.beacon-note { font-size: 14px; color: var(--ink-3); }
.privacy-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.privacy-points li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.privacy-points p { color: var(--ink-2); font-size: 16px; }

/* Gallery */
.gallery { background: var(--bg-2); }
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.shots li {
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(16px, 2.5vw, 32px);
  background: radial-gradient(100% 75% at 50% 0%, rgba(240, 64, 122, 0.11), transparent), var(--surface);
}
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 24px; }
.shots figcaption { display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.shots figcaption h3 { color: var(--ink); font-size: clamp(17px, 2vw, 24px); line-height: 1.15; }

/* CTA */
.cta {
  text-align: center;
  background: radial-gradient(50% 70% at 50% 100%, var(--glow), transparent 70%);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mark.big { width: 76px; height: 76px; margin-bottom: 8px; }
.cta .sub { margin-inline: auto; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--ink-3); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer .brand { color: var(--ink); font-size: 16px; margin-right: auto; }
.footer .mark { width: 24px; height: 24px; }
.footer .word { font: italic 600 15px/1 var(--serif); color: var(--ink-2); }

.footer-links { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--ink); }
.footer-links a + a::before { content: "·"; margin: 0 10px; color: var(--ink-3); }

/* ---------- Legal and help pages (generated from legal/*.md by _src/build_legal.py) ---------- */
.lang-switch {
  margin-left: auto;
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--ink-3); }

.legal-page {
  padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 112px);
  background: radial-gradient(60% 320px at 50% 0%, rgba(240, 64, 122, 0.10), transparent 75%);
}
.legal { max-width: 46rem; margin-inline: auto; color: var(--ink-2); line-height: 1.7; overflow-wrap: break-word; }
.legal > * + * { margin-top: 1.1em; }
.legal h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.legal h2 {
  margin-top: 2.4em; padding-top: 1.1em; border-top: 1px solid var(--line);
  font-size: clamp(23px, 2.6vw, 28px); line-height: 1.2; font-weight: 750; letter-spacing: -0.025em; color: var(--ink);
}
.legal h3 { margin-top: 1.8em; font-size: 19px; line-height: 1.3; color: var(--ink); }
.legal h2, .legal h3 { scroll-margin-top: 88px; }
.legal h2 + *, .legal h3 + * { margin-top: 0.6em; }
.legal .legal-meta { margin-top: 0.9em; color: var(--ink-3); font-size: 15px; }
.legal .legal-meta strong { color: var(--ink-2); }
.legal strong { color: var(--ink); font-weight: 650; }
.legal a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal ul, .legal ol { padding-left: 1.35em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { padding-left: 0.2em; }
.legal li + li { margin-top: 0.45em; }
.legal li::marker { color: var(--accent); }
.legal blockquote {
  margin: 1.6em 0 0; padding: 20px 24px; border-radius: 20px;
  background: radial-gradient(120% 100% at 100% 0%, rgba(240, 64, 122, 0.10), transparent 60%), var(--surface);
  border: 1px solid var(--line-2);
}
.legal blockquote > * + * { margin-top: 0.7em; }
.legal blockquote strong { color: var(--ink); }

.legal .table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 18px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { background: var(--surface); color: var(--ink); font-weight: 650; }
.legal tbody tr:last-child td { border-bottom: 0; }
.legal td:first-child { color: var(--ink); font-weight: 550; }

.toc { padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.toc-title { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.legal .toc ol { list-style: none; padding: 0; margin-top: 10px; columns: 2 15rem; column-gap: 32px; }
.legal .toc li { padding: 0; break-inside: avoid; }
.legal .toc li + li { margin-top: 0.3em; }
.legal .toc a { color: var(--ink-2); text-decoration: none; }
.legal .toc a:hover { color: var(--ink); text-decoration: underline; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .cta-inner { gap: 18px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; background: var(--grad); color: #fff;
  font-weight: 700; text-decoration: none;
}

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(61, 214, 140, 0); }
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes swap { from { opacity: 0.2; filter: blur(4px); } to { opacity: 1; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sweep, .beacon-label i, .beacon-bar span, .beacon-id.swap { animation: none; }
  .action { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps, .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .privacy-inner { grid-template-columns: minmax(0, 1fr); }
  .beacon { position: relative; top: 0; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-inner, .split-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: left; }
  .hero-visual { min-height: 0; padding-block: 56px 24px; }
  .radar { width: min(640px, 165%); }
  .split.reverse .split-copy { order: 0; }
  .split-visual { order: 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .place-grid, .privacy-points { grid-template-columns: minmax(0, 1fr); }
  .modes div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .phone { width: min(70vw, 280px); }
  .shots { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .shots figure { flex-direction: row; align-items: center; gap: 16px; }
  .shots .phone { flex: 0 0 45%; padding: 4px; border-radius: 20px; }
  .shots .phone img { border-radius: 16px; }
}
/* Tables become one card per row on phones; each cell shows its column name (data-label). */
@media (max-width: 640px) {
  .legal .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal tbody tr { padding: 8px 0; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-2); }
  .legal tbody tr + tr { margin-top: 12px; }
  .legal td, .legal tbody tr:last-child td { padding: 6px 16px; border: 0; }
  .legal td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  }
  .legal td:first-child { font-size: 16px; }
  .legal td:first-child::before { display: none; }
}
