/*
 * Shared styling for every page on the checkout site except index.html, which
 * carries its own because it needs the two-column plan grid.
 *
 * The palette is lifted from the app's own theme so the web pages do not read
 * as a different product mid-purchase. Both themes are handled: a payment page
 * that ignores dark mode looks broken at the exact moment trust matters most.
 */
:root {
  color-scheme: light dark;
  --canvas: #E9EAE6;
  --surface: #FFFFFF;
  --ink: #10231F;
  --muted: #4A5A55;
  --faint: #8A9691;
  --line: #DBDDD7;
  --brand: #1E6F5C;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0E1512;
    --surface: #16201C;
    --ink: #ECEFEA;
    --muted: #A8B4AF;
    --faint: #6F7C77;
    --line: #253029;
    --brand: #4FBF9F;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 20px 72px;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 720px; margin: 0 auto; }
main.narrow { max-width: 560px; }

h1 { font-size: 30px; letter-spacing: -0.8px; margin: 0 0 6px; }
h2 { font-size: 19px; letter-spacing: -0.3px; margin: 28px 0 8px; }

.sub { color: var(--muted); margin: 0 0 28px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }

p { color: var(--muted); }
strong { color: var(--ink); }

.note { color: var(--faint); font-size: 14px; line-height: 1.6; margin-top: 20px; }

a { color: var(--brand); }

.draft {
  background: #B8860B18;
  border: 1px solid #B8860B66;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 14px;
}
.draft strong { color: #B8860B; }
