/* ========================================================
   iKasih.my — refined editorial khairat aesthetic
   Palette: deep emerald + ivory + warm gold accent
   ========================================================*/

:root {
  --emerald-900: #082a20;
  --emerald-800: #0d3b2e;
  --emerald-700: #14513e;
  --emerald-600: #1e6b53;
  --emerald-500: #2e8669;
  --emerald-100: #e8f0ec;

  --gold-600: #b08a3e;
  --gold-500: #c9a961;
  --gold-300: #e8d5a0;
  --gold-100: #f7efd9;

  --ivory: #fbf8f1;
  --cream: #f4ede0;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #8a8a8a;
  --line: #e8e0cf;

  --good: #2e8669;
  --bad: #b34a3a;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(8,42,32,0.06);
  --shadow-md: 0 8px 28px rgba(8,42,32,0.08);
  --shadow-lg: 0 24px 60px rgba(8,42,32,0.14);

  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===================== Type ===================== */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--emerald-900); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.6rem; }
h1 em, h2 em { font-style: italic; color: var(--gold-600); font-weight: 500; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-600);
  margin-bottom: 1.25rem;
}

/* ===================== Buttons ===================== */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--emerald-800);
  color: var(--ivory);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--emerald-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary.btn-lg { padding: 18px 32px; font-size: 1rem; width: 100%; justify-content: center; }
.btn-secondary {
  background: var(--gold-500);
  color: var(--emerald-900);
}
.btn-secondary:hover { background: var(--gold-600); color: var(--ivory); }
.btn-ghost {
  background: transparent;
  color: var(--emerald-700);
  border: 1px dashed var(--emerald-600);
  padding: 10px 16px;
}
.btn-ghost:hover { background: var(--emerald-100); }

/* ===================== Topbar (Discount CTA) ===================== */
.topbar {
  background: linear-gradient(90deg, var(--emerald-900) 0%, var(--emerald-800) 50%, var(--emerald-900) 100%);
  color: var(--gold-300);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--emerald-800);
  position: relative;
  overflow: hidden;
}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,97,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
  pointer-events: none;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}
.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  font-weight: 400;
}
.topbar-pill .spark {
  display: inline-block;
  animation: sparkle 2s ease-in-out infinite;
  font-size: 1.1rem;
}
@keyframes sparkle { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(15deg); } }
.topbar-pill strong { color: var(--ivory); font-weight: 600; }
.topbar-pill .highlight {
  color: var(--gold-500);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 700;
  padding: 0 2px;
}
.topbar-btn {
  background: var(--gold-500);
  color: var(--emerald-900);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 12px rgba(201,169,97,0.25);
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-btn:hover {
  background: var(--ivory);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(201,169,97,0.4);
}

/* ===================== Modal ===================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: modal-fade-in .3s ease;
}
.modal[hidden] { display: none; }
.modal-step[hidden] { display: none; }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 42, 32, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal-card {
  position: relative;
  background: var(--ivory);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold-500);
  animation: modal-slide-up .4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-slide-up { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 32px; height: 32px;
  font-size: 1.6rem;
  color: var(--ink-muted);
  background: none;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s;
  line-height: 1;
}
.modal-close:hover { background: var(--cream); color: var(--emerald-900); }
.modal-step { text-align: center; }
.modal-step h2 {
  font-size: 2rem;
  margin: 8px 0 14px;
  color: var(--emerald-900);
}
.modal-step h2 em { color: var(--gold-600); font-style: italic; }
.modal-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 8px;
}
.modal-lede { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; }
.modal-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-600);
  text-align: left;
  margin-bottom: 10px;
}
.modal-ic-input {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.modal-ic-input input {
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.modal-ic-input input:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(46,134,105,0.12);
}
.modal-hint { font-size: 0.78rem; color: var(--ink-muted); text-align: center; }

/* Loading */
.modal-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--cream);
  border-top-color: var(--emerald-700);
  border-radius: 50%;
  margin: 32px auto 20px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal-status { color: var(--ink-soft); margin-bottom: 32px; }

/* Result icons */
.modal-tick, .modal-cross, .modal-info {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 18px;
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
  animation: pop-in .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-tick  { background: var(--good); box-shadow: 0 0 0 10px rgba(46,134,105,0.12); }
.modal-cross { background: var(--bad);  box-shadow: 0 0 0 10px rgba(179,74,58,0.12); }
.modal-info  { background: var(--gold-500); color: var(--emerald-900); box-shadow: 0 0 0 10px rgba(201,169,97,0.18); }
@keyframes pop-in { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* Policy card */
.policy-card {
  background: linear-gradient(180deg, var(--emerald-900) 0%, var(--emerald-800) 100%);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
  color: var(--ivory);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.policy-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--gold-600) 0%, transparent 70%);
  opacity: 0.35;
}
.policy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(232,213,160,0.2);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-300);
  position: relative;
}
.policy-tag {
  background: rgba(179,74,58,0.2);
  color: #ffb3a7;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.65rem;
}
.policy-body { position: relative; }
.policy-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--gold-300);
}
.policy-row strong { color: var(--ivory); font-weight: 600; }
.policy-row.highlight {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--gold-500);
  font-size: 1rem;
}
.policy-row.highlight strong {
  color: var(--gold-500);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
}

#proceedRegister { width: 100%; justify-content: center; }

/* Form inline eligibility card */
.enroll-form .form-elig-card {
  background: linear-gradient(135deg, var(--gold-100) 0%, var(--cream) 100%);
  border: 1px solid var(--gold-300);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  transition: opacity .4s ease, max-height .5s ease, padding .4s ease, margin .4s ease, border-width .4s ease;
  overflow: hidden;
}
.enroll-form .form-elig-card.is-eligible {
  background: linear-gradient(135deg, rgba(46,134,105,0.1) 0%, rgba(46,134,105,0.04) 100%);
  border-color: var(--good);
  border-left-color: var(--good);
}
.enroll-form .form-elig-card.is-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  opacity: 0;
  border-width: 0;
}
.enroll-form .form-elig-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.enroll-form .form-elig-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  animation: sparkle 2s ease-in-out infinite;
}
.enroll-form .form-elig-text { flex: 1; }
.enroll-form .form-elig-card h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--emerald-900);
  margin: 0 0 6px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.enroll-form .form-elig-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.enroll-form .form-elig-input {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.enroll-form .form-elig-input input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: #fff;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  margin: 0;
  font-family: inherit;
  color: var(--ink);
}
.enroll-form .form-elig-input input:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(46,134,105,0.12);
}
.enroll-form .form-elig-input .btn-primary,
.enroll-form .form-elig-input .btn-ghost {
  padding: 12px 20px;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.form-elig-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.55;
  border-left: 3px solid;
}
.form-elig-result.is-good {
  background: rgba(46,134,105,0.1);
  border-color: var(--good);
  color: var(--emerald-800);
}
.form-elig-result.is-good strong { color: var(--emerald-900); font-weight: 700; }
.form-elig-result.is-bad {
  background: rgba(176,138,62,0.12);
  border-color: var(--gold-600);
  color: var(--ink);
}
.form-elig-result.is-bad strong { color: var(--emerald-900); }
.form-elig-result .elig-discount-pill {
  display: inline-block;
  background: var(--good);
  color: #fff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  margin: 0 4px;
  letter-spacing: 0.04em;
}

/* Bottom eligibility nudge (just above submit button) */
.enroll-form .form-elig-bottom {
  background: var(--cream);
  border: 1px dashed var(--gold-500);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 24px 0 18px;
  transition: opacity .4s ease, max-height .5s ease, padding .4s ease, margin .4s ease, border-width .4s ease;
  overflow: hidden;
}
.enroll-form .form-elig-bottom.is-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  opacity: 0;
  border-width: 0;
}
.enroll-form .form-elig-bottom-inner {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.enroll-form .form-elig-bottom .form-elig-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}
.enroll-form .form-elig-bottom .form-elig-text { flex: 1; min-width: 200px; }
.enroll-form .form-elig-bottom h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--emerald-900);
  margin: 0 0 4px;
  font-weight: 600;
  line-height: 1.2;
}
.enroll-form .form-elig-bottom p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.enroll-form .form-elig-bottom .btn-secondary {
  padding: 10px 18px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Form body reveal */
.form-body { animation: form-reveal .5s ease; }
@keyframes form-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .enroll-form .form-elig-input { flex-direction: column; }
  .enroll-form .form-elig-input input,
  .enroll-form .form-elig-input .btn-primary,
  .enroll-form .form-elig-input .btn-ghost { width: 100%; }
}
@keyframes flash-form {
  0%, 100% { box-shadow: var(--shadow-md); }
  40%      { box-shadow: 0 0 0 3px var(--gold-500), var(--shadow-lg); }
}
.flash-highlight { animation: flash-form 1.8s ease; }

/* Child age indicator */
.age-indicator {
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  min-height: 1em;
}

@media (max-width: 720px) {
  .topbar { font-size: 0.78rem; }
  .topbar-inner { padding: 8px 16px; flex-wrap: wrap; gap: 8px; }
  .topbar-pill { flex-wrap: wrap; gap: 6px; font-size: 0.75rem; }
  .topbar-pill .highlight { font-size: 1rem; }
  .topbar-btn { font-size: 0.75rem; padding: 6px 12px; }
  .modal-card { padding: 36px 24px; }
  .modal-step h2 { font-size: 1.5rem; }
  .modal-ic-input { flex-direction: column; }
  .modal-ic-input button { width: 100%; justify-content: center; }
}

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  background: var(--emerald-800);
  color: var(--gold-300);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 700;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--emerald-900);
  letter-spacing: -0.01em;
}
.brand-tld { color: var(--gold-600); font-style: italic; }
.brand-tagline { font-size: 0.7rem; color: var(--ink-muted); letter-spacing: 0.06em; text-transform: uppercase; }

.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a { font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; transition: color .2s; position: relative; }
.site-nav a:not(.nav-cta):hover { color: var(--emerald-800); }
.site-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--gold-600); transition: width .3s;
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--emerald-800);
  color: var(--ivory) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--emerald-900); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--emerald-800); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at 20% 0%, var(--cream) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, var(--gold-100) 0%, transparent 60%),
    var(--ivory);
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(176,138,62,0.08) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.hero-title { margin-bottom: 24px; font-weight: 500; }
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--emerald-800);
  line-height: 1;
}
.hero-trust span { font-size: 0.78rem; color: var(--ink-muted); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Eligibility card */
.elig-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 540px;
  margin-bottom: 8px;
}
.elig-card label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.elig-input {
  display: flex;
  gap: 8px;
}
.elig-input input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.elig-input input:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(46,134,105,0.12);
}
.elig-hint { font-size: 0.78rem; color: var(--ink-muted); margin-top: 12px; }
.elig-result {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border-left: 3px solid;
}
.elig-result.is-good { background: rgba(46,134,105,0.08); border-color: var(--good); color: var(--emerald-800); }
.elig-result.is-bad { background: rgba(179,74,58,0.08); border-color: var(--bad); color: var(--bad); }

/* Hero aside */
.hero-aside { display: flex; flex-direction: column; gap: 20px; }

.urgency-card {
  background: var(--emerald-900);
  color: var(--ivory);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.urgency-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--gold-600) 0%, transparent 70%);
  opacity: 0.4;
}
.urgency-head { display: flex; justify-content: space-between; margin-bottom: 18px; position: relative; }
.urgency-tag {
  background: var(--gold-500);
  color: var(--emerald-900);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}
.urgency-meta { font-size: 0.78rem; color: var(--gold-300); }
.urgency-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-300);
  margin-bottom: 16px;
  position: relative;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
}
.countdown div {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232,213,160,0.15);
  border-radius: var(--radius);
  padding: 14px 6px;
  text-align: center;
}
.countdown span {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ivory);
  line-height: 1;
}
.countdown em {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
  display: block;
  margin-top: 6px;
}
.urgency-card .btn-secondary { width: 100%; justify-content: center; position: relative; }

/* Live feed */
.live-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.live-dot {
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-red 1.6s infinite;
}
@keyframes pulse-red {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}
.live-feed { list-style: none; }
.live-feed li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
  animation: slide-in .4s ease;
}
.live-feed li:last-child { border-bottom: none; }
.live-feed strong { color: var(--emerald-800); font-weight: 600; }
.live-feed em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
@keyframes slide-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* ===================== Trust bar ===================== */
.trust-bar {
  background: var(--emerald-800);
  color: var(--gold-300);
  padding: 20px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  justify-content: center;
}
.trust-grid svg { color: var(--gold-500); flex-shrink: 0; }

/* ===================== Section heads ===================== */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ===================== Packages ===================== */
.packages { padding: 100px 0; background: var(--ivory); }
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.pkg-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  overflow: hidden;
}
.pkg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.pkg-tier-4 { background: linear-gradient(180deg, #fff 0%, var(--gold-100) 100%); border-color: var(--gold-300); }
.pkg-ribbon {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.pkg-head { margin-bottom: 24px; padding-right: 70px; }
.pkg-head h3 { color: var(--accent); font-size: 1.7rem; margin-bottom: 6px; }
.pkg-head p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.pkg-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.pkg-currency { font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; }
.pkg-amount {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--emerald-900);
  line-height: 1;
}
.pkg-period { font-size: 0.78rem; color: var(--ink-muted); margin-left: 6px; }
.pkg-benefits { list-style: none; flex: 1; margin-bottom: 24px; }
.pkg-benefits li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.86rem;
  border-bottom: 1px dashed var(--line);
}
.pkg-benefits li:last-child { border-bottom: none; }
.pkg-benefits span { color: var(--ink-soft); }
.pkg-benefits strong { color: var(--emerald-800); font-weight: 600; }
.pkg-cta {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--emerald-900);
  border: 1.5px solid var(--emerald-800);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .2s;
}
.pkg-cta:hover {
  background: var(--emerald-800);
  color: var(--ivory);
}

/* ===================== How it works ===================== */
.how {
  padding: 100px 0;
  background: var(--emerald-900);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.how::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, transparent 49%, rgba(176,138,62,0.04) 49%, rgba(176,138,62,0.04) 51%, transparent 51%);
  background-size: 32px 32px;
  pointer-events: none;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  position: relative;
}
.how-copy h2 { color: var(--ivory); }
.how-copy h2 em { color: var(--gold-500); }
.how-copy p { color: var(--gold-300); font-size: 1.1rem; margin-top: 18px; }
.how-copy .eyebrow { color: var(--gold-500); }
.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.how-steps li {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,213,160,0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: background .3s, border-color .3s;
}
.how-steps li:hover { background: rgba(255,255,255,0.07); border-color: var(--gold-500); }
.step-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--gold-500);
  display: block;
  margin-bottom: 16px;
}
.how-steps h4 {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ivory);
  margin-bottom: 8px;
  font-weight: 600;
}
.how-steps p { font-size: 0.88rem; color: var(--gold-300); line-height: 1.6; }

/* ===================== Enrollment ===================== */
.enroll {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
}
.enroll-shell {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.enroll-side { position: sticky; top: 100px; }
.enroll-side h2 { margin-bottom: 18px; }
.enroll-side > p { color: var(--ink-soft); margin-bottom: 28px; }
.enroll-points { list-style: none; margin-bottom: 32px; }
.enroll-points li { padding: 8px 0; color: var(--ink-soft); font-size: 0.92rem; }
.enroll-points li:first-letter { color: var(--good); font-weight: 700; }

.summary-card {
  background: var(--emerald-900);
  color: var(--ivory);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--gold-300);
  border-bottom: 1px dashed rgba(232,213,160,0.15);
}
.summary-row:last-child { border: none; }
.summary-row strong { color: var(--ivory); font-weight: 600; }
.summary-row.total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gold-500);
  font-size: 1rem;
}
.summary-row.total strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-500);
  font-weight: 600;
}
.text-good { color: #4ade80 !important; }

/* Enroll form */
.enroll-form {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.form-stepper {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.form-stepper .step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.form-stepper .step span {
  width: 26px; height: 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.form-stepper .step.active { color: var(--emerald-900); }
.form-stepper .step.active span {
  background: var(--emerald-800);
  color: var(--gold-300);
  border-color: var(--emerald-800);
}

fieldset { border: none; margin-bottom: 32px; }
legend {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--emerald-900);
  margin-bottom: 18px;
  padding: 0;
}
legend .hint { font-family: var(--sans); font-size: 0.78rem; font-weight: 400; color: var(--ink-muted); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid-2 .span-2 { grid-column: span 2; }

label {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
label input, label select {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color .2s, box-shadow .2s;
}
label input:focus, label select:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(46,134,105,0.12);
}

.package-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pp-option {
  position: relative;
  cursor: pointer;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
}
.pp-option input { position: absolute; opacity: 0; pointer-events: none; }
.pp-body {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .2s;
  background: #fff;
}
.pp-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--emerald-900);
}
.pp-price { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.pp-option input:checked + .pp-body {
  border-color: var(--accent);
  background: linear-gradient(135deg, transparent, color-mix(in srgb, var(--accent) 8%, transparent));
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 20%, transparent);
}
.pp-option.pp-disabled {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(0.6);
}
.pp-option.pp-disabled .pp-body {
  background: var(--cream);
  border-style: dashed;
}

.dep-block { margin-bottom: 20px; padding: 20px; background: var(--cream); border-radius: var(--radius); border: 1px dashed var(--line); }
.dep-block h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.dep-block .hint { color: var(--ink-muted); font-weight: 400; text-transform: none; letter-spacing: normal; }
.child-row { margin-bottom: 12px; }
#add-child { margin-top: 8px; }

.agree {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  margin: 24px 0;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius);
}
.agree input { margin-top: 3px; flex-shrink: 0; }
.agree a { color: var(--emerald-700); text-decoration: underline; }

.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; }
.form-msg.is-good { background: rgba(46,134,105,0.08); color: var(--emerald-800); border-left: 3px solid var(--good); }
.form-msg.is-bad { background: rgba(179,74,58,0.08); color: var(--bad); border-left: 3px solid var(--bad); }

/* ===================== Testimonials ===================== */
.testi { padding: 100px 0; background: var(--ivory); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-card::before {
  content: '"';
  position: absolute;
  top: 12px; right: 24px;
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--gold-300);
  line-height: 1;
}
.testi-stars { color: var(--gold-500); margin-bottom: 12px; font-size: 0.9rem; letter-spacing: 2px; }
.testi-content { font-style: italic; color: var(--ink-soft); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.65; position: relative; z-index: 1; }
.testi-meta { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line); }
.testi-avatar {
  width: 38px; height: 38px;
  background: var(--emerald-100);
  color: var(--emerald-800);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
}
.testi-author { font-weight: 600; font-size: 0.9rem; color: var(--emerald-900); }
.testi-source { font-size: 0.72rem; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-left: auto; padding: 3px 8px; border-radius: 100px; background: var(--cream); }

/* ===================== FAQ ===================== */
.faq { padding: 100px 0; background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 100px; }
.faq-grid p { color: var(--ink-soft); margin-top: 18px; }
.faq-grid a { color: var(--emerald-700); font-weight: 600; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color .2s;
}
.faq-list details[open] { border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.faq-list summary {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--emerald-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-600);
  transition: transform .2s;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin-top: 12px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.65; }

/* ===================== Footer ===================== */
.site-footer {
  background: var(--emerald-900);
  color: var(--gold-300);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-grid h6 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { padding: 5px 0; font-size: 0.88rem; }
.footer-grid ul a:hover { color: var(--ivory); }
.footer-grid p { font-size: 0.85rem; line-height: 1.7; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-300); margin-top: 16px; }
.footer-grid .brand-name, .footer-grid .brand-mark { color: var(--ivory); }
.footer-grid .brand-mark { background: var(--gold-500); color: var(--emerald-900); }
.footer-grid .brand-tld { color: var(--gold-500); }
.footer-bottom {
  border-top: 1px solid rgba(232,213,160,0.12);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--gold-300);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom strong { color: var(--ivory); font-weight: 600; }

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-900);
  color: var(--ivory);
  padding: 14px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  font-size: 0.9rem;
  border-left: 3px solid var(--gold-500);
  animation: toast-in .3s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===================== Payment return page ===================== */
.return-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at top, var(--cream), transparent 70%),
    var(--ivory);
  padding: 40px 20px;
}
.return-card {
  background: #fff;
  max-width: 520px;
  width: 100%;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-top: 4px solid var(--good);
}
.return-card.is-fail { border-top-color: var(--bad); }
.return-icon {
  width: 72px; height: 72px;
  background: var(--good);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 24px;
  font-size: 2.4rem;
  font-weight: 600;
}
.return-card.is-fail .return-icon { background: var(--bad); }
.return-card h1 { font-size: 2.2rem; margin-bottom: 12px; }
.return-name { color: var(--ink-soft); margin-bottom: 28px; }
.return-details {
  background: var(--cream);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  text-align: left;
}
.return-details > div {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}
.return-details > div:last-child { border: none; }
.return-details span { color: var(--ink-soft); }
.return-details strong { color: var(--emerald-900); }
.return-msg { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 28px; }

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-aside { max-width: 540px; }
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .enroll-shell { grid-template-columns: 1fr; }
  .enroll-side { position: static; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid > div:first-child { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar-meta a { margin-left: 12px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ivory);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--line);
    gap: 16px;
  }
  .hero { padding: 56px 0 72px; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 16px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .trust-grid div { justify-content: flex-start; font-size: 0.8rem; }
  .pkg-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .enroll-form { padding: 28px 20px; }
  .grid-2, .grid-2 .span-2, .package-picker { grid-template-columns: 1fr; grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .countdown span { font-size: 1.4rem; }
  .return-card { padding: 40px 28px; }
  .form-stepper { font-size: 0.78rem; }
  .form-stepper .step { gap: 6px; }
}
