/* ============================================
   NAJAH STEP — hand-written CSS, CB-IELTS theme
   Palette: navy #0a1929 / gold #F59E0B / white
   ============================================ */

:root {
  --navy: #0a1929;
  --navy-2: #12233a;
  --navy-3: #1c3152;
  --gold: #F59E0B;
  --gold-2: #FBBF24;
  --white: #ffffff;
  --muted: #c7d0de;
  --border: #1e3152;
  --success: #10b981;
  --radius: 8px;
  --radius-lg: 14px;
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Tahoma", "Arial", sans-serif;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; top: -40px; right: 0;
  background: var(--gold); color: var(--navy);
  padding: 8px 16px; font-weight: 700;
  z-index: 1000;
}
.skip-link:focus { top: 0; }

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

/* ===== TOP BAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); border-bottom: 1px solid var(--border);
  height: 56px;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 12px;
}
.topbar-logo { display: flex; align-items: center; }
.topbar-logo img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); }
.logo-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: 12px;
}
.topbar-telegram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--gold); background: transparent;
  transition: background .2s;
}
.topbar-telegram:hover { background: var(--navy-2); text-decoration: none; }
.topbar-menu {
  width: 44px; height: 44px; font-size: 22px; color: var(--gold);
  border-radius: 8px;
}
.topbar-menu:hover { background: var(--navy-2); }
.topbar-nav {
  position: absolute; top: 56px; left: 0; right: 0;
  background: var(--navy-2); border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 8px 20px;
}
.topbar-nav a { padding: 12px 0; color: var(--white); border-bottom: 1px solid var(--border); }
.topbar-nav a:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .topbar-menu { display: none; }
  .topbar-nav {
    position: static; display: flex !important; flex-direction: row; background: transparent; border: 0; padding: 0; gap: 24px;
  }
  .topbar-nav a { border: 0; padding: 0; color: var(--muted); }
  .topbar-nav a:hover { color: var(--gold); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 14px 28px; min-height: 44px;
  border-radius: var(--radius); font-weight: 700; font-size: 16px;
  text-align: center; transition: transform .15s, background .2s;
  border: 2px solid transparent; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-2); }
.btn-secondary { background: var(--navy-3); color: var(--white); border-color: var(--gold); }
.btn-secondary:hover { background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-large { padding: 18px 36px; font-size: 18px; }

/* ===== SECTIONS ===== */
section { padding: 56px 0; }
.section-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; color: var(--white); }
.section-sub { color: var(--muted); margin-bottom: 32px; font-size: 1.05rem; }
@media (min-width: 768px) {
  section { padding: 72px 0; }
  .section-title { font-size: 2.25rem; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  padding: 48px 0 56px;
  text-align: center;
}
.hero-badge {
  display: inline-block; padding: 6px 14px; margin-bottom: 20px;
  background: rgba(245,158,11,.12); color: var(--gold);
  border: 1px solid var(--gold); border-radius: 999px;
  font-size: 0.9rem; font-weight: 600;
}
.hero-title { font-size: 2rem; font-weight: 800; line-height: 1.25; margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; line-height: 1.8; }
.hero-sub strong { color: var(--gold); font-weight: 700; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hero-ctas .btn { width: 100%; max-width: 360px; }
@media (min-width: 768px) {
  .hero { padding: 96px 0 112px; }
  .hero-title { font-size: 3rem; }
  .hero-sub { font-size: 1.25rem; }
  .hero-ctas { flex-direction: row; justify-content: center; }
  .hero-ctas .btn { width: auto; }
}

/* ===== CREDENTIAL ===== */
.credential { background: var(--navy-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.credential-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.credential-photo img, .photo-fallback { width: 160px; height: 160px; border-radius: 50%; border: 3px solid var(--gold); background: var(--navy-3); overflow: hidden; }
.credential-role { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.credential-role-sub { color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.credential-line { color: var(--muted); max-width: 620px; }
@media (min-width: 768px) {
  .credential-inner { flex-direction: row-reverse; text-align: right; gap: 40px; }
}

/* ===== WHAT IS STEP — 3 cards ===== */
.what-step { background: var(--navy); }
.cards-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card-mini { background: var(--navy-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.card-icon { color: var(--gold); margin-bottom: 12px; }
.card-mini h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--white); }
.card-mini p { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ===== COUNTDOWN ===== */
.countdown { background: var(--navy-2); }
.countdown-banner {
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--gold); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
}
.countdown-badge {
  display: inline-block; background: var(--gold); color: var(--navy);
  padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 12px;
}
.countdown-title { font-size: 1.3rem; margin-bottom: 18px; color: var(--white); }
.countdown-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 520px; margin: 0 auto 16px;
}
.countdown-cell {
  background: var(--navy); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 4px; display: flex; flex-direction: column; align-items: center;
}
.countdown-num { font-size: 1.75rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.countdown-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.countdown-dates { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 768px) {
  .countdown-title { font-size: 1.6rem; }
  .countdown-num { font-size: 2.5rem; }
  .countdown-label { font-size: 0.9rem; }
  .countdown-cell { padding: 20px 8px; }
}

.study-window {
  margin-top: 32px; padding: 24px; background: var(--navy);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.study-title { font-size: 1.2rem; margin-bottom: 6px; }
.study-sub { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.study-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.study-form label { font-weight: 600; }
.study-input {
  padding: 12px; min-height: 44px; background: var(--navy-2);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--white);
  font-size: 16px; font-family: inherit;
}
.study-input:focus { border-color: var(--gold); outline: none; }
.study-result {
  margin-top: 16px; padding: 16px; background: var(--navy-2);
  border-right: 3px solid var(--gold); border-radius: var(--radius);
}
.study-result strong { color: var(--gold); }
@media (min-width: 768px) {
  .study-form { flex-direction: row; align-items: end; }
  .study-form label { flex-basis: 180px; }
}

/* ===== SOCIAL PROOF STRIP ===== */
.social-proof { background: var(--navy); padding: 40px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.proof-card {
  background: var(--navy-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 16px; text-align: center;
}
.proof-num { font-size: 1.8rem; font-weight: 800; color: var(--gold); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.proof-label { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
@media (min-width: 768px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .proof-num { font-size: 2.25rem; }
  .proof-label { font-size: 1rem; }
}

/* ===== FREE TEST ===== */
.free-test { background: var(--navy-2); }
.free-test-inner { max-width: 720px; text-align: center; margin: 0 auto; }
.free-test-body { color: var(--muted); margin: 12px 0 24px; font-size: 1.05rem; }

/* ===== PRICING ===== */
.pricing { background: var(--navy); }
.promo-code { background: var(--gold); color: var(--navy); padding: 2px 8px; border-radius: 4px; font-family: monospace; }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
.tier {
  background: var(--navy-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; position: relative; display: flex; flex-direction: column;
}
.tier-featured {
  border: 2px solid var(--gold); box-shadow: 0 8px 24px rgba(245,158,11,.15);
  transform: scale(1);
}
.tier-badge {
  position: absolute; top: -14px; right: 24px;
  background: var(--gold); color: var(--navy);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
}
.tier-name { font-size: 1.35rem; margin-bottom: 12px; color: var(--white); }
.tier-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 1rem; }
.price-new { font-size: 2.25rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.price-curr { font-size: 1rem; color: var(--muted); font-weight: 600; }
.tier-features { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.tier-features li { padding: 8px 0 8px 28px; position: relative; color: var(--muted); }
.tier-features li::before {
  content: "✓"; position: absolute; right: 0; top: 8px;
  color: var(--gold); font-weight: 800;
}
.tier-cta { width: 100%; }
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .tier-featured { transform: scale(1.04); }
}

.compare-wrap { overflow-x: auto; }
.compare-title { font-size: 1.3rem; margin-bottom: 16px; }
.compare {
  width: 100%; border-collapse: collapse; min-width: 520px;
  background: var(--navy-2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.compare th, .compare td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--navy-3); color: var(--gold); font-weight: 700; }
.compare tbody th { text-align: right; color: var(--white); font-weight: 600; background: var(--navy-3); }
.compare td { color: var(--muted); }

/* ===== QUIZ ===== */
.quiz { background: var(--navy-2); }
.quiz-app {
  background: var(--navy); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; min-height: 320px;
}
.quiz-progress { height: 6px; background: var(--navy-3); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.quiz-progress-bar { height: 100%; background: var(--gold); transition: width .3s; }
.quiz-question { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.quiz-option {
  display: block; width: 100%; text-align: right;
  padding: 14px 18px; min-height: 44px;
  background: var(--navy-2); color: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 16px; cursor: pointer; transition: background .15s, border-color .15s;
}
.quiz-option:hover, .quiz-option:focus { background: var(--navy-3); border-color: var(--gold); }
.quiz-option.selected { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; }
.quiz-result { text-align: center; }
.quiz-result-tier { color: var(--gold); font-size: 1.75rem; font-weight: 800; margin: 12px 0; }
.quiz-result-reason { color: var(--muted); margin-bottom: 24px; }
.quiz-result-ctas { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
@media (min-width: 640px) { .quiz-result-ctas { flex-direction: row; } }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--navy); }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.testimonial-placeholder {
  background: var(--navy-2); border: 1px dashed var(--border);
  border-radius: var(--radius-lg); padding: 24px; color: var(--muted);
}
.placeholder-tag {
  display: inline-block; background: var(--navy-3); color: var(--gold);
  padding: 3px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700;
  margin-bottom: 10px;
}
.placeholder-body { font-size: 0.95rem; }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== FAQ ===== */
.faq { background: var(--navy-2); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--navy); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px; cursor: pointer; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--gold); font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-body { padding: 16px 24px 20px; color: var(--muted); }

/* ===== FINAL CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  text-align: center; padding: 72px 0;
}
.final-cta-title { font-size: 1.75rem; margin-bottom: 12px; }
.final-cta-sub { color: var(--muted); margin-bottom: 28px; }
.final-cta-number { margin-top: 16px; color: var(--muted); font-weight: 600; user-select: text; }
.final-cta-or { margin: 24px 0 16px; color: var(--gold); font-weight: 700; opacity: 0.85; font-size: 0.95rem; letter-spacing: 0.05em; }
@media (min-width: 768px) { .final-cta-title { font-size: 2.25rem; } }

/* ===== FOOTER ===== */
.footer { background: #060f1c; padding: 40px 0 24px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; gap: 20px; text-align: center; align-items: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand img, .footer-brand .logo-fallback { width: 48px; height: 48px; }
.footer-name { font-weight: 700; margin-bottom: 2px; }
.footer-license { color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold); background: var(--navy-2); border-radius: 50%; transition: background .2s;
}
.footer-social a:hover { background: var(--navy-3); }
.footer-copy { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; text-align: right; justify-content: space-between; flex-wrap: wrap; }
  .footer-brand { flex-direction: row; text-align: right; }
  .footer-copy { flex-basis: 100%; text-align: center; margin-top: 12px; }
}

/* ===== UTILITIES ===== */
.notice { color: var(--muted); padding: 16px; background: var(--navy); border-radius: var(--radius); }
[data-pending] { position: relative; }

/* Anti-copy active — text selection remains on body copy (accessibility) */
