/* Asaph CCM marketing site. Placeholder brand tokens until the app's design
   system (map row 4.3) is settled in Figma; swap the values in :root only. */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f1ede6;
  --text: #1c1828;
  --muted: #514b5e;
  --line: #ddd6cb;
  --accent: #5b3fa6;        /* 7.4:1 on --bg */
  --accent-text: #ffffff;
  --accent-soft: #ece6f8;
  --gold: #8a5a00;          /* 5.6:1 on --bg */
  --focus: #1f6feb;
  --radius: 14px;
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14111f;
    --surface: #1d1930;
    --surface-2: #241f3a;
    --text: #f3f0fa;
    --muted: #bdb6cf;
    --line: #3a3352;
    --accent: #b9a3ff;      /* 8.9:1 on --bg */
    --accent-text: #14111f;
    --accent-soft: #2b2447;
    --gold: #f0c36a;
    --focus: #7fb2ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.0625rem/1.65 var(--font);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
nav a:hover { background: var(--surface-2); }
nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; font: inherit; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; min-height: 44px; }
  nav ul { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  nav ul.open { display: flex; }
  nav a { padding: 12px; }
}

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); min-height: 44px; font-size: 1rem; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
nav a.btn-small { padding: 8px 16px; color: var(--accent-text); }
nav a.btn-small:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* Sections */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.hero .lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 40em; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.8em; }
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section.alt { background: var(--surface-2); }
.prose { max-width: 44em; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.5em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.callout { border-left: 4px solid var(--gold); background: var(--surface); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 44em; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.8em; position: relative; margin-bottom: 0.6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9em; height: 0.5em; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 3em; margin-bottom: 1.2em; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2em; height: 2em; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 46em; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 0.7em; }

/* Forms */
form.stack { display: grid; gap: 18px; max-width: 36em; }
.field label, fieldset legend { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 0.95rem; font-weight: 400; }
input[type=text], input[type=email], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--muted); border-radius: 10px; padding: 11px 13px; min-height: 46px;
}
textarea { min-height: 7em; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0; }
.opt { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.opt input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.form-status { padding: 14px 18px; border-radius: 10px; background: var(--accent-soft); }
.form-status:empty { display: none; }
.req { color: var(--gold); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 40px; color: var(--muted); font-size: 0.97rem; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 2fr repeat(3, 1fr); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.foot-h { font-family: var(--font); font-size: 0.95rem; color: var(--text); margin-bottom: 0.6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.foot-logo { color: var(--text); }
.foot-legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; font-size: 0.9rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.h3 { font-family: var(--font); font-size: 1.15rem; font-weight: 700; }
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 44em; }
.wrap.prose > .actions { max-width: none; }
.dob { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 12px; }
.dob .field label { font-weight: 400; }
