/* ai4yb.com — shared styles (brand brief 0.2) */
/* Inter (SIL Open Font License, see fonts/Inter-OFL-LICENSE.txt), served from our own server */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
}
:root {
  --navy: #1F4E79;      /* Foundation navy: the core */
  --navy-deep: #173B5C;
  --amber: #E8A33D;     /* Enabler amber: one highlight per view */
  --amber-soft: #FBEBD2;
  --slate: #2E2E2E;     /* body text */
  --mist: #DCE6F1;      /* tints, panels */
  --mist-soft: #F1F5FA;
  --cream: #FFF4CE;
  --stone: #6B6B6B;     /* captions (darker than brief's #808080 for contrast) */
  --line: #D5DCE4;
  --paper: #FFFFFF;
  --radius: 10px;
  --max: 1120px;
  --font: "Inter", "Source Sans 3", Aptos, Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--slate);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: .9rem; }
.lead { font-size: 1.15rem; color: #3D4752; max-width: 40em; }
.muted { color: var(--stone); }
.small { font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.wordmark { font-weight: 700; font-size: 1.45rem; color: var(--navy); text-decoration: none; letter-spacing: .01em; }
.wordmark span { color: var(--stone); font-weight: 500; font-size: .85rem; margin-left: .6rem; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--slate); font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--navy); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--navy); }
@media (max-width: 860px) {
  .wordmark span { display: none; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--mist-soft); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 10px; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 650; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 650; line-height: 1.2; }
.btn-primary { background: var(--amber); color: var(--slate); }
.btn-primary:hover { background: #DB9530; color: var(--slate); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--mist-soft); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-small { padding: 9px 16px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Sections */
section { padding: 84px 0; }
section.tint { background: var(--mist-soft); }
section.navy { background: var(--navy); color: #E8EEF5; }
section.navy h2, section.navy h3 { color: #fff; }
.section-head { max-width: 46em; margin-bottom: 2.6rem; }
.foundation-bar { height: 6px; background: var(--navy); }
@media (max-width: 700px) { section { padding: 60px 0; } }

/* Hero */
.hero { padding: 76px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero .tagline { font-weight: 650; color: var(--navy); margin-top: 1.4rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-figure { max-width: 340px; } }

/* Grids and cards */
.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .label { font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); display: block; margin-bottom: .5rem; }
.card-accent { border-top: 4px solid var(--navy); }

/* Three P's */
.ps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; }
.p-step { background: var(--paper); border: 2px solid var(--navy); border-radius: 14px; padding: 24px 22px; position: relative; }
.p-step .num { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--stone); text-transform: uppercase; }
.p-step h3 { font-size: 1.3rem; margin: .3rem 0 .4rem; }
.p-step .leaves { font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.p-step p { margin: 0; font-size: .96rem; }
.p-step.active { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.p-arrow { display: flex; align-items: center; justify-content: center; width: 44px; color: var(--navy); }
.p-arrow svg { width: 26px; }
.flywheel-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--stone); font-size: .95rem; }
.flywheel-note svg { flex: none; }
@media (max-width: 860px) {
  .ps { grid-template-columns: 1fr; }
  .p-arrow { width: auto; height: 34px; }
  .p-arrow svg { transform: rotate(90deg); }
}
.one-liner { font-size: 1.25rem; font-weight: 650; color: var(--navy); margin-top: 1.8rem; }

/* Steps list */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.steps li.free::before { background: var(--mist); color: var(--navy); }
.steps strong { color: var(--navy); display: block; }
.steps .meta { display: block; font-size: .88rem; color: var(--stone); }

/* Quote / statement */
.statement { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 650; color: var(--navy); border-left: 5px solid var(--amber); padding-left: 22px; max-width: 30em; margin: 0; }
section.navy .statement { color: #fff; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; color: var(--slate); }
input, select, textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid #B8C3CF; border-radius: 8px; background: #fff; color: var(--slate); }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--mist); }
.hint { font-size: .85rem; color: var(--stone); margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 600; min-height: 1.4em; margin: 0; }
.form-msg.ok { color: #1E6B3A; }
.form-msg.err { color: #A3341F; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.note { background: var(--cream); border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; }

/* Core and enabler figure */
.figure-caption { font-size: .88rem; color: var(--stone); text-align: center; margin-top: .6rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9D5E2; padding: 48px 0 36px; font-size: .93rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .wordmark { color: #fff; }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 18px; color: #A9B8C8; font-size: .85rem; }

/* Tables (demo) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--mist-soft); white-space: nowrap; }
th { background: var(--mist); color: var(--navy); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; }
pre { background: #0F2740; color: #E6EEF7; padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; }

/* Checklist */
.q { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--paper); }
.q legend { font-weight: 650; color: var(--slate); padding: 0; margin-bottom: 10px; font-size: 1.02rem; }
.q fieldset { border: 0; padding: 0; margin: 0; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 500; margin: 0; }
.opt:hover { border-color: #9FB2C6; }
.opt input { width: auto; margin-top: 4px; accent-color: var(--navy); }
.opt:has(input:checked) { border-color: var(--navy); background: var(--mist-soft); }
.group-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 14px; }
.group-title h2 { font-size: 1.4rem; margin: 0; }
.progress { height: 8px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--navy); transition: width .25s; }
.meter { display: grid; grid-template-columns: 130px 1fr 54px; gap: 12px; align-items: center; margin: 10px 0; }
.meter .bar { height: 12px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.meter .bar > div { height: 100%; background: var(--navy); }
.meter.low .bar > div { background: var(--amber); }
@media print { .site-header, .site-footer, .no-print { display: none !important; } section { padding: 20px 0; } }
