/* ═══════════════════════════════════════════════════════════════
   PlasmoD — Website Styles
   Colorblind-safe palette: blue #2563eb, teal #0d9488
   No external dependencies. Works in all modern browsers.
═══════════════════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563eb;
  --blue-light: #eff6ff;
  --blue-dark:  #1d4ed8;
  --teal:       #0d9488;
  --teal-light: #f0fdfa;
  --teal-dark:  #0f766e;

  --bg:         #ffffff;
  --surface:    #f8fafc;
  --surface-2:  #f1f5f9;
  --border:     #e2e8f0;
  --border-2:   #cbd5e1;

  --text-1:     #0f172a;
  --text-2:     #334155;
  --text-3:     #64748b;
  --text-4:     #94a3b8;

  --success:    #16a34a;
  --danger:     #dc2626;
  --danger-bg:  #fef2f2;
  --danger-border: #fecaca;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 20px 40px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.06);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  --max-w: 1100px;
  --nav-h: 60px;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
p  { color: var(--text-2); }
code { font-family: var(--mono); font-size: 0.875em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ── Layout helpers ───────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header p {
  margin-top: 12px;
  font-size: 1.1rem;
  color: var(--text-3);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(37,99,235,.40);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text-1);
}

.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: var(--radius-lg); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-1);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.12s, color 0.12s;
}
.nav-links a:hover {
  background: var(--surface-2);
  color: var(--text-1);
  text-decoration: none;
}
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 80px;
}
.hero-inner { max-width: 560px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--blue-light);
  color: var(--blue-dark);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-note {
  font-size: 0.82rem;
  color: var(--text-4);
  margin-top: 4px;
}

/* ── Floating map art ─────────────────────────────────────── */
.hero-art {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}
.map-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--border);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.map-ring--outer  { width: 260px; height: 260px; border-color: #e2e8f0; }
.map-ring--middle { width: 220px; height: 220px; border-color: #cbd5e1; border-width: 3px; }
.map-ring--inner  { width: 120px; height: 120px; border-color: var(--border); }

.map-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.map-label { font-size: 1rem; font-weight: 700; color: var(--text-1); }
.map-sub   { font-size: 0.7rem; color: var(--text-3); font-weight: 500; }

/* Decorative arc segments */
.arc {
  position: absolute;
  width: 220px; height: 220px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.arc-1 {
  border: 6px solid transparent;
  border-top-color: #2563eb;
  border-right-color: #2563eb;
  transform: translate(-50%, -50%) rotate(30deg);
}
.arc-2 {
  border: 6px solid transparent;
  border-bottom-color: #0d9488;
  transform: translate(-50%, -50%) rotate(20deg);
}
.arc-3 {
  border: 5px solid transparent;
  border-left-color: #a78bfa;
  transform: translate(-50%, -50%) rotate(-40deg);
}
.arc-4 {
  border: 5px solid transparent;
  border-top-color: #f59e0b;
  transform: translate(-50%, -50%) rotate(160deg);
}

/* ── Social proof strip ───────────────────────────────────── */
.strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 14px 24px;
  font-size: 0.88rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.strip-inst { font-weight: 600; color: var(--text-2); }
.strip-dot  { color: var(--text-4); }

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p  { font-size: 0.92rem; line-height: 1.65; }

/* ── Formats ──────────────────────────────────────────────── */
.formats {
  background: var(--surface);
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.formats > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.formats .section-header { max-width: var(--max-w); }
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.format-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.format-card ul {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.format-card li {
  font-size: 0.95rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.format-card li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-4);
  flex-shrink: 0;
}
.format-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}
.format-badge--blue {
  background: var(--blue-light);
  color: var(--blue-dark);
}
.format-badge--teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}

/* ── Download form ────────────────────────────────────────── */
.download {
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.download-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.download-copy h2 { margin-bottom: 16px; }
.download-copy p  { font-size: 1.02rem; line-height: 1.75; }
.access-perks {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.access-perks li {
  font-size: 0.95rem;
  color: var(--success);
  font-weight: 500;
}

/* Form card */
.form-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
}
.field input[type="text"],
.field input[type="email"] {
  padding: 10px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text-1);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.field input.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.field-error {
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 18px;
}

/* Chip group (radio buttons styled as cards) */
.chip-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}
.chip {
  display: flex;
  cursor: pointer;
  position: relative;
}
.chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.chip span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 10px 6px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.12s, background 0.12s;
}
.chip span strong { font-size: 0.8rem; color: var(--text-1); }
.chip span small  { font-size: 0.7rem; color: var(--text-3); }
.chip input:checked + span {
  border-color: var(--blue);
  background: var(--blue-light);
}
.chip:hover span { border-color: var(--blue); }
.chip input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.chip-hint {
  font-size: 0.78rem;
  color: var(--text-4);
  margin-top: -12px;
  margin-bottom: 20px;
}

/* Submit button */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  position: relative;
}
.btn-submit .btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-label { display: none; }
.btn-submit.loading .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-legal {
  font-size: 0.75rem;
  color: var(--text-4);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* Form success */
.form-success {
  text-align: center;
  padding: 16px 0;
}
.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.form-success h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.form-success p {
  font-size: 0.95rem;
  color: var(--text-2);
}
.success-note {
  font-size: 0.82rem;
  color: var(--text-4);
  margin-top: 16px;
}

/* Form error banner */
.form-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius);
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--danger);
}
.form-error-banner svg { flex-shrink: 0; margin-top: 1px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  background: var(--surface);
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.faq .section-header {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item[open] { border-color: var(--blue); }
.faq-item summary {
  padding: 18px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 22px 20px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-2);
}
.faq-item p a { color: var(--blue); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-1);
}
.footer-links {
  display: flex;
  gap: 4px;
}
.footer-links a {
  padding: 4px 10px;
  font-size: 0.85rem;
  color: var(--text-3);
  border-radius: var(--radius-sm);
  transition: background 0.12s, color 0.12s;
}
.footer-links a:hover {
  background: var(--surface-2);
  color: var(--text-1);
  text-decoration: none;
}
.footer-copy {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-4);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 48px;
  }
  .hero-art { display: none; }
  .download-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .nav-links { gap: 0; }
  .nav-links a:not(.nav-cta) { display: none; }

  .form-card { padding: 24px 20px; }

  .chip-group { grid-template-columns: 1fr; }

  .footer-copy { margin-left: 0; width: 100%; }
}

/* ── Utility ──────────────────────────────────────────────── */
[hidden] { display: none !important; }
