/* PayMyTeacher — design system
   Palette: cream paper, chalkboard green, marigold accent. Display serif + Inter. */

:root {
  --cream: #faf6ee;
  --cream-2: #f3ecdf;
  --paper: #ffffff;
  --ink: #1c1a17;
  --ink-2: #4a4640;
  --muted: #7a746b;
  --line: #e7e1d5;
  --line-2: #d9d2c3;
  --green: #1f5f4a;
  --green-2: #174a3a;
  --green-soft: #e6f0ec;
  --gold: #e0a52b;
  --gold-2: #c98f17;
  --gold-soft: #fbf1d9;
  --red: #b3372d;
  --red-soft: #fbe7e4;
  --blue: #2b5c8a;
  --blue-soft: #e3edf7;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 10px 30px rgba(28, 26, 23, .07);
  --shadow-sm: 0 1px 2px rgba(28, 26, 23, .08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2.5rem; }
.flex { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: .75rem; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.w-100 { width: 100%; }

/* ---- layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container-mid { max-width: 880px; }
.container-narrow { max-width: 640px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-green { background: var(--green); color: #fff; }
.section-green h2, .section-green h3, .section-green p { color: #fff; }
.section-title { text-align: center; margin-bottom: .35em; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .75rem; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 600px; }
.page-head { padding: 40px 0 24px; }
.page-head h1 { margin-bottom: .25em; }
.page-head p { color: var(--muted); max-width: 640px; margin-bottom: 0; }
.page-title { margin-bottom: 1.25rem; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr); gap: 28px; align-items: start; }
.sticky { position: sticky; top: 84px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } .sticky { position: static; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 40px 0; } }

/* ---- header / nav --------------------------------------------------------- */
.demo-bar { background: var(--gold-soft); color: #6b4d05; border-bottom: 1px solid #efd9a0; font-size: .85rem; text-align: center; padding: 8px 16px; }
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(150%) blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; }
.logo-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.logo-text span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-links > a:hover { background: var(--cream-2); text-decoration: none; color: var(--ink); }
.nav-links > a.is-active { color: var(--green); font-weight: 600; }
.nav-links > a.btn { color: #fff; margin-left: 6px; }
.nav-form { margin: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 42px; height: 40px; padding: 8px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle-bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 16px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links > a, .nav-links .nav-form { padding: 10px 12px; }
  .nav-links > a.btn { margin: 6px 0 0; text-align: center; }
}

/* ---- buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: .95rem; line-height: 1.2; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-family: var(--font-body); transition: background .15s, color .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-secondary { background: var(--gold); color: var(--ink); }
.btn-secondary:hover { background: var(--gold-2); color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { background: var(--paper); border-color: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--cream-2); color: var(--ink); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: #f5d3ce; }
.btn-sm { padding: 7px 14px; font-size: .875rem; border-radius: 8px; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--green); font: inherit; cursor: pointer; text-decoration: underline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions-end { justify-content: flex-end; }

/* ---- cards / surfaces ----------------------------------------------------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; font-size: 1.15rem; }
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--cream); border-radius: 0 0 var(--radius) var(--radius); }
.card-soft { background: var(--cream-2); border-color: transparent; box-shadow: none; }
.card-green { background: var(--green-soft); border-color: #cfe1d9; box-shadow: none; }
.card-gold { background: var(--gold-soft); border-color: #efd9a0; box-shadow: none; }
@media (max-width: 600px) { .card-pad, .card-body, .card-header { padding: 18px; } }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--blue-soft); color: #1e3f5f; border: 1px solid #c9dbee; font-size: .95rem; }
.notice-warn { background: var(--gold-soft); color: #6b4d05; border-color: #efd9a0; }
.notice-success { background: var(--green-soft); color: var(--green-2); border-color: #cfe1d9; }
.notice-danger { background: var(--red-soft); color: var(--red); border-color: #f2c4bd; }
.empty { text-align: center; padding: 40px 24px; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* ---- stats ---------------------------------------------------------------- */
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--ink); }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.stat-green .stat-value { color: var(--green); }

/* ---- forms ---------------------------------------------------------------- */
.form-field { margin-bottom: 18px; }
.form-field label, .form-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form-field .help, .help { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.error-text { color: var(--red); font-size: .85rem; margin-top: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 95, 74, .18); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4640' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
input[type="file"] { font-size: .9rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.input-group { display: flex; align-items: stretch; }
.input-group .prefix, .input-group .suffix { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); background: var(--cream-2); color: var(--ink-2); font-weight: 600; }
.input-group .prefix { border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .suffix { border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group input { border-radius: 0; }
.input-group .prefix + input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group input:has(+ .suffix) { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group input:first-child:last-child { border-radius: var(--radius-sm); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
.check .help { margin-top: 2px; font-weight: 400; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.choice-card { position: relative; display: block; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green) inset; }
.choice-card .help { font-weight: 400; margin-top: 2px; }
.field-inline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }

/* ---- alerts / badges ------------------------------------------------------ */
.flash-stack { padding-top: 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; border: 1px solid transparent; font-size: .95rem; }
.alert-success { background: var(--green-soft); color: var(--green-2); border-color: #cfe1d9; }
.alert-error, .alert-danger { background: var(--red-soft); color: var(--red); border-color: #f2c4bd; }
.alert-info { background: var(--blue-soft); color: #1e3f5f; border-color: #c9dbee; }
.alert-warning { background: var(--gold-soft); color: #6b4d05; border-color: #efd9a0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; line-height: 1.5; }
.badge-success { background: var(--green-soft); color: var(--green-2); }
.badge-warn { background: var(--gold-soft); color: #6b4d05; }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-info { background: var(--blue-soft); color: #1e3f5f; }
.badge-muted { background: var(--cream-2); color: var(--ink-2); }

/* ---- tables --------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--cream); }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { gap: 6px; }

/* ---- teacher cards / avatars --------------------------------------------- */
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.avatar-sm { width: 40px; height: 40px; font-size: .95rem; }
.teacher-card { display: flex; gap: 16px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .15s, border-color .15s; }
.teacher-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.teacher-card .teacher-name { font-weight: 700; font-size: 1.05rem; margin: 0; font-family: var(--font-body); }
.teacher-card .teacher-meta { color: var(--muted); font-size: .9rem; margin: 2px 0 8px; }
.teacher-card .teacher-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.teacher-card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.teacher-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---- hero / marketing ----------------------------------------------------- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lede { font-size: 1.25rem; margin-bottom: 1.6rem; }
.hero-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 24px; }
@media (max-width: 860px) { .hero { padding: 48px 0 40px; } .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; font-family: var(--font-display); margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.quote { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; line-height: 1.45; color: var(--ink); }
.quote-by { font-family: var(--font-body); font-style: normal; font-size: .9rem; color: var(--muted); margin-top: 8px; }
.cta-band { background: var(--green); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 560px; margin: 0 auto 1.5rem; }
.cta-band .btn-secondary { background: var(--gold); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { padding-left: 28px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--green-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%231f5f4a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; }

/* ---- dashboard chrome ----------------------------------------------------- */
.dash-nav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.dash-nav a { padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.dash-nav a:hover { text-decoration: none; color: var(--ink); }
.dash-nav a.is-active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; background: var(--cream-2); color: var(--muted); }
.checklist li.done .tick { background: var(--green); color: #fff; }
.checklist li.done { opacity: .75; }
.checklist .grow { flex: 1; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.fee-breakdown { display: grid; gap: 8px; margin: 0; }
.fee-breakdown .row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.fee-breakdown .row.total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 700; font-size: 1.05rem; }
.fee-breakdown .row .k { color: var(--ink-2); }
.fee-breakdown .row.total .k { color: var(--ink); }
.alloc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.alloc-row:last-of-type { border-bottom: 0; }
.alloc-row .alloc-name { font-weight: 600; }
.alloc-row .alloc-meta { color: var(--muted); font-size: .85rem; }
.alloc-row input[type="number"] { text-align: right; }
.alloc-note { grid-column: 1 / -1; }
@media (max-width: 600px) { .alloc-row { grid-template-columns: auto minmax(0, 1fr); } .alloc-row .alloc-input { grid-column: 1 / -1; } }
.alloc-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--cream-2); font-weight: 600; }
.alloc-total.ok { background: var(--green-soft); color: var(--green-2); }
.alloc-total.bad { background: var(--red-soft); color: var(--red); }
.progress { height: 8px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); transition: width .2s; }
.progress.bad > span { background: var(--red); }
.money { font-variant-numeric: tabular-nums; }
.money-lg { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.pill-tabs { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 4px; gap: 4px; }
.pill-tabs a, .pill-tabs button { padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2); border: 0; background: none; cursor: pointer; font-family: inherit; }
.pill-tabs .is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.timeline-note { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.pagination { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--cream-2); padding: 2px 6px; border-radius: 4px; }
pre.code { padding: 14px 16px; overflow-x: auto; white-space: pre; }
.mock-card { max-width: 480px; margin: 40px auto; }
.mock-brand { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }

/* ---- footer --------------------------------------------------------------- */
.site-footer { margin-top: 64px; background: var(--paper); border-top: 1px solid var(--line); padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { margin-bottom: 8px; }
.footer-grid a { display: block; color: var(--ink-2); font-size: .93rem; padding: 3px 0; }
.footer-logo { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- print ---------------------------------------------------------------- */
@media print { .site-header, .site-footer, .demo-bar, .btn { display: none !important; } body { background: #fff; } }
