@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Sora:wght@600;700;800&display=swap');

:root {
  --bg: #eefaf6;
  --bg-soft: #f7fffc;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --line: rgba(35, 31, 32, 0.08);
  --line-strong: rgba(35, 31, 32, 0.14);
  --text: #1f2127;
  --muted: #6f737d;
  --accent: #198754;
  --accent-2: #20c997;
  --accent-3: #16abc9;
  --shadow: 0 18px 46px rgba(33, 29, 24, 0.10);
  --shadow-soft: 0 8px 24px rgba(33, 29, 24, 0.06);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(32, 201, 151, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(22, 171, 201, 0.12), transparent 32%),
    linear-gradient(180deg, #f7fffc 0%, #eefaf6 100%);
}

body.modal-open {
  overflow: hidden;
}

body.lead-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 90% 6%, rgba(22, 171, 201, 0.20), transparent 30%),
    radial-gradient(circle at 7% 92%, rgba(32, 201, 151, 0.18), transparent 34%),
    linear-gradient(120deg, #f7fffd 0%, #eefbf8 50%, #e8f8fb 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.page-shell {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
}

.glass-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(135deg, rgba(247, 255, 252, 0.92), rgba(237, 252, 248, 0.82));
  border-bottom: 1px solid rgba(25, 135, 84, 0.10);
  box-shadow: 0 10px 30px rgba(25, 135, 84, 0.06);
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 136px;
  height: auto;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(32, 201, 151, 0.20);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.topbar-note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.lead-page .glass-bar {
  position: relative;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.lead-page .topbar {
  min-height: 84px;
  padding: 24px 0 12px;
}

.lead-page .brand-logo {
  width: 160px;
}

.lead-page .brand-title {
  display: none;
}

.lead-page .topbar-note {
  border: 0;
  background: transparent;
  color: #2b3b42;
  font-size: 14px;
  padding: 0;
}

.lead-page .topbar-note-dot {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px rgba(25, 135, 84, 0.20);
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 18px 0 18px;
  padding: 28px;
  min-height: 400px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: linear-gradient(90deg, #4dbb98 0%, #4dbb9863 48%, rgb(255 255 255 / 0%) 100%), linear-gradient(180deg, rgba(25, 135, 84, 0.14), rgba(22, 171, 201, 0.12)), url(hero-bg.png) center / cover no-repeat;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 259px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.hero-title {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #ffffff;
      text-shadow: 0 12px 34px #072f10;
}

.hero-copy {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #424650;
  font-size: 12px;
  font-weight: 700;
}

.hero-pill strong {
  color: var(--text);
}

.hero-bundle-pill {
  display: inline-grid;
  gap: 5px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.42);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(239,255,249,0.90));
  box-shadow: 0 18px 42px rgba(25, 135, 84, 0.18);
}

.hero-bundle-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-bundle-pill strong {
  color: #142028;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-bundle-pill small {
  color: #4f6670;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.hero-timer {
  min-width: 210px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.90);
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.hero-timer-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-timer-value {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.layout-grid,
.checkout-grid,
.success-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.course-grid {
  display: grid;
  gap: 14px;
}

.course-card,
.side-card,
.notice-card,
.empty-card,
.summary-box,
.mini-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.course-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
}

.accent-coral::before { background: linear-gradient(180deg, var(--accent), #ff9563); }
.accent-gold::before { background: linear-gradient(180deg, var(--accent-2), #ffd481); }
.accent-teal::before { background: linear-gradient(180deg, var(--accent-3), #4dbb98); }
.accent-navy::before { background: linear-gradient(180deg, #3c56c8, #8195ee); }

.course-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(25, 135, 84, 0.34);
  box-shadow: 0 20px 42px rgba(25, 135, 84, 0.10);
}

.course-card-inner {
  padding: 20px 20px 18px 22px;
}

.course-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.course-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.34;
  letter-spacing: -0.03em;
}

.course-title-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(32, 201, 151, 0.48);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.course-title-button:hover,
.course-title-button:focus-visible {
  color: var(--accent);
}

.course-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(32, 201, 151, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.course-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.price-wrap {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.price {
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.old-price {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: line-through;
}

.save {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(32, 201, 151, 0.24);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px rgba(25, 135, 84, 0.16);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  color: white;
}

.course-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
}

.course-card.is-selected .toggle-pill {
  background: linear-gradient(135deg, var(--accent-3), #0f7a5b);
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(25, 135, 84, 0.18);
}

.course-card.is-selected .toggle-icon {
  background: white;
  border-color: white;
  color: var(--accent-3);
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.side-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.side-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.summary-box {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #fff8f2 0%, #ffffff 100%);
}

.summary-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-amount {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}

.summary-amount strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.summary-amount span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: line-through;
}

.summary-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bundle-nudge {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px dashed rgba(32, 201, 151, 0.42);
  border-radius: 14px;
  background: rgba(32, 201, 151, 0.08);
  color: #247457;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.bundle-discount-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(25, 135, 84, 0.10);
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 800;
}

.bundle-discount-line[hidden] {
  display: none;
}

.summary-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  font-size: 13px;
}

.summary-item span:last-child {
  font-weight: 800;
  white-space: nowrap;
}

.summary-item del {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 700;
}

.empty-state {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(35, 31, 32, 0.14);
  background: rgba(255,255,255,0.58);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.button,
.button-light {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 28px rgba(25, 135, 84, 0.18);
}

.button-light {
  color: var(--text);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
}

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

.button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.stack {
  display: grid;
  gap: 12px;
}

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

.mini-panel,
.notice-card,
.empty-card {
  padding: 18px;
}

.mini-panel h2,
.notice-card h2,
.empty-card h2 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.mini-panel p,
.notice-card p,
.empty-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inline-actions .button,
.inline-actions .button-light {
  width: auto;
}

.section-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-card,
.success-card {
  padding: 20px;
}

.checkout-card h1,
.success-card h1 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.checkout-card p,
.success-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.order-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  font-size: 14px;
}

.order-row strong {
  white-space: nowrap;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.10);
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 800;
}

.account-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(25, 135, 84, 0.16);
  background: linear-gradient(180deg, rgba(25, 135, 84, 0.06), rgba(255,255,255,0.92));
}

.account-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.account-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
}

.account-item label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.account-item strong,
.account-item code {
  font-size: 14px;
  word-break: break-word;
}

.helper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mobile-paybar {
  display: none;
}

.mobile-paybar small {
  display: block;
  margin-top: 3px;
  color: var(--accent-3);
  font-size: 11px;
  font-weight: 800;
}

.mobile-paybar small[hidden] {
  display: none;
}

.checkout-paybar {
  display: none;
}

.bundle-toast {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 95;
  width: min(330px, calc(100% - 36px));
  padding: 16px 18px;
  border: 1px solid rgba(25, 135, 84, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f0fff9 100%);
  box-shadow: 0 18px 44px rgba(25, 135, 84, 0.18);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.bundle-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bundle-toast strong,
.bundle-toast span {
  display: block;
}

.bundle-toast strong {
  color: var(--accent-3);
  font-size: 15px;
  font-weight: 800;
}

.bundle-toast span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.course-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.course-modal.is-open {
  display: block;
}

.course-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 33, 39, 0.54);
  backdrop-filter: blur(10px);
}

.course-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.46);
  border-radius: 28px;
  background: #fffaf5;
  box-shadow: 0 28px 70px rgba(31, 33, 39, 0.24);
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(35, 31, 32, 0.10);
  border-radius: 50%;
  background: rgba(255,255,255,0.90);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-hero {
  padding: 28px 68px 22px 28px;
  background:
    radial-gradient(circle at 15% 12%, rgba(32, 201, 151, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #effff9 100%);
  border-bottom: 1px solid var(--line);
}

.modal-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.10);
  color: var(--accent-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-hero h2 {
  margin: 14px 0 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.modal-hero p {
  margin: 12px 0 0;
  max-width: 590px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}

.modal-price {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 8px;
}

.modal-price strong {
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.modal-price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: line-through;
}

.modal-content {
  min-height: 0;
  overflow: auto;
  padding: 22px 28px 24px;
}

.modal-description {
  margin: 0;
  color: #424650;
  font-size: 15px;
  line-height: 1.75;
}

.modal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.modal-list-block {
  margin-top: 20px;
}

.modal-list-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.modal-list-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.modal-list-block li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.74);
  color: #424650;
  font-size: 13px;
  line-height: 1.55;
}

.modal-list-block li::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-3), #4dbb98);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
}

.modal-actions .button-light {
  width: auto;
  white-space: nowrap;
}

.footer-gap {
  height: 34px;
}

.lead-gate {
  min-height: calc(100dvh - 96px);
  display: grid;
  align-items: center;
  padding: 18px 0 40px;
}

.lead-gate-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(430px, 0.82fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.lead-left-panel {
  min-width: 0;
}

.lead-intro {
  padding-left: 18px;
}

.lead-intro h1 {
  max-width: 650px;
  margin: 0;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: clamp(1.55rem, 2.7vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #202833;
}

.lead-intro p {
  margin: 18px 0 0;
  color: #1f2127;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.lead-visual {
  position: relative;
  min-height: 360px;
  margin-top: 28px;
  overflow: visible;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.42), rgba(32, 201, 151, 0.10));
}

.lead-visual img {
  width: min(650px, 100%);

  object-fit: cover;
  object-position: center;
 
}

.lead-visual::after {
  content: '';
  position: absolute;
  inset: 28px 8% 0 8%;
  z-index: -1;
  border-radius: 42px;
  background:
    radial-gradient(circle, rgba(32, 201, 151, 0.18) 2px, transparent 3px) 0 0 / 22px 22px;
  opacity: 0.7;
}

.lead-float-card {
  position: absolute;
  z-index: 2;
  min-width: 108px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 14px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 16px 34px rgba(25, 135, 84, 0.14);
}

.lead-float-card span,
.lead-float-card strong {
  display: block;
}

.lead-float-card span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.lead-float-card strong {
  margin-top: 4px;
  font-size: 14px;
}

.lead-float-card-left {
  left: -20px;
  top: 96px;
}

.lead-float-card-right {
  right: 28px;
  top: 34px;
}

.lead-gate-card {
  width: 100%;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 38px;
  border: 1px solid rgb(14 111 111);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(242,252,251,0.78));
  box-shadow: 0 26px 70px rgba(31, 33, 39, 0.16);
}

.lead-card-head {
  text-align: center;
}

.lead-card-head h2 {
  margin: 0;
  font-family: 'Sora', 'Manrope', sans-serif;
  font-size: clamp(1.05rem, 1.35vw, 1.17rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.lead-card-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid rgba(35, 31, 32, 0.16);
  border-radius: 10px;
  outline: none;
  background: rgba(255,255,255,0.86);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.lead-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,0.90), rgba(247,255,252,0.90));
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: rgba(32, 201, 151, 0.50);
  box-shadow: 0 0 0 4px rgba(32, 201, 151, 0.12);
}

.lead-form .button,
.lead-form-error,
.lead-submit-note {
  grid-column: 1 / -1;
}

.lead-submit-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.lead-form-error {
  min-height: 20px;
  margin: 0;
  color: #b3261e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.lead-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 31, 32, 0.08);
}

.lead-trust-row span {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(22, 171, 201, 0.10);
  color: #303940;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .layout-grid,
  .checkout-grid,
  .success-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 16px, 100%);
  }

  .topbar {
    min-height: auto;
    align-items: center;
  }

  .lead-page .topbar {
    padding: 18px 0 8px;
  }

  .brand-logo {
    width: 116px;
  }

  .lead-page .brand-logo {
    width: 136px;
  }

  .topbar-note {
    display: none;
  }

  .hero {
    padding: 20px;
    min-height: 380px;
    border-radius: 24px;
            background: linear-gradient(19deg, #4dbb98e6 0%, #4ae1b17a 58%, rgb(31 33 39 / 0%) 100%), linear-gradient(129deg, rgba(25, 135, 84, 0.14), rgba(22, 171, 201, 0.12)), url(hero-bg.png) center / cover no-repeat;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 340px;
    padding: 0;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-timer {
    min-width: 0;
    width: 100%;
  }

  .course-card-inner,
  .side-card,
  .mini-panel,
  .notice-card,
  .empty-card,
  .checkout-card,
  .success-card {
    padding: 16px;
  }

  .course-head,
  .course-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .toggle-pill {
    justify-content: center;
    width: 100%;
  }

  .summary-amount strong,
  .price {
    font-size: 28px;
  }

  .mobile-paybar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow);
  }

  .bundle-toast {
    left: 12px;
    right: 12px;
    bottom: 88px;
    width: auto;
  }

  .mobile-paybar .button {
    width: auto;
    min-width: 148px;
    padding-inline: 18px;
  }

  .checkout-paybar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow);
  }

  .checkout-paybar .button {
    width: auto;
    min-width: 170px;
    padding-inline: 18px;
  }

  .footer-gap {
    height: 94px;
  }

  .lead-gate {
    min-height: calc(100dvh - 68px);
    padding: 10px 0 18px;
  }

  .lead-gate-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .lead-intro {
    padding-left: 0;
    text-align: left;
  }

  .lead-intro h1 {
    font-size: 22px;
    line-height: 1.08;
  }

  .lead-intro p {
    margin-top: 8px;
    font-size: 16px;
  }

  .lead-visual {
    min-height: 0;
    margin-top: 0;
    border-radius: 22px;
    overflow: hidden;
  }

  .lead-visual img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
  }

  .lead-float-card,
  .lead-visual::after {
    display: none;
  }

  .lead-gate-card {
    padding: 18px;
    border-radius: 24px;
  }

  .lead-card-head h2 {
    font-size: 16px;
  }

  .lead-card-head p {
    font-size: 13px;
  }

  .lead-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lead-trust-row {
    justify-content: center;
  }

  .course-modal-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: calc(100dvh - 10px);
    border-radius: 24px 24px 0 0;
    transform: translateX(-50%);
  }

  .modal-hero {
    padding: 22px 58px 18px 18px;
  }

  .modal-hero h2 {
    font-size: 30px;
  }

  .modal-hero p,
  .modal-description {
    font-size: 14px;
  }

  .modal-price-row {
    align-items: start;
    padding: 14px 18px;
  }

  .modal-price {
    flex-wrap: wrap;
  }

  .modal-price strong {
    font-size: 30px;
  }

  .modal-content {
    padding: 18px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
    padding: 12px;
  }

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