@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans.woff2') format('woff2');
}

:root {
  --ground: #fffbf0;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #78716c;
  --line: #e7e5e4;
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-300: #fdba74;
  --amber-500: #f59e0b;
  --amber-600: #b45309;
  --amber-700: #92400e;
  --amber-800: #78350f;
  --amber-900: #451a03;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
  scrollbar-color: var(--amber-300) var(--ground);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber-200); color: var(--amber-900); }

a { color: #9a4508; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: #7c3706; }

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

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

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.mark { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.mark span { color: var(--amber-600); }
.top nav a { font-size: 15px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero: the staircase */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 span { display: block; color: var(--amber-600); }

.deck { margin: 24px 0 0; max-width: 34ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--amber-800);
}
.soon::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 4px var(--amber-100);
}

.climb { min-width: 0; }

.stairs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  margin: 0;
  padding: 0 0 0;
  list-style: none;
  border-bottom: 2px solid var(--ink);
}

.step {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.step img {
  width: var(--m);
  margin-bottom: -6px;
  transition: transform 420ms var(--ease-out);
  filter: drop-shadow(0 10px 12px rgba(120, 53, 15, 0.18));
}

.tread {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: var(--h);
  padding: 14px 12px;
  border-radius: 14px 14px 0 0;
  background: var(--bg);
  color: var(--fg);
  transform-origin: 50% 100%;
  transition: transform 420ms var(--ease-out);
}
.tread b { font-size: clamp(30px, 3.4vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tread small { margin-top: 4px; font-size: 13px; font-weight: 700; }

.step[aria-pressed='true'] img { transform: translateY(-10px); }
.step[aria-pressed='true'] .tread { box-shadow: inset 0 0 0 3px var(--ink); }
.step:hover img { transform: translateY(-6px); }
.step[aria-pressed='true']:hover img { transform: translateY(-10px); }
.step:focus-visible { outline: none; }
.step:focus-visible .tread { box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 3px var(--ground), 0 0 0 6px var(--ink); }

.s0 { --h: 96px; --m: 104px; --bg: var(--amber-100); --fg: var(--amber-700); }
.s1 { --h: 168px; --m: 116px; --bg: var(--amber-200); --fg: var(--amber-700); }
.s7 { --h: 240px; --m: 128px; --bg: var(--amber-300); --fg: var(--amber-900); }
.s14 { --h: 312px; --m: 140px; --bg: var(--amber-500); --fg: var(--amber-900); }
.s30 { --h: 384px; --m: 152px; --bg: var(--amber-600); --fg: var(--ground); }

.caption {
  min-height: 3.4em;
  margin: 20px 0 0;
  font-size: 17px;
  color: var(--ink-2);
}
.caption strong { color: var(--ink); font-weight: 800; }

/* One authored moment: the treads rise into place on load. */
@media (prefers-reduced-motion: no-preference) {
  .tread { animation: rise 900ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
  .step img { animation: land 700ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 90ms + 450ms); }
}
@keyframes rise { from { transform: scaleY(0.35); } }
@keyframes land { from { transform: translateY(-18px); opacity: 0; } }

/* Sections */
.band { padding-block: clamp(64px, 9vw, 120px); }
.band + .band { border-top: 1px solid var(--line); }

h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede { margin: 18px 0 0; max-width: 52ch; font-size: 18px; color: var(--ink-2); }

/* Missing a day */
.miss { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ground-step { display: flex; flex-direction: column; align-items: center; border-bottom: 2px solid var(--ink); }
.ground-step .pair { display: flex; gap: 8px; }
.ground-step img { width: 132px; margin-bottom: -6px; filter: drop-shadow(0 10px 12px rgba(68, 64, 60, 0.16)); }
.ground-step .tread { --bg: var(--line); width: min(300px, 100%); height: 52px; animation: none; }

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: 56px; }
.how h3 { margin: 28px 0 8px; font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.how p { margin: 0; max-width: 34ch; color: var(--ink-2); }
.stage { display: flex; align-items: center; justify-content: center; min-height: 168px; padding: 20px; border-radius: 16px; background: var(--amber-50); }

.notif {
  width: 100%;
  max-width: 330px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px -8px rgba(69, 26, 3, 0.18);
  font-size: 14px;
}
.notif header { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.notif header img { width: 20px; border-radius: 6px; }
.notif strong { display: block; margin-top: 8px; font-size: 15px; }
.notif p { margin: 2px 0 0; color: var(--ink-2); }
.notif footer { display: flex; gap: 24px; margin-top: 10px; font-weight: 700; color: var(--amber-600); }

.fake-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--amber-600);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 22px -10px rgba(180, 83, 9, 0.6);
}
.fake-btn svg { width: 22px; height: 22px; }
.fake-btn em { font-style: normal; padding: 3px 9px; border-radius: 999px; background: var(--amber-800); font-size: 14px; }

.streak { text-align: center; }
.streak span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--amber-100); color: var(--amber-700); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.streak b { display: block; margin-top: 6px; font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.streak small { color: var(--ink-3); font-weight: 600; }

/* Own your data + pricing: two treads on the same baseline as the hero */
.own { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pstep { display: contents; }
.unit { grid-row: 1; align-self: end; display: flex; flex-direction: column; align-items: center; padding: 0 4px; }
.unit img { width: clamp(96px, 11vw, 136px); margin-bottom: -6px; filter: drop-shadow(0 10px 12px rgba(120, 53, 15, 0.18)); }
.ptread { display: flex; flex-direction: column; width: 100%; padding: 18px 20px; border-radius: 14px 14px 0 0; background: var(--bg); color: var(--fg); }
.ptread b { font-size: clamp(34px, 4vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ptread small { margin-top: 6px; font-size: 16px; font-weight: 700; }
.free .ptread { --bg: var(--amber-100); --fg: var(--amber-800); height: 132px; }
.pro .ptread { --bg: var(--amber-600); --fg: var(--ground); height: 236px; }
.pstep p { grid-row: 2; margin: 0; padding: 16px 20px 0 4px; border-top: 2px solid var(--ink); color: var(--ink-2); font-size: 16px; }

/* Questions: a type-led index, no cards */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.guides { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.guides li { border-bottom: 1px solid var(--line); }
.guides a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; padding: 22px 0; color: var(--ink); text-decoration: none; }
.guides .q { font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; transition: color 200ms var(--ease-out); }
.guides .d { grid-row: 2; margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.guides svg { grid-row: 1 / span 2; grid-column: 2; width: 26px; height: 26px; color: var(--amber-600); transition: transform 260ms var(--ease-out); }
.guides a:hover .q { color: var(--amber-700); }
.guides a:hover svg { transform: translateX(6px); }
.guides a:focus-visible { outline-offset: 6px; }

/* Close */
.close { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.close img { width: 180px; }
.close h2 { font-size: clamp(32px, 4.4vw, 56px); }
.close h2 span { color: var(--amber-600); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-block: 32px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ink-2); font-weight: 700; }

/* Legal document */
.doc { max-width: 68ch; padding-block: 40px 96px; }
.doc h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.doc h2 { margin: 48px 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.doc p { margin: 0 0 14px; color: var(--ink-2); }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; color: var(--ink-2); }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc .crumbs { margin: 0 0 20px; font-size: 14px; color: var(--ink-3); }
.doc .answer { margin: 28px 0 8px; color: var(--ink); font-size: 20px; line-height: 1.5; font-weight: 600; }
.doc table { width: 100%; margin: 4px 0 18px; border-collapse: collapse; font-size: 16px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.doc th { border-bottom: 2px solid var(--ink); font-weight: 800; }
.doc .cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; margin: 48px 0 0; padding: 24px; background: #ffffff; border: 1px solid #fbe7cf; border-radius: 24px; }
.doc .cta img { width: 96px; }
.doc .cta p { margin: 0; color: var(--ink); }
.doc .cta strong { display: block; font-size: 20px; letter-spacing: -0.02em; }
.doc .sources { font-size: 15px; }
.doc .related { margin-top: 32px; }
.doc .date { margin-top: 12px; color: var(--ink-3); font-size: 15px; }

/* Tablet */
@media (max-width: 1000px) {
  .how { grid-template-columns: 1fr; max-width: 560px; }
  .own, .faq { grid-template-columns: 1fr; }
  .price { max-width: 560px; }
}

/* Phones: treads turn into rows, 30 on top. */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 8px 48px; gap: 40px; }
  .deck { font-size: 18px; }
  .stairs { display: flex; flex-direction: column-reverse; gap: 8px; border-bottom: 0; border-left: 2px solid var(--ink); }
  .stairs li { width: 100%; }
  .step { flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
  .step img { width: 64px; margin: 0; }
  .tread { flex-direction: row; align-items: baseline; gap: 8px; width: calc((100% - 72px) * var(--p)); height: 60px; padding: 0 14px; align-items: center; border-radius: 0 12px 12px 0; transform-origin: 0 50%; }
  .tread b { font-size: 28px; }
  .tread small { margin-top: 0; }
  .s0 { --p: 0.46; } .s1 { --p: 0.58; } .s7 { --p: 0.7; } .s14 { --p: 0.84; } .s30 { --p: 1; }
  .step[aria-pressed='true'] img, .step:hover img, .step[aria-pressed='true']:hover img { transform: translateX(4px); }
  @keyframes rise { from { transform: scaleX(0.35); } }
  @keyframes land { from { transform: translateX(-12px); opacity: 0; } }
  .miss { grid-template-columns: 1fr; }
  .ground-step { align-items: flex-start; border-bottom: 0; }
  .ground-step img { width: 104px; }
  .ground-step .tread { width: 232px; height: 40px; border-radius: 12px 12px 0 0; }
  .close { grid-template-columns: 1fr; }
  .close img { width: 132px; }
}

@media (max-width: 520px) {
  .ptread { padding: 14px; }
  .free .ptread { height: 112px; }
  .pro .ptread { height: 196px; }
  .pstep p { padding-right: 12px; font-size: 15px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
