/* Landing page. Shares colour tokens, buttons and the wordmark with style.css. */

.landing { font-size: 16px; }
.landing a { color: var(--leash); text-underline-offset: 3px; }
.landing a.btn { text-decoration: none; display: inline-block; }
.landing a.btn-primary { color: #fff; }
.btn-big { font-size: 1rem; padding: 0.7rem 1.15rem; }

.nav {
  max-width: 1200px; margin: 0 auto; padding: 18px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.nav .wordmark { font-size: 1.5rem; color: var(--ink); }
.nav-links { display: flex; gap: 20px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 40px 16px 72px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.05;
  max-width: 19ch;
}
.lede { font-size: 1.12rem; color: #2c3743; margin-top: 20px; max-width: 58ch; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

/* The request path: the page's one visual flourish. */
.flow { margin: 0; display: grid; gap: 0; justify-items: stretch; }
.node {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 14px 16px; display: grid; gap: 2px;
}
.node-title { font-weight: 700; font-size: 1.05rem; }
.node-sub { color: var(--muted); font-size: 0.9rem; }
.node code { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.node-leash {
  border: 2px solid var(--leash);
  background: #fff;
  box-shadow: 0 0 0 6px var(--leash-soft);
  padding: 18px 20px;
}
.node-leash .node-title { color: var(--leash); font-size: 1.25rem; }
.node-leash .node-sub::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--safe); margin-right: 7px; vertical-align: 1px;
}
.checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.checks li {
  font-size: 0.92rem; padding-left: 22px; position: relative;
}
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 10px; height: 6px; border-left: 2px solid var(--safe); border-bottom: 2px solid var(--safe);
  transform: rotate(-45deg);
}
.node-provider { opacity: 0.9; }
.arrow { height: 34px; position: relative; }
.arrow::before {
  content: ""; position: absolute; left: 50%; top: 4px; bottom: 9px; width: 2px; background: var(--muted);
  transform: translateX(-50%);
}
.arrow::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--muted);
  transform: translateX(-50%);
}

/* ---------- Sections ---------- */
.band { padding: 72px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.band-quiet { background: var(--paper); }
.band-inner { max-width: 1040px; margin: 0 auto; }
.band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.015em; max-width: 26ch; }
.section-lede { color: var(--muted); margin-top: 12px; max-width: 64ch; font-size: 1.05rem; }
.band p + p { margin-top: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split p { max-width: 58ch; line-height: 1.6; margin-top: 14px; }

.gaps {
  margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px;
}
.gaps div { border-top: 2px solid var(--danger); padding-top: 12px; }
.gaps dt { font-weight: 600; font-size: 1.05rem; }
.gaps dd { margin: 4px 0 0; color: #3a4552; }

.pipeline {
  margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step;
  display: grid; gap: 0; max-width: 760px;
}
.pipeline li {
  counter-increment: step;
  position: relative; padding: 0 0 22px 52px; line-height: 1.55;
}
.pipeline li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--leash); background: var(--paper); color: var(--leash); font-weight: 700;
}
.pipeline li::after {
  content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line);
}
.pipeline li:last-child::after { display: none; }
.pipeline li:last-child::before { background: var(--leash); color: #fff; }
.pipeline strong { display: block; font-weight: 600; }

.mini-chain { list-style: none; margin: 8px 0 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 10px; }
.mini-chain::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.mini-chain li {
  position: relative; border: 1px solid #a9d3bd; background: #fff; border-radius: 6px; padding: 10px 12px;
  display: grid; gap: 2px;
}
.mini-chain li::before {
  content: ""; position: absolute; left: -23px; top: 13px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--safe); border: 2px solid var(--safe);
}
.mini-chain .mc-broken { border-color: var(--danger); background: var(--danger-soft); }
.mini-chain .mc-broken::before { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.mini-chain .mc-after { opacity: 0.55; border-color: var(--line); }
.mini-chain .mc-after::before { background: var(--paper); border: 2px dashed var(--muted); }
.mc-event { font-weight: 600; }
.mc-broken .mc-event { color: var(--danger); }
.mc-hash { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

.vault { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.vault li {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px 16px;
  display: grid; gap: 2px; position: relative; margin-bottom: 26px;
}
.vault li:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -21px; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--muted);
}
.vault li:not(:last-child)::before {
  content: ""; position: absolute; left: 50%; bottom: -21px; width: 2px; height: 14px; background: var(--muted);
  transform: translate(-50%, -6px);
}
.vault-label { font-weight: 600; }
.vault-sub { color: var(--muted); font-size: 0.9rem; }
.vault code { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.vault li:first-child code { color: var(--ink); }
.vault .vault-db { border: 2px solid var(--leash); box-shadow: 0 0 0 5px var(--leash-soft); margin-bottom: 0; }

.code {
  margin: 8px 0 0; background: var(--ink); color: #e8ece9; border-radius: 8px;
  padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 0.85rem; line-height: 1.6;
}

.cta {
  padding: 80px 16px; text-align: center; border-top: 1px solid var(--line); background: var(--surface);
  display: grid; justify-items: center; gap: 14px;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.015em; }
.cta p { color: var(--muted); max-width: 56ch; }
.cta .btn { margin-top: 8px; }
.cta .hero-actions { justify-content: center; margin-top: 4px; }

/* ---------- Why we built Leash: the $100 agent ---------- */
.origin { border-top: 0; background: var(--ink); color: #e8ece9; }
.origin .band-inner { max-width: 1040px; }
.origin-label { font-size: 0.85rem; font-weight: 600; color: #9fc3e6; letter-spacing: 0.02em; }
.origin h2 { color: #fff; max-width: 30ch; margin-top: 8px; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.origin-story { margin-top: 16px; max-width: 66ch; font-size: 1.1rem; line-height: 1.6; color: #cfd8d2; }
.fixes { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fixes li { background: #222d3a; border: 1px solid #34414f; border-radius: 10px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.fix-problem { color: #f1a49b; font-size: 0.92rem; }
.fixes strong { color: #fff; font-size: 1.08rem; }
.fixes p { color: #cfd8d2; line-height: 1.55; font-size: 0.95rem; }
.origin-cta { margin-top: 28px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.origin-cta span { color: #b8c4bd; max-width: 60ch; font-size: 0.95rem; }
.landing .origin a.btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.landing .origin a.btn-primary:hover { background: #dfe7f3; border-color: #dfe7f3; }

/* ---------- Maya's weekend: the same story twice ---------- */
.weekend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.weekend-col { border-radius: 10px; padding: 20px; border: 1px solid var(--line); background: #fff; }
.weekend-col h3 { font-size: 1.1rem; }
.weekend-col.without { border-top: 4px solid var(--danger); }
.weekend-col.with { border-top: 4px solid var(--safe); }
.weekend-setup { color: var(--muted); margin-top: 4px; }
.beats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.beats li { padding-left: 14px; border-left: 3px solid var(--line); line-height: 1.5; }
.beats li.bad { border-left-color: var(--danger); }
.beats li.good { border-left-color: var(--safe); }
.beat-time {
  display: inline-block; font-family: var(--mono); font-size: 0.75rem; color: var(--leash);
  background: var(--leash-soft); border-radius: 4px; padding: 1px 6px; margin-right: 8px;
}
.weekend-cta { margin-top: 24px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.weekend-cta span { color: var(--muted); font-size: 0.92rem; }

/* ---------- The prepaid-card comparison ---------- */
.compare { margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.compare div { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px 16px; }
.compare dt { font-weight: 700; margin-bottom: 6px; }
.compare dd { margin: 0; padding: 4px 0 4px 18px; position: relative; font-size: 0.92rem; color: #3a4552; }
.compare dd::before {
  content: ""; position: absolute; left: 2px; top: 0.75em; width: 8px; height: 2px; background: var(--danger);
}
.compare .compare-leash { border: 2px solid var(--leash); box-shadow: 0 0 0 5px var(--leash-soft); }
.compare .compare-leash dt { color: var(--leash); }
.compare .compare-leash dd::before {
  width: 9px; height: 5px; top: 0.6em; background: none;
  border-left: 2px solid var(--safe); border-bottom: 2px solid var(--safe); transform: rotate(-45deg);
}

/* ---------- Three steps ---------- */
.three {
  list-style: none; margin: 28px 0 0; padding: 0; counter-reset: three;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.three li { counter-increment: three; border-top: 2px solid var(--leash); padding-top: 14px; }
.three li::before {
  content: counter(three); display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--leash); color: #fff; font-weight: 700;
  margin-bottom: 8px;
}
.three strong { display: block; font-size: 1.05rem; }
.three p { color: #3a4552; margin-top: 6px; line-height: 1.55; }
.code-wide { margin-top: 28px; max-width: 760px; }

/* ---------- Who it's for ---------- */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.who article { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: #fff; }
.who h3 { font-size: 1.02rem; }
.who p { color: #3a4552; margin-top: 8px; line-height: 1.55; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 20px; display: grid; gap: 10px; }
.plan h3 { font-size: 1.2rem; }
.plan-status { font-size: 0.85rem; color: var(--muted); }
.plan-now { border: 2px solid var(--leash); box-shadow: 0 0 0 5px var(--leash-soft); }
.plan-now .plan-status { color: var(--safe); font-weight: 600; }
.plan ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; color: #3a4552; font-size: 0.94rem; }
.plan .btn { justify-self: start; margin-top: 4px; }

/* ---------- Tabs ---------- */
.landing-tabs {
  background: var(--surface);
  padding-left: max(16px, calc((100% - 1040px) / 2));
  padding-right: max(16px, calc((100% - 1040px) / 2));
  border-top: 1px solid var(--line);
}
.landing .tab-panel { padding-top: 0; }
.landing .tab-panel > .band:first-child { border-top: 0; }
.tab-step-wrap { width: min(1040px, 100% - 32px); margin: 0 auto; padding: 4px 0 48px; }
.tab-step-wrap .tab-step { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .weekend, .three, .who, .plans, .fixes { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .gaps { grid-template-columns: 1fr; }
  .band { padding: 56px 16px; }
}
@media (max-width: 520px) {
  .nav-links a:not(.btn):not(.nav-keep) { display: none; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
}

.fine { color: var(--muted); font-size: 0.92rem; }
