/* ============================================================
   Runlist — getrunlist.app
   Ported from the Claude Design prototype ("Margin Website.html"
   in the Runlist design project — the file name is a leftover;
   the mark and the copy are Runlist's).

   Dark-only by design: the app is dark, the marketing should
   look like the product. No theme toggle, so every colour below
   is stated once and never swapped.
   ============================================================ */

:root {
  --bg0: #0a0c10;
  --bg1: #11141b;
  --bg2: #181d26;
  --line: rgba(255, 255, 255, 0.08);
  --linestrong: rgba(255, 255, 255, 0.16);
  --hi: #eef1f5;
  --mid: #98a1ad;
  /* The prototype's --low (#5e6772) sits at 3.6:1 on --bg0 — under AA for the
     small text it was used on. Lifted to meet 4.5:1; the visual intent (a third,
     quieter tier below --mid) is unchanged. */
  --low: #7c8794;
  --accent: #ffb020;
  --onaccent: #1a1205;
  --go: #3ecf72;
  --disp: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg0); }
body {
  margin: 0;
  background: var(--bg0);
  color: var(--hi);
  font-family: var(--disp);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffc656; }

/* Prose links are underlined; chrome links aren't. This lives up here with the
   other link rules rather than down in the LEGAL section, because a more
   specific `a` rule appearing after the footer's `a:hover` is a descending
   specificity order — legal on its own, but the kind of thing that silently
   flips which rule wins when someone later edits either block.

   `:where()` keeps the whole selector at one-class specificity, so it sits
   level with the other link rules instead of quietly outranking them. */
.legal-body :where(p, li) a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 176, 32, 0.4);
}

/* A visible focus ring everywhere — the prototype had none, and every
   interactive element here is a link, so keyboard users had no cue at all. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}

/* skip link — keyboard users shouldn't have to tab the whole nav */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--onaccent);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip:focus { left: 0; color: var(--onaccent); }

/* ============ NAV ============ */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navin { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logoname { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--hi); }
.navsp { flex: 1; }
.navlink {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}
.navlink:hover { color: var(--hi); }

/* ============ HERO ============ */
.hero {
  /* padding-block, not the shorthand: these sections also carry .wrap, and a
     `padding` shorthand here would reset .wrap's horizontal padding to zero —
     invisible at desktop widths, where max-width leaves margin anyway, and
     flush against the screen edge on a phone. */
  padding-block: 84px 30px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
h1 {
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 18px 0 0;
}
h1 em { font-style: normal; color: var(--accent); }
.sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mid);
  margin: 20px 0 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.stores { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--linestrong);
  background: var(--bg1);
  border-radius: 13px;
  padding: 10px 18px 10px 14px;
  transition: border-color 0.15s, background 0.15s;
}
.badge .bt { display: flex; flex-direction: column; line-height: 1.15; }
.badge .b1 { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--mid); }
.badge .b2 { font-size: 16px; font-weight: 600; color: var(--hi); }

/* The app isn't on the App Store yet. The badge stays, because it says what is
   coming, but it is not a link — a link that goes nowhere is worse than none. */
.badge.soon { opacity: 0.72; cursor: default; }
.badge.soon .b2 { color: var(--mid); }

.finep {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--low);
  margin-top: 18px;
}

/* ============ PHONE ============ */
.phonewrap { display: flex; justify-content: center; }
.phone {
  /* min(), not a flat 300px: inside .wrap's 28px gutters a 320px-wide phone
     leaves 264px of content box, and a fixed 300px would push the page wider
     than the screen. max-width can't overflow; a plain width can. */
  width: min(300px, 100%);
  background: #05060a;
  border: 1px solid var(--linestrong);
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.screen { background: var(--bg0); border-radius: 34px; overflow: hidden; border: 1px solid var(--line); }
.sbar {
  display: flex;
  justify-content: space-between;
  padding: 12px 22px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mid);
}
.apphead { padding: 10px 18px 12px; display: flex; align-items: center; gap: 10px; }
.ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 62%, var(--bg2) 62% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ring i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--accent);
  font-weight: 600;
}
.aht { flex: 1; min-width: 0; }
.ah1 { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--accent); }
.ah2 { font-size: 14.5px; font-weight: 600; }
.sect { padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 7px; }
.sechd { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--low); margin: 6px 2px 2px; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.row.on {
  background: rgba(62, 207, 114, 0.09);
  border-color: transparent;
  color: var(--mid);
  text-decoration: line-through;
  text-decoration-color: var(--low);
}
.cb { width: 17px; height: 17px; border-radius: 6px; border: 1.6px solid var(--linestrong); flex-shrink: 0; }
.row.on .cb { border-color: var(--go); background: var(--go); position: relative; }
.row.on .cb::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid var(--onaccent);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.qty {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 176, 32, 0.12);
  border-radius: 5px;
  padding: 2.5px 6px;
}
.qty.done { color: var(--go); background: rgba(62, 207, 114, 0.12); }
.row.mod { border-style: dashed; border-color: rgba(255, 176, 32, 0.4); }
.mod .chev { margin-left: auto; color: var(--accent); font-family: var(--mono); font-size: 11px; }

/* ============ STRIP ============ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg1); }
.stripin { display: flex; justify-content: space-between; padding: 22px 0; flex-wrap: wrap; }
.stat { padding: 0 28px; display: flex; flex-direction: column; gap: 4px; }
.statn { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--hi); }
.statl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--low); text-transform: uppercase; }

/* ============ FEATURES ============ */
.features { padding-block: 84px 10px; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.fcard {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fnum { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; }
.fcard h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.fcard p { margin: 0; color: var(--mid); font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; font-weight: 700; margin: 14px 0 0; max-width: 24ch; }

/* ============ SCREENS ============ */
.shots { padding-block: 84px; }
.shotrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.shot {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 20px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shot .cap { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--mid); text-transform: uppercase; }
.mini {
  background: var(--bg0);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  padding: 16px 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 210px;
}
.mini .row { font-size: 12px; }
/* Focus mode centres a single item; the log packs rows a little tighter. */
.mini.focus { justify-content: center; gap: 12px; }
.mini.log { gap: 8px; }
.sechd.first { margin-top: 0; }
.focusmeta { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--low); }
.focusitem { font-size: 19px; font-weight: 600; line-height: 1.3; }
.focusitem span { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.focusbtns { display: flex; gap: 8px; margin-top: 6px; }
.focusbtns .go {
  flex: 1;
  text-align: center;
  background: var(--accent);
  color: var(--onaccent);
  font-weight: 600;
  font-size: 12px;
  border-radius: 10px;
  padding: 9px 0;
}
.focusbtns .skip2 {
  text-align: center;
  border: 1px solid var(--line);
  color: var(--mid);
  font-size: 12px;
  border-radius: 10px;
  padding: 9px 12px;
}
.logdate { font-family: var(--mono); font-size: 9px; color: var(--accent); }

/* ============ PRICING ============ */
.pricing { padding-block: 20px 84px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; max-width: 640px; }
.plan {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan.best { border-color: rgba(255, 176, 32, 0.42); }
.planname { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--mid); text-transform: uppercase; }
.planprice { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.planprice small { font-size: 14px; font-weight: 500; color: var(--mid); letter-spacing: 0; }
.plannote { font-size: 13.5px; color: var(--mid); line-height: 1.55; margin: 0; }
.plantag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 176, 32, 0.12);
  border-radius: 5px;
  padding: 3px 7px;
}

/* ============ CTA ============ */
.cta { padding-block: 90px 100px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: none; }
.cta .sub { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--line); padding: 26px 0 34px; }
.fin { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tri { display: inline-flex; height: 10px; border-radius: 2.5px; overflow: hidden; }
.tri span { width: 8px; }
.tri .g { background: #1c9e5a; }
.tri .w { background: #e9ebef; }
.tri .r { background: #d63b28; }
.credit { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--low); }
.footlinks { display: flex; gap: 16px; flex-wrap: wrap; }
.footlinks a { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--mid); }
.footlinks a:hover { color: var(--hi); }
.fsp { flex: 1; }

/* ============ LEGAL + 404 ============ */
/* Long-form pages want a ~70-character measure, narrower than --wrap. */
.legal { max-width: 720px; margin: 0 auto; padding: 0 28px 96px; }
.legal-head { padding: 64px 0 0; }
.legal-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 16px 0 0; }
.legal-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--low);
  margin: 18px 0 0;
}
.legal-body { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 8px; }
.legal-body h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 0; max-width: none; }
.legal-body p,
.legal-body li { font-size: 16px; line-height: 1.65; color: var(--mid); margin: 14px 0 0; }
.legal-body strong { color: var(--hi); font-weight: 600; }
.legal-body code { font-family: var(--mono); font-size: 0.9em; color: var(--hi); }
.legal-body ul { margin: 14px 0 0; padding-left: 22px; }
.legal-body li { margin: 8px 0 0; }
.legal-body li::marker { color: var(--low); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 52px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}
.legal-back:hover { color: var(--hi); }
.legal-back::before { content: ""; width: 18px; height: 1px; background: var(--linestrong); }

.notfound { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 28px; }
.notfound .code { font-family: var(--mono); font-size: 64px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.notfound h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 12px 0 0; }
.notfound p { color: var(--mid); font-size: 16px; line-height: 1.6; margin: 16px 0 0; max-width: 46ch; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block-start: 56px; }
  .fgrid, .shotrow, .pgrid { grid-template-columns: 1fr; }
  .stat { padding: 8px 28px; }
}

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