/* 学伴阶梯 · 落地页 / 更新页。token 与 app.css 保持一致。 */

:root {
  --bg: #fff8ef;
  --bg-deep: #fdf0dd;
  --surface: #ffffff;
  --surface-2: #fff4e5;
  --ink: #2d2118;
  --ink-2: #5b4a3d;
  --muted: #8c7a6b;
  --line: #f1e3cf;
  --line-strong: #e4cfb3;
  --primary: #d9480f;
  --primary-hover: #c2410c;
  --primary-press: #9c330a;
  --primary-soft: #ffe8d6;
  --primary-ink: #b23a0a;
  --orange: #ff7a33;
  --sun: #ffc23d;
  --sun-soft: #fff2cc;
  --sun-ink: #8a5a00;
  --mint: #2fa36b;
  --mint-soft: #dcf5e7;
  --mint-ink: #1d6d46;
  --sky: #3d8bfd;
  --sky-soft: #e3eeff;
  --sky-ink: #1f5cc0;
  --grape-soft: #efe7ff;
  --grape-ink: #5f33cc;
  --berry-soft: #ffe3ec;
  --berry-ink: #b02a56;
  --pill: 999px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --page: min(1120px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  letter-spacing: -0.01em;
  line-height: 1.2;
}

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

::selection {
  background: var(--sun);
}

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

/* ---------- Buttons ---------- */

.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 90ms ease, box-shadow 90ms ease, background-color 120ms ease;
}

.ld-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 0 var(--primary-press);
}

.ld-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--primary-press);
}

.ld-btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line-strong);
  box-shadow: 0 4px 0 var(--line-strong);
}

.ld-btn-ghost:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--line-strong);
}

.ld-btn-light {
  background: #fff;
  color: var(--primary-ink);
  box-shadow: 0 4px 0 rgba(80, 25, 0, 0.35);
}

.ld-btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(80, 25, 0, 0.35);
}

.ld-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--primary-press);
}

.ld-btn-ghost:active {
  box-shadow: 0 1px 0 var(--line-strong);
}

.ld-btn-lg {
  min-height: 54px;
  padding: 12px 26px;
  border-radius: 16px;
  font-size: 17px;
}

/* ---------- Nav ---------- */

.ld-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(20px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease;
}

.ld-nav.is-scrolled {
  border-bottom-color: var(--line);
}

.ld-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.ld-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  transform: rotate(-6deg);
  box-shadow: 0 3px 0 var(--primary-press);
}

.ld-brand-mark::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--bg);
}

.ld-brand-mark-sm {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 14px;
}

.ld-brand-mark-sm::after {
  display: none;
}

.ld-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ld-nav-link {
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
}

.ld-nav-link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.ld-nav-links .ld-btn {
  margin-left: 6px;
}

/* ---------- Hero ---------- */

.ld-hero {
  width: var(--page);
  margin: 0 auto;
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.ld-hero-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.ld-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border: 2px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
}

.ld-tag::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: url("buddy.svg") center 40% / 120% no-repeat, var(--primary-soft);
}

.ld-hero h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
}

mark {
  padding: 0 0.08em;
  background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%);
  color: inherit;
}

.ld-hero-sub {
  max-width: 500px;
  color: var(--ink-2);
  font-size: 18px;
}

.ld-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.ld-hero-note {
  color: var(--muted);
  font-size: 14px;
}

.ld-hero-note a,
.ld-cta-note a {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ld-hero-note a {
  color: var(--primary-ink);
}

/* 阶梯插画：Day 1–5 逐级升高，学伴站在"今天"那一级上 */
.ld-stairs {
  --base: 60px;
  --u: 54px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: calc(var(--base) + 5 * var(--u) + 150px);
}

.ld-step.h1 { --h: 1; }
.ld-step.h2 { --h: 2; }
.ld-step.h3 { --h: 3; }
.ld-step.h4 { --h: 4; }
.ld-step.h5 { --h: 5; }

.ld-step {
  display: grid;
  align-content: start;
  gap: 2px;
  height: calc(var(--base) + var(--h) * var(--u));
  padding: 12px 10px;
  border-radius: 18px 18px 8px 8px;
  font-weight: 800;
}

.ld-step small {
  font-size: 12px;
  opacity: 0.8;
}

.ld-step span {
  font-size: 14px;
  line-height: 1.3;
}

.ld-step.is-done:nth-child(3) { background: var(--sky-soft); color: var(--sky-ink); }
.ld-step.is-done:nth-child(4) { background: var(--mint-soft); color: var(--mint-ink); }
.ld-step.is-done:nth-child(5) { background: var(--sun-soft); color: var(--sun-ink); }

.ld-step.is-done small::after {
  content: " ✓";
}

.ld-step.is-today {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 0 var(--primary-press);
}

.ld-step.is-locked {
  background: repeating-linear-gradient(-45deg, var(--surface-2) 0 8px, var(--surface) 8px 16px);
  border: 2px dashed var(--line-strong);
  color: var(--muted);
}

.ld-stairs-buddy {
  position: absolute;
  left: calc(70% - 48px);
  bottom: calc(var(--base) + 4 * var(--u) - 4px);
  width: 96px;
  height: auto;
  z-index: 2;
  animation: buddy-bob 3s ease-in-out infinite;
}

@keyframes buddy-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}

.ld-bubble {
  position: absolute;
  right: 36%;
  bottom: calc(var(--base) + 4 * var(--u) + 86px);
  z-index: 3;
  max-width: 260px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 20px 20px 6px 20px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 4px 0 var(--line);
}

.ld-bubble b {
  color: var(--primary-ink);
}

/* ---------- Sections ---------- */

.ld-section {
  width: var(--page);
  margin: 0 auto;
  padding: 64px 0;
}

.ld-section-head {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin-bottom: 32px;
}

.ld-section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
}

.ld-section-head p {
  color: var(--ink-2);
  font-size: 17px;
}

.ld-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ld-flow-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 10px;
  padding: 26px 24px 24px;
  border: 2px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 5px 0 var(--line);
}

.ld-flow-card:nth-child(2) { transform: translateY(18px); }
.ld-flow-card:nth-child(3) { transform: translateY(36px); }

.tone-sky { --tone: var(--sky); --tone-soft: var(--sky-soft); --tone-ink: var(--sky-ink); }
.tone-sun { --tone: var(--sun); --tone-soft: var(--sun-soft); --tone-ink: var(--sun-ink); }
.tone-mint { --tone: var(--mint); --tone-soft: var(--mint-soft); --tone-ink: var(--mint-ink); }

.ld-flow-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: 22px;
  font-weight: 900;
  transform: rotate(-6deg);
}

.ld-flow-card h3 {
  font-size: 21px;
  font-weight: 900;
}

.ld-flow-card > p {
  color: var(--ink-2);
  font-size: 15px;
}

.ld-mock {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 18px;
  background: var(--tone-soft);
  font-size: 13.5px;
}

.ld-mock-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  font-weight: 700;
}

.ld-mock-row em {
  flex: 0 0 auto;
  padding: 0 7px;
  border-radius: var(--pill);
  background: var(--tone-soft);
  color: var(--tone-ink);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 800;
}

.ld-mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ld-mock-chips span {
  padding: 1px 9px;
  border-radius: var(--pill);
  background: var(--grape-soft);
  color: var(--grape-ink);
  font-size: 12px;
  font-weight: 800;
}

.ld-mock-ai,
.ld-mock-me {
  width: fit-content;
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 14px;
  font-weight: 700;
}

.ld-mock-ai {
  border-bottom-left-radius: 4px;
  background: var(--surface);
}

.ld-mock-me {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--sky-soft);
}

.ld-mock-ok,
.ld-mock-pass {
  justify-self: start;
  width: fit-content;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: var(--mint-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ld-mock-outline {
  padding: 14px 16px;
  font-weight: 700;
  line-height: 1.5;
}

.ld-mock-outline .ld-indent {
  padding-left: 18px;
  color: var(--ink-2);
  font-weight: 600;
}

.ld-mock-pass {
  margin-top: 4px;
}

.ld-flow-note {
  max-width: 640px;
  margin-top: 64px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 15px;
}

/* 对比 */

.ld-compare {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.ld-compare-col {
  padding: 28px;
  border-radius: 26px;
}

.ld-compare-col h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 900;
}

.ld-compare-col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ld-compare-col li {
  position: relative;
  padding-left: 34px;
  font-size: 17px;
  font-weight: 700;
}

.ld-compare-col li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.ld-compare-col.is-plain {
  border: 2px dashed var(--line-strong);
  color: var(--muted);
}

.ld-compare-col.is-plain li::before {
  content: "—";
  background: var(--surface-2);
}

.ld-compare-col.is-ours {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 0 var(--primary-press);
  transform: rotate(-1deg);
}

.ld-compare-col.is-ours li::before {
  content: "✓";
  background: #fff;
  color: var(--primary);
}

/* 适合学什么 */

.ld-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ld-topics span {
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  font-size: 15px;
  font-weight: 800;
  transition: transform 140ms ease;
}

.ld-topics span:nth-child(5n + 1) { background: var(--sky-soft); border-color: transparent; color: var(--sky-ink); }
.ld-topics span:nth-child(5n + 2) { background: var(--sun-soft); border-color: transparent; color: var(--sun-ink); }
.ld-topics span:nth-child(5n + 3) { background: var(--mint-soft); border-color: transparent; color: var(--mint-ink); }
.ld-topics span:nth-child(5n + 4) { background: var(--grape-soft); border-color: transparent; color: var(--grape-ink); }
.ld-topics span:nth-child(5n + 5) { background: var(--berry-soft); border-color: transparent; color: var(--berry-ink); }

.ld-topics span:hover {
  transform: rotate(-3deg) scale(1.04);
}

.ld-topics-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */

.ld-faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.ld-faq details {
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 140ms ease;
}

.ld-faq details[open] {
  border-color: var(--line-strong);
}

.ld-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.ld-faq summary::-webkit-details-marker {
  display: none;
}

.ld-faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--primary-ink);
  font-size: 20px;
  font-weight: 800;
  transition: transform 160ms ease;
}

.ld-faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--primary-soft);
}

.ld-faq details p {
  padding: 0 20px 18px;
  color: var(--ink-2);
}

/* CTA */

.ld-cta {
  width: var(--page);
  margin: 40px auto 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 36px 40px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 194, 61, 0.55) 0 120px, transparent 121px),
    var(--primary);
  color: #fff;
  box-shadow: 0 6px 0 var(--primary-press);
  overflow: hidden;
}

.ld-cta-buddy {
  width: 110px;
  height: auto;
  animation: buddy-bob 3s ease-in-out infinite;
}

.ld-cta h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
}

.ld-cta-note {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

/* Footer */

.ld-footer {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 24px 0 40px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.ld-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ld-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-weight: 700;
}

.ld-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 更新页 ---------- */

.ld-updates-page .ld-section {
  max-width: 820px;
  padding-top: 48px;
}

.ld-update-page-head {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}

.ld-update-page-head h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 900;
}

.ld-update-page-head p {
  color: var(--ink-2);
  font-size: 17px;
}

.ld-update-list {
  position: relative;
  display: grid;
  gap: 18px;
}

.ld-update-list::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 59px;
  width: 4px;
  border-radius: 4px;
  background: var(--line);
}

.ld-update-entry {
  position: relative;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.ld-update-date {
  position: relative;
  z-index: 1;
  justify-self: center;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--sun);
  color: #2d2118;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.ld-update-entry:first-child .ld-update-date {
  background: var(--orange);
  color: #fff;
}

.ld-update-body {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.ld-update-body h2 {
  font-size: 19px;
  font-weight: 900;
}

.ld-update-body p {
  color: var(--ink-2);
}

.ld-update-body ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-2);
  font-size: 15px;
}

.ld-update-body li::marker {
  color: var(--primary);
}

/* ---------- Pricing page ---------- */

.ld-pricing-page .ld-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

.ld-pricing-hero {
  width: var(--page);
  margin: 0 auto;
  padding: 48px 0 28px;
  display: grid;
  gap: 16px;
  justify-items: start;
}

.ld-pricing-hero h1 {
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 900;
}

.ld-pricing-hero-sub {
  max-width: 680px;
  color: var(--ink-2);
  font-size: 18px;
}

.ld-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 2px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--line);
}

.ld-billing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.ld-billing-btn:hover {
  color: var(--ink);
}

.ld-billing-btn.is-active {
  background: var(--primary);
  color: #fff;
}

.ld-billing-save {
  padding: 2px 8px;
  border-radius: var(--pill);
  background: var(--sun);
  color: #2d2118;
  font-size: 11.5px;
  font-weight: 900;
}

.ld-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.ld-plan-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 16px;
  padding: 30px 28px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 6px 0 var(--line);
}

.ld-plan-card.is-featured {
  border-color: var(--primary);
  box-shadow: 0 7px 0 var(--primary-soft), 0 0 0 2px color-mix(in srgb, var(--primary) 16%, transparent);
}

.ld-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ld-plan-head h2 {
  font-size: 24px;
  font-weight: 900;
}

.ld-plan-badge {
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 12.5px;
  font-weight: 900;
}

.ld-plan-desc {
  color: var(--ink-2);
  font-size: 15.5px;
}

.ld-plan-price {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-2);
}

.ld-plan-card.is-featured .ld-plan-price {
  background: var(--sun-soft);
}

.ld-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ld-price-amount {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
}

.ld-price-unit {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 800;
}

.ld-price-note {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
}

.ld-price-sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ld-pricing-page .price-annual {
  display: none;
}

.ld-pricing-page.is-annual .price-monthly {
  display: none;
}

.ld-pricing-page.is-annual .price-annual {
  display: grid;
}

.ld-pricing-page.is-annual .ld-price-line.price-annual {
  display: flex;
}

.ld-plan-features {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ld-plan-features li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.ld-plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--mint-soft);
  color: var(--mint-ink);
  font-size: 12px;
  font-weight: 900;
}

.ld-plan-cta {
  display: grid;
  gap: 8px;
}

.ld-plan-cta-hint {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.ld-pricing-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 5px 0 var(--line);
}

.ld-pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.ld-pricing-table th,
.ld-pricing-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.ld-pricing-table thead th {
  background: var(--surface-2);
  font-size: 15px;
  font-weight: 900;
}

.ld-pricing-table tbody tr:last-child th,
.ld-pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.ld-pricing-table tbody th {
  color: var(--ink);
  font-weight: 800;
}

.ld-pricing-table td {
  color: var(--ink-2);
  font-weight: 600;
}

.ld-pricing-table td:last-child {
  color: var(--ink);
  font-weight: 700;
}

.ld-pricing-table a {
  color: var(--primary-ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Legal / Compliance pages ---------- */

.ld-legal-page .ld-section {
  max-width: 860px;
  padding-top: 44px;
  padding-bottom: 72px;
}

.ld-legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ld-legal-tab {
  padding: 7px 14px;
  border: 2px solid var(--line);
  border-radius: var(--pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
}

.ld-legal-tab:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

.ld-legal-tab.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.ld-legal-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.ld-legal-head h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 900;
}

.ld-legal-meta {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
}

.ld-legal-card {
  display: grid;
  gap: 24px;
  padding: 32px;
  border: 2px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 5px 0 var(--line);
}

.ld-legal-section {
  display: grid;
  gap: 10px;
}

.ld-legal-section h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

.ld-legal-section h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 4px;
}

.ld-legal-section p,
.ld-legal-section li {
  color: var(--ink-2);
  font-size: 15.5px;
}

.ld-legal-section ul,
.ld-legal-section ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.35em;
}

.ld-legal-section li::marker {
  color: var(--primary);
  font-weight: 800;
}

.ld-legal-section a {
  color: var(--primary-ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ld-legal-callout {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 2px solid var(--mint-soft);
  border-radius: 16px;
  background: var(--mint-soft);
  color: var(--mint-ink);
}

.ld-legal-callout strong {
  font-size: 16px;
  font-weight: 900;
}

.ld-legal-callout p {
  color: var(--mint-ink);
  font-size: 15px;
  font-weight: 600;
}

.ld-legal-table-wrap {
  overflow-x: auto;
  border: 1.5px solid var(--line);
  border-radius: 14px;
}

.ld-legal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.ld-legal-table th,
.ld-legal-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.ld-legal-table th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 800;
}

.ld-legal-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .ld-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
    gap: 24px;
  }

  .ld-stairs {
    --base: 44px;
    --u: 40px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .ld-flow {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }

  .ld-flow-card:nth-child(n) {
    transform: none;
  }

  .ld-flow-note {
    margin-top: 24px;
  }

  .ld-compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .ld-cta {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    padding: 28px;
  }

  .ld-cta-buddy {
    width: 80px;
  }
}

@media (max-width: 720px) {
  .ld-nav-link {
    display: none;
  }

  .ld-nav-link-pricing {
    display: inline-flex;
    padding: 6px 10px;
    font-size: 14px;
  }

  .ld-nav {
    padding: 12px 16px;
  }

  .ld-pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ld-plan-card,
  .ld-legal-card {
    padding: 22px 18px;
  }

  .ld-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .ld-footer-links {
    gap: 10px 16px;
  }

  .ld-hero,
  .ld-pricing-hero,
  .ld-section,
  .ld-cta,
  .ld-footer {
    width: calc(100% - 32px);
  }

  .ld-section {
    padding: 44px 0;
  }

  .ld-hero-sub {
    font-size: 16px;
  }

  .ld-hero-actions {
    width: 100%;
  }

  .ld-hero-actions .ld-btn {
    flex: 1 1 100%;
  }

  .ld-stairs {
    --base: 40px;
    --u: 30px;
    gap: 5px;
  }

  .ld-step {
    padding: 8px 6px;
    border-radius: 12px 12px 6px 6px;
  }

  .ld-step span {
    font-size: 11.5px;
  }

  .ld-step small {
    font-size: 10.5px;
  }

  .ld-stairs-buddy {
    width: 70px;
    left: calc(70% - 35px);
  }

  .ld-bubble {
    right: 30%;
    bottom: calc(var(--base) + 4 * var(--u) + 64px);
    max-width: 220px;
    font-size: 13px;
  }

  .ld-compare-col {
    padding: 22px;
  }

  .ld-compare-col.is-ours {
    transform: none;
  }

  .ld-update-list::before {
    display: none;
  }

  .ld-update-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ld-update-date {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .ld-nav-link-pricing {
    display: none;
  }

  .ld-billing-toggle {
    width: 100%;
  }

  .ld-billing-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 9px 10px;
    font-size: 13.5px;
  }
}
