/* Smoking Tracker: Quit & Reduce — app-matched theme.
   The app is quiet and monochrome: a warm cream paper icon with ink-black
   dots on a line (each pause a little longer than the last), white screens,
   black type, and one calm teal for progress. The coral of the app's
   time-of-day chart appears only as a small garnish.
   Link AFTER site.css on every Smoking Tracker page (landing + guides). */

:root {
  /* Surfaces — warm cream paper, like the icon */
  --bg:        #f8f5ee;
  --bg-2:      #f0ece2;
  --surface:   #f2eee5;   /* section-alt */
  --surface-2: #ffffff;   /* cards, like the app's white screens */
  --border:    rgba(20, 19, 16, 0.09);
  --border-2:  rgba(20, 19, 16, 0.17);

  /* Ink */
  --text:      #121210;
  --text-dim:  #44433e;
  --muted:     #6c6a63;

  /* The app's hue — the teal of "one pause at a time" */
  --app:       #0d7f69;
  --app-ink:   #ffffff;

  --page-light: #fffdf8;
  --grain: 0.022;

  /* Soft daylight shadows */
  --shadow-icon: 0 8px 26px rgba(20, 19, 16, 0.16);
  --shadow-card: 0 1px 2px rgba(20, 19, 16, 0.04), 0 12px 30px rgba(20, 19, 16, 0.06);
  --shadow-shot: 0 16px 44px rgba(20, 19, 16, 0.14);

  --coral: #ec6a6a;
}

/* The lens becomes one of the icon's ink dots */
.brand-dot {
  background: radial-gradient(circle at 32% 30%, #8a8a84 0%, #2a2a27 38%, #0b0b0a 100%);
  box-shadow: 0 0 12px rgba(13, 127, 105, 0.35);
}

/* Dark-tray values in site.css that variables don't cover */
.appstore-badge { border-color: #121210; }
.appstore-badge:hover { border-color: #4a4944; }
.hero-phone { border-color: var(--border); }

/* ---------------- Hero ---------------- */
.st-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
/* three dots on a line — the icon, laid on its side */
.st-kicker .dots { display: inline-flex; align-items: center; gap: 0; }
.st-kicker .dots i {
  display: block; border-radius: 50%; background: var(--text); flex: none;
}
.st-kicker .dots i:nth-child(1) { width: 5px; height: 5px; }
.st-kicker .dots i:nth-child(2) { width: 7px; height: 7px; }
.st-kicker .dots i:nth-child(3) { width: 10px; height: 10px; }
.st-kicker .dots b { display: block; width: 10px; height: 1.5px; background: var(--text); }

/* ---------------- Goals ---------------- */
.goal-card .goal-tag {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--app);
}
.goal-foot {
  margin-top: 22px; color: var(--muted); font-size: 15px;
  display: flex; align-items: center; gap: 10px;
}
.goal-foot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--app);
}

/* ---------------- The pause ladder: the icon's dots, growing ---------------- */
.ladder-wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
}
@media (max-width: 860px) { .ladder-wrap { grid-template-columns: 1fr; gap: 32px; } }
.ladder-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.4vw, 33px); letter-spacing: -0.025em;
  line-height: 1.12; margin-bottom: 14px; font-weight: 600; text-wrap: balance;
}
.ladder-copy p { color: var(--text-dim); margin-bottom: 14px; }

.pause-ladder {
  list-style: none; position: relative;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 28px 24px 30px;
  box-shadow: var(--shadow-card);
}
.pause-ladder li {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto;
  align-items: center; gap: 14px; padding: 11px 0;
}
/* the thread that joins the dots */
.pause-ladder li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 50%; height: 100%;
  width: 1.5px; background: var(--border-2);
}
.pause-ladder li.done:not(:last-child)::after { background: var(--text); }
.pause-ladder .dot {
  justify-self: center; position: relative; z-index: 1;
  width: var(--d); height: var(--d); border-radius: 50%;
  background: var(--surface-2); border: 1.5px solid var(--border-2);
}
.pause-ladder li.done .dot { background: var(--text); border-color: var(--text); }
.pause-ladder li.now .dot {
  background: var(--app); border-color: var(--app);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--app) 14%, transparent);
}
.pause-ladder .step { font-size: 16px; color: var(--muted); }
.pause-ladder li.done .step { color: var(--text-dim); }
.pause-ladder li.now .step { color: var(--text); font-weight: 650; }
.pause-ladder .meta {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.pause-ladder li.now .meta { color: var(--app); }

/* ---------------- Features ---------------- */
.st-card .card-icon {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--bg); border-color: var(--border-2);
}
.st-card.teal .card-icon { color: var(--app); background: color-mix(in srgb, var(--app) 8%, transparent); border-color: color-mix(in srgb, var(--app) 24%, transparent); }
.st-card.coral .card-icon { color: #c24848; background: color-mix(in srgb, var(--coral) 10%, transparent); border-color: color-mix(in srgb, var(--coral) 28%, transparent); }

/* ---------------- Big readout, like the app's "47m since last use" ---------------- */
.readout {
  text-align: center; padding: clamp(28px, 5vw, 44px) 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.readout .big {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(54px, 10vw, 96px); line-height: 1; letter-spacing: -0.04em;
}
.readout .sub { color: var(--muted); margin-top: 8px; }
.readout .bar {
  max-width: 420px; height: 5px; border-radius: 99px; margin: 26px auto 10px;
  background: var(--bg-2); overflow: hidden;
}
.readout .bar span { display: block; height: 100%; width: 78%; background: var(--text); border-radius: 99px; }
.readout .bar-labels {
  max-width: 420px; margin: 0 auto; display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}

/* ---------------- Health information ---------------- */
.health-note {
  border: 1px solid var(--border-2); border-left: 3px solid var(--text);
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 22px 24px; max-width: 820px;
}
.health-note h2 {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.health-note p { color: var(--text-dim); font-size: 15.5px; }
.health-note p + p { margin-top: 10px; }
.health-note a { color: var(--app); font-weight: 600; }

/* The icon is cream on cream — give it a hairline edge */
.app-identity img, .app-callout img { border: 1px solid var(--border-2); }
@media (max-width: 520px) { .prose .formula { white-space: normal; } }

/* Gallery: show every screenshot whole — no cards cut off at the edges.
   Six across on desktop, three across on tablets; phones keep the swipe. */
@media (min-width: 640px) {
  .shots {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto;
    overflow: visible; scroll-snap-type: none;
    max-width: calc(var(--container) + 120px); margin: 0 auto;
    padding: 8px 22px 26px; gap: 24px 18px;
  }
}
@media (min-width: 1000px) {
  .shots { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .shots figcaption { font-size: 11.5px; }
}
