/* Typing Tutor Store - Scoped Single-Page Styles */
.tt-wrap {
  --tt-primary: #1d4ed8;
  --tt-primary-dark: #1e40af;
  --tt-green: #16a34a;
  --tt-wa: #25d366;
  --tt-dark: #0f172a;
  --tt-text: #1e293b;
  --tt-muted: #64748b;
  --tt-border: #e2e8f0;
  --tt-soft: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--tt-text);
  line-height: 1.6;
  background: #ffffff;
}
.tt-wrap *, .tt-wrap *::before, .tt-wrap *::after { box-sizing: border-box; }
.tt-container { max-width: 1140px; margin: 0 auto; padding: 0 18px; }

/* Topbar */
.tt-topbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tt-border);
}
.tt-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 16px;
}
.tt-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--tt-dark); }
.tt-nav { display: flex; gap: 20px; }
.tt-nav a { color: var(--tt-text); text-decoration: none; font-weight: 600; font-size: 14px; }
.tt-nav a:hover { color: var(--tt-primary); }

/* Buttons */
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s;
}
.tt-btn:hover { transform: translateY(-1px); }
.tt-btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.tt-btn-block { width: 100%; }
.tt-btn-primary { background: var(--tt-primary); color: #fff; }
.tt-btn-primary:hover { background: var(--tt-primary-dark); color: #fff; }
.tt-btn-outline { background: #fff; color: var(--tt-primary); border: 2px solid var(--tt-primary); }
.tt-btn-dark { background: var(--tt-dark); color: #fff; }
.tt-btn-green { background: var(--tt-green); color: #fff; }
.tt-btn-wa { background: var(--tt-wa); color: #fff; }
.tt-btn-wa:hover { background: #1ebe5d; color: #fff; }

/* Hero */
.tt-hero {
  padding: 54px 0 46px;
  background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 55%);
}
.tt-hero-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 32px; align-items: center; }
.tt-pill {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: #dbeafe; color: var(--tt-primary-dark); font-weight: 700; font-size: 12px; margin-bottom: 14px;
}
.tt-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.18; margin: 0 0 14px; color: var(--tt-dark); font-weight: 800; }
.tt-hero-sub { font-size: 16px; color: var(--tt-muted); margin: 0 0 22px; }
.tt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.tt-hero-trust { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; font-weight: 600; color: #334155; }

/* Result Preview Card */
.tt-hero-card {
  background: #fff; border: 1px solid var(--tt-border); border-radius: 16px;
  padding: 22px; box-shadow: 0 18px 40px -15px rgba(15,23,42,0.12);
}
.tt-result-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--tt-green);
  background: #dcfce7; display: inline-block; padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.tt-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tt-stat { background: var(--tt-soft); border: 1px solid var(--tt-border); border-radius: 10px; padding: 14px; text-align: center; }
.tt-stat-val { font-size: 24px; font-weight: 800; color: var(--tt-dark); }
.tt-stat-val.tt-green { color: var(--tt-green); }
.tt-stat-lbl { font-size: 12px; color: var(--tt-muted); margin-top: 2px; }
.tt-result-footer {
  display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--tt-border); font-size: 12px; font-weight: 600; color: var(--tt-muted);
}

/* Exam Strip */
.tt-exam-strip { background: var(--tt-dark); color: #e2e8f0; padding: 12px 0; }
.tt-exam-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-size: 13px; font-weight: 700; }

/* Sections */
.tt-section { padding: 56px 0; }
.tt-bg-soft { background: var(--tt-soft); }
.tt-section-head { text-align: center; max-width: 680px; margin: 0 auto 30px; }
.tt-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--tt-primary); }
.tt-section-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 8px; color: var(--tt-dark); font-weight: 800; }
.tt-section-head p { color: var(--tt-muted); margin: 0; }

/* Software Switcher */
.tt-switcher {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.tt-switch-btn {
  padding: 12px 22px; border-radius: 12px; border: 2px solid var(--tt-border);
  background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--tt-text);
}
.tt-switch-btn.active {
  border-color: var(--tt-primary); background: #eff6ff; color: var(--tt-primary-dark);
}

/* Plans Grid */
.tt-plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.tt-plan-card {
  position: relative; background: #fff; border: 1px solid var(--tt-border);
  border-radius: 14px; padding: 22px 18px; display: flex; flex-direction: column;
  box-shadow: 0 6px 18px rgba(15,23,42,0.04);
}
.tt-plan-featured { border: 2px solid var(--tt-primary); box-shadow: 0 14px 30px rgba(29,78,216,0.12); }
.tt-plan-badge {
  position: absolute; top: -11px; right: 14px; background: var(--tt-primary); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.tt-plan-title { font-size: 18px; font-weight: 800; color: var(--tt-dark); }
.tt-plan-price { font-size: 34px; font-weight: 900; color: var(--tt-primary); margin: 6px 0 2px; }
.tt-plan-price span { font-size: 15px; font-weight: 600; color: var(--tt-muted); }
.tt-plan-dur { font-size: 12px; color: var(--tt-muted); margin-bottom: 14px; }
.tt-plan-features { list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; color: #334155; flex: 1; }
.tt-plan-features li { margin-bottom: 6px; }

/* Download Cards */
.tt-download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.tt-download-card {
  background: #fff; border: 1px solid var(--tt-border); border-radius: 16px;
  padding: 24px; box-shadow: 0 10px 25px rgba(15,23,42,0.05);
}
.tt-dl-badge {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 10px;
  border-radius: 6px; background: #dbeafe; color: var(--tt-primary-dark); margin-bottom: 14px;
}
.tt-dl-badge-green { background: #dcfce7; color: #166534; }
.tt-dl-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tt-dl-icon { font-size: 36px; }
.tt-dl-header h3 { margin: 0; font-size: 20px; color: var(--tt-dark); }
.tt-dl-header p { margin: 2px 0 0; font-size: 13px; color: var(--tt-muted); }
.tt-dl-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; }
.tt-dl-list li { margin-bottom: 7px; }

/* Features */
.tt-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tt-feat-card { background: var(--tt-soft); border: 1px solid var(--tt-border); border-radius: 14px; padding: 22px; }
.tt-feat-num { font-size: 13px; font-weight: 900; color: var(--tt-primary); margin-bottom: 6px; }
.tt-feat-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--tt-dark); }
.tt-feat-card p { margin: 0; font-size: 14px; color: var(--tt-muted); }

/* WhatsApp Banner */
.tt-wa-banner { background: linear-gradient(135deg, #0f172a, #1e3a8a); color: #fff; padding: 34px 0; }
.tt-wa-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tt-wa-banner h3 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.tt-wa-banner p { margin: 0; color: #cbd5e1; max-width: 680px; }

/* FAQs */
.tt-faq-wrap { max-width: 780px; }
.tt-faq-list details {
  background: #fff; border: 1px solid var(--tt-border); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px;
}
.tt-faq-list summary { font-weight: 700; cursor: pointer; color: var(--tt-dark); }
.tt-faq-list p { margin: 10px 0 0; font-size: 14px; color: var(--tt-muted); }

/* Modals */
.tt-modal {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(15,23,42,0.62); align-items: center; justify-content: center; padding: 16px;
}
.tt-modal.open { display: flex; }
.tt-modal-box {
  position: relative; background: #fff; width: 100%; max-width: 440px;
  border-radius: 16px; padding: 26px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
}
.tt-modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  font-size: 26px; cursor: pointer; color: var(--tt-muted); line-height: 1;
}
.tt-modal-summary {
  background: #eff6ff; color: var(--tt-primary-dark); padding: 10px 12px;
  border-radius: 8px; font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.tt-field { margin-bottom: 14px; }
.tt-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.tt-field input {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px;
}
.tt-error { background: #fee2e2; color: #991b1b; padding: 10px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.tt-success-box { text-align: center; }
.tt-success-icon { font-size: 46px; margin-bottom: 6px; }
.tt-receipt {
  text-align: left; background: var(--tt-soft); border: 1px solid var(--tt-border);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; margin: 14px 0 18px;
}

@media (max-width: 820px) {
  .tt-hero-grid { grid-template-columns: 1fr; }
  .tt-nav { display: none; }
}
