:root {
  --bg: #f6f4ef;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffdf9;
  --ink: #1f2824;
  --muted: #5d6b65;
  --line: rgba(31, 40, 36, 0.1);
  --line-strong: rgba(31, 40, 36, 0.18);
  --sage: #5e7c72;
  --sage-deep: #34544b;
  --sand: #e8dfd0;
  --amber: #bf7d3d;
  --amber-deep: #905922;
  --shadow: 0 24px 60px rgba(55, 48, 33, 0.1);
  --shadow-soft: 0 14px 32px rgba(55, 48, 33, 0.08);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --frame: 1160px;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(94, 124, 114, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(191, 125, 61, 0.14), transparent 24%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button {
  font: inherit;
}

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

.page-shell {
  width: min(100% - 24px, var(--frame));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.site-shell {
  width: min(100% - 24px, var(--frame));
  margin: 0 auto;
}

.site-footer {
  width: min(100% - 24px, var(--frame));
  margin: 0 auto;
  padding: 0 0 34px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(52, 84, 75, 0.08);
  box-shadow: var(--shadow-soft);
}

.site-footer__brand-link {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--sage-deep);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.site-footer__brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.site-footer__nav a {
  color: #5f6870;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__icon-link,
.site-footer__email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(52, 84, 75, 0.1);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.site-footer__icon-link {
  width: 44px;
  padding: 0;
}

.site-footer__icon-link svg,
.site-footer__email-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer__email-link {
  gap: 10px;
}

.site-footer__copyright {
  margin: 12px 4px 0;
  color: var(--muted);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.portal-header {
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(17, 31, 53, 0.08);
  border-radius: 34px;
  box-shadow: 0 24px 40px rgba(22, 27, 33, 0.08);
  overflow: hidden;
}

.portal-header__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  padding: 28px 32px 22px;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.portal-brand__logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex: 0 0 auto;
}

.portal-brand__text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-left: -8px;
}

.portal-brand__mark {
  color: #16365f;
  font-size: 2rem;
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.05em;
  line-height: 1;
}

.portal-brand__sub {
  color: #717273;
  font-size: 0.82rem;
  line-height: 1.4;
}

.portal-main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 28px;
  border-top: 1px solid rgba(17, 31, 53, 0.08);
  border-bottom: 1px solid rgba(17, 31, 53, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.portal-main-nav a {
  text-decoration: none;
  padding: 17px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #243243;
}

.portal-header__nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.portal-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 28px;
}

.portal-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
}

.portal-header__button--secondary {
  background: rgba(25, 59, 106, 0.08);
  color: #193b6a;
  border: 1px solid rgba(25, 59, 106, 0.1);
}

.portal-header__button--primary {
  background: linear-gradient(180deg, #e1a354, #b98312);
  color: #fff;
  box-shadow: 0 12px 24px rgba(185, 121, 47, 0.24);
}

.portal-menu-toggle {
  display: none;
}

.section {
  margin-top: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 24px;
}

.personalization-section {
  padding: 20px;
}

.personalization-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(94, 124, 114, 0.18);
  background:
    radial-gradient(circle at top right, rgba(94, 124, 114, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 248, 0.98));
  box-shadow: var(--shadow-soft);
}

.quiz-promo-section {
  padding: 20px;
}

.quiz-promo-card {
  padding: 34px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(191, 125, 61, 0.24);
  background:
    radial-gradient(circle at top right, rgba(191, 125, 61, 0.18), transparent 30%),
    linear-gradient(135deg, #fffaf3 0%, #fff6ec 52%, #f8f3ea 100%);
  box-shadow: var(--shadow-soft);
  text-align: center;
  overflow: hidden;
}

.quiz-promo-title {
  max-width: 12ch;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  letter-spacing: -0.05em;
}

.quiz-promo-copy {
  max-width: 44ch;
  margin: 18px auto 0;
  line-height: 1.75;
}

.quiz-promo-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 320px);
  margin-top: 26px;
  margin-inline: auto;
}

.hero-copy,
.hero-card,
.info-card,
.session-card,
.pricing-card,
.booking-panel {
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(191, 125, 61, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 244, 0.98));
}

.hero-card {
  padding: 28px;
  align-self: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--sage-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--sage));
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  text-wrap: balance;
}

h1,
h2,
.brand,
.price {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.9rem, 8vw, 5.2rem);
  letter-spacing: -0.05em;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 1.06rem;
}

.result-chip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(94, 124, 114, 0.1);
  color: var(--sage-deep);
  font-size: 0.94rem;
  font-weight: 700;
}

.result-chip strong {
  color: var(--ink);
}

.personalization-label {
  margin-top: 4px;
  color: var(--sage-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.personalization-value {
  max-width: none;
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--amber-deep);
}

.personalization-mix {
  margin-top: 10px;
  color: var(--amber);
  font-size: 0.98rem;
  font-weight: 700;
}

.personalization-copy {
  max-width: 56ch;
  margin-top: 12px;
}

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

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 52px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #fffdfa;
  background: linear-gradient(135deg, #8f5220, #6f3910);
  box-shadow: 0 18px 34px rgba(111, 57, 16, 0.28);
}

.button-secondary {
  color: var(--sage-deep);
  background: #eef3f1;
  border-color: rgba(52, 84, 75, 0.12);
}

.button-ghost {
  color: var(--ink);
  background: #f4ede2;
  border-color: rgba(31, 40, 36, 0.08);
}

.hero-actions .button-primary,
.site-header .button-secondary {
  min-width: 220px;
}

.card-label,
.plan-name,
.booking-plan-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-label,
.booking-plan-label {
  color: var(--sage-deep);
}

.feature-stack,
.plan-points {
  margin: 16px 0 0;
  padding-left: 18px;
}

.feature-stack li,
.plan-points li {
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.55;
}

.section-heading {
  max-width: 60ch;
  margin-bottom: 20px;
}

.section-actions {
  margin-top: 16px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.problem-grid,
.session-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
}

.info-card,
.session-card,
.pricing-card {
  padding: 24px;
}

.session-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(94, 124, 114, 0.1);
  color: var(--sage-deep);
  font-weight: 800;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
}

.pricing-card-basic {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 247, 0.98));
  border-color: rgba(52, 84, 75, 0.12);
}

.plan-kicker {
  color: var(--sage-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.pricing-card-featured {
  background:
    radial-gradient(circle at top right, rgba(191, 125, 61, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 247, 238, 0.98));
  border: 1px solid rgba(191, 125, 61, 0.5);
  transform: translateY(-6px) scale(1.05);
  box-shadow:
    0 26px 54px rgba(144, 89, 34, 0.18),
    0 0 0 1px rgba(191, 125, 61, 0.18);
}

.featured-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(191, 125, 61, 0.14);
  color: var(--amber-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.price-currency {
  font-size: 0.95rem;
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-summary {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
}

.featured-plan-note {
  padding: 14px 16px;
  border: 1px solid rgba(191, 125, 61, 0.24);
  border-radius: 18px;
  background: rgba(191, 125, 61, 0.12);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.6;
}

.report-trigger-featured {
  justify-self: start;
  border-color: rgba(191, 125, 61, 0.24);
  animation: pulse-report 1.8s ease-in-out infinite;
}

.plan-microcopy {
  color: var(--amber-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.faq-item summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
}

.booking-section {
  scroll-margin-top: 100px;
}

.booking-heading {
  text-align: center;
  margin-inline: auto;
}

.booking-heading h2 {
  margin-inline: auto;
}

.booking-panel {
  padding: 24px;
}

.booking-meta {
  margin-bottom: 18px;
}

.booking-meta-inline h3 {
  margin: 6px 0;
}

.booking-toggle {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}

.toggle-button {
  appearance: none;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.toggle-button.is-active {
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  border-color: transparent;
  color: #fff;
}

.embed-stack {
  display: grid;
  gap: 0;
}

.embed-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.embed-card[hidden] {
  display: none;
}

.embed-card-featured {
  border-color: rgba(191, 125, 61, 0.4);
  box-shadow:
    0 18px 42px rgba(111, 57, 16, 0.08),
    0 0 0 1px rgba(191, 125, 61, 0.14);
}

.embed-card-head {
  margin-bottom: 14px;
}

.embed-card-head h3 {
  margin: 6px 0;
}

.mobile-booking-fallback {
  display: none;
}

.mobile-booking-fallback p {
  margin-bottom: 12px;
}

.mobile-booking-button {
  width: 100%;
}

.tidycal-embed-shell {
  width: 100%;
  min-height: 760px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

#tidycal-embed {
  min-height: 760px;
}

.info-card h3,
.session-card p {
  max-width: 26ch;
}

.info-card h3 {
  font-size: 1.16rem;
  line-height: 1.35;
  margin-top: 16px;
}

.report-modal[hidden] {
  display: none;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 22, 0.58);
  backdrop-filter: blur(6px);
}

.report-dialog {
  position: relative;
  width: min(100%, 920px);
  max-height: min(90vh, 980px);
  overflow: auto;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(191, 125, 61, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 249, 244, 0.99));
  box-shadow: 0 30px 80px rgba(18, 23, 21, 0.24);
}

.report-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 40, 36, 0.08);
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.report-close::before {
  content: "\00D7";
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.report-header {
  margin-top: 8px;
  margin-bottom: 22px;
}

.report-body {
  display: grid;
  gap: 18px;
}

.report-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.report-section h3,
.report-column h4 {
  margin-bottom: 10px;
}

.report-summary-grid,
.report-columns,
.priority-grid {
  display: grid;
  gap: 14px;
}

.report-summary-card,
.report-column,
.timeline-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(246, 243, 236, 0.9);
  border: 1px solid rgba(31, 40, 36, 0.08);
}

.report-summary-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--sage-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-summary-card strong,
.timeline-item strong,
.priority-pill {
  color: var(--ink);
}

.report-summary-card-wide {
  grid-column: 1 / -1;
}

.report-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.report-list li {
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.55;
}

.priority-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 12px;
}

.priority-pill {
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(94, 124, 114, 0.12);
  text-align: center;
  font-weight: 800;
}

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

.timeline-item p {
  margin-top: 6px;
}

.report-section-highlight {
  background:
    radial-gradient(circle at top right, rgba(94, 124, 114, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(247, 250, 248, 0.98), rgba(251, 249, 244, 0.98));
}

.report-disclaimer {
  margin-top: 14px;
  font-size: 0.92rem;
}

.report-example-note {
  margin: 0 4px 4px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.7;
}

@keyframes pulse-report {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(191, 125, 61, 0.16);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(191, 125, 61, 0);
    transform: scale(1.03);
  }
}

@media (min-width: 780px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: stretch;
  }

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

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

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

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

@media (max-width: 779px) {
  .portal-header {
    border-radius: 24px;
  }

  .portal-header__top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px 14px 14px;
  }

  .portal-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(17, 31, 53, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(22, 27, 33, 0.08);
    cursor: pointer;
  }

  .portal-menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: #193b6a;
  }

  .portal-brand {
    min-width: 0;
    gap: 8px;
  }

  .portal-brand__logo {
    width: 52px;
    height: 52px;
  }

  .portal-brand__text {
    margin-left: 0;
    min-width: 0;
  }

  .portal-brand__mark {
    font-size: 1.4rem;
  }

  .portal-brand__sub {
    display: none;
  }

  .portal-header__nav-wrap {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border-top: 1px solid rgba(17, 31, 53, 0.08);
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.9);
  }

  .portal-header.is-open .portal-header__nav-wrap {
    display: flex;
  }

  .portal-main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .portal-main-nav a {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid rgba(17, 31, 53, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.2;
  }

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

  .pricing-card-featured {
    transform: none;
  }

  .report-dialog {
    width: min(100%, 760px);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, var(--frame));
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .site-footer {
    width: min(100% - 16px, var(--frame));
    padding-bottom: 24px;
  }

  .site-shell {
    width: min(100% - 16px, var(--frame));
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .site-footer__links {
    width: 100%;
  }

  .site-footer__email-link {
    width: 100%;
    justify-content: center;
  }

  .section,
  .hero-copy,
  .hero-card,
  .info-card,
  .session-card,
  .pricing-card,
  .booking-panel {
    border-radius: 22px;
  }

  .section,
  .hero-copy,
  .hero-card,
  .quiz-promo-card,
  .info-card,
  .session-card,
  .pricing-card,
  .booking-panel {
    padding: 32px 20px;
  }

  h1 {
    font-size: 2.55rem;
    max-width: 10ch;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-actions,
  .booking-toggle {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 56px;
  }

  .pricing-grid {
    display: flex;
    flex-direction: column;
  }

  .pricing-card-featured {
    order: -1;
    margin-bottom: 8px;
  }

  .hero {
    gap: 16px;
  }

  .hero-text {
    max-width: 32ch;
  }

  .quiz-promo-title {
    font-size: 2.65rem;
    max-width: 10ch;
  }

  .quiz-promo-copy {
    max-width: 28ch;
  }

  .tidycal-embed-shell,
  .tidycal-embed {
    height: 700px !important;
  }

  .mobile-booking-fallback {
    display: block;
  }

  .tidycal-embed-shell {
    display: none;
  }

  .report-trigger-featured {
    width: 100%;
    justify-self: stretch;
  }

  .report-modal {
    padding: 10px;
  }

  .report-dialog {
    padding: 18px;
    border-radius: 22px;
  }

  .report-section {
    padding: 18px;
  }
}

.portal-header__button--primary {
  background: #193b6a;
  color: #fff;
  border: 1px solid rgba(25, 59, 106, 0.16);
  box-shadow: none;
}

@media (max-width: 640px) {
  .portal-header {
    border-radius: 24px;
    overflow: hidden;
  }

  .portal-header__top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 16px 14px;
  }

  .portal-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(17, 31, 53, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(22, 27, 33, 0.08);
    cursor: pointer;
  }

  .portal-menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: #193b6a;
  }

  .portal-brand {
    min-width: 0;
    gap: 10px;
  }

  .portal-brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    background: transparent;
  }

  .portal-brand__text {
    margin-left: 0;
    min-width: 0;
  }

  .portal-brand__mark {
    font-size: 1.25rem;
    line-height: 1.05;
  }

  .portal-brand__sub {
    display: none;
  }

  .portal-header__nav-wrap {
    display: none;
    padding: 4px 16px 16px;
    border-top: 1px solid rgba(17, 31, 53, 0.06);
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.96);
  }

  .portal-header.is-open .portal-header__nav-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .portal-main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .portal-main-nav a {
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid rgba(17, 31, 53, 0.08);
    border-radius: 0;
    background: transparent;
    text-align: left;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    color: #243243;
  }

  .portal-header__cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px 0 0;
  }

  .portal-header__button {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.92rem;
  }
}

@media (max-width: 779px) {
  .portal-header {
    border-radius: 24px;
    overflow: hidden;
  }

  .portal-header__top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 16px 14px;
  }

  .portal-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(17, 31, 53, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 18px rgba(22, 27, 33, 0.08);
    cursor: pointer;
  }

  .portal-menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: #193b6a;
  }

  .portal-brand {
    min-width: 0;
    gap: 10px;
  }

  .portal-brand__logo {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    background: transparent;
  }

  .portal-brand__text {
    margin-left: 0;
    min-width: 0;
  }

  .portal-brand__mark {
    font-size: 1.25rem;
    line-height: 1.05;
  }

  .portal-brand__sub {
    display: none;
  }

  .portal-header__nav-wrap {
    display: none;
    padding: 4px 16px 16px;
    border-top: 1px solid rgba(17, 31, 53, 0.06);
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.96);
  }

  .portal-header.is-open .portal-header__nav-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .portal-main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .portal-main-nav a {
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid rgba(17, 31, 53, 0.08);
    border-radius: 0;
    background: transparent;
    text-align: left;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    color: #243243;
  }

  .portal-header__cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px 0 0;
  }

  .portal-header__button {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.92rem;
  }
}
