/* Within Reason website. Ink and amber, like the app. System fonts only: no third-party requests. */
:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #F1EEE7;
  --line: #E2DDD2;
  --text: #1B1D24;
  --text-2: #4A4F5C;
  --text-3: #5D6270;
  --amber: #F0A04B;
  --amber-text: #8A4A0E;
  --on-amber: #1A1206;
  --mine: #E3E7F3;
  --sage: #25744A;
  --coral: #B23D2B;
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141C;
    --surface: #1C1F2A;
    --surface-2: #232735;
    --line: #2A2E3C;
    --text: #F3F1EC;
    --text-2: #C9CDD8;
    --text-3: #A9AEBE;
    --amber: #F2A65A;
    --amber-text: #F2A65A;
    --on-amber: #1A1206;
    --mine: #343A52;
    --sage: #8CC7A1;
    --coral: #F2917F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--amber-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand svg { flex: none; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; font-weight: 800; }
.lede { font-size: 20px; color: var(--text-2); margin: 0 0 28px; max-width: 34em; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 16px; }
.badge-note { display: block; margin-top: 12px; font-size: 14px; color: var(--text-3); }

/* The chat card in the hero */
.chat { background: var(--surface); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 var(--line); }
.chat-head { font-size: 13px; color: var(--text-3); text-align: center; margin-bottom: 4px; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--mine); border-end-end-radius: 6px; }
.bubble.coach { align-self: flex-start; background: var(--surface-2); border-end-start-radius: 6px; }
.status { font-size: 13px; padding-inline-start: 6px; margin-top: -4px; }
.status.yes { color: var(--sage); }
.status.no { color: var(--coral); }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; font-weight: 800; }
.section-lede { color: var(--text-2); margin: 0 0 32px; max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.step { display: inline-block; font-size: 13px; font-weight: 700; color: var(--amber-text); margin-bottom: 10px; letter-spacing: 0.04em; text-transform: uppercase; }

.nots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; padding: 0; margin: 0; list-style: none; }
.nots li { display: flex; gap: 10px; align-items: baseline; color: var(--text-2); }
.nots li::before { content: "—"; color: var(--amber-text); font-weight: 700; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.price { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; }
.price small { font-size: 16px; font-weight: 500; color: var(--text-3); }
.fine { font-size: 15px; color: var(--text-3); margin-top: 16px; }

details { background: var(--surface); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* Text pages (privacy, terms, support) */
.doc { padding: 24px 0 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc p, .doc li { color: var(--text-2); }
.doc .updated { color: var(--text-3); font-size: 15px; }
.doc ol, .doc ul { padding-inline-start: 22px; }
.button { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--amber); color: var(--on-amber); font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--text-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--text-3); }

@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .cards, .nots { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
  .site-nav { gap: 14px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .site-nav a.hide-small { display: none; }
}
