:root {
  --bg: hsl(222, 47%, 8%);
  --bg-2: hsl(222, 47%, 6%);
  --card: hsl(222, 45%, 11%);
  --card-2: hsl(222, 42%, 14%);
  --border: hsla(215, 20%, 65%, 0.12);
  --border-strong: hsla(215, 20%, 65%, 0.22);
  --fg: hsl(210, 40%, 96%);
  --muted: hsl(215, 20%, 60%);
  --muted-2: hsl(215, 20%, 45%);
  --primary: hsl(150, 100%, 50%);
  --primary-dim: hsla(150, 100%, 50%, 0.12);
  --primary-line: hsla(150, 100%, 50%, 0.05);
  --shadow: rgba(2, 6, 15, 0.55);
  --maxw: 1180px;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Roboto Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* fallback */
  overflow-x: clip;   /* clips horizontally without making body a scroll container (keeps sticky header working) */
  position: relative;
}

/* Offset anchor targets so section tops aren't hidden under the sticky header */
[id] { scroll-margin-top: 84px; }

/* ---------- Ambient pitch backdrop ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 900px 560px at 50% -8%, hsla(150, 100%, 50%, 0.14), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.pitch-circle {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1100px, 150vw);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 255, 128, 0.05);
  border-radius: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  z-index: -1;
}
.pitch-circle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 60vh;
  background: linear-gradient(180deg, rgba(0, 255, 128, 0.05), transparent);
}
.pitch-circle--small {
  width: min(700px, 120vw);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(56px, 9vw, 112px); position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 6vw, 56px); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-top: 8px; }
.section-head p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); margin-top: 12px; }

ul.bullets { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
ul.bullets li {
  font-size: 0.95rem;
  color: var(--muted);
  padding-left: 24px;
  position: relative;
}
ul.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px hsla(150, 100%, 50%, 0.6);
}

/* ---------- Fade-in (progressive enhancement) ---------- */
[data-fade] { opacity: 1; transform: none; }
.js [data-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js [data-fade].visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-fade] { opacity: 1; transform: none; transition: none; }
}

/* ================= Header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(222, 47%, 8%, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.wordmark span { color: var(--primary); }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-menu a:hover { color: var(--fg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  margin-inline: auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; margin-left: 0; }
  .primary-nav { position: static; flex: 0 0 auto; }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: hsl(222, 47%, 9%);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-menu.open { max-height: 360px; }
  .nav-menu li { border-top: 1px solid var(--border); }
  .nav-menu a { display: block; padding: 16px 24px; }
  /* Keep a compact, icon-only download badge in the bar, grouped with the toggle on the right */
  .store-badge--nav { display: inline-flex; margin-left: auto; padding: 8px; }
  .store-badge--nav .store-badge__text { display: none; }
}

/* ================= App Store badge ================= */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid hsla(210, 20%, 100%, 0.18);
  border-radius: 12px;
  padding: 9px 16px 9px 13px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
}
.store-badge:hover {
  transform: translateY(-2px);
  border-color: hsla(150, 100%, 50%, 0.5);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px hsla(150, 100%, 50%, 0.15);
}
.store-badge__mark { width: 22px; height: 22px; flex-shrink: 0; color: #fff; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge__eyebrow { font-size: 10px; letter-spacing: 0.3px; color: hsla(0,0%,100%,0.85); }
.store-badge__title { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; font-family: var(--sans); }

.store-badge--nav { padding: 6px 12px 6px 10px; border-radius: 10px; }
.store-badge--nav .store-badge__mark { width: 17px; height: 17px; }
.store-badge--nav .store-badge__eyebrow { font-size: 8.5px; }
.store-badge--nav .store-badge__title { font-size: 13px; }

@media (max-width: 420px) {
  .store-badge--nav .store-badge__text { display: none; }
  .store-badge--nav { padding: 8px; }
}

.store-badge--lg { padding: 13px 22px 13px 17px; border-radius: 14px; }
.store-badge--lg .store-badge__mark { width: 28px; height: 28px; }
.store-badge--lg .store-badge__eyebrow { font-size: 11px; }
.store-badge--lg .store-badge__title { font-size: 20px; }

/* ================= Product Hunt badge ================= */
.ph-badge { display: inline-flex; border-radius: 12px; transition: transform 0.15s ease; }
.ph-badge:hover { transform: translateY(-2px); }
.ph-badge img { width: 250px; height: 54px; }

/* ================= Hero ================= */
.hero {
  padding-top: clamp(56px, 10vw, 100px);
  padding-bottom: clamp(40px, 8vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.05;
  margin-top: 14px;
}
.hero .subhead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
  margin-top: 20px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.ghost-link {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}
.ghost-link:hover { border-color: var(--primary); color: var(--primary); }

.ticker {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.ticker::-webkit-scrollbar { display: none; }
.ticker span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker span strong { color: var(--primary); }

/* Hero phone stage */
.hero-visual {
  position: relative;
  min-height: clamp(340px, 46vw, 520px);
}
.hero-visual .phone-frame {
  position: absolute;
  width: clamp(150px, 24vw, 230px);
}
.hero-visual .phone-frame.p-back {
  left: 6%;
  top: 4%;
  transform: rotate(-6deg);
  z-index: 1;
}
.hero-visual .phone-frame.p-front {
  right: 4%;
  bottom: 0;
  width: clamp(160px, 26vw, 250px);
  transform: rotate(5deg);
  z-index: 2;
}
.chip {
  position: absolute;
  background: var(--card-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  box-shadow: 0 10px 28px -10px var(--shadow);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  z-index: 3;
}
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px hsla(150,100%,50%,0.8);
}
.chip--stat { left: -6%; top: 10%; }
.chip--live { right: -2%; top: 6%; color: var(--primary); }

@media (prefers-reduced-motion: no-preference) {
  .chip .dot { animation: pulse 2.2s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Let the format chips wrap onto multiple lines instead of scrolling off-screen */
  .ticker { flex-wrap: wrap; overflow-x: visible; }
  /* Flow the phones in a centered, contained row so nothing overflows / gets clipped */
  .hero-visual {
    min-height: 0;
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .hero-visual .phone-frame {
    position: relative;
    inset: auto;
    left: auto; right: auto; top: auto; bottom: auto;
    width: 42%;
    max-width: 190px;
  }
  .hero-visual .phone-frame.p-back { transform: rotate(-5deg); margin-top: 14px; margin-right: -5%; }
  .hero-visual .phone-frame.p-front { transform: rotate(5deg); width: 42%; max-width: 190px; margin-left: -5%; }
  .hero-visual .chip { display: none; }
}

/* ================= Phone frame ================= */
.phone-frame {
  position: relative;
  background: linear-gradient(160deg, hsl(222, 40%, 15%), hsl(222, 46%, 9%));
  border: 1px solid var(--border-strong);
  border-radius: 34px;
  padding: 9px;
  box-shadow:
    0 30px 60px -24px var(--shadow),
    0 0 0 1px hsla(0,0%,100%,0.02) inset,
    0 0 46px -14px hsla(150, 100%, 50%, 0.18);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 16px;
  background: hsl(222, 46%, 9%);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-frame img {
  width: 100%;
  border-radius: 25px;
  position: relative;
  z-index: 1;
}

/* ================= Features ================= */
.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(56px, 9vw, 104px); }
.feature-row.reverse { grid-template-columns: 1.15fr 0.85fr; }
.feature-row.reverse .feature-visual { order: 2; }
.feature-row .feature-visual .phone-frame { max-width: 280px; margin-inline: auto; }
.feature-text h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.feature-text p { color: var(--muted); margin-top: 12px; font-size: 1rem; }

@media (max-width: 860px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-visual { order: 0; }
  .feature-row .feature-visual .phone-frame { max-width: 230px; }
}

/* ================= How it works ================= */
.how-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.steps { display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid hsla(150,100%,50%,0.25);
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }
.how-visual .phone-frame { max-width: 240px; margin-inline: auto; }

@media (max-width: 860px) {
  .how-wrap { grid-template-columns: 1fr; }
  .how-visual { order: -1; }
}

/* ================= Closing CTA ================= */
.cta-section { text-align: center; }
.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(40px, 8vw, 72px) clamp(20px, 6vw, 48px);
  position: relative;
  overflow: hidden;
}
.cta-card h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.cta-card p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; max-width: 50ch; margin-inline: auto; }
.cta-card .hero-cta { justify-content: center; margin-top: 32px; }

/* ================= Footer ================= */
footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 8vw, 72px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.footer-brand .wordmark { font-weight: 800; font-size: 1.05rem; }
.footer-brand p { color: var(--muted-2); font-size: 0.88rem; margin-top: 6px; max-width: 32ch; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.social-link:hover { color: var(--primary); border-color: hsla(150, 100%, 50%, 0.5); }
.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 10px; }
.footer-col p { color: var(--muted); font-size: 0.92rem; }
.footer-col a { color: var(--primary); font-weight: 600; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col .mail-pill {
  display: inline-block;
  margin-top: 10px;
  background: var(--primary-dim);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--fg); }

.footer-col ul { list-style: none; display: grid; gap: 8px; font-size: 0.92rem; }
.footer-legal {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--muted-2);
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ================= Inline text link ================= */
.text-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ================= FAQ ================= */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  position: relative;
  border-radius: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--primary);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.faq-item summary h3 { display: inline; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.faq-item p { color: var(--muted); padding: 0 20px 18px; font-size: 0.97rem; }

/* ================= Landing pages ================= */
.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

.page-hero .hero-grid { grid-template-columns: 1.25fr 0.75fr; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; }
.page-hero .subhead { max-width: 54ch; }
.page-hero .phone-frame { max-width: 250px; margin-inline: auto; }
@media (max-width: 900px) {
  .page-hero .hero-grid { grid-template-columns: 1fr; }
  .page-hero .phone-frame { max-width: 210px; margin-top: 12px; }
}

.section--tight { padding-block: clamp(36px, 6vw, 64px); }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-top: 8px; }
.prose h3 { font-size: 1.15rem; margin-top: 28px; }
.prose p { color: var(--muted); margin-top: 14px; }
.prose strong { color: var(--fg); font-weight: 700; }
.prose ol.numbered { margin-top: 18px; padding-left: 22px; display: grid; gap: 10px; color: var(--muted); }
.prose ol.numbered li::marker { color: var(--primary); font-family: var(--mono); font-weight: 700; }

.table-scroll { overflow-x: auto; margin-top: 22px; border: 1px solid var(--border); border-radius: 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 460px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card);
}
.data-table tbody th { font-weight: 700; }
.data-table td { color: var(--muted); font-variant-numeric: tabular-nums; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.related-card:hover { border-color: hsla(150, 100%, 50%, 0.45); transform: translateY(-2px); }
.related-card strong { display: block; font-size: 1.05rem; font-weight: 800; }
.related-card span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* ================= 404 ================= */
.notfound { text-align: center; padding-block: clamp(80px, 16vw, 160px); }
.notfound .score { font-family: var(--mono); font-size: clamp(3rem, 12vw, 6rem); font-weight: 800; color: var(--primary); letter-spacing: -0.04em; }
.notfound p { color: var(--muted); margin-top: 12px; }
