/* ── Reset & Base ─────────────────────────────────────────────────────────── */

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

:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #f0fdfa;
  --teal-border: #ccfbf1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

.page-header {
  padding: 56px 0 32px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-top: 8px;
}

.page-intro {
  max-width: 560px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.content-section {
  padding: 32px 0 64px;
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 620px;
}

.policy-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-block h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.policy-block p,
.policy-list li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.policy-list {
  padding-left: 20px;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 26px;
  font-size: 14px;
}

.divider {
  height: 1px;
  background: var(--border-light);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-sentence {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 440px;
}

.hero-bullets {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-bullets li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-bullets li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.btn-install {
  /* REPLACE href with final Chrome Web Store URL when available */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.btn-install:hover {
  background: var(--teal-dark);
  text-decoration: none;
}


.cta-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Popup Preview ───────────────────────────────────────────────────────── */

.popup-preview {
  flex-shrink: 0;
  width: 240px;
}

.popup-frame {
  background: var(--bg-subtle);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.05);
  font-size: 13px;
}

.popup-header {
  background: var(--teal);
  padding: 10px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.popup-app-name {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.popup-hijri {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
}

.popup-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup-next-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.popup-next-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 2px;
}

.popup-next-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.popup-pending {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.popup-divider {
  height: 1px;
  background: var(--border-light);
}

.popup-countries-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.popup-country-chip {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid var(--teal-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.popup-footer {
  padding: 8px 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-footer-label {
  font-size: 10px;
  color: var(--text-muted);
}

.popup-footer-link {
  font-size: 10px;
  color: var(--teal);
}

.popup-footer-links {
  display: flex;
  gap: 10px;
}

/* ── Feature sections ────────────────────────────────────────────────────── */

.features {
  padding: 56px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 780px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Email updates ───────────────────────────────────────────────────────── */

.email-section {
  padding: 56px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.email-inner {
  max-width: 400px;
}

.email-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.email-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.email-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.email-input:focus {
  border-color: var(--teal);
}

.btn-join {
  padding: 10px 18px;
  background: var(--bg);
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-join:hover {
  background: var(--teal-light);
}

.email-feedback {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  display: none;
}

.email-feedback.visible {
  display: block;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-icon {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.footer-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--teal);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .popup-preview {
    width: 100%;
    max-width: 260px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-sentence {
    font-size: 15px;
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
