/* Noah Crowley Consulting — site styles
   Brand: Ink Navy, Jewelweed Amber, Mineral, Slate, Verdigris, Signal Red. IBM Plex Sans + Plex Sans Condensed for display.
   Layout: left-aligned, one wide column with a content measure; navy "authority" bands for the decisive moments. */
:root {
  --navy: #14233A;
  --navy-2: #1D3150;
  --amber: #E8A317;
  --amber-soft: #FBEFD2;
  --mineral: #F4F1EA;
  --paper: #FFFFFF;
  --slate: #4F5D70;
  --slate-2: #B9C2CE;
  --line: #DCD6CA;
  --verdigris: #2F7D78;
  --verdigris-soft: #DDEDEB;
  --red: #B8402E;
  --red-soft: #F6E1DC;
  --f-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-cond: "IBM Plex Sans Condensed", "IBM Plex Sans", "Arial Narrow", sans-serif;
  --measure: 68ch;
  --wrap: 1160px;
  --r: 6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mineral); color: var(--navy); font-family: var(--f-sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--navy); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--mineral); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }

/* Type */
h1, h2, h3 { font-family: var(--f-cond); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 60ch; }
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1em; }
.prose h2 { margin-top: .6em; }
.prose h3 { margin-top: .4em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: .4em; }
.small { font-size: .9rem; color: var(--slate); }
.rule { width: 44px; height: 4px; background: var(--amber); border-radius: 2px; }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 60px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(20px, env(safe-area-inset-left, 0px)) 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--mineral); }
  .nav .btn { margin-top: 12px; text-align: center; justify-content: center; }
  .brand img { height: 50px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--r); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--navy); background: var(--navy); color: var(--mineral); cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn.amber:hover { background: #F0B235; border-color: #F0B235; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--paper); }
.on-dark .btn.ghost { color: var(--mineral); border-color: var(--slate-2); }
.on-dark .btn.ghost:hover { background: var(--navy-2); }
.nav .btn { padding: 10px 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding-block: 72px; }
.section.tight { padding-block: 48px; }
.section.white { background: var(--paper); }
.section.navy, .on-dark { background: var(--navy); color: var(--mineral); }
.on-dark a { color: var(--mineral); }
.on-dark .lede, .on-dark .small, .section.navy .lede, .section.navy .small { color: var(--slate-2); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.crumbs { font-size: .9rem; color: var(--slate); margin-bottom: 18px; }
.crumbs a { color: var(--slate); }

/* Hero */
.hero { padding-block: 64px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy .lede { font-size: 1.22rem; }
.area { font-size: .95rem; color: var(--slate); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Register (signature element) */
.register { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 48px -24px rgba(20, 35, 58, .45); overflow: hidden; }
.reg-head { background: var(--navy); color: var(--mineral); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reg-head b { font-weight: 600; }
.reg-head span { font-size: .85rem; color: var(--slate-2); }
.reg-meta { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--slate); }
.reg-meta strong { color: var(--navy); font-weight: 600; }
.reg-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.reg-table th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--slate); padding: 10px 18px 8px; border-bottom: 1px solid var(--line); }
.reg-table td { padding: 11px 18px; border-bottom: 1px solid var(--mineral); vertical-align: middle; }
.reg-table tr:last-child td { border-bottom: 0; }
.reg-table .loc { font-weight: 500; }
.reg-table .mat { color: var(--slate); font-size: .86rem; }
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 4px; white-space: nowrap; }
.status.good { background: var(--verdigris); color: #fff; }
.status.monitor { background: var(--amber); color: var(--navy); }
.status.act { background: var(--red); color: #fff; }
@media (max-width: 480px) { .reg-table th, .reg-table td { padding-left: 12px; padding-right: 10px; } .reg-head, .reg-meta { padding-left: 12px; padding-right: 12px; } }
.reg-foot { padding: 10px 18px; font-size: .8rem; color: var(--slate); background: var(--mineral); }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.door { display: flex; flex-direction: column; gap: 14px; background: var(--navy); color: var(--mineral); text-decoration: none; padding: 26px 24px 22px; border-radius: 8px; min-height: 250px; position: relative; border-top: 6px solid var(--amber); transition: transform .15s ease, background .15s ease; }
.door:hover { background: var(--navy-2); transform: translateY(-3px); }
.door h3 { font-size: 1.55rem; color: var(--mineral); }
.door p { color: var(--slate-2); font-size: .97rem; flex: 1; }
.door .go { font-weight: 600; color: var(--amber); }
@media (max-width: 1000px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .doors { grid-template-columns: minmax(0, 1fr); } .door { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .door { transition: none; } .door:hover { transform: none; } }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--navy); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--f-cond); font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--amber); }
.step p { color: var(--slate); }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Two-column feature rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.facts { display: grid; gap: 20px; }
.fact { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 18px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid rgba(185, 194, 206, .35); }
.fact:last-child { border-bottom: 0; }
.fact b { font-family: var(--f-cond); font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--amber); }
.fact span { color: var(--slate-2); }
@media (max-width: 480px) { .fact { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Program overview list */
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.program { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.programs .program:nth-child(odd) { padding-right: 28px; }
.programs .program:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.program h3 { font-size: 1.3rem; }
.program .price { font-weight: 600; white-space: nowrap; }
.program p { grid-column: 1 / -1; color: var(--slate); font-size: .97rem; }
.program:hover h3 { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 760px) { .programs { grid-template-columns: minmax(0, 1fr); } .programs .program:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.data.wide { min-width: 640px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mineral); }
table.data thead th { font-weight: 600; background: var(--paper); border-bottom: 2px solid var(--navy); }
table.data tbody th { font-weight: 500; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td, table.data tfoot th { font-weight: 600; border-top: 2px solid var(--navy); border-bottom: 0; }
table.tiers thead th { vertical-align: bottom; }
table.tiers thead .tname { font-family: var(--f-cond); font-size: 1.3rem; display: block; }
table.tiers thead .tprice { font-size: 1.05rem; display: block; margin-top: 4px; }
table.tiers thead .tprice small { font-weight: 400; color: var(--slate); }
table.tiers td.yes { color: var(--verdigris); font-weight: 600; }
table.tiers td.no { color: var(--slate); }

/* Duty callout */
.duty { background: var(--paper); border-left: 6px solid var(--amber); padding: 22px 26px; border-radius: 0 8px 8px 0; display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.duty h3 { font-size: 1.2rem; }
.duty ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* Cards (used sparingly: guides, links) */
.link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.link-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.link-list a strong { font-weight: 600; font-size: 1.08rem; }
.link-list a span { color: var(--slate); font-size: .95rem; }
.link-list a:hover strong { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.on-dark .link-list a { border-bottom-color: rgba(185, 194, 206, .3); }
.on-dark .link-list a span { color: var(--slate-2); }
@media (max-width: 700px) { .link-list { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta-band { background: var(--amber); color: var(--navy); }
.cta-band .wrap { padding-block: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 22ch; }
.cta-band p { max-width: 52ch; margin-top: 8px; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 640px; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #C9C2B4; border-radius: var(--r); background: var(--paper); color: var(--navy); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--slate); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.form-msg { padding: 12px 16px; border-radius: var(--r); font-size: .95rem; }
.form-msg.ok { background: var(--verdigris-soft); color: #1F5E5A; }
.form-msg.err { background: var(--red-soft); color: #8E2F21; }
.hp { position: absolute; left: -5000px; }

/* Quiz */
.quiz { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 32px; max-width: 820px; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.quiz-progress span { height: 5px; flex: 1; background: var(--mineral); border-radius: 3px; }
.quiz-progress span.done { background: var(--amber); }
.q-title { font-family: var(--f-cond); font-size: 1.7rem; font-weight: 600; line-height: 1.15; margin-bottom: 18px; }
.q-help { color: var(--slate); margin: -8px 0 18px; }
.options { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border: 1px solid #C9C2B4; border-radius: 8px; background: var(--paper); font: inherit; color: var(--navy); cursor: pointer; }
.opt:hover { border-color: var(--navy); background: var(--mineral); }
.opt[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--mineral); }
.opt small { display: block; color: var(--slate); font-size: .9rem; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 22px; gap: 12px; }
.linkish { background: none; border: 0; font: inherit; color: var(--slate); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; }
.result { display: flex; flex-direction: column; gap: 18px; }
.result .rec { border-left: 6px solid var(--amber); background: var(--mineral); padding: 20px 22px; border-radius: 0 8px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.result .rec .t { font-family: var(--f-cond); font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.result .rec .p { font-weight: 600; }
.result ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 5px; }
.flag { padding: 12px 16px; border-radius: 6px; background: var(--red-soft); color: #8E2F21; font-size: .96rem; }
.flag.ok { background: var(--verdigris-soft); color: #1F5E5A; }

/* Guide (lead magnet) */
.checklist { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-direction: column; gap: 0 !important; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; width: 20px; height: 20px; border: 2px solid var(--navy); border-radius: 3px; margin-top: 3px; }
.checklist li b { display: block; }
.checklist li span { color: var(--slate); }
.print-btn { display: none; }
@media print {
  .site-head, .site-foot, .cta-band, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 12px; }
  a { text-decoration: none; }
}

/* Footer */
.site-foot { background: var(--navy); color: var(--slate-2); padding-block: 56px 36px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot-grid h4 { color: var(--mineral); font-size: 1rem; margin: 0 0 12px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-foot a { color: var(--slate-2); text-decoration: none; }
.site-foot a:hover { color: var(--mineral); text-decoration: underline; }
.foot-brand img { height: 68px; width: auto; display: block; margin-bottom: 16px; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(185, 194, 206, .25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--slate); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--slate); max-width: var(--measure); }
