/* =============================================================
   RobotParrot — public website
   Tokens & components from the RobotParrot Design System
   (brand teal #127C8C, cyan glow #2EC8DC, brass #B89C68,
    warm off-white #FAF8F5, Inter Tight)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap');

:root {
  /* Brand teal */
  --teal-50:  #E8F4F6;
  --teal-100: #C4E2E7;
  --teal-200: #92C9D2;
  --teal-300: #5BAEBC;
  --teal-400: #2E92A4;
  --teal-500: #127C8C;
  --teal-600: #0E6573;
  --teal-700: #0B4F5A;
  --teal-800: #083944;
  --teal-900: #062430;

  /* Cyan glow — LED accent */
  --cyan-300: #5DD5E5;
  --cyan-400: #2EC8DC;
  --cyan-500: #16B0C6;

  /* Brass — premium accent */
  --brass-300: #D4BC8E;
  --brass-400: #B89C68;
  --brass-500: #8F7748;
  --brass-600: #6E5A33;

  /* Warm neutrals */
  --ink-50:  #FAF8F5;
  --ink-100: #F1EEE9;
  --ink-200: #E3DED5;
  --ink-300: #C9C2B6;
  --ink-400: #9B9488;
  --ink-500: #6E685E;
  --ink-600: #4A453E;
  --ink-700: #2E2B26;
  --ink-800: #1A1814;
  --ink-900: #0F0E0B;

  /* Semantic */
  --success-500: #2E7D5B;
  --success-100: #DCEEE4;
  --warning-500: #B8832B;
  --warning-100: #F6E9C8;
  --danger-500:  #B23B2C;
  --danger-100:  #F4D8D3;

  /* Semantic (light mode) */
  --bg:          var(--ink-50);
  --surface:     #FFFFFF;
  --surface-alt: var(--ink-100);

  --fg-1: var(--ink-800);
  --fg-2: var(--ink-600);
  --fg-3: var(--ink-500);
  --fg-4: var(--ink-400);

  --border:        rgba(8, 57, 68, 0.10);
  --border-strong: rgba(8, 57, 68, 0.18);

  --accent:        var(--teal-500);
  --accent-hover:  var(--teal-600);
  --accent-press:  var(--teal-700);
  --on-accent:     #FFFFFF;
  --accent-soft:   rgba(18, 124, 140, 0.10);

  --glow:    var(--cyan-400);
  --premium: var(--brass-400);

  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;
  --fw-bold:    700;

  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(11, 23, 36, 0.06);
  --shadow-md: 0 1px 2px rgba(11, 23, 36, 0.06), 0 8px 24px rgba(11, 23, 36, 0.06);
  --shadow-lg: 0 2px 4px rgba(11, 23, 36, 0.08), 0 16px 40px rgba(11, 23, 36, 0.10);

  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg-1);
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── Layout ──────────────────────────────────────────────────── */
.shell { flex: 1; display: flex; flex-direction: column; }

.container {
  width: min(1180px, 100% - 96px);
  margin-inline: auto;
}
.container-narrow { max-width: 640px; }

@media (max-width: 720px) {
  .container { width: min(1180px, 100% - 40px); }
}

/* ── Top nav — sticky, blurred ───────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-1);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.brand-word .accent { color: var(--teal-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
}
.nav-link {
  transition: color var(--dur-fast);
}
.nav-link:hover { color: var(--fg-1); }

/* On phones the four text links + CTA overflow the bar (links wrap, "Sign in"
   gets pushed off-screen). Collapse to a clean logo + Sign-in row; the section
   links are all duplicated in the footer. */
@media (max-width: 720px) {
  .nav-inner { padding: 14px 0; }
  .nav-links { gap: 16px; }
  .nav-links .nav-link { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-ios), background-color var(--dur-fast), border-color var(--dur-fast);
  border: 0;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  padding: 11px 18px;
  font-size: 14px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.97); }

.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--fg-1);
  padding: 14px 22px;
  font-size: 16px;
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--fg-2); }

/* ── Type helpers ────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow.live::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(46, 200, 220, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 200, 220, 0.10); }
  50% { box-shadow: 0 0 0 7px rgba(46, 200, 220, 0.22); }
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 18px;
  display: inline-block;
}
h1.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  text-wrap: balance;
}
h1.hero-title .accent { color: var(--teal-500); }
h2.section-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero-sub, .section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  text-wrap: pretty;
}
.hero-sub { font-size: 19px; max-width: 540px; margin: 0 0 36px; }
.section-sub { max-width: 560px; margin: 0 auto 56px; }

.section-head { text-align: center; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 22px;
  font-size: 13px;
  color: var(--fg-3);
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-4); }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle at 50% 45%, rgba(46, 200, 220, 0.20), rgba(46, 200, 220, 0) 65%);
  z-index: 0;
}
.hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(8, 57, 68, 0.18));
}

.chip {
  position: absolute;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.chip .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  color: var(--teal-600);
}
.chip .icon.live { background: rgba(46,200,220,0.15); color: var(--cyan-500); }
.chip .title { font-weight: 600; color: var(--fg-1); font-size: 13px; }
.chip .meta { font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.chip.tl { top: 6%; left: -8%; }
.chip.bl { bottom: 14%; left: -2%; }
.chip.tr { top: 18%; right: -6%; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { min-height: 360px; }
  .chip.tl, .chip.bl, .chip.tr { display: none; }
}

/* ── Origin quote (kept from original landing) ───────────────── */
.origin-block {
  background: var(--ink-100);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.origin-quote {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  font-weight: 500;
  color: var(--fg-1);
  border-left: 3px solid var(--teal-500);
  padding: 8px 0 8px 24px;
  margin: 24px 0;
  max-width: 760px;
  text-wrap: balance;
}
.origin-quote-attr {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--fg-3);
  margin-top: 12px;
  letter-spacing: 0;
}

/* ── Section shared ──────────────────────────────────────────── */
section.section { padding: 100px 0; }

/* ── How it works ────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
  position: relative;
}
.step .num {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-600);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.step .num::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--teal-400);
}
.step h3 {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 10px;
}
.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 20px;
}
.step .visual {
  height: 120px;
  border-radius: 10px;
  background: var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.v-record { background: linear-gradient(180deg, #FAF8F5, #F1EEE9); }
.v-record .pulse-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--danger-500);
  box-shadow: 0 0 0 0 rgba(178, 59, 44, 0.6);
  animation: rec-pulse 2s ease-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-record .pulse-dot::after {
  content: ''; width: 16px; height: 16px; border-radius: 50%; background: #fff;
}
@keyframes rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(178, 59, 44, 0.5); }
  100% { box-shadow: 0 0 0 24px rgba(178, 59, 44, 0); }
}
.v-record .wave {
  position: absolute; bottom: 24px; left: 0; right: 0;
  display: flex; gap: 3px; justify-content: center; align-items: end; height: 28px;
}
.v-record .wave i {
  display: block; width: 3px; background: var(--teal-500); border-radius: 2px; opacity: 0.85;
}
.v-render { background: linear-gradient(180deg, var(--teal-50), #E0EFF2); }
.v-render .ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--cyan-400) 0deg, var(--cyan-400) 220deg, rgba(46,200,220,0.18) 220deg);
  display: flex; align-items: center; justify-content: center;
  animation: spin 4s linear infinite;
  position: relative;
}
.v-render .ring::after {
  content: ''; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-50);
}
.v-render .ring span {
  position: absolute; font-size: 13px; font-weight: 600; color: var(--teal-700); font-variant-numeric: tabular-nums;
}
@keyframes spin { to { transform: rotate(360deg); } }
.v-listen { background: linear-gradient(180deg, #F1EEE9, #E3DED5); padding: 16px; }
.v-listen .player { display: flex; align-items: center; gap: 12px; width: 100%; }
.v-listen .art {
  width: 44px; height: 44px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
}
.v-listen .info { flex: 1; min-width: 0; }
.v-listen .v-title {
  font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--fg-1);
}
.v-listen .time { font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.v-listen .bar { height: 3px; border-radius: 2px; background: var(--ink-200); margin-top: 6px; overflow: hidden; }
.v-listen .bar i { display: block; width: 38%; height: 100%; background: var(--teal-500); }
.v-listen .play {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-500); display: flex; align-items: center; justify-content: center;
  color: #fff; flex: 0 0 auto;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Under the hood (expandable 6-step pipeline) ─────────────── */
.under-hood {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.under-hood > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition: background var(--dur-fast);
}
.under-hood > summary::-webkit-details-marker { display: none; }
.under-hood > summary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--teal-600);
  border-bottom: 2px solid var(--teal-600);
  transform: rotate(-45deg);
  transition: transform var(--dur-base) var(--ease-ios);
  margin-right: 4px;
}
.under-hood[open] > summary::before { transform: rotate(45deg); }
.under-hood > summary:hover { background: var(--ink-100); }
.pipeline {
  list-style: none;
  padding: 8px 24px 24px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  border-top: 1px solid var(--border);
}
.pipeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding-top: 16px;
}
.pipeline .pn {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-600);
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.pipeline h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--fg-1);
}
.pipeline p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
@media (max-width: 880px) {
  .pipeline { grid-template-columns: 1fr; }
}

/* ── Why it works ────────────────────────────────────────────── */
.why { background: var(--ink-100); }
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.reason h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 8px;
}
.reason p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}
.reason .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  margin-bottom: 16px;
}
@media (max-width: 880px) {
  .reasons { grid-template-columns: 1fr; }
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing { background: var(--bg); }
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.brass-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brass-500);
  background: rgba(184, 156, 104, 0.12);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(184, 156, 104, 0.3);
}
.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.pricing-card .sub { font-size: 14px; color: var(--fg-3); margin-bottom: 24px; }
.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg-1);
  margin-bottom: 6px;
}
.pricing-card .price .per {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0;
}
.pricing-card .billed { font-size: 13px; color: var(--fg-3); margin-bottom: 24px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 28px; }
.pricing-card ul li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  font-size: 14px;
}
.pricing-card ul li .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}

.cost-list {
  margin-top: 24px;
  border-top: 1px dashed var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.cost-row span:first-child { color: var(--fg-2); }
.cost-row span:last-child  { color: var(--fg-1); font-variant-numeric: tabular-nums; }
.cost-total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 12px;
  font-weight: 600;
}
.cost-total span:first-child { color: var(--fg-1); }

/* ── Dashboard ───────────────────────────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
@media (max-width: 720px) {
  .dash-grid { grid-template-columns: 1fr; }
}
.balance-card {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--ink-100) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.balance-num {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--teal-500);
}
.balance-label { color: var(--fg-3); font-size: 14px; margin-top: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-tight { padding: 20px; }
.card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}

.flash {
  background: var(--accent-soft);
  border: 1px solid rgba(18, 124, 140, 0.25);
  color: var(--fg-1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── Login ───────────────────────────────────────────────────── */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 64px 24px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}
.login-card h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.login-card .lead { font-size: 14.5px; margin-bottom: 24px; color: var(--fg-2); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
}
.field input {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 11px 14px;
  background: var(--surface);
  color: var(--fg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.error-msg {
  background: var(--danger-100);
  border: 1px solid rgba(178, 59, 44, 0.30);
  color: var(--danger-500);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--ink-100);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer .tagline {
  font-size: 13px;
  color: var(--fg-2);
  max-width: 360px;
  line-height: 1.5;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-self: end;
  text-align: right;
}
.footer-links li { font-size: 14px; }
.footer-links a { color: var(--fg-2); }
.footer-links a:hover { color: var(--fg-1); }
.footer-meta {
  font-size: 12px;
  color: var(--fg-4);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 720px) {
  .footer-row { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; text-align: left; }
}

/* ── Tabular numerals for timestamps, durations, balances ──── */
.tabular { font-variant-numeric: tabular-nums; }

/* ── Stealth gate page ───────────────────────────────────────── */
.gate-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate-wrap { width: 100%; max-width: 460px; }
.gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px 36px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.gate-mascot {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--teal-50);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gate-mascot::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 45%, rgba(46, 200, 220, 0.30), rgba(46, 200, 220, 0) 65%);
  z-index: 0;
}
.gate-mascot img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.gate-word {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.gate-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 18px;
}
.gate-headline {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--fg-1);
}
.gate-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 22px;
}
.gate-input {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 13px 16px;
  background: var(--surface);
  color: var(--fg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  text-align: center;
  letter-spacing: 0.04em;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.gate-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gate-form .btn { justify-content: center; }
.gate-contact {
  font-size: 13px;
  color: var(--fg-3);
  margin: 16px 0 0;
}
.gate-contact a { color: var(--teal-600); }
.gate-contact a:hover { color: var(--teal-700); }
.gate-card .error-msg { text-align: left; }


/* ── Drifting hero chips (flat build enhancement) ───────────────────────
   The three cards slowly orbit their anchor points around Pax — like a
   process unfolding in the cloud. Each traces its own gentle loop, on a
   different path and tempo, so the motion reads as circulation, not a bob.
   Very slow (16–22s) for a calm feel. Honors reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .chip { will-change: transform; }
  .chip.tl { animation: chip-drift-a 16s ease-in-out infinite; }
  .chip.tr { animation: chip-drift-b 19s ease-in-out infinite; }
  .chip.bl { animation: chip-drift-c 22s ease-in-out infinite; }
}
@keyframes chip-drift-a {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(11px, -9px); }
  50%  { transform: translate(4px, -18px); }
  75%  { transform: translate(-9px, -7px); }
  100% { transform: translate(0, 0); }
}
@keyframes chip-drift-b {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-11px, 9px); }
  50%  { transform: translate(-3px, 18px); }
  75%  { transform: translate(10px, 8px); }
  100% { transform: translate(0, 0); }
}
@keyframes chip-drift-c {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(10px, 8px); }
  50%  { transform: translate(16px, -5px); }
  75%  { transform: translate(6px, -13px); }
  100% { transform: translate(0, 0); }
}
