/* Cut marketing site: plain CSS, no build step.
   Identity: orange (#FF9500) → pink (#FA4070) gradient, warm, rounded,
   generous whitespace. The gradient is spent sparingly: the logo mark,
   the trend line, one underline, one chip. Everything else stays quiet. */

:root {
  --ember: #ff9500;
  --flare: #fa4070;
  --grad: linear-gradient(135deg, var(--ember), var(--flare));

  /* Warm light theme */
  --bg: #fffbf7;
  --bg-raised: #fdf3ec;
  --ink: #241b16;
  --ink-2: #71615a;
  --line: #eeded3;
  --accent-text: #c22e5c; /* darker pink: readable as small text on light */
  --shot-bg: #f7e9df;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171210;
    --bg-raised: #211a16;
    --ink: #f7efe9;
    --ink-2: #a5968c;
    --line: #352a23;
    --accent-text: #ff8aa6;
    --shot-bg: #2a211c;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display type: SF Rounded on Apple devices (where most visitors will be),
   plain system sans elsewhere. Echoes the app's rounded, warm identity. */
h1, h2, .wordmark, .eq {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

.wrap {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 24px;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--flare);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--ember);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  width: 30px;
  height: 30px;
  display: block;
}

.wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-nav a {
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px;
  align-items: center;
  padding-block: 64px 88px;
}

.chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  border: 1.5px solid var(--flare);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 26px;
}

h1 {
  font-size: clamp(2.35rem, 5.6vw, 3.7rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.022em;
  margin-bottom: 24px;
}

/* The one gradient flourish in the type: a thick rounded underline. */
.u-grad {
  background-image: var(--grad);
  background-repeat: no-repeat;
  background-size: 100% 0.14em;
  background-position: 0 96%;
  padding-bottom: 0.08em;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 34em;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--ink-2);
}

.hero-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Screenshot slots ---------- */

/* Sized for iPhone screenshots (1290x2796 or any ~9:19.5 capture).
   Until a real PNG lands in shots/, the frame reads as a labelled
   placeholder rather than a broken image. */
.shot {
  aspect-ratio: 1290 / 2796;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border-radius: 9.5% / 4.4%;
  background: var(--shot-bg);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  color: var(--ink-2); /* styles the alt text while the file is missing */
  font-size: 0.85rem;
  text-align: center;
  padding: 1em;
}

.shot figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 10px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-2);
}

/* ---------- Sections ---------- */

.section {
  padding-block: 44px;
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: 660px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.018em;
  margin-bottom: 20px;
}

.section p {
  margin-bottom: 18px;
  max-width: 62ch;
}

.section p:last-child {
  margin-bottom: 0;
}

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

/* ---------- Trend chart (the signature) ---------- */

.chart {
  margin-block: 34px 10px;
}

.chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart .dot {
  fill: currentColor;
  opacity: 0.26;
}

.chart .chart-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  fill: var(--ink-2);
}

.chart .chart-label.accent {
  fill: var(--accent-text);
  font-weight: 600;
}

.chart-caption {
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 52ch;
}

@media (prefers-reduced-motion: no-preference) {
  .chart .trend-line {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: draw 1.8s ease-out 0.3s forwards;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Equation card ---------- */

.eq-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  margin-block: 28px;
  overflow-x: auto;
}

.eq {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 600;
  white-space: nowrap;
}

.eq .op {
  color: var(--accent-text);
}

.eq-note {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-top: 12px;
}

/* ---------- Rules list (built not to shame you) ---------- */

.rules {
  list-style: none;
  margin-top: 26px;
}

.rules li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 18px;
  max-width: 60ch;
}

.rules li::before {
  /* A short descending stroke, not a checkmark: the app's own glyph. */
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 16px;
  height: 8px;
  background-image: var(--grad);
  border-radius: 4px;
  transform: rotate(14deg);
}

.rules strong {
  font-weight: 650;
}

/* ---------- Feature list (the rest of it) ---------- */

.features {
  margin-top: 10px;
}

.features > div {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 8px 32px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.features > div:last-child {
  border-bottom: none;
}

.features dt {
  font-weight: 650;
  letter-spacing: -0.005em;
}

.features dd {
  color: var(--ink-2);
  max-width: 58ch;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 52px 64px;
  margin-top: 44px;
}

.footer-cta {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 10px;
}

.footer-sub {
  color: var(--ink-2);
  margin-bottom: 30px;
  max-width: 52ch;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.footer-meta a {
  color: var(--ink-2);
}

.footer-meta a:hover {
  color: var(--ink);
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-top: 26px;
  max-width: 60ch;
}

/* ---------- Privacy page ---------- */

.prose {
  max-width: 680px;
  padding-block: 40px 30px;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  margin-bottom: 10px;
}

.prose .updated {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 44px;
  margin-bottom: 14px;
}

.prose p {
  margin-bottom: 16px;
}

.prose ul {
  margin: 0 0 16px 1.2em;
}

.prose li {
  margin-bottom: 10px;
}

.summary-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  margin-block: 28px;
}

.summary-card p {
  margin-bottom: 10px;
}

.summary-card p:last-child {
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero {
    padding-block: 40px 64px;
  }

  .hero .shot,
  .split .shot {
    max-width: 240px;
  }

  .features > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section {
    padding-block: 52px;
  }
}
