/* ============================================================
   parat.io — landing page
   Self-contained. Tokens mirror src/app/globals.css (v0.7).
   Fonts self-hosted from ./fonts (latin subset) — no CDN.
   ============================================================ */

/* ── Self-hosted fonts ─────────────────────────────────────── */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-800.woff2") format("woff2"); }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-mono.woff2") format("woff2"); }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-mono.woff2") format("woff2"); }
@font-face { font-family: "Material Icons"; font-style: normal; font-weight: 400; font-display: block; src: url("fonts/material-icons.woff2") format("woff2"); }

/* Material Icons helper (matches the app's .material-icons usage) */
.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

:root {
  /* Brand · saved / yours */
  --color-brand-blue: #0033FF;
  --color-brand-blue-hover: #0029CC;
  --color-brand-blue-soft: #E0E8FF;

  /* Search · discovery (fill only) + text token */
  --color-search-fill: #D4FF6B;
  --color-search-text: #365314;

  /* Ink · CTAs + chrome */
  --color-ink: #111111;

  /* Text */
  --text-primary: #1a1a2e;
  --text-secondary: #2d2d3f;
  --text-muted: #6b7082;

  /* Surfaces */
  --bg-default: #ffffff;
  --bg-light: #f4f5f7;
  --bg-lighter: #e2e4e8;

  /* Radius */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --font-sans: "Barlow", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-default);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Hero / Coming soon (full-height, centered) ────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100dvh - 56px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 64px);
}

/* ── Page footer ───────────────────────────────────────────── */
.page-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 56px;
  padding: 0 24px;
  border-top: 1px solid var(--bg-light);
  font-size: 14px;
  color: var(--text-muted);
}
.page-foot a { color: var(--text-secondary); font-weight: 500; }
.page-foot a:hover { color: var(--color-brand-blue); text-decoration: underline; text-underline-offset: 2px; }
.hero-inner { max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-search-text);
  background: var(--color-search-fill);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}
.cs-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-blue);
  box-shadow: 0 0 0 0 rgb(0 51 255 / 0.5);
  animation: cs-pulse 1.8s ease-out infinite;
}
@keyframes cs-pulse {
  0%   { box-shadow: 0 0 0 0 rgb(0 51 255 / 0.5); }
  70%  { box-shadow: 0 0 0 7px rgb(0 51 255 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(0 51 255 / 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-pulse { animation: none; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.accent-blue { color: var(--color-brand-blue); }

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Coming-soon line */
.coming-soon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.cs-text { font-size: 16px; color: var(--text-secondary); }
.cs-text strong { color: var(--text-primary); font-weight: 700; }

/* Launch note */
.hero-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  color: var(--text-secondary);
}
.chip-search { background: var(--color-search-fill); color: var(--color-search-text); }
.chip-blue { background: var(--color-brand-blue-soft); color: var(--color-brand-blue); }

/* Decorative map card */
.hero-card {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at 30% 20%, var(--color-brand-blue-soft), transparent 55%),
    linear-gradient(135deg, #f7f9ff, var(--bg-light));
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--bg-lighter);
  overflow: hidden;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-lighter) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-lighter) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .6;
}
.pin {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-md);
}
.pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--color-ink);
}
.pin-saved { background: var(--color-brand-blue); }
.pin-saved::after { background: #fff; }
.pin-search { background: var(--color-search-fill); }

.map-legend {
  position: absolute;
  left: 16px; bottom: 16px;
  display: flex;
  gap: 16px;
  background: rgba(255,255,255,.9);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.legend { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-saved { background: var(--color-brand-blue); }
.dot-search { background: var(--color-search-fill); border: 1px solid var(--color-search-text); }

/* ── Legal / Impressum page ────────────────────────────────── */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 32px);
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-brand-blue);
  margin-bottom: 28px;
}
.legal .back:hover { text-decoration: underline; text-underline-offset: 2px; }
.legal h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}
.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}
.legal p, .legal address {
  color: var(--text-secondary);
  font-style: normal;
  margin-bottom: 8px;
}
.legal a { color: var(--color-brand-blue); }
.legal a:hover { text-decoration: underline; text-underline-offset: 2px; }
.legal .muted { color: var(--text-muted); font-size: 14px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-card { order: -1; max-width: 460px; width: 100%; }
}
