/* Consult HBW — from Heather's mockup: deep teal buttons, logo teal, sea-glass bands,
   watercolour hero, Crimson Pro headings, Source Sans 3 text. */
:root {
  --deep: #0e4f5f;        /* buttons, Contact pill */
  --deep-hover: #0a3d4a;
  --teal: #4a8195;        /* logo */
  --teal-dark: #2f6273;
  --teal-ink: #143f4b;    /* headings */
  --teal-wash: #eaf4f4;
  --band: #d2e6e5;        /* "How We Support You" */
  --footer: #b9d7d6;
  --ink: #1d2b2f;
  --muted: #536266;
  --line: #d6e3e4;
  --paper: #fff;
  --white: #fff;
  --radius: 10px;
  --serif: "Crimson Pro", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 18px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--teal-ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1680px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .6em; }
.lede { font-size: 1.2rem; color: var(--muted); }
.subtitle { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }

/* Buttons and links */
.btn { display: inline-block; background: var(--deep); color: var(--white); text-decoration: none; padding: .75em 1.6em; border-radius: 6px; border: 1.5px solid var(--deep); font: inherit; font-weight: 600; cursor: pointer; line-height: 1.3; }
.btn:hover { background: var(--deep-hover); border-color: var(--deep-hover); color: var(--white); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-small { padding: .45em 1.2em; font-size: 1rem; }
.btn-block { display: block; width: 100%; }
.btn-outline { background: rgba(255,255,255,.85); color: var(--teal-ink); border-color: var(--teal-ink); }
.btn-outline:hover { background: var(--white); color: var(--deep); }
.btn-ghost { background: transparent; color: var(--teal-dark); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--teal-wash); color: var(--teal-ink); border-color: var(--line); }
.btn-danger { background: transparent; color: #a33; border: 1px solid #e3c4c4; }
.btn-danger:hover { background: #fbeeee; color: #812; border-color: #e3c4c4; }
.quiet-link { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.quiet-link:hover { text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 1.5em; }
.center-row { justify-content: center; }

/* Header */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 14px rgba(20,63,75,.07); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: clamp(84px, 8.6vw, 165px); }
.brand { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 50px); text-decoration: none; }
.brand img { display: block; width: clamp(60px, 8.3vw, 160px); height: auto; }
.wordmark { font: 500 clamp(1.15rem, 1.8vw, 2.15rem) var(--serif); letter-spacing: .38em; text-transform: uppercase; color: var(--teal-ink); white-space: nowrap; }
.nav { display: flex; gap: clamp(22px, 2.6vw, 50px); margin-left: auto; }
.nav a { color: var(--teal-ink); text-decoration: none; font: 500 clamp(1.2rem, 1.8vw, 2.1rem) var(--serif); }
.nav a:hover, .nav a[aria-current] { color: var(--teal); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { border-radius: 999px; font: 500 clamp(1.1rem, 1.7vw, 2rem) var(--serif); padding: .2em .95em; }
.header-cta .quiet-link { font-size: clamp(.95rem, 1vw, 1.2rem); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--teal-ink); cursor: pointer; }
.is-app .nav, .is-app .nav-toggle, .is-app .header-cta .btn { display: none; }
.is-app .header-cta { margin-left: auto; }
.is-app .header-row { min-height: 76px; }
.is-app .brand img { width: 56px; }
.is-app .wordmark { font-size: 1.15rem; }
.is-app .wrap { max-width: 1360px; }
@media (max-width: 1000px) { .wordmark { font-size: 1.1rem; letter-spacing: .28em; } .nav { gap: 22px; } }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .header-row { gap: 14px; min-height: 76px; }
  .header-cta { margin-left: auto; }
  .brand { gap: 12px; }
  .brand img { width: 52px; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .wordmark { display: none; } }

/* Sections */
main { min-height: 60vh; }
section { padding: 64px 0; }
.hero { padding: clamp(24px, 1.4vw, 28px) 0 clamp(48px, 2.2vw, 44px); text-align: center;
  background: #fdfdfc url(/img/hero-wash.jpg) center bottom / max(100%, 1100px) auto no-repeat; }
@media (max-width: 1200px) { .hero { background-image: url(/img/hero-wash-1200.jpg); } }
.hero-inner { max-width: 1680px; }
.hero-logo { width: clamp(180px, 14vw, 270px); display: block; margin: 0 auto 2px; }
.hero-tag { font: 500 clamp(1.8rem, 3.4vw, 4.1rem)/1.05 var(--serif); letter-spacing: .06em; color: var(--teal-ink); margin: 0 0 .1em; }
.hero h1 { font-size: clamp(2.2rem, 4.15vw, 5rem); line-height: 1.05; margin-bottom: .4em; }
.hero-sub { font-size: clamp(1.1rem, 1.3vw, 1.55rem); color: var(--ink); max-width: 100%; margin: 0 auto; }
.hero .btn { font-size: clamp(1.05rem, 1.35vw, 1.6rem); padding: .55em 1.5em; min-width: 11em; }
.hero .cta-row { gap: 16px clamp(16px, 1.6vw, 32px); margin-top: clamp(1.2em, 1.6vw, 1.9em); }
.band { background: var(--band); }
.band-soft { background: var(--teal-wash); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(24px, 2.5vw, 48px); margin-top: clamp(24px, 1.8vw, 36px); }
#services { padding: clamp(36px, 2.2vw, 44px) 0 clamp(40px, 2.4vw, 46px); }
#services h2 { font-size: clamp(1.9rem, 2.9vw, 3.5rem); margin: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card > :last-child { margin-bottom: 0; }
.service { text-align: center; padding: clamp(28px, 1.9vw, 36px) clamp(24px, 2.6vw, 50px); border: 0; box-shadow: 0 6px 22px rgba(20,63,75,.10); }
.service h3 { font-size: clamp(1.6rem, 2.1vw, 2.55rem); line-height: 1.02; margin: .3em 0 .35em; }
.service p { font-size: clamp(1.05rem, 1.25vw, 1.5rem); line-height: 1.3; }
.icon, .feature-icon { width: clamp(48px, 3.5vw, 66px); height: clamp(48px, 3.5vw, 66px); fill: none; stroke: var(--deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon { width: clamp(80px, 8vw, 150px); height: clamp(80px, 8vw, 150px); flex: 0 0 auto; stroke-width: 1; stroke: var(--teal); }
.split { display: flex; gap: 48px; align-items: flex-start; }
.feature { max-width: 1100px; }
.page-head, .narrow { max-width: 1100px; }
.narrow { max-width: 760px; }
.split .cover { flex: 0 0 auto; width: 220px; }
.page-head.split .cover { width: 260px; }
.feature { align-items: center; }
@media (max-width: 720px) { .split { flex-direction: column; gap: 28px; } .feature-icon { width: 72px; height: 72px; } }
.page-head { padding-bottom: 24px; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 32px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 24px 64px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--deep); color: var(--white); font: 600 1.3rem/44px var(--serif); text-align: center; }
.steps h3 { margin-bottom: .2em; }

/* Footer */
.site-footer { background: var(--footer); padding: clamp(18px, 1.3vw, 26px) 0 18px; color: var(--teal-ink); font-size: clamp(1rem, 1.15vw, 1.4rem); }
.footer-row { display: flex; justify-content: center; align-items: center; gap: 10px 14px; flex-wrap: wrap; text-align: center; }
.footer-row a { color: var(--teal-ink); text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }
.footer-row .dot { opacity: .6; }
.footer-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 8px; font-size: .9rem; }
.footer-links a { color: var(--teal-dark); }
@media (max-width: 640px) { .footer-row .dot { display: none; } .footer-row { flex-direction: column; gap: 4px; } }

/* Forms */
label { display: block; font-weight: 600; margin: 0 0 6px; }
input, textarea, select { font: inherit; color: var(--ink); width: 100%; padding: .6em .8em; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
input:focus, textarea:focus { outline: 2px solid rgba(74,129,149,.35); border-color: var(--teal); }
form > * + * { margin-top: 14px; }
.auth { padding: 64px 24px; }
.auth-card { max-width: 440px; margin: 0 auto; }
.msg { min-height: 1.4em; margin-top: 12px; }
.msg.error { color: #a33; }
.app-head { padding: 40px 24px 8px; }
.tool-card { text-decoration: none; color: inherit; display: block; }
.tool-card:hover { border-color: var(--teal); }

/* Framework Builder */
.fw-app { padding: 0 0 48px; }
.fw-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 36px 0 16px; flex-wrap: wrap; }
.fw-list { display: grid; gap: 12px; }
.fw-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 22px; text-decoration: none; color: inherit; }
.fw-row:hover { border-color: var(--teal); }
.fw-row h3 { margin: 0 0 2px; font-size: 1.15rem; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15em .7em; border-radius: 999px; background: var(--band); color: var(--teal-ink); text-transform: capitalize; white-space: nowrap; }
.fw-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 0 12px; }
.fw-bar .back { text-decoration: none; font-weight: 600; }
.fw-title { flex: 1; min-width: 240px; font: 600 1.6rem var(--serif); color: var(--teal-ink); border: 1px solid transparent; background: transparent; padding: .2em .3em; }
.fw-title:hover, .fw-title:focus { border-color: var(--line); background: var(--white); }
.save-state { font-size: .9rem; color: var(--muted); min-width: 70px; }
.stepper { display: flex; gap: 8px; margin: 4px 0 18px; flex-wrap: wrap; }
.stepper button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--white); color: var(--muted); border-radius: 999px; padding: .4em 1.1em; cursor: pointer; }
.stepper button[aria-current] { background: var(--deep); border-color: var(--deep); color: var(--white); }
.fw-body { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; gap: 24px; align-items: start; }
.fw-body.no-chat { grid-template-columns: 1fr; }
.fw-body > * { min-width: 0; }
.is-app .wrap { max-width: 1360px; }
@media (max-width: 960px) { .fw-body { grid-template-columns: 1fr; } }
.chat { display: flex; flex-direction: column; height: min(78vh, 760px); position: sticky; top: 92px; padding: 0; overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.bubble { padding: 10px 14px; border-radius: 14px; max-width: 92%; white-space: pre-wrap; font-size: 1rem; line-height: 1.5; }
.bubble.assistant { background: var(--teal-wash); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.user { background: var(--deep); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.pending { color: var(--muted); font-style: italic; }
.proposal { border: 1px solid var(--teal); background: var(--white); border-radius: 12px; padding: 14px; font-size: .95rem; }
.proposal h4 { font-family: var(--serif); color: var(--teal-ink); margin: 0 0 6px; font-size: 1.05rem; }
.proposal ul { margin: 6px 0 12px; padding-left: 1.1em; }
.chat-form { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; margin: 0; }
.chat-form textarea { flex: 1; resize: none; min-height: 48px; max-height: 160px; margin: 0; }
.chat-form .btn { margin: 0; }
.canvas { padding: 24px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 22px; }
.meta-grid .full { grid-column: 1 / -1; }
.meta-grid textarea { min-height: 2.6em; }
@media (max-width: 640px) { .meta-grid { grid-template-columns: 1fr; } }
.rubric-wrap { overflow-x: auto; }
table.rubric { border-collapse: collapse; width: 100%; min-width: 820px; font-size: .95rem; }
.rubric th { background: var(--deep); color: var(--white); text-align: left; padding: 8px 10px; font-weight: 600; vertical-align: bottom; }
.rubric th small { display: block; font-weight: 400; opacity: .85; }
.rubric td { border: 1px solid var(--line); vertical-align: top; padding: 0; background: var(--white); }
.rubric td.comp { background: var(--teal-wash); width: 17%; }
.rubric textarea { border: 0; border-radius: 0; background: transparent; resize: none; overflow: hidden; min-height: 96px; padding: 10px; font-size: .95rem; line-height: 1.45; display: block; }
.rubric td.comp textarea { font-weight: 700; color: var(--teal-ink); }
.row-tools { display: flex; justify-content: flex-end; padding: 0 6px 6px; }
.row-tools button { font-size: .8rem; background: none; border: 0; color: var(--muted); cursor: pointer; }
.row-tools button:hover { color: #a33; }
.canvas-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 24px; }
.empty-canvas { text-align: center; padding: 48px 16px; color: var(--muted); }

@media print {
  @page { size: letter landscape; margin: 0.5in; }
  body { background: #fff; font-size: 10.5pt; }
  .site-header, .site-footer, .fw-bar, .stepper, .fw-body { display: none !important; }
  .print-view { display: block !important; }
}
.print-view { display: none; color: var(--ink); }
.print-view h1 { font-size: 20pt; margin: 0 0 6pt; }
.print-view dl { display: grid; grid-template-columns: auto 1fr; gap: 2pt 10pt; margin: 0 0 10pt; font-size: 10pt; }
.print-view dt { font-weight: 700; color: var(--teal); text-transform: uppercase; font-size: 8.5pt; letter-spacing: .05em; padding-top: 1pt; }
.print-view dd { margin: 0; }
.print-view table { border-collapse: collapse; width: 100%; font-size: 9.5pt; }
.print-view th { background: var(--teal); color: #fff; text-align: left; padding: 4pt 6pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-view td { border: 1px solid #c9d6da; padding: 5pt 6pt; vertical-align: top; }
.print-view td.comp { font-weight: 700; color: var(--teal-ink); background: var(--teal-wash); width: 16%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-view tr { break-inside: avoid; }
.print-view .next { margin-top: 10pt; font-size: 9.5pt; white-space: pre-wrap; }
.print-view .print-footer { margin-top: 12pt; font-size: 8.5pt; color: var(--muted); display: flex; align-items: center; gap: 10pt; }
.print-view .print-footer img { width: 34pt; }

/* .wrap's side padding must not cancel a section's vertical padding. */
section.wrap { padding-top: 64px; padding-bottom: 64px; }
section.wrap.page-head { padding-bottom: 24px; }
.feature p { font-size: clamp(1.05rem, 1.15vw, 1.3rem); }
.feature h2 { font-size: clamp(1.9rem, 2.6vw, 3rem); }
