/* Phone layout for the active index only. The desktop composition and the
   passive Booking card reference keep their existing rules and measurements. */
html.phone-index {
  scroll-snap-type: none;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  overscroll-behavior-y: auto;
}

html.phone-index body.section3-preview {
  --phone-gutter: clamp(20px, 5.6vw, 24px);
  --page-gutter: var(--phone-gutter);
  --header-height: calc(68px + env(safe-area-inset-top));
  --copy-size: 14px;
  --card-label-size: 16px;
  color: #292929;
  overflow-x: clip;
}

html.phone-index body.section3-preview > .site-header {
  inset: 0 0 auto;
  height: var(--header-height);
  gap: 16px;
  padding: env(safe-area-inset-top) var(--phone-gutter) 0;
  background: rgba(255, 248, 238, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html.phone-index body.section3-preview > .site-header .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: calc(100% - 60px);
  font-size: 26px;
  white-space: nowrap;
  overflow-wrap: normal;
}

html.phone-index body.section3-preview > .site-header :is(.desktop-nav, .admin-button) {
  display: none;
}

html.phone-index body.section3-preview > .site-header .menu-toggle {
  display: flex;
  width: 46px;
  height: 46px;
}

html.phone-index body.section3-preview > .site-header .mobile-nav {
  inset-inline: var(--phone-gutter);
  top: calc(100% + 8px);
  max-height: calc(100dvh - var(--header-height) - 24px);
  padding: 12px 20px;
  gap: 0;
}

html.phone-index body.section3-preview > .site-header .mobile-nav:not([hidden]) {
  display: flex;
}

html.phone-index body.section3-preview > .site-header .mobile-nav :is(a, button) {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-block: 10px;
  font-size: 16px;
  line-height: 1.4;
}

html.phone-index body.section3-preview main#main-content {
  --frame-width: 100%;
  --copy-size: 14px;
  --card-label-size: 16px;
  --content-gap: 24px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* Remove every desktop fitting coordinate without removing its cached nodes. */
html.phone-index body.section3-preview main#main-content .panel {
  display: block;
  width: 100%;
  block-size: auto;
  min-block-size: 0;
  padding: 44px var(--phone-gutter) 24px;
  overflow: visible;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  scroll-margin-top: var(--header-height);
}

html.phone-index body.section3-preview main#main-content .section-stage {
  --frame-width: 100%;
  --copy-size: 14px;
  --card-label-size: 16px;
  --content-gap: 24px;
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: none;
}

html.phone-index body.section3-preview main#main-content :is(.section-heading, .section-body) {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 1;
  translate: none;
  transform: none;
  transition: none;
}

html.phone-index body.section3-preview main#main-content .section-heading {
  display: block;
  margin-bottom: 26px;
}

html.phone-index body.section3-preview main#main-content :is(.section-heading h2, .about-heading #about-title, .teaching-approach h3) {
  font-size: clamp(32px, 9vw, 38px);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
  transform: none;
}

html.phone-index body.section3-preview main#main-content .section-body {
  display: grid;
  grid-template-rows: auto;
  row-gap: 0;
}

html.phone-index body.section3-preview main#main-content .section-content {
  display: block;
  position: relative;
  min-block-size: 0;
}

html.phone-index body.section3-preview main#main-content .section-content > * {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  margin: 0;
  transform: none;
}

html.phone-index body.section3-preview main#main-content .section-meta {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 44px;
}

html.phone-index body.section3-preview main#main-content .section-next {
  min-height: 44px;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}

html.phone-index body.section3-preview main#main-content .section-next > span:first-child {
  max-width: none;
}

/* The invitation retains a viewport of breathing room, with no height cap. */
html.phone-index body.section3-preview main#main-content .intro {
  display: flex;
  flex-direction: column;
  min-block-size: 100svh;
  padding-top: var(--header-height);
  padding-bottom: 28px;
}

html.phone-index body.section3-preview main#main-content .intro .section-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
}

html.phone-index body.section3-preview main#main-content .intro .section-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
}

html.phone-index body.section3-preview main#main-content .intro .section-content {
  display: flex;
  flex: 1;
  justify-content: center;
}

html.phone-index body.section3-preview main#main-content .intro-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0;
}

html.phone-index body.section3-preview main#main-content .intro-heading {
  container-type: inline-size;
}

html.phone-index body.section3-preview main#main-content .intro-heading h1 {
  /* The approved font's italic line fills 96% of this content column. */
  font-size: calc((100vw - 2 * var(--phone-gutter)) * .225);
  font-size: 22.5cqw;
  letter-spacing: -.055em;
}

html.phone-index body.section3-preview main#main-content .intro-heading h1 em {
  white-space: nowrap;
}

html.phone-index body.section3-preview main#main-content .intro-copy {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 42ch;
}

html.phone-index body.section3-preview main#main-content .discovery-button {
  width: 100%;
  max-width: 360px;
  min-height: 48px;
  margin-top: 24px;
  padding: 13px 15px;
}

html.phone-index body.section3-preview main#main-content .discovery-line {
  justify-content: space-between;
  gap: 14px;
}

html.phone-index body.section3-preview main#main-content .discovery-line strong {
  font-size: 13px;
  line-height: 1.45;
}

html.phone-index body.section3-preview main#main-content .intro .section-meta {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

html.phone-index body.section3-preview main#main-content .stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

html.phone-index body.section3-preview main#main-content .stats dt {
  font-size: 28px;
}

html.phone-index body.section3-preview main#main-content .stats dd {
  font-size: 11px;
  margin-top: 5px;
}

html.phone-index body.section3-preview main#main-content .intro .section-next {
  align-self: flex-end;
}

/* A real portrait circle followed by the complete, readable biography. */
html.phone-index body.section3-preview main#main-content .balanced-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

html.phone-index body.section3-preview main#main-content .balanced-about .about-portrait {
  position: relative;
  align-self: auto;
  display: grid;
  place-items: center;
}

html.phone-index body.section3-preview main#main-content .balanced-about .photo-placeholder {
  position: relative;
  inset: auto;
  width: clamp(172px, 48vw, 206px);
  height: auto;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0;
  transform: none;
}

html.phone-index body.section3-preview main#main-content .about-body {
  align-self: auto;
  padding: 0;
}

html.phone-index body.section3-preview main#main-content .about-heading {
  gap: 14px;
  margin-bottom: 18px;
}

html.phone-index body.section3-preview main#main-content .about .section-heading,
html.phone-index body.section3-preview main#main-content .about-heading > h3 {
  display: none;
}

html.phone-index body.section3-preview main#main-content .language-badge {
  gap: 8px 16px;
  font-size: 12px;
}

html.phone-index body.section3-preview main#main-content :is(.about-body p, .teaching-approach p) {
  font-size: 14px;
  line-height: 1.6;
}

html.phone-index body.section3-preview main#main-content :is(.about-body p + p, .teaching-approach p + p) {
  margin-top: 18px;
}

/* Compact index rows keep text left and the measured toggle/price right. */
html.phone-index body.section3-preview main#main-content .balanced-lessons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 32px;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .lesson-stack {
  grid-column: 1;
  grid-row: 2;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .lesson-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-rows: none;
  grid-auto-rows: 1fr;
  gap: 12px;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .vertical-card {
  display: grid;
  grid-column: 1 / -1;
  grid-row: auto;
  grid-template-columns: subgrid;
  grid-template-rows: max-content minmax(0, 1fr);
  align-items: start;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 14px 16px;
  margin: 0;
  gap: 7px 12px;
  border-radius: 14px;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons :is(.lesson-title, .yki-heading) {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-transform: none;
  text-wrap: wrap;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .featured-option .lesson-title {
  padding-right: 0;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons :is(.lesson-description, .yki-description) {
  grid-column: 1;
  grid-row: 2;
  font-size: 14px;
  line-height: 1.45;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .card-foot {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: end;
  justify-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 24px;
  padding: 0;
  margin: 0;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons :is(.lesson-price, .yki-price) {
  justify-content: flex-start;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  border: 0;
  margin: 0;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .lesson-price small {
  display: inline;
  font-size: 12px;
  margin: 0 0 0 4px;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .lesson-arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .subscription-card {
  grid-template-rows: max-content minmax(0, 1fr);
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .subscription-plans {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .subscription-plan {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .subscription-plan .lesson-description {
  grid-row: 2;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .subscription-plan .card-foot {
  grid-row: 1 / -1;
  min-height: 36px;
  padding: 0;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .subscription-booking {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: none;
  min-height: 36px;
  padding: 0;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .frequency-switch {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  justify-self: end;
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, 32px);
  width: var(--subscription-price-width, 104px);
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 3px;
  border-color: #fff;
  border-radius: 13px;
  transform: none;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .frequency-switch label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 3px;
  font-size: 12px;
  line-height: 1.3;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .pricing-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.65;
}

html.phone-index body.section3-preview main#main-content .balanced-lessons .lessons-editorial {
  grid-column: 1;
  grid-row: 1;
  align-self: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

html.phone-index body.section3-preview main#main-content .teaching-approach {
  display: block;
}

html.phone-index body.section3-preview main#main-content .teaching-approach h3 {
  margin-bottom: 18px;
  text-wrap: balance;
}

/* The contact section and footer participate in the same document flow. */
html.phone-index body.section3-preview main#main-content .contact {
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

html.phone-index body.section3-preview main#main-content .contact .section-body {
  display: block;
}

html.phone-index body.section3-preview main#main-content .contact-layout {
  gap: 24px;
  width: 100%;
}

html.phone-index body.section3-preview main#main-content .contact-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

html.phone-index body.section3-preview main#main-content .contact-form {
  gap: 20px;
}

html.phone-index body.section3-preview main#main-content .field label {
  font: 300 14px/1.55 var(--sans);
  letter-spacing: -.02em;
}

html.phone-index body.section3-preview main#main-content .field :is(input, textarea) {
  min-height: 52px;
  font-size: 16px;
  line-height: 1.55;
}

html.phone-index body.section3-preview main#main-content .field textarea {
  height: 120px;
  resize: vertical;
}

html.phone-index body.section3-preview main#main-content .form-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

html.phone-index body.section3-preview main#main-content .send-button {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
}

html.phone-index body.section3-preview main#main-content .email-note {
  font: 300 14px/1.55 var(--sans);
  letter-spacing: -.02em;
}

html.phone-index body.section3-preview main#main-content .email-note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}

html.phone-index body.section3-preview main#main-content .form-status {
  font-size: 16px;
}

html.phone-index body.section3-preview main#main-content .contact-footer {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  block-size: auto;
  min-height: 0;
  margin: 36px 0 0;
  padding: 18px 0 0;
  font-size: 12px;
}

html.phone-index body.section3-preview main#main-content .footer-brand {
  max-width: none;
  min-height: 44px;
}

html.phone-index body.section3-preview main#main-content .linkedin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
}

html.phone-index body.section3-preview main#main-content .footer-links {
  gap: 28px;
}

html.phone-index body.section3-preview main#main-content .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

html.phone-index body.section3-preview > .page-notice {
  left: var(--phone-gutter);
  right: var(--phone-gutter);
  bottom: max(20px, env(safe-area-inset-bottom));
  width: auto;
  max-width: none;
  font-size: 16px;
}

html.phone-index body.section3-preview > .page-notice button {
  width: 44px;
  height: 44px;
  top: 0;
  right: 0;
}

/* On the narrowest phones, keep descriptions readable across the whole card. */
@media (max-width: 359px) {
  html.phone-index body.section3-preview main#main-content .balanced-lessons .lesson-list {
    grid-template-columns: minmax(0, 1fr);
  }
  html.phone-index body.section3-preview main#main-content .balanced-lessons .vertical-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: max-content minmax(0, 1fr) 72px;
  }
  html.phone-index body.section3-preview main#main-content .balanced-lessons .card-foot {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-end;
  }
  html.phone-index body.section3-preview main#main-content .balanced-lessons .subscription-plans {
    grid-column: 1;
    grid-row: 2 / -1;
  }
  html.phone-index body.section3-preview main#main-content .balanced-lessons .subscription-plan .lesson-description {
    grid-row: 1;
  }
  html.phone-index body.section3-preview main#main-content .balanced-lessons .subscription-plan .card-foot {
    grid-row: 2;
  }
  html.phone-index body.section3-preview main#main-content .balanced-lessons .frequency-switch {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }
}

/* Wide phones keep a readable column instead of stretching lines edge to edge. */
@media (min-width: 600px) {
  html.phone-index body.section3-preview main#main-content .panel {
    padding-inline: max(var(--phone-gutter), calc((100vw - 600px) / 2));
  }

  html.phone-index body.section3-preview main#main-content .intro .section-meta {
    flex-direction: row;
    align-items: flex-end;
  }

  html.phone-index body.section3-preview main#main-content .stats {
    gap: 32px;
  }
}

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

/* Native phone scrolling has no next-section prompts or empty prompt rows. */
html.phone-index body.section3-preview main#main-content .section-next,
html.phone-index body.section3-preview main#main-content .panel:not(.intro) .section-meta {
  display: none;
}

/* The teaching approach now introduces the mobile lesson section. */
html.phone-index body.section3-preview main#main-content #lessons .section-heading {
  display: none;
}
