/* pausible.app — brand stylesheet.
   Tokens mirror docs/superpowers/specs/2026-09-05-design-system.md
   (PausibleUI DesignTokens). Dark canvas is the default; the light palette
   follows the visitor's system setting. No JS, no web fonts, no shadows. */

:root {
  --canvas: #12100E;
  --surface: #1C1917;
  --surface-raised: #26221E;
  --ink: #F3EDE4;
  --ink-2: #C9C1B5;
  --ink-3: #A39B8F;
  --hairline: rgba(243, 237, 228, 0.10);
  --hairline-strong: rgba(243, 237, 228, 0.18);
  --accent: #E8A33D;
  --accent-ink: #E8A33D;
  --on-accent: #12100E;
  --protected: #8DA48A;
  --glow: rgba(232, 163, 61, 0.16);

  --serif: "New York", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, "Segoe UI", Roboto, sans-serif;

  --r-card: 28px;
  --r-inner: 20px;
  --r-button: 16px;

  --measure: 1040px;
  --inset: 24px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #F6F1E9;
    --surface: #FFFFFF;
    --surface-raised: #F0EAE1;
    --ink: #1A1714;
    --ink-2: #4A443E;
    --ink-3: #6B645C;
    --hairline: rgba(26, 23, 20, 0.10);
    --hairline-strong: rgba(26, 23, 20, 0.20);
    --accent: #C9861F;
    --accent-ink: #8F5A0E;
    --on-accent: #FFFFFF;
    --protected: #4E6A4C;
    --glow: rgba(201, 134, 31, 0.14);
    color-scheme: light;
  }
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--inset);
  padding-right: var(--inset);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.muted { color: var(--ink-3); }
.secondary { color: var(--ink-2); }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--protected);
  vertical-align: middle;
  margin-right: 8px;
  position: relative; top: -1px;
}

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

.site-header {
  padding: 20px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 32px; height: 32px;
  border-radius: 9px;
}
.site-nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--ink-2);
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

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

.hero {
  padding: 56px 0 0;
  overflow: hidden;
}
.hero-copy {
  max-width: 640px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero .lede {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 22px;
  border-radius: var(--r-button);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.soon svg { width: 18px; height: 18px; fill: currentColor; }
.hero-actions .note {
  font-size: 15px;
  color: var(--ink-3);
}

.hero-visual {
  margin-top: 56px;
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%; top: 24%;
  width: min(760px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}

/* A store screenshot cropped to the phone; the phone runs off the bottom of
   the frame, so every .phone clips at a fixed height and anchors the top. */
.phone {
  position: relative;
  width: 100%;
  max-width: 330px;
  overflow: hidden;
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.phone img { width: 100%; }
.phone::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--canvas));
  pointer-events: none;
}
.phone.tall { max-width: 360px; height: 560px; }
.phone.tall img { height: auto; }

/* ---------- sections ---------- */

.section {
  padding: 96px 0 0;
}
.section + .section { margin-top: 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-2);
}

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* Three-beat strip under the hero */
.beats {
  margin-top: 80px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
}
.beat {
  padding: 28px 0;
}
.beat + .beat { border-top: 1px solid var(--hairline); }
.beat .n {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}
.beat h3 { font-size: 20px; margin-bottom: 6px; }
.beat p { color: var(--ink-2); font-size: 16px; }

/* Feature: copy + phones */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.feature-copy p + p { margin-top: 16px; }
.feature-copy p { color: var(--ink-2); }
.feature-copy .lead { color: var(--ink); font-size: 19px; }

.phones {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
}
.phones .phone { flex: 1 1 0; max-width: 300px; height: 520px; }
.phones .phone.offset { margin-top: 40px; }
.phones .phone.short { height: 440px; }

/* Definition list: the insteads, the reliability points */
.list {
  list-style: none;
  border-top: 1px solid var(--hairline);
  margin-top: 28px;
}
.list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.list .t { font-weight: 600; }
.list .t .pro { margin-left: 8px; }
.list .d { color: var(--ink-2); font-size: 16px; }

.pro {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 8px 3px;
  border-radius: 999px;
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  vertical-align: 2px;
}

/* The ladder: five friction levels */
.ladder {
  list-style: none;
  border-top: 1px solid var(--hairline);
  margin-top: 28px;
  font-variant-numeric: tabular-nums;
}
.ladder li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: baseline;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.ladder .lvl { color: var(--ink-3); font-size: 13px; }
.ladder .name { font-weight: 600; }
.ladder .name .pro { margin-left: 8px; }
.ladder .wait { color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.ladder .sub { grid-column: 2 / -1; color: var(--ink-3); font-size: 14px; }

/* Bars under the ladder — the dial's track, filled to each level */
.track {
  grid-column: 2 / -1;
  height: 3px;
  border-radius: 999px;
  background: var(--hairline-strong);
  overflow: hidden;
  margin-top: 6px;
}
.track i {
  display: block;
  height: 100%;
  background: var(--ink-3);
  border-radius: 999px;
}

/* ---------- pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
.plan {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 28px;
}
.plan.highlight {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.plan-head h3 { font-size: 22px; }
.plan-head .price {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan-head .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.plan .tagline { color: var(--ink-2); font-size: 15px; margin-top: 12px; }
.plan ul {
  list-style: none;
  margin-top: 20px;
}
.plan li {
  position: relative;
  padding: 9px 0 9px 22px;
  color: var(--ink-2);
  font-size: 16px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--ink-3);
}
.plan.highlight li::before { background: var(--accent); }
.plan li strong { color: var(--ink); font-weight: 600; }

.plan-alt {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 15px;
  color: var(--ink-2);
}
.plan-alt .price { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-alt .price small { font-size: 13px; font-weight: 500; color: var(--ink-3); }

.fine {
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-3);
  max-width: 62ch;
}
.fine a { color: var(--ink-2); }

/* ---------- privacy band ---------- */

.band {
  margin-top: 96px;
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.band p {
  color: var(--ink-2);
  max-width: 44em;
  margin: 0 auto;
  font-size: 17px;
}
.band p + p { margin-top: 10px; }

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

.site-footer {
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--ink-3);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .sep { color: var(--hairline-strong); }

/* ---------- prose pages (privacy, support, terms, 404) ---------- */

.page {
  padding: 40px 0 0;
}
.page-head {
  max-width: 680px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-head .meta {
  color: var(--ink-3);
  font-size: 15px;
}
.page-head .lede {
  color: var(--ink-2);
  font-size: 19px;
  margin-top: 12px;
}

.prose {
  max-width: 680px;
  padding-top: 32px;
  font-size: 17px;
}
.prose p, .prose ul, .prose ol { margin-bottom: 18px; color: var(--ink-2); }
.prose p.big { color: var(--ink); font-size: 21px; line-height: 1.45; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 {
  font-size: 24px;
  margin: 48px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--surface-raised);
  padding: 1px 6px;
  border-radius: 6px;
}
.prose .path { color: var(--ink); }

.toc {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
  margin: 0 0 8px;
}
.prose .toc li { margin: 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }

.prose .faq, .prose .toc { list-style: none; padding-left: 0; }
.prose .faq { margin-bottom: 0; }
.faq > li {
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.faq h3 { margin: 0 0 8px; font-size: 19px; }
.faq p { margin-bottom: 12px; }
.faq p:last-child { margin-bottom: 0; }

.contact {
  margin-top: 48px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--r-card);
  max-width: 680px;
}
.contact h2 { font-size: 20px; margin: 0 0 8px; }
.contact p { color: var(--ink-2); margin: 0; }
.contact a { color: var(--ink); }

/* ---------- 404 ---------- */

.lost {
  padding: 96px 0;
  text-align: center;
}
.lost .numeral {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: clamp(72px, 16vw, 128px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  display: inline-grid;
  place-items: center;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
  margin-bottom: 32px;
}
.lost h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 12px;
}
.lost p { color: var(--ink-2); }
.lost a.button {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 24px;
  margin-top: 28px;
  border-radius: var(--r-button);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- wider screens ---------- */

@media (min-width: 640px) {
  .beats { grid-template-columns: repeat(3, 1fr); }
  .beat { padding: 32px 28px 32px 0; }
  .beat + .beat { border-top: 0; border-left: 1px solid var(--hairline); padding-left: 28px; }
  .list li { grid-template-columns: 168px 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 880px) {
  :root { --inset: 32px; }
  .site-header { padding: 28px 0; }
  .hero { padding-top: 88px; }
  .hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: end;
  }
  .hero-visual { margin-top: 0; justify-content: flex-end; }
  .phone.tall { max-width: 380px; height: 600px; }
  .section { padding-top: 128px; }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .feature.flip .feature-copy { order: 2; }
  .feature.flip .phones { order: 1; }
  .phones .phone { max-width: 280px; height: 560px; }
  .phones .phone.short { height: 460px; }
  .phones .phone.offset { margin-top: 56px; }
  .phones { position: sticky; top: 40px; }
  .band { margin-top: 128px; padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
