/* Layout: one reading column; the engagement path is a vertical ladder of steps with a rail,
   followed by an hourly table, payment methods and policies. Brand: Metatron buildout palette. */
:root {
  --navy: #1E3660;        /* Civic Navy: headings, primary */
  --green: #2A9866;       /* Impact Green: highlight only */
  --green-ink: #1F7A51;   /* green dark enough for small text on light */
  --slate: #536468;       /* Community Slate: secondary text */
  --sand: #D4956A;        /* Warm Sand: decorative only */
  --bg: #F7F9FA;
  --surface: #FFFFFF;
  --surface-2: #ECF0F3;   /* Accessible Off-White */
  --line: #D5DDE3;
  --fg: #1E3660;
  --fg-2: #536468;
  --on-accent: #FFFFFF;
  --accent: #1E3660;
  --display: "Lora", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A2E; --surface: #15233D; --surface-2: #1B2C4B; --line: #2B3F62;
    --fg: #E8EEF5; --fg-2: #A9B7C6; --navy: #DCE6F2; --green-ink: #5CC497;
    --accent: #5CC497; --on-accent: #0F1A2E; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A2E; --surface: #15233D; --surface-2: #1B2C4B; --line: #2B3F62;
  --fg: #E8EEF5; --fg-2: #A9B7C6; --navy: #DCE6F2; --green-ink: #5CC497;
  --accent: #5CC497; --on-accent: #0F1A2E; color-scheme: dark;
}

body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 760px; margin: 0 auto; padding-block: 48px 72px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); text-wrap: balance; margin: 0; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 600; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
.eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--fg-2); }
.muted { color: var(--fg-2); }
.num { font-variant-numeric: tabular-nums; }
section { display: grid; gap: 20px; margin-top: 56px; }

/* header */
header { display: grid; gap: 16px; }
.mark { display: flex; align-items: center; gap: 12px; }
.mono { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--sand); display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.lede { font-size: 1.1rem; color: var(--fg-2); max-width: 60ch; }
.rule { height: 3px; width: 64px; background: var(--sand); border-radius: 2px; }

/* ladder */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--surface-2); color: var(--navy); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.step.free .dot { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 12px; min-width: 0; }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.price { font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-family: var(--body); font-size: .85rem; font-weight: 500; color: var(--fg-2); }
.meta { font-size: .9rem; color: var(--fg-2); }
.card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.card li::marker { color: var(--sand); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tier { background: var(--surface-2); border-radius: 8px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.tier .price { font-size: 1.15rem; }
.credit { font-size: .9rem; color: var(--green-ink); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: .95rem;
  text-decoration: none; background: var(--accent); color: var(--on-accent); border: 1px solid transparent; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.btn:hover { filter: brightness(1.08); }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); font-weight: 600; background: var(--surface-2); }
td.r, th.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* pay + policies */
.pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pay .card { gap: 8px; }
.policies { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; margin: 0; }
.policies div { display: grid; gap: 2px; min-width: 0; }
.policies dt { font-weight: 600; color: var(--navy); }
.policies dd { margin: 0; color: var(--fg-2); font-size: .95rem; }

.contact { background: var(--surface-2); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addr { font-weight: 600; color: var(--navy); user-select: all; word-break: break-all; }
button.copy { font: inherit; font-size: .85rem; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer; }
button.copy:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
footer { margin-top: 48px; font-size: .85rem; color: var(--fg-2); display: grid; gap: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* mobile polish: 44px minimum tap targets */
.btn { min-height: 44px; }
button.copy { min-height: 44px; }
