/* Breathing Fish University — site styles
   Brand tokens from the Breathing Fish University Brand Guidelines (section 05). */
:root {
  --ink: #182B34;          /* Breathing Fish Ink */
  --ink-2: #223A46;
  --teal: #176A70;         /* Analytical Teal */
  --teal-dark: #11555A;
  --teal-tint: #5BC0BE;    /* reversed tint */
  --teal-wash: #E3F0EF;
  --copper: #AD5E3F;       /* Signal Copper: accents only, not body text on white */
  --copper-tint: #D98B6A;
  --paper: #F8F5EF;        /* Warm Paper */
  --stone: #E5E0D7;        /* Stone Neutral */
  --white: #FFFFFF;
  --text: #182B34;
  --muted: #4E5F68;
  --danger: #A23B2A;
  --ok: #1E6B45;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(24,43,52,.06), 0 8px 24px rgba(24,43,52,.06);
  --max: 1200px;
  --font: "Lato", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal-tint); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Status banner */
.status-bar { background: var(--ink); color: #DCE7EA; font-size: .875rem; }
.status-bar .wrap { padding-top: .5rem; padding-bottom: .5rem; }
.status-bar a { color: var(--teal-tint); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--stone); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 220px; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; padding: .5rem .7rem; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--teal-wash); color: var(--teal-dark); }
.nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--stone); border-radius: 8px; padding: .5rem .7rem; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: .5rem 16px 1rem; border-bottom: 1px solid var(--stone); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: .5rem 0 0; text-align: center; }
  .brand img { width: 190px; }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; border-radius: 8px; padding: .75rem 1.25rem; border: 2px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--teal); }
.btn.secondary:hover { background: var(--teal-wash); color: var(--teal-dark); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--teal-wash); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost-light:hover { background: rgba(255,255,255,.1); }
.btn.small { padding: .45rem .8rem; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { padding-top: 5.5rem; padding-bottom: 5rem; position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #DCE7EA; max-width: 46ch; }
.hero .eyebrow { color: var(--teal-tint); }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: .9; pointer-events: none; }
.page-hero { background: var(--ink); color: #fff; }
.page-hero .wrap { padding-top: 3.5rem; padding-bottom: 3rem; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 22ch; }
.page-hero p { color: #DCE7EA; max-width: 60ch; font-size: 1.1rem; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: .75rem; display: block; }
.rule { width: 64px; height: 3px; background: var(--copper); border: 0; margin: 0 0 1.25rem; }

/* Sections */
section.block { padding: 4.5rem 0; }
section.block.tight { padding: 3rem 0; }
section.white { background: var(--white); }
section.wash { background: var(--teal-wash); }
section.dark { background: var(--ink); color: #DCE7EA; }
section.dark h2, section.dark h3 { color: #fff; }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
section.dark .section-head p { color: #C7D5DA; }

.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.card { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 1.5rem; }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num { font-weight: 900; color: var(--copper); font-size: .9rem; letter-spacing: .1em; display: block; margin-bottom: .5rem; }
section.dark .card { background: var(--ink-2); border-color: #2F4A57; color: #DCE7EA; }
section.dark .card h3 { color: #fff; }
.pillar { border-top: 3px solid var(--teal); }
.pillar.copper { border-top-color: var(--copper); }

.stat { padding: 1.25rem 0; border-top: 1px solid var(--stone); }
.stat strong { display: block; font-size: 2rem; font-weight: 900; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
section.dark .stat { border-color: #2F4A57; }
section.dark .stat strong { color: #fff; }
section.dark .stat span { color: #C7D5DA; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--stone); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--stone); vertical-align: top; }
th { background: var(--ink); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 900; background: var(--paper); }

/* Timeline / steps */
.steps { list-style: none; padding: 0; counter-reset: step; margin: 0; }
.steps li { position: relative; padding: 0 0 1.5rem 3.5rem; margin: 0; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 1.13rem; top: 2.5rem; bottom: .3rem; width: 2px; background: var(--stone); }
.steps li:last-child::after { display: none; }
.steps li strong { display: block; color: var(--ink); }
.steps li .who { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .1rem .5rem; border-radius: 99px; margin-left: .35rem; vertical-align: middle; }
.who.bf { background: var(--teal-wash); color: var(--teal-dark); }
.who.uni { background: #F3E4DC; color: #7E3F27; }
.who.you { background: var(--stone); color: var(--ink); }

.timeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .75rem; }
.timeline .t { border-top: 3px solid var(--teal); padding-top: .75rem; }
.timeline .t.key { border-top-color: var(--copper); }
.timeline .t b { display: block; color: var(--ink); }
.timeline .t span { font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Accordion */
details.acc { background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); margin-bottom: .6rem; }
details.acc > summary { cursor: pointer; list-style: none; padding: 1rem 1.25rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); line-height: 1; }
details.acc[open] > summary::after { content: "–"; }
details.acc > .acc-body { padding: 0 1.25rem 1.25rem; }
details.acc .meta { font-weight: 400; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; background: var(--teal-wash); color: var(--teal-dark); margin: 0 .3rem .3rem 0; }
.tag.copper { background: #F3E4DC; color: #7E3F27; }
.tag.stone { background: var(--stone); color: var(--ink); }

/* Notices */
.notice { border-left: 4px solid var(--copper); background: #fff; padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.notice.teal { border-left-color: var(--teal); }
.notice p:last-child { margin: 0; }
.notice strong { color: var(--ink); }

/* Forms */
form .field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--ink); }
label .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .88rem; color: var(--muted); margin-top: .25rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #C9C2B5; border-radius: 8px; padding: .7rem .85rem; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(91,192,190,.35); }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; margin-bottom: .75rem; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--teal); flex: none; }
fieldset { border: 1px solid var(--stone); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1.25rem; background: #fff; }
legend { font-weight: 900; padding: 0 .4rem; color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 1rem 1.25rem; border-radius: var(--radius); margin-top: 1rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #E3F2EA; color: var(--ok); border: 1px solid #B9DCC8; }
.form-msg.err { background: #F8E6E2; color: var(--danger); border: 1px solid #E8C3BA; }
.err-text { color: var(--danger); font-size: .88rem; margin-top: .25rem; display: none; }
.invalid .err-text { display: block; }
.invalid input, .invalid select, .invalid textarea { border-color: var(--danger); }

/* Wizard */
.wizard-steps { display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.wizard-steps li { margin: 0; font-size: .88rem; font-weight: 700; padding: .4rem .8rem; border-radius: 99px; background: var(--stone); color: var(--muted); }
.wizard-steps li.on { background: var(--teal); color: #fff; }
.wizard-steps li.done { background: var(--teal-wash); color: var(--teal-dark); }
.pane[hidden] { display: none; }
.result { border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; border: 1px solid var(--stone); background: #fff; }
.result.good { border-left: 4px solid var(--ok); }
.result.warn { border-left: 4px solid var(--copper); }
.result.info { border-left: 4px solid var(--teal); }

/* Chat illustration */
.chat { background: #fff; border: 1px solid var(--stone); border-radius: 14px; padding: 1rem; font-size: .95rem; }
.chat .m { padding: .65rem .85rem; border-radius: 12px; margin-bottom: .55rem; max-width: 92%; }
.chat .u { background: var(--teal); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat .a { background: var(--paper); border: 1px solid var(--stone); border-bottom-left-radius: 4px; }
.chat .t { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; color: var(--muted); background: #F1EEE8; border-radius: 6px; padding: .35rem .6rem; margin-bottom: .55rem; }
.chat .p { background: #F8EFE9; border: 1px dashed var(--copper-tint); color: #6C3824; font-size: .88rem; }
.chat-label { font-size: .8rem; color: var(--muted); margin-top: .5rem; }

/* Footer */
.site-footer { background: var(--ink); color: #C7D5DA; font-size: .95rem; }
.site-footer .wrap { padding-top: 3.5rem; padding-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #DCE7EA; text-decoration: none; }
.site-footer a:hover { color: var(--teal-tint); text-decoration: underline; }
.footer-logo { width: 240px; margin-bottom: 1rem; }
.footer-legal { border-top: 1px solid #2F4A57; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: #A9BCC3; }
.footer-legal p { margin-bottom: .5rem; }
.domain { letter-spacing: .02em; color: var(--teal-tint); font-weight: 700; }

/* Portal */
.portal-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 77px); }
.portal-side { background: var(--white); border-right: 1px solid var(--stone); padding: 1.25rem .75rem; }
.portal-side button { display: block; width: 100%; text-align: left; font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: .6rem .8rem; border-radius: 8px; cursor: pointer; font-size: .95rem; }
.portal-side button:hover { background: var(--paper); }
.portal-side button[aria-selected="true"] { background: var(--teal-wash); color: var(--teal-dark); }
.portal-side .ctx { font-size: .82rem; color: var(--muted); padding: .5rem .8rem 1rem; border-bottom: 1px solid var(--stone); margin-bottom: .75rem; }
.portal-main { padding: 2rem; }
@media (max-width: 860px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-side { border-right: 0; border-bottom: 1px solid var(--stone); display: flex; overflow-x: auto; gap: .25rem; padding: .5rem; }
  .portal-side .ctx { display: none; }
  .portal-side button { white-space: nowrap; width: auto; }
  .portal-main { padding: 1.25rem 16px; }
}
.demo-flag { background: #F8EFE9; border: 1px solid var(--copper-tint); color: #6C3824; padding: .55rem .9rem; border-radius: 8px; font-size: .88rem; margin-bottom: 1.25rem; }
.progress { height: 10px; background: var(--stone); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--teal); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.list-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--stone); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.modal-bg { position: fixed; inset: 0; background: rgba(24,43,52,.55); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal-bg.show { display: flex; }
.modal { background: #fff; border-radius: 14px; max-width: 520px; width: 100%; padding: 1.75rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { margin-top: 0; }
.oob { font-size: .8rem; font-weight: 700; color: #7E3F27; background: #F3E4DC; padding: .15rem .5rem; border-radius: 99px; }

.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt2 { margin-top: 2rem; }
.max60 { max-width: 60ch; }
.prose h2 { margin-top: 2.25rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.75rem; }
.prose { max-width: 75ch; }

@media (max-width: 900px) { .hero-grid { opacity: .22; } }
