/* BuddyWorkflow site. Harbor blue / deep teal, terracotta for calls to action only, cream paper.
   Newsreader for headings, Hanken Grotesk for everything else. */
:root {
  --cream: #fdfbf6;
  --paper: #ffffff;
  --sand: #f6f1e7;
  --line: #ece4d6;
  --ink: #23201d;
  --body: #4a4238;
  --muted: #6b6258;
  --teal: #1f5266;
  --teal-deep: #123b4c;
  --harbor: #2f6f86;
  --harbor-soft: #e5eff2;
  --cta: #c0694c;
  --cta-hover: #a8573c;
  --on-cta: #ffffff;
  --good: #2f7d5b;
  --bad: #b03a2e;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 32, 29, 0.05), 0 8px 24px rgba(35, 32, 29, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #10181c; --paper: #172227; --sand: #142026; --line: #26353c;
    --ink: #f1eee8; --body: #cfd6d8; --muted: #9fadb2;
    --teal: #8cc3d6; --teal-deep: #0c2530; --harbor: #8cc3d6; --harbor-soft: #1a3340;
    --cta: #d9805f; --cta-hover: #e6926f; --on-cta: #1a1210;
    --good: #6fc79c; --bad: #ef8a7d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cream: #10181c; --paper: #172227; --sand: #142026; --line: #26353c;
  --ink: #f1eee8; --body: #cfd6d8; --muted: #9fadb2;
  --teal: #8cc3d6; --teal-deep: #0c2530; --harbor: #8cc3d6; --harbor-soft: #1a3340;
  --cta: #d9805f; --cta-hover: #e6926f; --on-cta: #1a1210;
  --good: #6fc79c; --bad: #ef8a7d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--harbor); }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font: 700 1.08rem/1.35 var(--sans); letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 640px) { .wrap { padding-inline: 28px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.15rem var(--sans); letter-spacing: -0.01em; }
.logo img { width: 34px; height: 34px; border-radius: 50%; }
.logo .b { color: var(--cta); }
.logo .w { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:not(.btn):hover { color: var(--harbor); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 700 0.98rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.btn-cta { background: var(--cta); color: var(--on-cta); }
.btn-cta:hover { background: var(--cta-hover); color: var(--on-cta); }
.btn-ghost { background: transparent; color: var(--teal); border-color: color-mix(in srgb, var(--teal) 35%, transparent); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

/* Sections */
section { padding-block: 84px; }
@media (max-width: 640px) { section { padding-block: 60px; } }
.eyebrow { display: inline-block; font: 700 0.76rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--harbor); }
.section-head { max-width: 720px; display: grid; gap: 12px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.12; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.alt { background: var(--sand); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding-block: 72px 84px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.04; margin-top: 14px; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero .lede { font-size: 1.18rem; margin-top: 20px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .assure { margin-top: 22px; font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero .assure span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 8px; vertical-align: 2px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Sample hub preview (decorative) */
.preview { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--teal-deep); color: #e8f1f4; font: 600 0.82rem var(--sans); }
.preview-bar .dots { display: flex; gap: 6px; }
.preview-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.sample-tag { font: 700 0.68rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.14); padding: 3px 8px; border-radius: 999px; }
.preview-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.kpi small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font: 600 1.35rem/1.2 var(--serif); color: var(--ink); margin-top: 2px; }
.kpi .up { font-size: 0.74rem; color: var(--good); font-weight: 700; }
.chart { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.chart svg { width: 100%; height: 120px; display: block; }
.chart .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stage { background: var(--harbor-soft); border-radius: 8px; padding: 8px; font-size: 0.72rem; font-weight: 700; color: var(--teal); min-width: 0; }
.stage i { display: block; height: 22px; margin-top: 6px; border-radius: 5px; background: var(--paper); border: 1px solid var(--line); }
.stage i + i { margin-top: 4px; }
@media (max-width: 420px) { .kpi b { font-size: 1.1rem; } .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card.feature { padding: 30px; gap: 14px; }
.card.feature h3 { font: 500 1.65rem/1.15 var(--serif); letter-spacing: -0.015em; }
.icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--harbor-soft); color: var(--teal); }
.icon svg { width: 22px; height: 22px; }
ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.ticks li { position: relative; padding-left: 26px; font-size: 0.98rem; }
ul.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 10px; height: 5px; border-left: 2px solid var(--harbor); border-bottom: 2px solid var(--harbor); transform: rotate(-45deg); }

/* Investment band */
.invest { background: var(--teal-deep); color: #d9e7ec; }
.invest h2, .invest h3 { color: #ffffff; }
.invest .eyebrow { color: #f0b49f; }
.invest .section-head p { color: #b9ccd3; }
.invest .card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.invest .card p { color: #b9ccd3; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--harbor-soft); color: var(--teal); font: 700 0.95rem var(--sans); }
.steps p { font-size: 0.94rem; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Contact form */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.contact-aside { display: grid; gap: 16px; }
.contact-aside h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.12; }
.contact-aside .note { font-size: 0.95rem; color: var(--muted); }
form.intake { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 18px; min-width: 0; }
@media (max-width: 520px) { form.intake { padding: 20px; } }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, fieldset legend { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; min-height: 46px;
  transition: border-color 0.15s, background 0.15s;
}
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--harbor) 45%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--harbor); background: var(--paper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--harbor) 20%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
.err { font-size: 0.84rem; color: var(--bad); min-height: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
fieldset legend { margin-bottom: 4px; padding: 0; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream); cursor: pointer; font-size: 0.94rem; color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.check:hover { border-color: color-mix(in srgb, var(--harbor) 45%, var(--line)); }
.check:has(input:checked) { border-color: var(--harbor); background: var(--harbor-soft); }
.check:has(input:focus-visible) { outline: 3px solid var(--cta); outline-offset: 2px; }
.check input { margin: 3px 0 0; accent-color: var(--teal); width: 17px; height: 17px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-foot small { color: var(--muted); font-size: 0.84rem; flex: 1 1 220px; }
.status { border-radius: 10px; padding: 12px 14px; font-size: 0.95rem; }
.status[hidden] { display: none; }
.status.ok { background: color-mix(in srgb, var(--good) 12%, var(--paper)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); }
.status.fail { background: color-mix(in srgb, var(--bad) 10%, var(--paper)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.thanks { display: grid; gap: 10px; text-align: left; }
.thanks h3 { font: 500 1.6rem var(--serif); }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-list details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font: 700 1.04rem/1.4 var(--sans); color: var(--ink); position: relative; border-radius: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--harbor); border-bottom: 2px solid var(--harbor); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list summary:hover { color: var(--teal); }
.faq-list .answer { padding: 0 20px 20px; display: grid; gap: 12px; color: var(--body); }
.faq-list .answer .links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Long-form pages (security sheet, policies) */
.doc { padding-block: 56px 80px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.08; margin: 10px 0 14px; }
.doc .intro { font-size: 1.12rem; color: var(--muted); }
.doc h2 { font: 600 1.5rem/1.25 var(--serif); margin: 38px 0 12px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc b { color: var(--ink); }
.doc code { font-size: 0.9em; background: var(--sand); padding: 1px 6px; border-radius: 5px; }
.doc .back { font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.doc .rule { height: 1px; background: var(--line); margin: 26px 0 8px; }
.sheet-head { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.sheet .grid-3, .sheet .grid-2 { margin-top: 18px; }
.sheet .card h3 { color: var(--teal); }
.sheet .card ul.ticks li { font-size: 0.93rem; color: var(--body); }
.sheet .system { border-top: 3px solid var(--harbor); }
.sheet .system .role { font-size: 0.92rem; }
.callout { background: var(--harbor-soft); border-radius: 12px; padding: 18px 20px; display: grid; gap: 6px; margin-top: 18px; }
.callout h3 { color: var(--teal); }
.callout p { margin: 0; color: var(--body); font-size: 0.98rem; }
.doc.wide .wrap { max-width: 1140px; }
.more-policies { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.more-policies a { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.92rem; }
.more-policies a:hover { border-color: var(--harbor); }

/* Footer */
.site-footer { background: var(--teal-deep); color: #b9ccd3; padding-block: 48px 36px; font-size: 0.94rem; }
.site-footer .wrap { display: grid; gap: 28px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .logo .w { color: #ffffff; }
.site-footer a { color: #e3edf0; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.86rem; }

/* Simple home page and blog (2026-11-17): text only, one narrow column. */
.wrap.narrow { max-width: 760px; }
body.simple .hero .wrap { display: block; }
body.simple .hero { padding-block: 88px 72px; }
body.simple .hero h1 { max-width: 14em; }
body.simple .hero .lede + .lede { margin-top: 14px; }
body.simple section h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: 18px; }
body.simple section { padding-block: 64px; }
.plain-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; font-size: 1.06rem; }
.plain-steps b { color: var(--ink); font-weight: 600; }
body.simple .contact .wrap { display: block; }
body.simple .contact p { margin: 0 0 22px; }
.article { padding-block: 64px 80px; }
.article .meta { color: var(--muted); font-size: 0.92rem; margin: 10px 0 30px; }
.article h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.1; }
.article h2 { font-size: 1.45rem; margin: 38px 0 10px; }
.article p, .article li { font-size: 1.08rem; }
.article p { margin: 0 0 16px; }
.article ul { padding-left: 1.2em; margin: 0 0 16px; }
.article li { margin: 6px 0; }
.article .cta-line { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-list a { font: 600 1.25rem/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--teal); }
.post-list p { margin: 6px 0 0; color: var(--muted); }
.plain-list { padding-left: 1.2em; margin: 0 0 16px; display: grid; gap: 10px; }
.plain-list b { color: var(--ink); font-weight: 600; }
.link-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.article .eyebrow { display: block; margin-top: 18px; }
.article .lede { font-size: 1.15rem; margin: 14px 0 8px; }
.article .faq-list { margin-bottom: 16px; }
.quick { background: var(--harbor-soft); border-left: 4px solid var(--teal); border-radius: 8px; padding: 16px 18px; margin: 0 0 28px; }
.quick p { margin: 0; }
.quick .quick-label { font: 700 0.78rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.related { padding-left: 1.2em; }
