/* Spin & Paint — shared stylesheet.
 *
 * Palette lifted from src/theme.ts (CHROMA): flat #161616 ground, #1D1D1D
 * panels, #F3F3F3 ink, forest-green accent #0F810F.
 *
 * One constraint carried over from the app: --accent is FILL ONLY. On #161616
 * it measures 3.6:1, under the 4.5:1 body text needs. Accent-colored TEXT uses
 * --accent-ink (#5BD46F, ~9:1). Never swap them.
 *
 * No webfonts and no JS: the FAQ is <details>, the nav is a plain list. The
 * whole page is two requests plus images, which is most of the Core Web Vitals
 * budget won before a single byte of layout.
 */

:root {
  --bg: #161616;
  --panel: #1d1d1d;
  --panel-2: #202020;
  --ink: #f3f3f3;
  --ink-75: rgba(243, 243, 243, 0.75);
  --ink-60: rgba(243, 243, 243, 0.6);
  --ink-45: rgba(243, 243, 243, 0.45);
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.06);

  --accent: #0f810f;        /* fill only */
  --accent-hi: #12a012;
  --accent-ink: #5bd46f;    /* accent as text */
  --on-accent: #f3f3f3;

  --rainbow: linear-gradient(96deg, #ff5a76, #ff8a5c, #ffb13c, #b8e62e, #2abfa3, #39c6f4, #6a6af4, #9b59f6);

  --wrap: 1120px;
  --radius: 18px;
  --radius-lg: 28px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7ee08d; }

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 720px); margin-inline: auto; }

section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 0.9rem;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-75); max-width: 60ch; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 22, 22, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; }
.site-nav a {
  color: var(--ink-60);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
}

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

.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto -10%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(106, 106, 244, 0.18), transparent 70%),
              radial-gradient(closest-side, rgba(15, 129, 15, 0.16), transparent 70%);
  background-position: 20% 0%, 75% 30%;
  background-repeat: no-repeat;
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-75);
  margin-bottom: 1.1rem;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rainbow);
}
.grad {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 { margin-bottom: 0.55em; }
.hero .lede { font-size: clamp(1.08rem, 2.2vw, 1.28rem); }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .phone { max-width: 320px; }
.hero-art .phone--back {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 62%;
  transform: translateX(-98%) rotate(-7deg);
  opacity: 0.55;
  filter: blur(0.4px);
  z-index: -1;
}
@media (max-width: 560px) { .hero-art .phone--back { display: none; } }

/* --------------------------------------------------------------- phones -- */

.phone {
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px;
  background: linear-gradient(160deg, #333, #111);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.phone img { border-radius: 28px; width: 100%; }

/* ----------------------------------------------------------------- CTAs -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; margin: 1.8rem 0 1rem; }
.cta-note { font-size: 0.9rem; color: var(--ink-45); margin: 0; }

/* --------------------------------------------------------------- proof --- */

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 2rem;
}
.proof div { min-width: 92px; }
.proof b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.proof span { font-size: 0.86rem; color: var(--ink-45); }

/* --------------------------------------------------------------- cards --- */

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 { margin-bottom: 0.45em; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(15, 129, 15, 0.16);
  color: var(--accent-ink);
  font-weight: 800;
  margin-bottom: 1rem;
}

a.card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
a.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--panel-2);
  transform: translateY(-2px);
  color: inherit;
}
a.card h3 { color: var(--ink); }
a.card .more { color: var(--accent-ink); font-weight: 700; font-size: 0.92rem; }
a.card .kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-45);
  display: block;
  margin-bottom: 0.6rem;
}

/* --------------------------------------------------------- screenshots --- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 262px);
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots figcaption {
  margin-top: 0.9rem;
  font-size: 0.94rem;
  color: var(--ink-60);
  font-weight: 600;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 99px; }

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

.faq { display: grid; gap: 0.7rem; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 0 1.35rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.15rem 2rem 1.15rem 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-45);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding-bottom: 1.25rem; color: var(--ink-75); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- band/cta -- */

.band {
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cta-band {
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(15, 129, 15, 0.22), transparent 70%),
    var(--panel);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.25rem) 1.5rem;
  border: 1px solid var(--line-soft);
}
.cta-band .cta-row { justify-content: center; }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: var(--ink-75); margin-inline: auto; max-width: 48ch; }

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

.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-45);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--ink-60); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
}

/* ---------------------------------------------------------- guide pages -- */

.crumbs { font-size: 0.86rem; color: var(--ink-45); padding: 1.75rem 0 0; }
.crumbs a { color: var(--ink-60); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.article { padding-top: 1.5rem; }
.article header { margin-bottom: 2.5rem; }
.article .meta { color: var(--ink-45); font-size: 0.9rem; }
.article h2 { margin-top: 2.6rem; }
.article h3 { margin-top: 1.9rem; }
.article ul, .article ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.article li { margin-bottom: 0.5em; }
.article li::marker { color: var(--accent-ink); }
.article blockquote {
  margin: 1.8rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-75);
  font-style: italic;
}
.article figure { margin: 2.2rem 0; }
.article figcaption { font-size: 0.88rem; color: var(--ink-45); margin-top: 0.8rem; }

.callout {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.35rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(15, 129, 15, 0.16);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.95rem;
}

.tbl-wrap { overflow-x: auto; margin: 1.8rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 460px; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--ink-60); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

.next-up { display: grid; gap: 0.7rem; margin-top: 1rem; }
.next-up a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.next-up a:hover { border-color: rgba(255, 255, 255, 0.2); background: var(--panel-2); }
.next-up span { color: var(--ink-45); flex: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
