:root {
  color-scheme: light;
  --navy: #172033;
  --navy-2: #22314d;
  --gold: #c7a14a;
  --gold-2: #e7d095;
  --cream: #f6f1e8;
  --paper: #fffdfa;
  --muted: #687084;
  --line: rgba(23, 32, 51, 0.12);
  --shadow: 0 26px 70px rgba(23, 32, 51, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

button,
input:not([type="checkbox"]) {
  appearance: none;
  -webkit-appearance: none;
}

button,
a,
input,
label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  overflow-wrap: break-word;
}

.landing-shell,
.guide-shell {
  min-height: 100svh;
}

.legal-shell {
  min-height: 100svh;
  background: var(--cream);
  padding: 18px;
}

.hero-section {
  position: relative;
  min-height: 100svh;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.94), rgba(23, 32, 51, 0.76) 43%, rgba(23, 32, 51, 0.12)),
    url("assets/manuel-hero.webp") center / cover no-repeat;
  color: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 158px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  padding: 6px 8px;
  backdrop-filter: blur(14px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.nav-pill,
.eyebrow-row span,
.section-kicker,
.step-kicker {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 9px 12px;
  color: #fff;
  backdrop-filter: blur(14px);
}

.nav-link {
  text-decoration: none;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.short-label {
  display: none;
}

.hero-grid {
  display: grid;
  gap: 22px;
  width: min(100%, 1160px);
  min-height: calc(100svh - 96px);
  margin: 0 auto;
  align-items: end;
  justify-items: center;
  padding: 22px 0 0;
}

.hero-copy {
  width: 100%;
  max-width: 680px;
  padding: 18px 0 6px;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow-row span {
  border: 1px solid rgba(231, 208, 149, 0.38);
  border-radius: 999px;
  background: rgba(231, 208, 149, 0.12);
  padding: 8px 10px;
  color: var(--gold-2);
}

h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 11vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.lead {
  max-width: 640px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 3vw, 1.18rem);
  line-height: 1.65;
}

.value-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.value-list article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
  backdrop-filter: blur(18px);
}

.value-list strong,
.value-list span {
  display: block;
}

.value-list strong {
  color: #fff;
  font-size: 0.98rem;
}

.value-list span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.signup-panel {
  width: 100%;
  max-width: 480px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.98), rgba(250, 244, 232, 0.98));
  color: var(--navy);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.advisor-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.advisor-card > div {
  min-width: 0;
}

.advisor-card img {
  width: 68px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 30%;
  background: #f6f1e8;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.16);
}

.advisor-card span,
.section-kicker,
.step-kicker {
  color: #8a6924;
}

.advisor-card strong {
  display: block;
  font-size: 1rem;
}

.advisor-card p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.progress-track {
  height: 6px;
  background: #eee5d4;
}

.progress-track span {
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  transition: width 220ms ease;
}

form {
  min-height: 0;
  padding: 20px;
}

.step,
.success-state {
  display: none;
}

.step.is-active,
.success-state:not([hidden]) {
  display: block;
}

.step h2,
.success-state h2 {
  margin-top: 8px;
  font-size: clamp(1.48rem, 5.8vw, 2.15rem);
  line-height: 1.08;
  overflow-wrap: break-word;
}

.form-subcopy {
  max-width: 340px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
  text-align: center;
}

.choice-stack,
.input-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.choice {
  width: 100%;
  min-height: 58px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  padding: 15px;
  text-align: left;
  font-weight: 850;
  line-height: 1.26;
  overflow-wrap: break-word;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.choice:hover,
.choice.is-selected {
  transform: translateY(-1px);
  border-color: rgba(199, 161, 74, 0.75);
  background: #fbf4e3;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  padding: 13px 14px;
  font-size: 1rem;
}

select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  padding: 10px 12px;
  font: inherit;
  font-weight: 750;
}

.checkbox-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.primary-button {
  display: inline-flex;
  min-height: 54px;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), #0d1322);
  color: #fff;
  cursor: pointer;
  padding: 14px 18px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: break-word;
  box-shadow: 0 18px 32px rgba(23, 32, 51, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button:hover {
  filter: brightness(1.05);
}

.primary-button:active {
  transform: translateY(1px);
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.2);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.primary-button.slim {
  width: fit-content;
  min-width: 190px;
}

.text-button,
.download-link {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #8a6924;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
}

.form-message {
  min-height: 22px;
  margin-top: 10px;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 760;
}

.success-state {
  padding: 28px 4px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: #f4ead4;
  color: #8a6924;
  font-size: 2rem;
  font-weight: 900;
}

.success-state p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.success-hint {
  border: 1px solid rgba(199, 161, 74, 0.28);
  border-radius: 16px;
  background: #fbf4e3;
  padding: 12px 14px;
  font-weight: 760;
}

.proof-band {
  display: grid;
  gap: 22px;
  padding: 54px 18px;
  background: var(--paper);
}

.proof-copy,
.proof-grid {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.proof-copy h2,
.final-cta h2 {
  max-width: 800px;
  margin-top: 8px;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.02;
}

.proof-grid {
  display: grid;
  gap: 12px;
}

.proof-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.proof-grid span {
  color: #8a6924;
  font-weight: 950;
}

.proof-grid strong {
  display: block;
  margin-top: 16px;
  font-size: 1.06rem;
}

.proof-grid p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.guide-shell {
  background: var(--cream);
}

.guide-hero {
  background: #172033;
  color: #fff;
  padding: 18px;
  padding-bottom: 42px;
}

.guide-topbar .brand {
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.22));
}

.guide-hero-grid {
  display: grid;
  gap: 26px;
  width: min(100%, 1160px);
  margin: 36px auto 0;
  align-items: end;
  justify-items: center;
}

.guide-hero-copy {
  width: 100%;
}

.guide-hero-copy h1 {
  max-width: 820px;
}

.guide-start-slot {
  width: min(100%, 980px);
  margin: 34px auto 0;
}

.guide-start-panel {
  display: grid;
  gap: 20px;
}

.guide-start-head {
  display: grid;
  gap: 12px;
  text-align: center;
}

.guide-start-head h1 {
  margin-inline: auto;
  max-width: 860px;
  font-size: clamp(2.25rem, 7vw, 4.9rem);
  line-height: 0.98;
}

.guide-start-head .lead {
  margin-inline: auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

.guide-start-panel .guide-video-block {
  margin: 4px 0 0;
  border: 1px solid rgba(231, 208, 149, 0.28);
  border-radius: 24px;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.3);
}

.guide-start-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.guide-start-flow div {
  border: 1px solid rgba(231, 208, 149, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.guide-start-flow span {
  color: var(--gold);
  font-weight: 950;
}

.guide-start-flow strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.guide-start-flow p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.guide-start-note {
  border: 1px solid rgba(231, 208, 149, 0.24);
  border-radius: 22px;
  background: rgba(255, 253, 250, 0.98);
  color: #172033;
}

.portrait-frame {
  position: relative;
  max-width: 360px;
  justify-self: center;
  border: 1px solid rgba(231, 208, 149, 0.35);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(231, 208, 149, 0.18), rgba(255, 255, 255, 0.06));
  padding: 10px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
}

.portrait-frame img {
  display: block;
  width: 100%;
  border-radius: 22px;
}

.guide-intro-card,
.guide-nav,
.guide-content,
.final-cta {
  width: min(calc(100% - 36px), 980px);
  margin-inline: auto;
}

.guide-intro-card {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.98);
  padding: 12px;
  box-shadow: var(--shadow);
}

.guide-intro-card .advisor-card {
  border: 0;
  padding: 6px;
}

.guide-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 22px;
}

.guide-nav a {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.guide-content {
  display: grid;
  gap: 22px;
  margin-top: 24px;
  padding-bottom: 34px;
}

.guide-chapter {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 22px 64px rgba(23, 32, 51, 0.08);
  overflow: hidden;
}

.chapter-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  background: linear-gradient(135deg, #fff, #f7ecd2);
}

.chapter-head > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: #172033;
  font-size: 1.5rem;
}

.chapter-head h2 {
  margin-top: 5px;
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1.05;
}

.chapter-head p:last-child {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.notion-body {
  padding: 22px;
}

.notion-body * {
  overflow-wrap: break-word;
}

.notion-body h3 {
  margin: 30px 0 10px;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.1;
}

.notion-body h4 {
  margin: 24px 0 9px;
  font-size: 1.08rem;
}

.notion-body p,
.notion-body li,
.notion-body blockquote {
  color: #30394d;
  font-size: 1rem;
  line-height: 1.72;
}

.notion-body p + p {
  margin-top: 8px;
}

.notion-body ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 22px;
}

.notion-body blockquote {
  margin: 16px 0;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: #f8eed8;
  padding: 14px 16px;
  font-weight: 800;
}

.notion-body hr {
  height: 1px;
  margin: 26px 0;
  border: 0;
  background: var(--line);
}

.notion-body figure {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.notion-body figure img {
  display: block;
  width: 100%;
  height: auto;
}

.notion-body .guide-video-block {
  background: #111827;
}

.guide-video-block video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.notion-body figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.video-note {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  border: 1px solid rgba(199, 161, 74, 0.34);
  border-radius: 18px;
  background: #f8eed8;
  padding: 16px;
}

.video-note span {
  color: var(--muted);
  line-height: 1.55;
}

.guide-inline-cta {
  display: grid;
  gap: 16px;
  align-items: center;
  margin: 0 22px 22px;
  border: 1px solid rgba(199, 161, 74, 0.32);
  border-radius: 22px;
  background: linear-gradient(135deg, #172033, #25324b);
  color: #fff;
  padding: 20px;
}

.guide-start-panel > .guide-inline-cta {
  margin: 0;
  border-color: rgba(231, 208, 149, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.guide-inline-cta strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(1.18rem, 3vw, 1.55rem);
  line-height: 1.15;
}

.guide-inline-cta p:not(.section-kicker) {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.guide-inline-cta .primary-button {
  justify-self: stretch;
  background: linear-gradient(135deg, var(--gold), #91691c);
  color: #111827;
}

.guide-floating-cta {
  display: none;
}

.final-cta {
  margin-top: 8px;
  margin-bottom: 42px;
  border-radius: 28px;
  background: #172033;
  color: #fff;
  padding: 28px;
  overflow: hidden;
}

.final-cta p:not(.section-kicker) {
  max-width: 680px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.final-cta .primary-button {
  background: linear-gradient(135deg, var(--gold), #91691c);
  color: #111827;
}

.legal-footer {
  display: grid;
  gap: 16px;
  width: min(calc(100% - 36px), 1160px);
  margin: 0 auto;
  border-top: 1px solid rgba(23, 32, 51, 0.12);
  padding: 26px 0 34px;
  color: #687284;
  font-size: 0.94rem;
}

.legal-footer div {
  display: grid;
  gap: 5px;
}

.legal-footer strong {
  color: var(--navy);
  font-weight: 750;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.legal-footer a {
  color: #667085;
  font-weight: 600;
  text-decoration: none;
}

.legal-footer a:hover {
  color: #6e551f;
  text-decoration: underline;
}

.legal-topbar {
  width: min(100%, 1160px);
  margin-inline: auto;
}

.legal-page {
  width: min(100%, 900px);
  margin: 34px auto 60px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 22px 64px rgba(23, 32, 51, 0.08);
  padding: clamp(22px, 5vw, 46px);
}

.quiet-admin-entry {
  width: min(100%, 900px);
  margin: -34px auto 28px;
  padding-right: 8px;
  text-align: right;
  font-size: 0.68rem;
  line-height: 1;
}

.quiet-admin-entry a {
  color: rgba(104, 112, 132, 0.42);
  text-decoration: none;
}

.quiet-admin-entry a:hover {
  color: rgba(104, 112, 132, 0.9);
  text-decoration: underline;
}

.legal-page h1 {
  margin-top: 8px;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1;
}

.legal-page section,
.legal-page > p + p {
  margin-top: 26px;
}

.legal-page h2 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1.15;
}

.legal-page p,
.legal-page li {
  color: #30394d;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-page a {
  color: #76591f;
  font-weight: 850;
}

.admin-shell {
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 0, rgba(199, 161, 74, 0.2), transparent 30%),
    linear-gradient(180deg, #f6f1e8, #fffdfa 46%, #f6f1e8);
  padding: 18px;
}

.admin-topbar {
  width: min(100%, 1160px);
}

.admin-topbar .nav-pill,
.legal-topbar .nav-pill {
  border-color: rgba(23, 32, 51, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.08);
}

.admin-login-card,
.admin-dashboard {
  width: min(100%, 1060px);
  margin: 36px auto 70px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
}

.admin-login-card {
  max-width: 520px;
  padding: clamp(22px, 5vw, 38px);
}

.admin-login-card h1,
.admin-dashboard h1 {
  margin-top: 8px;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: 1;
}

.admin-subcopy {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-login-form {
  display: grid;
  gap: 14px;
  min-height: 0;
  margin-top: 24px;
  padding: 0;
}

.admin-dashboard {
  padding: clamp(18px, 4vw, 30px);
}

.admin-dashboard-head {
  display: grid;
  gap: 18px;
  align-items: end;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.range-button {
  min-height: 38px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #667085;
  padding: 8px 13px;
  font-weight: 850;
}

.range-button.is-active {
  border-color: rgba(199, 161, 74, 0.65);
  background: #f4ead4;
  color: #6e551f;
}

.secondary-button {
  min-height: 44px;
  cursor: pointer;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  padding: 10px 14px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
}

.secondary-button.muted {
  color: #6b7280;
}

.admin-stats {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.admin-stats article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
}

.admin-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-stats strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1;
}

.analytics-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.analytics-card,
.live-panel,
.crm-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
}

.analytics-card-head,
.crm-head {
  display: grid;
  gap: 12px;
  align-items: end;
}

.analytics-card h2,
.crm-head h2 {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  line-height: 1.1;
}

.analytics-card-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.live-panel {
  margin-top: 18px;
}

.live-count {
  justify-self: start;
  border-radius: 999px;
  background: #e9f8ef;
  color: #137343;
  padding: 7px 11px;
  font-size: 0.88rem;
  line-height: 1;
}

.live-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.live-visitor {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 14px;
  background: #fffdfa;
  padding: 13px;
}

.live-main {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
}

.live-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #18a957;
  box-shadow: 0 0 0 5px rgba(24, 169, 87, 0.12);
}

.live-main strong {
  display: block;
  font-size: 0.98rem;
}

.live-main small,
.live-meta small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;
}

.live-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #5d6679;
  font-size: 0.84rem;
  font-weight: 850;
}

.live-meta small {
  margin-top: 0;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  gap: 8px;
  height: 190px;
  margin-top: 18px;
  align-items: end;
}

.bar-day {
  display: grid;
  gap: 7px;
  min-height: 100%;
  align-items: end;
  text-align: center;
}

.bar-pair {
  display: flex;
  height: 150px;
  align-items: end;
  justify-content: center;
  gap: 3px;
}

.bar {
  display: block;
  width: 9px;
  border-radius: 999px 999px 0 0;
}

.bar.visitors {
  background: #172033;
}

.bar.leads {
  background: var(--gold);
}

.bar-day small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.funnel-list,
.source-list,
.device-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.funnel-row {
  display: grid;
  gap: 8px;
}

.funnel-row div,
.source-row,
.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.funnel-row strong,
.source-row strong,
.device-row strong {
  font-size: 0.94rem;
}

.funnel-row span,
.source-row span,
.device-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.funnel-row i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #172033);
}

.source-row,
.device-row {
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 12px;
  padding: 11px 12px;
}

.crm-panel {
  margin-top: 18px;
}

.crm-controls {
  display: grid;
  gap: 10px;
}

.crm-controls input,
.crm-controls select {
  min-height: 46px;
}

.admin-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  padding: 13px 14px;
  vertical-align: top;
  font-size: 0.92rem;
}

.admin-table th {
  color: #6e551f;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table td {
  color: #30394d;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.admin-table a {
  color: #76591f;
  font-weight: 760;
  text-decoration: none;
}

.status-select {
  min-width: 136px;
}

.table-action {
  min-height: 36px;
  cursor: pointer;
  border: 1px solid rgba(199, 161, 74, 0.35);
  border-radius: 10px;
  background: #fbf4e3;
  color: #6e551f;
  padding: 8px 10px;
  font-weight: 850;
}

.notes-row td {
  background: #fffaf0;
}

.notes-panel {
  display: grid;
  gap: 12px;
}

.notes-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  padding: 0;
}

.note-item {
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
}

.note-item span,
.empty-copy {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.note-item p {
  margin-top: 5px;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .hero-section {
    padding: 26px;
  }

  .brand {
    width: 196px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    align-items: center;
    justify-items: stretch;
    padding-bottom: 40px;
  }

  .value-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .signup-panel {
    align-self: center;
  }

  form {
    min-height: 500px;
    padding: 24px;
  }

  .proof-band {
    padding: 74px 26px;
  }

  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-hero {
    padding: 26px;
  }

  .guide-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: center;
    justify-items: stretch;
    margin-top: 50px;
  }

  .guide-intro-card {
    grid-template-columns: 1fr auto;
    padding: 18px;
  }

  .guide-start-flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .guide-inline-cta {
    grid-template-columns: 1fr auto;
    margin-inline: 32px;
  }

  .legal-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .legal-footer nav {
    justify-content: flex-end;
    max-width: 560px;
  }

  .admin-dashboard-head {
    grid-template-columns: 1fr auto;
  }

  .admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .analytics-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }

  .crm-head {
    grid-template-columns: minmax(0, 0.65fr) minmax(420px, 1fr);
  }

  .crm-controls {
    grid-template-columns: minmax(180px, 1fr) 150px 160px;
  }

  .guide-start-panel > .guide-inline-cta {
    grid-template-columns: 1fr auto;
  }

  .notion-body,
  .chapter-head {
    padding: 32px;
  }
}

@media (max-width: 759px) {
  .hero-section {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(23, 32, 51, 0.78), rgba(23, 32, 51, 0.94) 34%, rgba(23, 32, 51, 1) 88%),
      url("assets/manuel-hero.webp") 30% 0 / auto 100svh no-repeat;
  }

  .topbar {
    gap: 8px;
    align-items: flex-start;
  }

  .topbar-actions {
    gap: 6px;
  }

  .hero-grid {
    min-height: auto;
    gap: 18px;
    padding-top: 9svh;
    text-align: center;
  }

  .hero-copy {
    padding: 0;
  }

  .eyebrow-row {
    justify-content: center;
    margin-bottom: 10px;
  }

  .lead {
    margin-inline: auto;
  }

  .value-list {
    display: none;
  }

  .signup-panel {
    margin-top: 0;
    box-shadow: 0 16px 36px rgba(11, 17, 31, 0.2);
  }

  .primary-button {
    min-height: 52px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(23, 32, 51, 0.2);
  }

  .primary-button:hover {
    filter: none;
  }

  .choice {
    text-align: center;
  }

  .proof-copy,
  .proof-grid article,
  .guide-hero-copy,
  .final-cta {
    text-align: center;
  }

  .guide-hero-grid {
    margin-top: 28px;
    text-align: center;
  }

  .portrait-frame {
    width: min(78vw, 300px);
  }

  .guide-intro-card {
    justify-items: stretch;
  }

  .primary-button.slim {
    width: 100%;
    min-width: 0;
  }

  .admin-dashboard-head,
  .admin-actions {
    justify-items: stretch;
  }

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

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

  .analytics-card,
  .crm-panel {
    padding: 14px;
  }

  .notes-panel form {
    grid-template-columns: 1fr;
  }

  .guide-floating-cta {
    position: fixed;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 14px;
    z-index: 30;
    display: grid;
    min-height: 52px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold), #91691c);
    color: #111827;
    box-shadow: 0 18px 44px rgba(11, 17, 31, 0.26);
    text-align: center;
    text-decoration: none;
    font-weight: 950;
  }

  body[data-page="guide"] {
    padding-bottom: 74px;
  }
}

@media (max-width: 480px) {
  .hero-section,
  .guide-hero {
    padding: 12px 14px 18px;
  }

  .brand {
    width: 112px;
    border-radius: 12px;
    padding: 5px 6px;
  }

  .brand img {
    max-height: 50px;
  }

  .nav-pill,
  .eyebrow-row span,
  .section-kicker,
  .step-kicker {
    font-size: 0.68rem;
  }

  .nav-pill {
    padding: 7px 9px;
    white-space: nowrap;
  }

  .wide-label {
    display: none;
  }

  .short-label {
    display: inline;
  }

  h1 {
    font-size: clamp(1.78rem, 8.5vw, 2.5rem);
    line-height: 1;
  }

  .lead {
    margin-top: 12px;
    font-size: 0.91rem;
    line-height: 1.44;
  }

  .signup-panel,
  .guide-chapter,
  .final-cta,
  .guide-intro-card,
  .guide-inline-cta {
    border-radius: 18px;
  }

  .advisor-card {
    grid-template-columns: 62px 1fr;
    gap: 10px;
    padding: 12px 13px;
    text-align: left;
  }

  .advisor-card img {
    width: 62px;
    height: 70px;
    border-radius: 12px;
  }

  form {
    min-height: 0;
    padding: 15px 18px 18px;
  }

  .step h2,
  .success-state h2 {
    font-size: clamp(1.42rem, 6vw, 1.8rem);
  }

  .form-subcopy {
    font-size: 0.92rem;
    margin-top: 8px;
  }

  .input-stack {
    margin-top: 14px;
  }

  .choice {
    min-height: 54px;
    padding: 13px 12px;
  }

  .proof-band {
    padding: 46px 14px;
  }

  .guide-intro-card,
  .guide-nav,
  .guide-content,
  .final-cta {
    width: min(calc(100% - 28px), 980px);
  }

  .guide-intro-card {
    margin-top: 18px;
    padding: 10px;
  }

  .chapter-head {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 20px 16px;
    text-align: center;
  }

  .chapter-head h2 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .notion-body {
    padding: 18px 16px;
  }

  .guide-inline-cta {
    margin: 0 16px 18px;
    padding: 18px;
    text-align: center;
  }

  .guide-start-panel > .guide-inline-cta {
    margin: 0;
  }

  .notion-body p,
  .notion-body li,
  .notion-body blockquote {
    font-size: 0.97rem;
    line-height: 1.66;
  }

  .final-cta {
    padding: 24px 18px;
  }
}

@media (max-width: 350px) {
  .hero-section,
  .guide-hero {
    padding-inline: 12px;
  }

  .brand {
    width: 98px;
  }

  .nav-pill {
    padding: 6px 7px;
    font-size: 0.62rem;
  }

  .eyebrow-row {
    display: none;
  }

  .hero-grid {
    padding-top: 8svh;
  }

  h1 {
    font-size: 1.74rem;
  }

  .lead {
    margin-top: 10px;
    font-size: 0.86rem;
    line-height: 1.36;
  }

  .advisor-card {
    grid-template-columns: 54px 1fr;
    justify-items: stretch;
    text-align: left;
  }

  .signup-panel .advisor-card {
    padding: 10px 11px;
  }

  .advisor-card img,
  .signup-panel .advisor-card img {
    width: 54px;
    height: 62px;
    border-radius: 11px;
  }

  .checkbox-row {
    grid-template-columns: 18px 1fr;
    text-align: left;
  }
}
