/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V5
 * Careely marketing site (careelyai.sg) · macrostructure: statement hero + Feature Stack · nav: floating pill,
 * logo free-standing · footer: statement. Every colour, font, radius and shadow is a variable from
 * assets/tokens.css — the active skin's token sheet, copied in by scripts/build.mjs. No literal colours here.
 * Light 07:00–19:00, dark otherwise (data-theme set in <head>); the toggle overrides it. */

:root {
  --gutter: 32px;
  --touch: 44px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* The one warm note: the logo's inner arc, softened. Text uses --accent-ink, which passes AA. */
  --accent: color-mix(
    in srgb,
    var(--color-caution) 38%,
    var(--color-warning-soft)
  );
  --accent-ink: color-mix(
    in srgb,
    var(--color-caution) 82%,
    var(--color-surface)
  );
  --steel: var(--color-icon-accent);
}

:root[data-theme="dark"] {
  --accent: color-mix(in srgb, var(--color-caution) 60%, var(--color-ink));
  --accent-ink: var(--accent);
}

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

html,
body {
  overflow-x: clip;
}

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

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: 1.6;
  overflow-wrap: break-word;
}

html:lang(zh-Hans) body {
  font-family:
    var(--font-body), "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  min-width: 0;
}

html:lang(zh-Hans) :is(h1, h2, h3, h4) {
  font-family: var(--font-display), "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 40;
  background: var(--color-brand-700);
  color: var(--color-surface);
  padding: 10px 14px;
  border-radius: var(--radius-control);
}

.skip:focus {
  top: 16px;
}

.placeholder {
  background: var(--color-warning-soft);
  color: var(--color-warning);
  border-radius: var(--radius-checkbox);
  padding: 0 4px;
}

.icon {
  flex: none;
}

/* ---------- header: free-standing logo + floating pill ---------- */
.brand {
  position: fixed;
  top: 14px;
  left: 24px;
  z-index: 31;
  height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 0 4px;
  border-radius: 999px;
  color: var(--color-ink);
  text-decoration: none;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.brand.scrolled {
  background: color-mix(in srgb, var(--color-surface) 84%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-surface);
}

.logo-mark {
  display: inline-flex;
}

.logo-mark.on-dark,
:root[data-theme="dark"] .logo-mark.on-light {
  display: none;
}

:root[data-theme="dark"] .logo-mark.on-dark {
  display: inline-flex;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: var(--wordmark-weight);
  font-size: 24px;
  letter-spacing: -0.01em;
}

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 7px 7px 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chrome-bg) 90%, transparent);
  backdrop-filter: blur(10px);
  color: var(--chrome-ink);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

.anchors {
  display: flex;
  gap: 18px;
  font-size: var(--text-bodySm-size);
}

.anchors a {
  color: var(--chrome-subtle);
  text-decoration: none;
}

.anchors a:hover {
  color: var(--chrome-ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  display: flex;
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn,
.theme-btn {
  min-height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--chrome-subtle);
  font: 500 13px var(--font-body);
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: var(--chrome-active);
  color: var(--chrome-ink);
}

.theme-btn {
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  padding: 0;
  font-size: 15px;
  color: var(--chrome-ink);
}

.theme-sun,
:root[data-theme="dark"] .theme-moon {
  display: none;
}

:root[data-theme="dark"] .theme-sun {
  display: inline;
}

.login {
  color: var(--chrome-ink);
  font-size: var(--text-bodySm-size);
  font-weight: 500;
  text-decoration: none;
  padding: 0 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-control);
  font: 600 15px var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s,
    background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-large {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-small {
  min-height: 36px;
  border-radius: 999px;
  font-size: 14px;
}

.btn-primary {
  background: var(--color-brand-700);
  color: var(--color-surface);
  box-shadow: var(--shadow-surface);
}

.btn-primary:hover {
  background: var(--color-brand-800);
}

.nav .btn-primary {
  background: var(--chrome-action);
  color: var(--chrome-bg);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

.btn-secondary:hover {
  background: var(--color-surface);
}

.btn-accent {
  background: var(--accent);
  color: var(--color-ink);
}

:root[data-theme="dark"] .btn-accent {
  color: var(--color-surface);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse at 50% 40%,
    var(--color-ink) 30%,
    transparent 75%
  );
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}

.glow-a {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -80px;
  background: color-mix(in srgb, var(--steel) 18%, var(--color-page));
}

.glow-b {
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -60px;
  background: color-mix(in srgb, var(--accent) 22%, var(--color-page));
  animation-duration: 28s;
}

@keyframes drift {
  to {
    transform: translate(-60px, 50px) scale(1.12);
  }
}

.hero-inner,
.inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px var(--gutter);
}

.hero-inner {
  min-height: 100vh;
  padding-top: 130px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.inner.narrow {
  max-width: 860px;
}

.hero .inner.narrow {
  padding-top: 150px;
  padding-bottom: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-bodySm-size);
  color: var(--color-muted);
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.headline {
  font-size: clamp(48px, 8.4vw, 112px);
  line-height: 1.08;
  margin: 20px 0 24px;
}

.headline span {
  display: block;
  animation: rise 0.8s var(--ease) both;
}

.headline span:nth-child(2) {
  animation-delay: 0.12s;
  color: var(--color-brand-600);
}

.headline span:nth-child(3) {
  animation-delay: 0.24s;
}

.headline b {
  font-weight: inherit;
  background: linear-gradient(
    transparent 72%,
    color-mix(in srgb, var(--accent) 45%, transparent) 72%
  );
}

:root[data-theme="dark"] .headline b {
  background: linear-gradient(transparent 86%, var(--accent) 86%);
}

html:lang(zh-Hans) .headline {
  line-height: 1.25;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 560px;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.ctas.center {
  justify-content: center;
}

.facts {
  font-size: var(--text-caption-size);
  color: var(--color-subtle);
}

.stores {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  box-shadow: inset 0 0 0 1px var(--color-line);
  font-size: var(--text-bodySm-size);
  color: var(--color-muted);
}

.soon {
  font-size: 12px;
  color: var(--color-subtle);
}

/* ---------- hero demo: a sample roadmap the visitor draws ---------- */
.demo {
  --color-icon-base: var(--feature-ink);
  background: var(--feature-bg);
  color: var(--feature-ink);
  border-radius: var(--radius-sheet);
  padding: 24px;
  box-shadow:
    0 30px 60px -20px
      color-mix(in srgb, var(--color-brand-900) 40%, transparent),
    var(--shadow-card);
  transform: perspective(1200px) rotateY(var(--ry, -4deg))
    rotateX(var(--rx, 2deg));
  transition: transform 0.3s var(--ease);
}

.demo label {
  display: block;
  font-size: var(--text-caption-size);
  color: var(--feature-subtle);
  margin-bottom: 8px;
}

.demo-field {
  display: flex;
  gap: 8px;
}

.demo input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: var(--radius-control);
  border: 1px solid var(--feature-line);
  background: var(--feature-raised);
  color: var(--feature-ink);
  padding: 0 14px;
  font: 500 16px var(--font-body);
}

.demo input:focus {
  outline: none;
  border-color: var(--accent);
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 18px;
}

.demo-chips button {
  min-height: 32px;
  border: 1px solid var(--feature-line);
  background: transparent;
  color: var(--feature-subtle);
  border-radius: var(--radius-chip);
  padding: 0 10px;
  font: 500 13px var(--font-body);
  cursor: pointer;
}

.demo-chips button:hover {
  color: var(--feature-ink);
  border-color: var(--feature-subtle);
}

.road {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
}

.road::before,
.road::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 2px;
}

.road::before {
  bottom: 6px;
  background: var(--feature-line);
}

.road::after {
  height: var(--fill, 92%);
  background: var(--accent);
  transition: height 1.6s var(--ease);
}

.road li {
  position: relative;
  padding: 8px 0 14px;
  opacity: 0.35;
  transform: translateX(-6px);
  transition:
    opacity 0.5s,
    transform 0.5s var(--ease);
}

.road li.on {
  opacity: 1;
  transform: none;
}

.road li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--feature-bg);
  border: 2px solid var(--feature-subtle);
  transition: 0.4s;
}

.road li.on::before {
  border-color: var(--accent);
  background: var(--accent);
}

.road strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
}

.road small,
.road-when {
  color: var(--feature-subtle);
  font-size: var(--text-caption-size);
}

.road-when {
  float: right;
  margin-left: 8px;
}

.demo-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--feature-subtle);
  margin-top: 6px;
  border-top: 1px solid var(--feature-line);
  padding-top: 12px;
}

/* ---------- mission ---------- */
.kicker {
  font-family: var(--font-body);
  font-size: var(--text-bodySm-size);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.mission {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
}

html:lang(zh-Hans) .mission {
  letter-spacing: 0;
  line-height: 1.6;
}

/* ---------- feature stack: sticky pillars, panes scroll past ---------- */
.stack-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px;
}

.stack-left {
  position: sticky;
  top: 110px;
  align-self: start;
}

.h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.h2.big {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.15;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.pillars li {
  position: relative;
  padding: 16px 0 16px 56px;
  border-top: 1px solid var(--color-line);
  color: var(--color-subtle);
  transition: color 0.3s;
}

.pillar-n {
  position: absolute;
  left: 0;
  top: 18px;
  font: 600 14px var(--font-display);
}

.pillars h3 {
  font-size: 22px;
  color: inherit;
}

.pillars p {
  margin-top: 4px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s var(--ease),
    opacity 0.4s;
}

.pillars li.on {
  color: var(--color-ink);
}

.pillars li.on .pillar-n {
  color: var(--accent-ink);
}

.pillars li.on p {
  max-height: 140px;
  opacity: 1;
  color: var(--color-muted);
}

.panes {
  display: flex;
  flex-direction: column;
  gap: 30vh;
  padding: 10vh 0 20vh;
}

.pane {
  min-height: 420px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sheet);
  background: var(--color-canvas);
  padding: 32px;
  opacity: 0.4;
  transform: scale(0.96);
  transition:
    opacity 0.5s,
    transform 0.6s var(--ease);
}

.pane.on {
  opacity: 1;
  transform: none;
}

.mock {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-surface);
  padding: 18px;
  font-size: 15px;
}

.mock.center {
  text-align: center;
}

.mock-body {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: var(--text-bodySm-size);
}

.mock-note {
  margin-top: 10px;
  color: var(--color-subtle);
  font-size: 12px;
  text-align: center;
}

.bubble {
  padding: 10px 14px;
  border-radius: var(--radius-card);
  margin: 8px 0;
  max-width: 85%;
  line-height: 1.45;
  background: var(--color-canvas);
}

.bubble.me {
  background: var(--color-brand-700);
  color: var(--color-surface);
  margin-left: auto;
}

.insight {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--color-line-soft);
  font-size: var(--text-bodySm-size);
}

.insight-ok {
  flex: none;
  font-size: 12px;
  color: var(--color-success);
  font-weight: 600;
}

.ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 8px auto 14px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) 60%, var(--color-line-soft) 0);
}

.ring span {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--color-surface);
  display: grid;
  place-items: center;
  font: 700 28px var(--font-display);
}

.bars {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
  font-size: var(--text-caption-size);
  color: var(--color-muted);
}

.bars i {
  display: block;
  height: 8px;
  border-radius: var(--radius-bar);
  background: var(--color-line-soft);
  margin-top: 4px;
  overflow: hidden;
}

.bars i::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-brand-600);
  transition: width 1.2s var(--ease);
}

.pane.on .bars i::after {
  width: var(--w);
}

.coach-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--color-line-soft);
}

.coach-row small {
  display: block;
  color: var(--color-subtle);
  font-size: var(--text-caption-size);
}

.initials {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--feature-bg);
  color: var(--feature-ink);
  display: grid;
  place-items: center;
  font: 600 15px var(--font-display);
}

/* ---------- sections ---------- */
.tinted {
  background: var(--color-canvas);
}

.steps,
.grid3,
.grid4,
.chips,
.coach-grid,
.commitments,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 56px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.step,
.feature,
.coach-feature {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}

.step:hover,
.feature:hover,
.coach-feature:hover {
  transform: translateY(-3px);
}

.step-number {
  font: 700 44px/1 var(--font-display);
  color: var(--color-line);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-head .step-number {
  font-size: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-brand-700);
  color: var(--color-surface);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-tile);
  background: var(--color-brand-50);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.feature-body {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 16px;
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-line);
  font-weight: 500;
  transition:
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}

.chip:hover {
  box-shadow: inset 0 0 0 1px var(--color-brand-600);
  transform: translateY(-1px);
}

.inner.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.coach-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coach-copy .h2 {
  margin-bottom: 0;
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.coach-feature {
  gap: 6px;
}

/* ---------- commitments band (chrome colours; icons re-scoped to them) ---------- */
.trust {
  --color-icon-base: var(--chrome-ink);
  --color-icon-accent: var(--accent);
  --color-icon-accent-fill: var(--chrome-raised);
  position: relative;
  overflow: hidden;
  background: var(--chrome-bg);
  color: var(--chrome-ink);
}

:root[data-theme="dark"] .trust {
  background: var(--color-surface);
}

.trust .h2 {
  max-width: 760px;
}

.commitments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 40px 0 32px;
  background: var(--chrome-line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.commitment {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  background: var(--chrome-bg);
  font: 600 19px/1.35 var(--font-display);
  transition: background 0.3s;
}

:root[data-theme="dark"] .commitment {
  background: var(--color-surface);
}

.commitment:hover,
:root[data-theme="dark"] .commitment:hover {
  background: var(--chrome-raised);
}

.trust-body {
  max-width: 720px;
  color: var(--chrome-subtle);
}

.marquee {
  margin: 0;
  padding-bottom: 72px;
  white-space: nowrap;
  font: 700 clamp(40px, 7vw, 88px) var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1px var(--chrome-line);
}

.marquee span {
  display: inline-block;
  animation: slide 40s linear infinite;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- statement end ---------- */
.end {
  text-align: center;
}

.end-title {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.15;
}

.end-title em {
  font-style: normal;
  color: var(--accent-ink);
}

/* ---------- about ---------- */
.contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0 24px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line-soft);
}

.contact-row dt {
  font-weight: 600;
  min-width: 200px;
}

.section .lead + .lead {
  margin-top: 16px;
}

/* ---------- legal ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal h1 {
  font-size: clamp(28px, 5vw, 40px);
}

.legal h2 {
  font-size: 22px;
  line-height: 1.35;
  margin-top: 16px;
  scroll-margin-top: 90px;
}

.legal h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-top: 8px;
  scroll-margin-top: 90px;
}

.legal ul,
.legal ol {
  margin: 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-canvas);
  padding: 1px 4px;
  border-radius: var(--radius-checkbox);
}

.legal blockquote {
  border-left: 3px solid var(--color-brand-300);
  padding: 4px 0 4px 14px;
  color: var(--color-muted);
}

.legal-meta {
  color: var(--color-subtle);
  font-size: var(--text-bodySm-size);
}

.draft {
  background: var(--color-caution-soft);
  color: var(--color-caution);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  font-weight: 500;
  font-size: 15px;
}

.ai-note {
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-surface);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-margin-top: 90px;
}

.ai-note h2 {
  margin-top: 0;
  font-size: 18px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
}

.legal table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-bodySm-size);
  line-height: 1.5;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-line-soft);
  min-width: 120px;
}

.legal th {
  background: var(--color-canvas);
  font-weight: 600;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: var(--text-bodySm-size);
  color: var(--color-subtle);
}

.copyright {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 0 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-subtle);
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--color-ink);
}

.footer-contact,
.disclaimer {
  flex-basis: 100%;
}

.disclaimer {
  font-size: var(--text-caption-size);
}

/* ---------- scroll reveal (motion.js adds .on; without JS everything is visible) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s,
    transform 0.7s var(--ease);
}

.js .reveal.on {
  opacity: 1;
  transform: none;
}

/* ---------- widths ---------- */
@media (max-width: 1100px) {
  .nav {
    left: auto;
    right: 20px;
    transform: none;
  }

  .anchors {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .stack-inner,
  .inner.split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    min-height: 0;
  }

  .stack-left {
    position: static;
  }

  .panes {
    gap: 24px;
    padding: 0;
  }

  .pane {
    min-height: 0;
    opacity: 1;
    transform: none;
  }

  .pillars p {
    max-height: none;
    opacity: 1;
  }

  .demo {
    transform: none;
  }

  .steps,
  .grid3,
  .grid4,
  .commitments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .login,
  .nav .btn-small {
    display: none;
  }

  .nav {
    right: 12px;
    padding: 6px;
    gap: 6px;
  }

  .brand {
    left: 10px;
  }

  .inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-inner {
    padding-top: 110px;
    gap: 32px;
  }

  .steps,
  .grid3,
  .grid4,
  .commitments,
  .coach-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ctas .btn {
    width: 100%;
  }

  .contact-row dt {
    min-width: 0;
    flex-basis: 100%;
  }
}

@media (max-width: 420px) {
  .wordmark {
    font-size: 20px;
  }

  .brand .logo-mark svg {
    width: 38px;
    height: 38px;
  }

  .lang-btn {
    padding: 0 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .pane {
    opacity: 1;
    transform: none;
  }
}
