/* home-v4.css: every rule is scoped to #hero-v4 or #lessons-v4, so nothing else on the site can change. */
#hero-v4,
#lessons-v4 {
  --cream: #fcf0df;
  --cream-deep: #f0e2c9;
  --paper: #fff5e9;
  --mist: #e6ebf1;
  --navy: #062a63;
  --navy-deep: #041d47;
  --teal: #07596f;
  --teal-light: #19627a;
  --ink: #14182b;
  --ink-soft: #444f6b;
  --registan-opacity: .42;
  /* strength of the Registan photo in the wide banner (0 to 1) */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius-control: 12px;
  --radius-card: 20px;
  --gutter: clamp(18px, 4vw, 56px);
  --card-radius: 20px;
  --wrap: 1440px;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.55;
}

#hero-v4 *,
#hero-v4 *::before,
#hero-v4 *::after,
#lessons-v4 *,
#lessons-v4 *::before,
#lessons-v4 *::after {
  box-sizing: border-box;
}

#hero-v4 img,
#lessons-v4 img {
  display: block;
  max-width: 100%;
  border: 0;
}

#hero-v4 h1,
#hero-v4 h2,
#hero-v4 h3,
#hero-v4 p,
#hero-v4 dl,
#hero-v4 dd,
#hero-v4 figure,
#lessons-v4 h2,
#lessons-v4 h3,
#lessons-v4 p,
#lessons-v4 ul,
#lessons-v4 li {
  margin: 0;
}

#lessons-v4 ul {
  padding: 0;
}

#lessons-v4 .lessons,
#hero-v4 .banner {
  background: transparent;
}

#hero-v4 .banner {
  background: var(--navy-deep);
}

#hero-v4 p,
#hero-v4 dd,
#hero-v4 dt,
#lessons-v4 p,
#lessons-v4 li {
  color: inherit;
}

#hero-v4 [data-todo],
#lessons-v4 [data-todo] {
  outline: 1.5px dashed rgba(7, 89, 111, .55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  #hero-v4 *,
  #lessons-v4 * {
    transition: none !important;
  }
}

#hero-v4 .ico,
#lessons-v4 .ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

#hero-v4 .btn:focus-visible,
#lessons-v4 .btn:focus-visible,
#hero-v4 .play-pill:focus-visible,
#hero-v4 .glass-btn:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
}

#hero-v4 .btn,
#lessons-v4 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-control, 12px);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}

#hero-v4 .btn:hover,
#lessons-v4 .btn:hover {
  transform: translateY(-1px);
}

#hero-v4 .btn-dark,
#lessons-v4 .btn-dark {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
  box-shadow: 0 10px 22px -12px rgba(6, 42, 99, .9), inset 0 1px 0 rgba(255, 255, 255, .14);
}

#hero-v4 .btn-dark:hover,
#lessons-v4 .btn-dark:hover {
  background: var(--navy-deep);
}

#hero-v4 .btn-light,
#lessons-v4 .btn-light {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(6, 42, 99, .18);
  color: var(--navy);
}

#hero-v4 .btn-light:hover,
#lessons-v4 .btn-light:hover {
  background: #fff;
}

#hero-v4 .btn-cream,
#lessons-v4 .btn-cream {
  background: var(--cream);
  color: var(--navy);
  border-color: rgba(6, 42, 99, .15);
}

#hero-v4 .btn-cream:hover,
#lessons-v4 .btn-cream:hover {
  background: #fff;
}

#hero-v4 .btn-lg,
#lessons-v4 .btn-lg {
  height: 48px;
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

#hero-v4 .hero-card {
  position: relative;
  max-width: min(1440px, calc(100% - 2 * var(--gutter)));
  margin: 36px auto 0;
  min-height: clamp(620px, 52vw, 760px);
  border-radius: var(--radius-card, 20px);
  overflow: hidden;
  background:
    radial-gradient(65% 100% at 75% 50%, rgba(250, 246, 240, 0.92), transparent 75%),
    linear-gradient(115deg, #f7f2e7 0%, #ebe2d2 48%, #dde6ee 100%);
  border: 1px solid var(--navy-border, rgba(11, 43, 89, 0.14));
  box-shadow: 0 36px 68px -36px rgba(6, 42, 99, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
}

/* Integrated Registan Architectural Backdrop (Seamless Right-Wing Blend) */
#hero-v4 .hero-registan-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

#hero-v4 .hero-registan-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  opacity: 0.18;
  filter: contrast(1.08) saturate(1.1);
  mask-image: linear-gradient(to right, transparent 0%, black 45%, black 100%), linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%, black 100%), linear-gradient(to bottom, black 85%, transparent 100%);
}

#hero-v4 .hero-registan-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(247, 242, 231, 0.96) 0%, rgba(247, 242, 231, 0.45) 45%, transparent 100%);
}

#hero-v4 .hero-orn {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: url("assets/ornament-line.svg") 0 0 / 56px 56px;
  opacity: .07;
  -webkit-mask-image: linear-gradient(to left, #000 15%, transparent 65%);
  mask-image: linear-gradient(to left, #000 15%, transparent 65%);
}

#hero-v4 .hero-copy {
  position: relative;
  z-index: 3;
  width: min(62%, 780px);
  padding: clamp(44px, 5.2vw, 76px) 0 clamp(44px, 5.2vw, 64px) clamp(36px, 5.2vw, 80px);
}

#hero-v4 .greet {
  display: inline-flex;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 18px;
  min-height: 2.2em;
}

@media (max-width: 767px) {
  #hero-v4 .greet {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 56px;
    gap: 3px;
    margin-bottom: 14px;
  }
}

#hero-v4 .greet-word {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--teal);
  transition: opacity .35s ease;
}

#hero-v4 .greet-say {
  display: none !important;
}

#hero-v4 .greet.is-fading span {
  opacity: 0;
}

#hero-v4 h1 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  font-size: clamp(2.8rem, 4.8vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
  font-variation-settings: "opsz" 144;
}

#hero-v4 h1 .l1,
#hero-v4 h1 em {
  display: block;
}

#hero-v4 h1 em {
  font-style: normal;
  font-weight: 500;
  color: #5d83a0;
  color: color-mix(in srgb, var(--teal) 78%, #8fb4c4);
}

#hero-v4 .lede {
  margin-top: 22px;
  max-width: 48ch;
  font-size: clamp(1.1rem, 1.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

#hero-v4 .lede i {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.05em;
}

#hero-v4 .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

#hero-v4 .fine {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

#hero-v4 .stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px clamp(24px, 3.2vw, 48px);
  margin-top: 40px;
}

#hero-v4 .stats>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#hero-v4 .stats dt {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  font-variant-numeric: lining-nums;
  text-align: center;
  width: 100%;
}

#hero-v4 .stats dd {
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  color: var(--ink-soft);
  margin-top: 6px;
  text-align: center;
}

/* Align 17+ directly above "nationalities taught" while keeping flagchip inline */
#hero-v4 .stats .stat-nationalities {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding-right: 58px;
}

#hero-v4 .stats .stat-nationalities dd {
  display: inline-flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
}

#hero-v4 .stats .stat-nationalities .flagchip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8px;
  white-space: nowrap;
}

@media (max-width: 420px) {
  #hero-v4 .stats .stat-nationalities {
    padding-right: 0;
  }

  #hero-v4 .stats .stat-nationalities dd {
    flex-wrap: wrap;
    justify-content: center;
  }

  #hero-v4 .stats .stat-nationalities .flagchip {
    position: static;
    transform: none;
    margin-left: 6px;
  }
}

#hero-v4 .flagchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-control, 12px);
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(6, 42, 99, .16);
  box-shadow: 0 1px 3px rgba(6, 42, 99, .08);
  font-weight: 600;
  color: var(--navy);
  font-size: .78rem;
  transition: opacity .35s ease;
  vertical-align: middle;
  min-width: 46px;
  min-height: 30px;
  box-sizing: border-box;
}

#hero-v4 .flagchip.is-fading {
  opacity: 0;
}

#hero-v4 .flag {
  display: block;
  width: 26px;
  height: 18px;
  min-width: 26px;
  min-height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(6, 42, 99, .15);
  background: var(--cream-deep, #e6dbc9);
}

#hero-v4 .ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  text-align: center;
  padding: 18px;
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
}

#hero-v4 .ph small {
  font-weight: 500;
  font-size: .7rem;
  opacity: .65;
}

#hero-v4 .ph-portrait svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: rgba(6, 42, 99, .13);
}

#hero-v4 .ph-portrait span,
#hero-v4 .ph-portrait small {
  position: relative;
  background: rgba(252, 240, 223, .8);
  padding: 4px 10px;
  border-radius: 8px;
}

#hero-v4 .ph-portrait small {
  margin-bottom: 2px;
}

#hero-v4 .ph-dark {
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 34px), linear-gradient(180deg, #0a3a74, var(--navy-deep));
  color: var(--cream);
  justify-content: center;
}

#hero-v4 .ph-on-dark svg {
  fill: rgba(252, 240, 223, .14);
}

/* ==========================================================================
   FLOATING TRIAL LESSON WIDGET (Bottom-Right Pinned)
   ========================================================================== */
.trial-floating-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
}

.trial-widget-trigger {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 31, 66, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px -4px rgba(7, 31, 66, 0.35), 0 2px 8px -2px rgba(7, 31, 66, 0.2);
  border-radius: 14px;
  padding: 0 16px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}

.trial-widget-trigger:hover {
  transform: translateY(-2px);
  background: rgba(11, 43, 89, 0.98);
  box-shadow: 0 14px 34px -4px rgba(7, 31, 66, 0.45);
}

.trial-widget-trigger:focus-visible {
  outline: 2px solid var(--gold, #8fb4c4);
  outline-offset: 2px;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: statusPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.widget-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.widget-divider {
  opacity: 0.4;
  font-weight: 300;
}

.widget-tz {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.widget-tz b {
  color: #ffffff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.widget-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #8fb4c4);
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.trial-widget-trigger:hover .widget-arrow {
  transform: translate(2px, -2px);
}

/* Expanded Card State */
.trial-widget-card {
  position: fixed;
  bottom: 76px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid rgba(6, 42, 99, 0.16);
  box-shadow: 0 20px 48px -8px rgba(7, 31, 66, 0.28), 0 4px 16px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 22px 24px;
  color: #062a63;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.trial-floating-widget[data-expanded="true"] .trial-widget-card,
.trial-widget-card.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.trial-floating-widget[data-expanded="true"] .trial-widget-trigger {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.trial-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trial-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light, #e7f2f5);
  background: rgba(8, 99, 123, 0.35);
  border: 1px solid rgba(8, 99, 123, 0.45);
  padding: 3px 8px;
  border-radius: 6px;
}

.trial-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.trial-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.trial-widget-title {
  font-family: var(--font-secondary, 'Fraunces', serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.2;
}

.trial-widget-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 14px;
}

.trial-widget-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.trial-widget-meta b {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.trial-action-btn {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  background: var(--gold, #8fb4c4);
  color: var(--navy-deep, #071f42);
  border: 1px solid var(--gold, #8fb4c4);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(143, 180, 196, 0.3);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.trial-action-btn:hover {
  background: #a2c4d2;
  color: var(--navy-deep, #071f42);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(143, 180, 196, 0.45);
}

@media (max-width: 768px) {
  .trial-floating-widget {
    right: 12px !important;
    bottom: 12px !important;
  }

  .trial-widget-trigger {
    right: 12px !important;
    bottom: 12px !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 0.75rem !important;
    gap: 6px !important;
    border-radius: 999px !important;
  }

  .trial-widget-trigger .status-pulse-dot {
    width: 6px !important;
    height: 6px !important;
  }

  .trial-widget-card {
    right: 12px !important;
    left: 12px !important;
    bottom: 52px !important;
    width: calc(100vw - 24px) !important;
    max-width: 300px !important;
  }
}

/* Legacy Glass Card fallback */
#hero-v4 .glass {
  display: none !important;
}

/* Cohesive Hero Video Trigger */
#hero-v4 .hero-video-trigger {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  min-height: 44px;
  padding: 0 16px 0 8px;
  border-radius: var(--radius-control, 12px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(6, 42, 99, 0.16);
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px -3px rgba(6, 42, 99, 0.08);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

#hero-v4 .hero-video-trigger:hover {
  background: #ffffff;
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(8, 99, 123, 0.15);
}

#hero-v4 .hero-video-trigger .play-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex: none;
}

#hero-v4 .hero-video-trigger .play {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 9px solid #ffffff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

#hero-v4 .hero-video-trigger .play-pill__copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#hero-v4 .hero-video-trigger strong {
  display: block;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

#hero-v4 .hero-video-trigger small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.1;
}

#hero-v4 .banner {
  display: none !important;
}

#hero-v4 .orn-band {
  display: none !important;
}

#hero-v4 .play-dot {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--cream);
  display: grid;
  place-items: center;
  flex: none;
}

#hero-v4 .play {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 13px solid var(--navy);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

#lessons-v4 .lessons {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(40px, 6vw, 72px);
}

#lessons-v4 .sec-head {
  margin-bottom: 36px;
}

#lessons-v4 .sec-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-top: 10px;
}

#lessons-v4 .plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}

#lessons-v4 .plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--card-radius);
  background: var(--paper);
  border: 1.5px solid rgba(6, 42, 99, .12);
  box-shadow: 0 30px 50px -40px rgba(6, 42, 99, .5);
  overflow: hidden;
}

#lessons-v4 .plan h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--navy);
  line-height: 1.1;
}

#lessons-v4 .plan-text {
  color: var(--ink-soft);
  max-width: 42ch;
}

#lessons-v4 .ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin: 6px 0 4px;
}

#lessons-v4 .ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .96rem;
}

#lessons-v4 .ticks .ico {
  color: var(--teal);
  margin-top: .12em;
}

#lessons-v4 .price {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-top: auto;
  padding-top: 10px;
  width: fit-content;
}

#lessons-v4 .plan .btn {
  align-self: flex-start;
}

#lessons-v4 .plan-full {
  background: var(--navy);
  color: var(--cream);
  border-color: transparent;
}

#lessons-v4 .plan-full::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  background: url("assets/ornament-band.svg") 0 0 / 56px 56px;
  opacity: .55;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  pointer-events: none;
}

#lessons-v4 .plan-full h3,
#lessons-v4 .plan-full .price {
  color: var(--cream);
}

#lessons-v4 .plan-full .plan-text {
  color: rgba(252, 240, 223, .8);
}

#lessons-v4 .plan-full .ticks .ico {
  color: #8fb4c4;
}

#lessons-v4 .badge {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-control, 12px);
  background: var(--cream);
  color: var(--navy);
}

#lessons-v4 .trial {
  position: relative;
  margin-top: clamp(16px, 2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--card-radius);
  background: linear-gradient(120deg, var(--mist), var(--cream-deep));
  overflow: hidden;
}

#lessons-v4 .trial-orn {
  position: absolute;
  inset: 0;
  background: url("assets/ornament-line.svg") 0 0 / 56px 56px;
  opacity: .07;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
  mask-image: linear-gradient(to left, #000, transparent 70%);
}

#lessons-v4 .trial-copy {
  position: relative;
  max-width: 560px;
}

#lessons-v4 .trial h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--navy);
}

#lessons-v4 .trial p {
  color: var(--ink-soft);
  margin-top: 6px;
}

#lessons-v4 .tz-dark {
  font-size: .9rem;
  margin-top: 14px !important;
  color: var(--navy) !important;
}

#lessons-v4 .tz b {
  font-variant-numeric: tabular-nums;
}

#lessons-v4 .trial .btn {
  position: relative;
}

@media (max-width: 768px) {
  #hero-v4 .hero-card {
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  #hero-v4 .hero-copy {
    width: 100%;
    padding: 32px 24px 8px;
  }

  #hero-v4 .glass {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -64px 16px 16px;
  }

  #hero-v4 .banner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  #hero-v4 .banner-person {
    position: relative;
    order: 2;
    left: auto;
    width: 100%;
    height: 340px;
    top: auto;
  }

  #hero-v4 .banner-copy {
    order: 1;
    width: 100%;
    margin: 0;
    padding: 40px 24px 12px;
  }

  #lessons-v4 .plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #lessons-v4 .plan-full::before {
    width: 180px;
    height: 180px;
    right: -50px;
    top: -50px;
    opacity: .3;
  }

  #hero-v4 .cta-row .btn {
    width: 100%;
    min-width: 0;
  }

  #lessons-v4 .trial .btn {
    width: 100%;
  }
}

#hero-v4 .cta-row .btn {
  min-width: 220px;
  padding-left: 28px;
  padding-right: 28px;
}

#hero-v4 h1 {
  font-style: italic;
  font-weight: 500;
  font-variation-settings: normal;
}

#hero-v4 h1 em {
  font-style: inherit;
}

#hero-v4 .greet-word {
  font-weight: 500;
}