/* Static site styles. Tokens mirror the app (src/public/index.html); see docs/website/website-ui-brief.md section 7.
   No external fonts: system stacks only. */
:root {
  --paper: #f7f3ea;
  --card: #fffdf7;
  --ink: #23301f;
  --dim: #565d50;
  --line: #d9d1bb;
  --green: #2e5339;
  --green-soft: #e8efe4;
  --on-green: #ffffff;
  --brass: #8a5a24;
  --brass-soft: #f3e7d3;
  --alert: #9a3a2b;
  --alert-soft: #f6e2dd;
  --focus: #1f5fbf;
  --radius: 16px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(44,40,28,.06), 0 6px 18px rgba(44,40,28,.07);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1a15;
    --card: #262319;
    --ink: #f0ead9;
    --dim: #b8b09c;
    --line: #4a4433;
    --green: #8fb996;
    --green-soft: #2c3a2c;
    --on-green: #14200f;
    --brass: #d9a95e;
    --brass-soft: #3a3120;
    --alert: #e08573;
    --alert-soft: #3c2722;
    --focus: #9cc3ff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
  }
}

* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.6;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.2em 0 .3em; }
p, ul, ol { margin: 0 0 1em; max-width: 65ch; }
li { margin-bottom: .4em; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: 8px;
  border: 2px solid var(--focus); font-weight: 700;
}
.skip-link:focus { top: 8px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--green); }
.logo svg { width: 36px; height: 36px; flex: none; }
/* Name slot sized for a single word of roughly 4-14 characters; never breaks mid-name. */
.logo .brand-name { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.4rem; white-space: nowrap; }
.logo > span { min-width: 4ch; max-width: 16ch; }
.logo small { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-style: normal; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; max-width: none; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.site-nav a:hover { background: var(--green-soft); }
.site-nav a[aria-current="page"] { background: var(--green-soft); color: var(--green); text-decoration: underline; }

/* status note (product not public yet) */
.status-note { background: var(--brass-soft); color: var(--ink); border-bottom: 1px solid var(--line); font-size: 1rem; }
.status-note p { margin: 0; padding: 10px 0; max-width: none; }

/* main */
main { padding: 32px 0 64px; }
.hero { padding: 24px 0 8px; }
.hero .lead { font-size: 1.3rem; color: var(--ink); }
.eyebrow { font-weight: 700; color: var(--brass); letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; margin-bottom: .4em; }
.muted { color: var(--dim); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 44px;
  padding: 10px 22px; border-radius: 12px; font-weight: 700; font-size: 1.1rem; text-decoration: none;
  border: 2px solid var(--green); cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-secondary { background: transparent; color: var(--green); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 16px 0; padding: 0; list-style: none; max-width: none; }
.grid > li { margin: 0; }
.card h2, .card h3 { margin-top: 0; }
.card svg { width: 40px; height: 40px; color: var(--green); }

.steps { counter-reset: step; list-style: none; padding: 0; max-width: none; }
.steps > li { counter-increment: step; position: relative; padding-left: 60px; margin-bottom: 24px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: var(--on-green); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps h2, .steps h3 { margin-top: 0; }

.callout { border-left: 6px solid var(--brass); background: var(--brass-soft); padding: 14px 18px; border-radius: 8px; margin: 20px 0; max-width: 70ch; }
.callout p:last-child { margin-bottom: 0; }

.draft-banner {
  border: 3px solid var(--alert); background: var(--alert-soft); color: var(--ink);
  padding: 16px 20px; border-radius: 12px; margin: 0 0 24px; max-width: 70ch;
}
.draft-banner strong { color: var(--alert); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--green-soft); color: var(--ink); font-weight: 600; border: 1px solid var(--line); }

/* disabled contact form */
.form-field { margin-bottom: 16px; max-width: 32rem; }
.form-field label { display: block; font-weight: 700; margin-bottom: 4px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; font: inherit; padding: 10px 12px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink);
}
.form-field textarea { min-height: 120px; }
fieldset[disabled] { opacity: .75; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; }
.state { border-radius: 12px; padding: 14px 18px; margin: 12px 0; max-width: 32rem; border: 2px solid var(--line); }
.state-error { border-color: var(--alert); background: var(--alert-soft); }
.state-success { border-color: var(--green); background: var(--green-soft); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 28px 0 40px; font-size: 1rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 0 0 12px; max-width: none; }
.site-footer li { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* sticky mobile CTA (CSS only) */
.mobile-cta { display: none; }
@media (max-width: 699px) {
  body { padding-bottom: 84px; }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--card);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.08);
  }
  .mobile-cta .btn { width: 100%; }
}

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
