/* Cloud Kitchen Roadmap: matches the Instagram carousel (warm dotted paper, near-black, orange-red). */
:root {
  --bg: #F4F1EC;
  --dot: #D9D3C8;
  --ink: #121826;
  --ink-2: #4B5160;
  --ink-3: #8A8F9A;
  --card: #FFFFFF;
  --line: #E6E0D6;
  --accent: #D9480F;
  --accent-soft: #FCE6DA;
  --green: #1F8A5B;
  --green-soft: #DDF1E6;
  --navy: #142640;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 24, 38, 0.04), 0 6px 18px rgba(18, 24, 38, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  line-height: 1.5;
  min-height: 100vh;
}
b, strong { font-weight: 700; }
a { color: inherit; }
.accent { color: var(--accent); }

/* Top bar (same as the calculator) */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 640px; margin: 0 auto; padding: 14px 16px;
}
.brand { font-weight: 800; text-decoration: none; letter-spacing: -0.3px; font-size: 1rem; }
.brand span { color: var(--accent); }
.ig { font-size: 0.85rem; color: var(--ink-2); text-decoration: none; font-weight: 500; }

.wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px calc(48px + env(safe-area-inset-bottom)); }

/* Hero */
.hero { padding: 16px 0 8px; }
.eyebrow { font-weight: 700; font-size: 0.95rem; color: var(--ink-2); }
h1 {
  font-family: 'Anton', 'Impact', sans-serif; font-weight: 400;
  text-transform: uppercase; line-height: 0.95; letter-spacing: 0.3px;
  font-size: clamp(3rem, 15vw, 5.2rem);
  margin: 8px 0 14px;
}
.lede { font-size: 1.05rem; color: var(--ink-2); max-width: 34em; }

.author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.author img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent); flex: none; background: var(--ink); }
.author strong { display: block; font-size: 0.95rem; }
.author span { display: block; font-size: 0.82rem; color: var(--ink-3); line-height: 1.35; }

/* Why */
.why {
  margin-top: 28px; padding: 22px 20px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.why h2 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.5px; font-weight: 800; }
.chain {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0;
}
.chain li {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px; background: var(--bg);
  font-weight: 700; font-size: 0.9rem;
}
.chain span {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem;
  background: var(--ink); color: #fff;
}
.why p { color: var(--ink-2); font-size: 0.95rem; }
.why p b { color: var(--ink); }

/* Sticky progress */
.progress {
  position: sticky; top: 0; z-index: 5;
  margin: 24px -16px 12px; padding: 12px 16px 10px;
  background: rgba(244, 241, 236, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.p-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.p-row strong { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--accent); }
.p-row span { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
.p-bar { height: 8px; border-radius: 99px; background: var(--line); margin-top: 8px; overflow: hidden; }
.p-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 0.35s ease; }
.p-msg { font-size: 0.82rem; color: var(--ink-2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Phases */
.phases { display: grid; gap: 12px; }
.phase {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; scroll-margin-top: 96px;
  border: 2px solid transparent;
}
.phase.hl { border-color: var(--accent); }
.phase.launch { background: var(--navy); color: #fff; }

.phase-head {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 16px 16px 12px;
  -webkit-tap-highlight-color: transparent;
}
.phase-head:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius); }
.num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
  background: var(--accent-soft); color: var(--accent);
  transition: background 0.2s, color 0.2s;
}
.phase.complete .num { background: var(--green); color: #fff; }
.launch .num { background: var(--accent); color: #fff; }
.ph-text { flex: 1; min-width: 0; }
.ph-title { display: block; font-weight: 800; font-size: 1.08rem; letter-spacing: -0.3px; line-height: 1.25; }
.ph-sub { display: block; font-size: 0.85rem; color: var(--ink-3); margin-top: 3px; line-height: 1.35; }
.launch .ph-sub { color: rgba(255, 255, 255, 0.65); }
.tag {
  display: inline-block; vertical-align: 2px; margin-left: 4px;
  padding: 1px 8px; border-radius: 99px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2px;
  background: var(--accent); color: #fff;
}
.ph-meta { flex: none; display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.ph-count { font-size: 0.8rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.launch .ph-count { color: rgba(255, 255, 255, 0.7); }
.phase.complete .ph-count { color: var(--green); }
.launch.complete .ph-count { color: #6EE7A8; }
.chev {
  width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s; opacity: 0.6;
}
.phase.open .chev { transform: rotate(-135deg) translate(-2px, -2px); }

.ph-bar { height: 3px; margin: 0 16px; background: var(--line); border-radius: 99px; overflow: hidden; }
.launch .ph-bar { background: rgba(255, 255, 255, 0.15); }
.ph-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width 0.35s ease; }
.phase:not(.open) .ph-bar { margin-bottom: 14px; }

/* Steps */
.steps { list-style: none; padding: 6px 8px 10px; }
.step { padding: 4px 0; }
.step + .step { border-top: 1px solid var(--line); }
.launch .step + .step { border-top-color: rgba(255, 255, 255, 0.12); }
.check {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 10px 8px; border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box {
  flex: none; width: 26px; height: 26px; margin-top: -1px; border-radius: 8px;
  border: 2px solid #C9C2B6; background: #fff;
  display: grid; place-items: center; transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.box::after {
  content: ''; width: 7px; height: 12px; margin-top: -3px;
  border-right: 3px solid #fff; border-bottom: 3px solid #fff;
  transform: rotate(45deg) scale(0); transition: transform 0.15s;
}
.check input:checked + .box { background: var(--green); border-color: var(--green); transform: scale(1.05); }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 2px; }
.launch .box { border-color: rgba(255, 255, 255, 0.4); background: transparent; }
.s-title { font-weight: 700; font-size: 0.98rem; line-height: 1.35; padding-top: 1px; }
.step.done .s-title { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.launch .step.done .s-title { color: rgba(255, 255, 255, 0.55); }

.s-body { padding: 0 8px 10px 46px; }
.s-body p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
.s-body p + p { margin-top: 6px; }
.s-body b { color: var(--ink); }
.launch .s-body p { color: rgba(255, 255, 255, 0.75); }
.launch .s-body b { color: #fff; }
.step.done .s-body { opacity: 0.55; }
.s-link {
  display: inline-block; margin-top: 8px; font-size: 0.86rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
}
.s-link:hover { text-decoration: underline; }

/* Actions: download, share, book a call */
.actions { margin-top: 20px; padding: 18px 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn {
  font: inherit; font-weight: 700; font-size: 0.92rem; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid transparent;
  -webkit-tap-highlight-color: transparent; transition: transform 0.12s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.7; cursor: default; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.full { width: 100%; }
.btn.dark { background: var(--ink); color: #fff; font-size: 1rem; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.dl-note { text-align: center; font-size: 0.8rem; color: var(--ink-3); margin: 8px 0 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.linkbtn {
  display: block; margin: 14px auto 0; background: none; border: 0; font: inherit; font-size: 0.82rem;
  color: var(--ink-3); text-decoration: underline; cursor: pointer;
}
.linkbtn[hidden] { display: none; }

/* More tools */
.more { margin-top: 36px; display: grid; gap: 10px; }
.more h2 { font-size: 0.78rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); margin: 0 4px 2px; }
.card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow); text-decoration: none;
  transition: transform 0.15s;
}
.card:active { transform: scale(0.99); }
.card .icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--bg); }
.c-body { flex: 1; min-width: 0; }
.c-body strong { display: block; font-size: 0.98rem; }
.c-body span { display: block; font-size: 0.84rem; color: var(--ink-3); line-height: 1.35; }
.card .arrow { color: var(--ink-3); font-size: 1.15rem; }

footer { margin-top: 32px; text-align: center; font-size: 0.88rem; color: var(--ink-2); }
footer a { font-weight: 700; color: var(--accent); text-decoration: none; }
footer .fine { display: block; margin-top: 8px; font-size: 0.76rem; color: var(--ink-3); }

@media (min-width: 640px) {
  .why { padding: 28px; }
  .chain { grid-template-columns: repeat(4, 1fr); }
  .phase-head { padding: 20px 20px 14px; }
  .ph-bar { margin: 0 20px; }
  .steps { padding: 6px 12px 12px; }
}

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