/* ============================================================
   Ayooo — site design system
   The website speaks the app's language: near-black surfaces,
   hairline borders, one teal accent used sparingly, monospace
   numbers. The bar for the craft is Linear's homepage.
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

:root {
  --bg: #0b0d10;
  --surface: #12151a;
  --surface-2: #171b21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9edf2;
  --muted: #8b95a3;
  --faint: #5c6673;
  --accent: #5eead4;
  --accent-ink: #06231f;
  --good: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
  --radius-lg: 16px;
  --font: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* Author display values must never defeat the hidden attribute —
   this is what keeps the donate button sealed until a link exists. */
[hidden] { display: none !important; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.8);
}

.brand-sub { color: var(--accent); }

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ghost-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 150ms ease;
}

.ghost-link:hover { color: var(--text); }

.nav-cta {
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 150ms ease, background 150ms ease;
}

.nav-cta:hover {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.08);
}

/* ---------------------------------------------------------- type */

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { letter-spacing: -0.025em; }

/* One heading scale for the whole site: the hero is the single biggest
   object on the page; every section head after it is the same size. */
.h-display {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 660;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
}

.h-section {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 660;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.65;
  max-width: 58ch;
}

.fineprint {
  color: var(--faint);
  font-size: 13px;
  margin: 14px 0 0;
}

.section-title {
  margin: 0 0 12px;
}

.section-lede {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 56ch;
}

/* ---------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 96px 0 30px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -240px 0 auto 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 620px;
  background: radial-gradient(
    closest-side,
    rgba(94, 234, 212, 0.13),
    rgba(94, 234, 212, 0.04) 55%,
    transparent 75%
  );
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero h1 {
  margin: 0 0 24px;
  max-width: 16ch;
}

.hero .lede { font-size: 19px; max-width: 50ch; }

.fade-up {
  animation: fadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fade-up.d1 { animation-delay: 60ms; }
.fade-up.d2 { animation-delay: 120ms; }
.fade-up.d3 { animation-delay: 180ms; }
.fade-up.d4 { animation-delay: 240ms; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { animation: none; }
  * { transition: none !important; }
}

/* ---------------------------------------------------------- buttons */

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  border: none;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 30px rgba(94, 234, 212, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }

/* ---------------------------------------------------------- product panel */

.panel-stage {
  position: relative;
  padding: 44px 0 0;
}

.call-panel {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(94, 234, 212, 0.07), transparent 55%),
    linear-gradient(180deg, #12151a, #0e1116);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 80px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.call-panel .screen {
  padding: 44px 36px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.call-panel .screen::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.14), transparent 65%);
  pointer-events: none;
}

.call-panel .report {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* One device token system: bezel radius, screen radius, hairlines. */
.phone-frame {
  position: relative;
  width: 288px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #1a1f26, #0d1014);
  padding: 9px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
}

.phone-screen {
  border-radius: 32px;
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(94, 234, 212, 0.09), transparent 55%),
    linear-gradient(180deg, #101419, #0a0d11);
  min-height: 566px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px 20px;
  overflow: hidden;
}

.p-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.p-batt { display: flex; align-items: flex-end; gap: 3px; }

.p-batt i {
  width: 3px;
  border-radius: 1px;
  background: var(--muted);
  display: block;
}

.p-batt i:nth-child(1) { height: 6px; opacity: 0.4; }
.p-batt i:nth-child(2) { height: 9px; opacity: 0.7; }
.p-batt i:nth-child(3) { height: 12px; background: var(--good); }

.p-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 34px;
}

.panel-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.9);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 29px;
  font-weight: 650;
  color: var(--accent-ink);
  background: linear-gradient(160deg, #7ff0dd, #3ec7b2);
  margin: 28px 0 16px;
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.35),
    0 0 0 9px rgba(94, 234, 212, 0.05),
    0 12px 36px rgba(94, 234, 212, 0.2);
}

.peer { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }

.p-timer {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 5px;
}

.path-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
  color: var(--good);
  font-size: 12px;
  font-weight: 600;
}

.p-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 13, 16, 0.55);
  margin-top: 26px;
  overflow: hidden;
}

.p-cell {
  padding: 11px 8px 12px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.p-cell:first-child { border-left: none; }

.p-cell .pk {
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.p-cell .pv {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
}

.p-cell .pv.good { color: var(--good); }
.p-cell .pv.accent { color: var(--accent); }

.p-controls {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 8px;
}

.ctl {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  flex: none;
}

.ctl.end {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.report-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 6px;
}

.report-row { padding: 12px 0; border-bottom: 1px solid var(--line); }

.report-row:last-of-type { border-bottom: none; }

.rowtop {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 8px;
}

.report-row .k { color: var(--muted); font-size: 13.5px; }

.report-row .v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
}

.report-row .v.good { color: var(--good); }
.report-row .v.accent { color: var(--accent); }

.meter {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.meter i { display: block; height: 100%; border-radius: 2px; background: var(--muted); }
.meter i.good { background: var(--good); }
.meter i[data-w="88"] { width: 88%; }
.meter i[data-w="14"] { width: 14%; }
.meter i[data-w="42"] { width: 42%; }
.meter i[data-w="4"] { width: 4%; }

.panel-caption {
  color: var(--faint);
  font-size: 12.5px;
  text-align: center;
  margin-top: 14px;
}

/* ---------------------------------------------------------- facts strip */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 64px;
  background: rgba(255, 255, 255, 0.012);
}

.facts .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.fact {
  padding: 26px 20px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.fact:first-child { border-left: none; }

.fact .big {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 27px;
  font-weight: 650;
  color: var(--text);
}

.fact .big.accent { color: var(--accent); }

.fact .small {
  color: var(--faint);
  font-size: 12.5px;
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------- features */

.features {
  padding: 120px 0 0;
}

.features .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #101318 90%);
  padding: 26px 24px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.card .icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(94, 234, 212, 0.3);
  background: rgba(94, 234, 212, 0.07);
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------------------------------------------------------- statement */

.statement {
  padding: 120px 0 0;
}

.statement p {
  margin: 0;
  max-width: 24ch;
}

.statement .dim { color: var(--faint); }
.statement .lit { color: var(--text); }
.statement .teal { color: var(--accent); }

/* ---------------------------------------------------------- map */

.map {
  padding: 120px 0 0;
}

.map-panel {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(94, 234, 212, 0.05), transparent 60%),
    linear-gradient(180deg, #12151a, #0e1116);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 26px 40px 18px;
}

.map-panel svg { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------- steps */

.how {
  padding: 120px 0 0;
}

.how-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.how .section-lede { margin-bottom: 20px; }

.how .steps-note {
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.65;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 26px 26px 72px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 24px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 650;
  color: var(--accent);
}

.steps strong { color: var(--text); font-weight: 600; }

.steps-note {
  margin-top: 18px;
  color: var(--faint);
  font-size: 13.5px;
  max-width: 70ch;
}

/* ---------------------------------------------------------- faq */

.faq {
  padding: 120px 0 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.faq dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.faq .qa {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.faq dt { font-weight: 650; font-size: 17.5px; letter-spacing: -0.015em; }

.faq dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.faq dd a { color: var(--accent); text-decoration: none; }
.faq dd a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- page heads (help/donate) */

.page-head { padding: 84px 0 8px; }

.page-head h1 {
  margin: 0 0 16px;
}

.page-body { padding: 26px 0 20px; }

.page-body h2 {
  font-size: 22px;
  font-weight: 650;
  margin: 54px 0 16px;
  letter-spacing: -0.02em;
}

.page-body ol.steps { grid-template-columns: 1fr; }

.notice {
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: var(--radius);
  background: rgba(94, 234, 212, 0.05);
  padding: 22px 24px;
  margin: 22px 0;
}

.notice h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.notice p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.terms {
  display: grid;
  gap: 14px;
}

.terms dt { font-weight: 650; font-size: 15px; }

.terms dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.ledger { display: grid; gap: 0; margin: 18px 0 8px; border-top: 1px solid var(--line); }

.ledger .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
}

.ledger .row strong { color: var(--text); font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.donate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------------------------------------------------------- closing cta */

.closing {
  padding: 120px 0;
  text-align: center;
}

.closing h2 {
  margin: 0 0 14px;
}

.closing p { color: var(--muted); margin: 0 0 30px; font-size: 16.5px; }

.closing .btn-primary { font-size: 16px; padding: 15px 28px; }

/* ---------------------------------------------------------- footer */

.foot {
  border-top: 1px solid var(--line);
  padding: 30px 28px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--faint);
  font-size: 13px;
}

.foot .links { display: flex; gap: 18px; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .how-grid,
  .faq-grid { grid-template-columns: 1fr; gap: 8px; }
  .map-panel { padding: 18px 20px 10px; }
  .call-panel { grid-template-columns: 1fr; }
  .call-panel .screen { border-right: none; border-bottom: 1px solid var(--line); }
  .features .grid { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { border-left: none; border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: none; }
  .steps { grid-template-columns: 1fr; }
  .faq dl { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .top { padding: 12px 20px; }
  .top-nav { gap: 14px; }
  .hero { padding-top: 64px; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .call-panel .screen, .call-panel .report { padding: 26px 22px; }
}
