/* Metre — landing page. Tokens and texture carried over from the product
   prototype (prototypes/web/styles.css) so the page and the product are
   visibly one design language. */

:root {
  --bg: #090b0e;
  --surface: #111419;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #efede7;
  --text-muted: #8b909a;
  --text-dim: #5c6069;
  --accent: #e6b86e;
  --accent-soft: rgba(230, 184, 110, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Analog paper/vinyl grain, compositor-free — same treatment as the app */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Hero card (decorative, behind the wordmark) ---------- */

.hero-card {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(78vmin, 620px);
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(
    ellipse 68% 68% at 50% 50%,
    black 30%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 68% 68% at 50% 50%,
    black 30%,
    transparent 78%
  );
}

/* A single quiet amber warmth behind the blank card */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 38% at 50% 42%, rgba(230, 184, 110, 0.055), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 62%, rgba(120, 128, 145, 0.05), transparent 70%);
}

/* Blank cover squares — the card's shape, nothing in it yet */
.tile {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 55%, rgba(0, 0, 0, 0.18));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Dark veil so foreground text always wins over the card */
.stage-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 56% 44% at 50% 50%,
    rgba(9, 11, 14, 0.55),
    rgba(9, 11, 14, 0) 75%
  );
}

/* ---------- Foreground ---------- */

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 96px;
}

.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(72px, 14.5vw, 132px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--text);
  text-shadow: 0 2px 34px rgba(9, 11, 14, 0.85);
}

.wordmark-dot {
  color: var(--accent);
}

.tagline {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(21px, 3.6vw, 30px);
  line-height: 1.25;
  color: var(--text);
  text-shadow: 0 1px 22px rgba(9, 11, 14, 0.9);
}

.soon {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(9, 11, 14, 0.45);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.soon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.dot {
  color: var(--text-dim);
}

/* ---------- Footer ---------- */

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-dim);
}

.site-footer a:hover {
  color: var(--text-muted);
}

/* ---------- Policy pages ---------- */

.doc {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.doc .brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
}

.doc h1 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  margin: 28px 0 6px;
}

.doc .updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.doc h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 26px 0 6px;
}

.doc p,
.doc li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.doc ul {
  padding-left: 20px;
  margin: 6px 0;
}

.doc a {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 560px) {
  .hero-card-inner {
    width: 92vmin;
    gap: 12px;
  }

  .stage {
    padding-bottom: 110px;
  }
}
