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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: #f4f7fb;
  color: #2d3748;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 6rem 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(99,132,255,0.08) 0%, rgba(255,154,139,0.08) 50%, rgba(255,214,102,0.06) 100%),
    url('pexels-alexasfotos-32580023.jpg?w=1400&h=800&fit=crop') center/cover no-repeat;
  overflow: hidden;
}



.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0;
  max-width: 600px;
}

.hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.hero-content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #fb63ff, #f4a599);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 0.95rem;
  color: #eee;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #6384ff, #7c6cff);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(99,132,255,0.25);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,132,255,0.35);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0.85rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e8ecf4;
  font-size: 0.8rem;
  color: #7a8599;
  font-weight: 500;
}

/* ===== LAYOUT ===== */
main { max-width: 720px; margin: 0 auto; padding: 2rem 1rem; }

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(99,132,255,0.06);
  border: 1px solid #e8ecf4;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
  text-align: center;
}

.card-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: #7a8599;
  margin-bottom: 1.25rem;
}

/* ===== FORM ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a5568;
  letter-spacing: 0.2px;
}

.form-group select,
.form-group input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #dde3ee;
  border-radius: 10px;
  background: #f9fafb;
  color: #2d3748;
  font-size: 0.92rem;
  font-family: inherit;
  appearance: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus,
.form-group input[type="text"]:focus {
  outline: none;
  border-color: #6384ff;
  box-shadow: 0 0 0 3px rgba(99,132,255,0.12);
  background: #fff;
}

.region-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: #7a8599;
  min-height: 1.1em;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #6384ff, #7c6cff);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  margin-top: 0.75rem;
  box-shadow: 0 4px 14px rgba(99,132,255,0.2);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,132,255,0.3); }
.btn-primary:focus-visible { outline: 3px solid #6384ff; outline-offset: 2px; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== VIEW TOGGLE ===== */
.view-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 0.75rem;
  border: 1.5px solid #dde3ee;
  border-radius: 50px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.toggle-btn {
  padding: 0.4rem 1.4rem;
  border: none;
  background: #f9fafb;
  color: #7a8599;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.toggle-btn + .toggle-btn { border-left: 1.5px solid #dde3ee; }
.toggle-btn.active { background: linear-gradient(135deg, #6384ff, #7c6cff); color: #fff; }
.toggle-btn:hover:not(.active) { background: #eef1f8; }

/* ===== RESULTS TABLE ===== */
#results { margin-top: 2rem; }
#results-wrapper { position: relative; }
#results-blur { transition: filter 0.5s ease; }
#results-blur.blurred { filter: blur(8px); user-select: none; pointer-events: none; }

table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }

th, td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #eef1f8;
  font-size: 0.82rem;
}

th { color: #9aa5b8; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
td:nth-child(3), td:nth-child(4), th:nth-child(3), th:nth-child(4) { text-align: right; }
tbody tr:hover { background: #f7f9fd; }

.total-row td {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a202c;
  border-top: 2px solid #6384ff;
  border-bottom: none;
  padding-top: 0.6rem;
}

.monthly-row td { color: #5a6577; border-bottom: none; font-size: 0.85rem; }
.emergency-row td { color: #e6a817; font-style: italic; font-size: 0.82rem; }

/* ===== EMAIL GATE ===== */
#email-gate { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 10; }
#email-gate.hidden { display: none; }

.gate-card {
  background: #fff;
  border: 1.5px solid #dde3ee;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(99,132,255,0.1);
}

.gate-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 700; color: #1a202c; margin-bottom: 0.5rem; }
.gate-card p { font-size: 0.85rem; color: #5a6577; margin-bottom: 1rem; line-height: 1.5; }
.gate-card form { display: flex; flex-direction: column; gap: 0.5rem; }

.gate-card input[type="email"] {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #dde3ee;
  border-radius: 10px;
  background: #f9fafb;
  color: #2d3748;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.gate-card input[type="email"]:focus { border-color: #6384ff; box-shadow: 0 0 0 3px rgba(99,132,255,0.12); background: #fff; }
#gate-error { color: #e53e3e; margin-top: 0.5rem; font-size: 0.82rem; }

.consent { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
.consent label { font-size: 0.72rem; color: #7a8599; }
.consent a { color: #6384ff; text-decoration: underline; }

/* ===== DOWNLOAD ===== */
.download-card {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-radius: 12px;
  border: 1px solid #bbf7d0;
}

.download-card p { color: #166534; margin-bottom: 0.75rem; font-size: 0.85rem; line-height: 1.5; }

.btn-download {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(34,197,94,0.2);
}

.btn-download:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34,197,94,0.3); }

/* ===== CTA BANNER ===== */
.cta-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(99,132,255,0.06);
  border: 1px solid #e8ecf4;
}

.cta-img { width: 260px; height: 260px; object-fit: cover; flex-shrink: 0; }
.cta-text { padding: 1.5rem 1.5rem 1.5rem 0; }
.cta-text h2 { text-align: left; font-size: 1.15rem; margin-bottom: 0.5rem; }
.cta-text p { color: #5a6577; font-size: 0.88rem; line-height: 1.6; }

/* ===== SEO CONTENT ===== */
.seo-content { margin-top: 2rem; }

.seo-content .card, .faq-section .card {
  background: transparent; box-shadow: none; border: none; padding: 1.5rem 0.5rem;
}

.seo-content h2, .faq-section h2 { font-size: 1rem; color: #9aa5b8; margin-bottom: 0.75rem; }

.seo-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem; font-weight: 600; color: #7a8599; margin-top: 1.25rem; margin-bottom: 0.35rem;
}

.seo-content p { color: #9aa5b8; line-height: 1.65; margin-bottom: 0.5rem; font-size: 0.78rem; }

/* ===== FAQ ===== */
.faq-section { margin-top: 1rem; }
.faq-section details { border-bottom: 1px solid #eef1f8; padding: 0.65rem 0; }
.faq-section details:last-of-type { border-bottom: none; }

.faq-section summary {
  font-weight: 500; color: #5a6577; cursor: pointer; font-size: 0.85rem;
  list-style: none; display: flex; align-items: center; gap: 0.5rem;
}

.faq-section summary::before { content: '▸'; transition: transform 0.2s; flex-shrink: 0; color: #6384ff; }
.faq-section details[open] summary::before { transform: rotate(90deg); }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section details p { margin-top: 0.4rem; color: #9aa5b8; line-height: 1.6; font-size: 0.78rem; }

/* ===== DISCLAIMER & FOOTER ===== */
.disclaimer-bar {
  text-align: center; margin: 1.5rem auto 0; max-width: 720px;
  padding: 0.65rem 1rem; background: #fff; border: 1px solid #e8ecf4;
  border-radius: 10px; font-size: 0.7rem; color: #9aa5b8;
}

.disclaimer-bar a { color: #6384ff; text-decoration: underline; }

footer { text-align: center; margin-top: 1.5rem; padding-bottom: 2rem; color: #9aa5b8; font-size: 0.76rem; }
footer p { margin-bottom: 0.25rem; }
footer a { color: #6384ff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.photo-credit { margin-top: 0.5rem; font-size: 0.66rem; color: #c4cad8; }

/* ===== UTILITIES ===== */
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== LEGAL PAGES ===== */
.legal-page { max-width: 720px; margin: 0 auto; padding: 2rem 1rem; }
.legal-page h1 { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; color: #1a202c; margin-bottom: 0.25rem; }
.legal-page .updated { color: #7a8599; font-size: 0.85rem; margin-bottom: 2rem; }
.legal-page h2 { text-align: left; font-size: 1.1rem; margin-top: 1.75rem; margin-bottom: 0.6rem; }
.legal-page p, .legal-page li { color: #4a5568; line-height: 1.7; margin-bottom: 0.6rem; font-size: 0.9rem; }
.legal-page ul { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.legal-page a { color: #6384ff; }
.legal-page .back-link { display: inline-block; margin-bottom: 1.5rem; color: #6384ff; text-decoration: none; font-weight: 500; }
.legal-page .back-link:hover { text-decoration: underline; }

/* ===== MOBILE ===== */
@media (max-width: 560px) {
  .hero { min-height: auto; padding: 4rem 1rem 2.5rem; background-image: none;}
  .hero-content { padding: 0; }
  .hero-content h1 { font-size: 1.6rem; color: #333;}
  .tagline { font-size: 0.9rem;color: #888; }
  .hero-cta { padding: 0.7rem 1.5rem; font-size: 0.9rem; }

  .trust-bar { gap: 0.5rem 1rem; padding: 0.7rem 1rem; font-size: 0.72rem; }

  main { padding: 1.25rem 0.75rem; }

  .card { padding: 1.25rem 1rem; border-radius: 12px; }
  h2 { font-size: 1.1rem; }
  .card-subtitle { font-size: 0.8rem; }

  .form-row { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
  .form-group select, .form-group input[type="text"] { font-size: 16px; padding: 0.7rem 0.75rem; }

  table, thead, tbody, tfoot, tr, th, td { display: block; }
  thead { display: none; }

  tbody tr {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef1f8;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.1rem 0.5rem;
  }

  tbody td { border: none; padding: 0; text-align: left; }
  tbody td:nth-child(1) { grid-column: 1 / -1; font-weight: 600; font-size: 0.85rem; }
  tbody td:nth-child(2) { grid-column: 1; color: #9aa5b8; font-size: 0.73rem; }
  tbody td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; font-size: 0.76rem; color: #9aa5b8; }
  tbody td:nth-child(4) { grid-column: 1 / -1; text-align: right; font-size: 0.88rem; font-weight: 500; }

  tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding: 0.4rem 0; }
  tfoot td { border: none; padding: 0; }
  tfoot td:first-child { font-size: 0.8rem; }
  tfoot td:last-child { text-align: right; }

  .total-row td { padding-top: 0.5rem; }

  .gate-card { padding: 1.25rem; width: 95%; }
  .gate-card h3 { font-size: 1rem; }
  .gate-card p { font-size: 0.8rem; }

  .download-card { padding: 1rem; }

  .cta-banner { flex-direction: column; gap: 0; }
  .cta-img { width: 100%; max-width: 100%; height: 180px; }
  .cta-text { padding: 1.25rem; }
  .cta-text h2 { text-align: center; font-size: 1.05rem; }
  .cta-text p { font-size: 0.82rem; text-align: center; }

  .disclaimer-bar { margin: 1rem 0.75rem 0; font-size: 0.66rem; }

  .legal-page h1 { font-size: 1.4rem; }
  .legal-page h2 { font-size: 1rem; }
  .legal-page p, .legal-page li { font-size: 0.85rem; }
}
