:root {
  --ink: #17252b;
  --muted: #5c6c71;
  --line: #d6e2df;
  --teal: #107a78;
  --teal-dark: #073f43;
  --night: #092f35;
  --mint: #d9f0ec;
  --aqua: #78d6cc;
  --gold: #c9922f;
  --gold-soft: #f2d59a;
  --cream: #f8f3e9;
  --paper: #fffdf8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(7, 63, 67, 0.14);
  --shadow-strong: 0 30px 90px rgba(7, 63, 67, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.section-guide {
  position: sticky;
  top: 73px;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px clamp(18px, 4vw, 54px);
  background: rgba(248, 243, 233, 0.94);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  backdrop-filter: blur(14px);
}

.section-guide strong {
  color: var(--teal-dark);
  white-space: nowrap;
}

.admin-only-link,
.admin-only-section {
  display: none;
}

body.is-admin .admin-only-link {
  display: inline-flex;
}

body.is-admin .admin-only-section {
  display: block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 390px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 44%),
    var(--teal);
  border: 2px solid rgba(201, 146, 47, 0.72);
  box-shadow: 0 8px 20px rgba(7, 63, 67, 0.16);
  font-weight: 800;
}

.brand-mark span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 6px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.tm {
  position: relative;
  top: -0.38em;
  margin-left: 1px;
  font-size: 0.45em;
  font-weight: 800;
  line-height: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 12px;
}

.header-auth-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 122, 120, 0.28);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.header-auth-button.is-logged-in {
  color: var(--white);
  background: var(--teal-dark);
}

.section-band,
.section-block {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-band {
  background:
    linear-gradient(120deg, rgba(15, 111, 112, 0.1), transparent 46%),
    var(--cream);
}

.section-block {
  max-width: 1220px;
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 75px);
  padding-top: clamp(42px, 5vw, 72px);
  padding-bottom: clamp(42px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.66fr);
  align-items: start;
  gap: clamp(32px, 6vw, 84px);
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.62) 42%, rgba(7, 63, 67, 0.12)),
    repeating-linear-gradient(90deg, rgba(7, 63, 67, 0.05) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(7, 63, 67, 0.045) 0 1px, transparent 1px 96px);
}

.hero::after {
  width: 44vw;
  min-width: 360px;
  aspect-ratio: 1;
  right: -12vw;
  top: 8%;
  border: 1px solid rgba(16, 122, 120, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(120, 214, 204, 0.28), rgba(120, 214, 204, 0) 58%),
    conic-gradient(from 130deg, rgba(201, 146, 47, 0.24), rgba(16, 122, 120, 0.16), rgba(201, 146, 47, 0.24));
  opacity: 0.9;
  filter: blur(0.2px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(42px, 5.65vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.hero-lede,
.section-heading p,
.founder p,
.audit-layout p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-lede {
  max-width: 650px;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(180deg, #15918c, var(--teal-dark));
  box-shadow: 0 14px 30px rgba(16, 122, 120, 0.26);
}

.button.secondary {
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(16, 122, 120, 0.22);
}

.button.secondary:hover {
  border-color: rgba(16, 122, 120, 0.46);
  box-shadow: 0 12px 24px rgba(7, 63, 67, 0.1);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin-top: 22px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(16, 122, 120, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.hero-panel,
.hero-portrait,
.login-card,
.membership-card,
.intake-form,
.booking-form,
.booking-card,
.qa-form,
.service-detail,
.dashboard-panels > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-portrait {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: var(--white);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center top;
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(9, 47, 53, 0.9)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38%);
  pointer-events: none;
}

.portrait-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 18px;
  color: var(--white);
  background: rgba(7, 63, 67, 0.56);
  backdrop-filter: blur(12px);
}

.portrait-caption strong {
  font-size: 18px;
  line-height: 1.25;
}

.portrait-caption span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2.2vw, 22px);
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(160deg, var(--night), var(--teal-dark) 58%, #0f585a);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-strong);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.panel-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-topline strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(120, 214, 204, 0.45);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--aqua);
  background: rgba(120, 214, 204, 0.1);
}

.revenue-radar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 220px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(120, 214, 204, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(120, 214, 204, 0.16), transparent 64%);
}

.radar-ring,
.radar-sweep,
.radar-point {
  position: absolute;
  border-radius: 50%;
}

.radar-ring {
  border: 1px solid rgba(120, 214, 204, 0.28);
}

.radar-ring.one {
  inset: 18%;
}

.radar-ring.two {
  inset: 33%;
}

.radar-ring.three {
  inset: 5%;
  border-color: rgba(242, 213, 154, 0.22);
}

.radar-sweep {
  inset: 7%;
  background: conic-gradient(from 275deg, rgba(120, 214, 204, 0.34), rgba(120, 214, 204, 0) 72deg);
  animation: sweep 7s linear infinite;
}

.radar-point {
  width: 11px;
  height: 11px;
  background: var(--gold-soft);
  box-shadow: 0 0 0 6px rgba(242, 213, 154, 0.12), 0 0 24px rgba(242, 213, 154, 0.56);
}

.point-one {
  top: 27%;
  left: 62%;
}

.point-two {
  right: 22%;
  bottom: 28%;
}

.point-three {
  left: 25%;
  bottom: 38%;
}

.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.metric-row span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.metric-row strong {
  color: var(--white);
  font-size: 27px;
}

.pipeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.pipeline span {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.pipeline span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(120, 214, 204, 0.34), rgba(242, 213, 154, 0.22));
}

.pipeline span {
  isolation: isolate;
}

.metric-stack,
.hero-insight {
  position: relative;
  z-index: 1;
}

.hero-insight {
  display: none;
  gap: 6px;
  border: 1px solid rgba(242, 213, 154, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-insight strong {
  color: var(--gold-soft);
  font-size: 13px;
}

.hero-insight span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.5;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 42px;
  align-items: center;
}

.founder-copy {
  display: grid;
  gap: 18px;
}

.founder-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.founder-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-grid,
.vault-grid,
.product-grid,
.kpi-grid,
.access-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.vault-grid article,
.product-grid article,
.kpi-grid article,
.access-grid article,
.legal-grid article {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
}

.service-card {
  cursor: pointer;
}

.service-card.active {
  border-color: rgba(15, 111, 112, 0.45);
  background: var(--mint);
}

.service-card p,
.vault-grid p,
.product-grid p,
.access-grid p,
.legal-grid p,
.kpi-grid small {
  color: var(--muted);
  line-height: 1.55;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-grid article {
  min-height: 0;
}

.legal-grid a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-detail {
  margin-top: 18px;
  padding: 26px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-grid ul,
.check-list,
.dashboard-panels ol {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(330px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.intake-form,
.booking-form,
.plain-form,
.qa-form,
.login-card,
.membership-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.plain-form {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.demo-login-button {
  width: 100%;
}

.qa-form {
  margin-top: 18px;
  padding: 18px;
}

.onboarding-form {
  display: grid;
  gap: 16px;
}

.inline-admin-tool {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.compact-heading {
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-section {
  display: grid;
  gap: 24px;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.booking-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.booking-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.booking-form {
  max-width: 980px;
  margin: 0 auto;
}

.booking-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.booking-submit-row .form-status {
  margin: 0;
}

.form-status a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vault-grid article {
  display: grid;
  gap: 12px;
}

.access-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(15, 111, 112, 0.2);
  border-radius: 999px;
  color: var(--teal-dark);
  background: linear-gradient(180deg, #ecfaf7, var(--mint));
  font-size: 12px;
  font-weight: 800;
}

.vault-grid button,
.mini-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  background: #f8fbfa;
  color: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
}

.tools-section {
  background: linear-gradient(180deg, #f8fbfa 0%, #ffffff 100%);
}

.tool-stack {
  display: grid;
  gap: 24px;
}

.cob-tool {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.cob-form,
.cob-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.cob-form {
  display: grid;
  gap: 16px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cob-results {
  display: grid;
  align-content: start;
  gap: 14px;
}

.cob-results h3 {
  margin: 0;
}

.cob-results p {
  color: var(--muted);
  line-height: 1.6;
}

.cob-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cob-result-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--soft);
}

.cob-result-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.cob-result-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: 1.3rem;
}

.cob-result-summary {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.cob-result-summary ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.score-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.score-badge.healthy {
  background: rgba(14, 138, 126, 0.12);
  color: var(--teal-dark);
}

.score-badge.attention {
  background: rgba(214, 151, 33, 0.16);
  color: #8a5a00;
}

.score-badge.urgent {
  background: rgba(196, 67, 84, 0.13);
  color: #9b2338;
}

.report-card-grid {
  display: grid;
  gap: 12px;
}

.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
}

.report-card h4,
.cob-results h4 {
  margin: 4px 0 8px;
}

.report-card p {
  margin: 8px 0;
}

.report-card strong {
  color: var(--ink);
}

.report-card ul {
  margin: 8px 0 10px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.form-status,
.portal-session {
  margin: 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.portal-session {
  display: none;
  border: 1px solid rgba(15, 111, 112, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: var(--mint);
}

.portal-session.active {
  display: block;
}

.portal-session-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.portal-session-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 111, 112, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.portal-session-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 600;
}

.portal-session-card p {
  margin: 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.65fr) minmax(0, 1fr);
  gap: 22px;
}

.access-grid article {
  display: grid;
  gap: 12px;
}

.product-grid article {
  display: grid;
  gap: 12px;
}

.program-avatar {
  display: block;
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 63, 67, 0.1);
}

.product-grid strong {
  align-self: end;
  color: var(--teal-dark);
}

.access-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.qa-panel {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(15, 111, 112, 0.24);
  border-radius: 8px;
  padding: 24px;
  background: var(--mint);
}

.qa-avatar {
  float: right;
  width: min(34vw, 190px);
  margin: 0 0 14px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 63, 67, 0.1);
}

.qa-counter {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(15, 111, 112, 0.2);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
}

.qa-counter strong {
  color: var(--teal-dark);
  font-size: 56px;
  line-height: 1;
}

.qa-counter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.small-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.safety-note {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  border: 1px solid rgba(201, 146, 47, 0.32);
  border-radius: 8px;
  padding: 14px;
  color: #624812;
  background: #fff8e8;
  font-size: 13px;
  line-height: 1.5;
}

.safety-note.compact {
  margin: 12px 0 0;
}

.safety-note strong {
  color: #5f440d;
}

.tier-list,
.rhythm,
.membership-actions {
  display: grid;
  gap: 10px;
}

.tier-list span,
.rhythm span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfa;
  color: var(--muted);
  font-weight: 700;
}

.kpi-grid article {
  min-height: 150px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-metrics article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.admin-metrics article {
  padding: 18px;
}

.admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: 38px;
  line-height: 1;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.admin-panel {
  min-height: 360px;
  padding: 20px;
}

.admin-onboarding {
  grid-column: 1 / -1;
  min-height: auto;
}

.brand-deliverables-panel {
  grid-column: 1 / -1;
  min-height: auto;
}

.brand-deliverables {
  display: grid;
  gap: 22px;
}

.deliverable-group {
  display: grid;
  gap: 12px;
}

.deliverable-group > h4 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 16px;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.deliverable-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfa;
}

.deliverable-card h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.deliverable-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.deliverable-card .mini-button {
  align-self: end;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfa;
}

.admin-item h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
}

.admin-item p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-item strong {
  color: var(--teal-dark);
  font-size: 13px;
}

.admin-item.is-complete {
  opacity: 0.72;
}

.qa-answer-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.qa-answer-form textarea {
  min-height: 88px;
}

.qa-answer-preview {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  border-left: 3px solid var(--teal);
  padding-left: 10px;
}

.qa-answer-preview p {
  margin: 0;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.task-actions .mini-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.mini-button.quiet {
  color: var(--muted);
  background: var(--white);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(200, 154, 58, 0.32);
  border-radius: 999px;
  padding: 6px 10px;
  color: #7a5a13;
  background: rgba(200, 154, 58, 0.12);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.progress-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e7eeec;
}

.progress-bar span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.kpi-grid span,
.kpi-grid small {
  display: block;
}

.kpi-grid span {
  color: var(--muted);
  font-weight: 800;
}

.kpi-grid strong {
  display: block;
  margin: 14px 0 8px;
  color: var(--teal-dark);
  font-size: 34px;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.dashboard-panels > div {
  padding: 24px;
}

.academy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.academy-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.academy-tabs button.active {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.academy-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
}

.academy-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.academy-detail-grid p,
.academy-detail-grid li {
  color: var(--muted);
  line-height: 1.65;
}

.academy-detail-grid ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.certification-center {
  display: grid;
  gap: 20px;
}

.certification-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.certification-intro p {
  color: var(--muted);
  line-height: 1.65;
}

.certification-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
  display: grid;
  gap: 8px;
}

.certification-summary strong {
  color: var(--teal-dark);
}

.certification-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.certification-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  display: grid;
  gap: 12px;
  min-height: 100%;
}

.certification-card-header {
  display: grid;
  gap: 10px;
}

.certification-card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.certification-card p,
.certification-card small {
  color: var(--muted);
  line-height: 1.55;
}

.certification-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.certification-includes span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.certification-card-footer {
  display: grid;
  gap: 10px;
  align-self: end;
}

.certification-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.certification-note strong {
  color: var(--teal-dark);
}

.launch .launch-grid {
  display: none;
}

.launch-status-grid,
.launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.launch-card,
.launch-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
}

.launch-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.launch-grid strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
}

.launch-card strong {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.launch-card.done {
  border-color: rgba(16, 122, 120, 0.28);
  background: linear-gradient(180deg, #ffffff, #f4fbf8);
}

.launch-card.partial {
  border-color: rgba(201, 146, 47, 0.38);
  background: linear-gradient(180deg, #ffffff, #fff9ed);
}

.launch-card.next {
  border-color: rgba(92, 108, 113, 0.24);
}

.launch-card.partial strong {
  background: var(--gold);
}

.launch-card.next strong {
  background: var(--teal-dark);
}

.launch-card h3 {
  margin-top: 2px;
}

.launch-links-panel,
.launch-test-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
}

.launch-links-panel h3,
.launch-test-panel h3 {
  margin: 0;
}

.launch-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.journey-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.journey-list li {
  padding-left: 4px;
}

.journey-list strong {
  color: var(--teal-dark);
}

.launch-grid strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
}

.launch-grid .mini-button {
  margin-top: 6px;
}

.launch-card p,
.launch-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.module-list span,
.module-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfa;
  color: var(--muted);
  font-weight: 700;
}

.module-card {
  display: grid;
  gap: 10px;
}

.module-card strong {
  color: var(--ink);
}

.module-card small {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.module-card .mini-button {
  justify-self: start;
  box-shadow: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--teal-dark);
}

.site-footer div,
.footer-links {
  display: grid;
  gap: 8px;
}

.site-footer span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  justify-items: end;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-auth-button {
    order: 3;
    width: 100%;
  }

  .site-nav {
    position: absolute;
    top: 75px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px;
  }

  body.is-admin .admin-only-link {
    display: block;
  }

  .hero,
  .founder,
  .audit-layout,
  .cob-tool,
  .portal-grid,
  .dashboard-panels,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-panel {
    max-width: 620px;
  }

  .hero-portrait {
    max-width: 620px;
    min-height: 460px;
  }

  .hero-portrait img {
    min-height: 460px;
  }

  .revenue-radar {
    width: min(100%, 310px);
  }

  .service-grid,
  .booking-grid,
  .vault-grid,
  .product-grid,
  .access-grid,
  .legal-grid,
  .kpi-grid,
  .admin-metrics,
  .brand-deliverables,
  .deliverable-grid,
  .module-list,
  .certification-intro,
  .certification-grid,
  .academy-detail-grid,
  .detail-grid,
  .launch-status-grid,
  .launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .section-guide {
    top: 73px;
    display: grid;
    gap: 2px;
  }

  .brand small {
    display: none;
  }

  .brand {
    min-width: 0;
    flex: 1;
    max-width: 250px;
  }

  .brand strong {
    font-size: 13px;
    line-height: 1.2;
  }

  h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  .section-band,
  .section-block {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-items: start;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof span {
    flex: 1 1 145px;
    justify-content: center;
    text-align: center;
  }

  .metric-row strong {
    font-size: 28px;
  }

  .revenue-radar {
    width: min(100%, 250px);
  }

  .qa-avatar {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }

  .service-grid,
  .vault-grid,
  .product-grid,
  .access-grid,
  .kpi-grid,
  .admin-metrics,
  .brand-deliverables,
  .deliverable-grid,
  .module-list,
  .certification-intro,
  .certification-grid,
  .academy-detail-grid,
  .detail-grid,
  .cob-result-grid,
  .form-row,
  .qa-panel,
  .admin-item,
  .launch-status-grid,
  .launch-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
