/* ══════════════════════════════════════════════════════════════════════════
   Chompy — Landing Page Styles
   Design tokens inherited from extension popup & admin panel
   ══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:        #F2F0ED;
  --bg2:       #E8E5E0;
  --surface:   #FAFAFA;
  --surface2:  #FFFFFF;
  --border:    #E8E8E8;
  --border2:   #D4D4D4;
  --accent:    #2A7A8C;
  --accent2:   #1D5A67;
  --accent-l:  #3A9DB2;
  --orange:    #F28C38;
  --orange-l:  #F5A55A;
  --green:     #16a34a;
  --green-l:   #4ADE80;
  --red:       #E05555;
  --text:      #1A1A2E;
  --text2:     #4A4A5A;
  --text3:     #6B7280;
  --body:      'Plus Jakarta Sans', sans-serif;
  --display:   'Fredoka', sans-serif;
  --radius:    12px;
  --max-w:     1120px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

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

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

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  transition: all .2s ease;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }

a.btn-primary, .btn-primary { background: var(--accent); color: #fff; }
a.btn-primary:hover, .btn-primary:hover { background: var(--accent2); color: #fff; }

a.btn-orange, .btn-orange { background: linear-gradient(135deg, var(--orange), var(--orange-l)); color: #fff; }
a.btn-orange:hover, .btn-orange:hover { opacity: .9; color: #fff; }

.btn-ghost {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 16px 40px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 10px; }

/* ══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(242, 240, 237, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta { margin-left: 8px; }
.nav-cta a.btn { color: #fff; }
.nav-cta a.btn:hover { color: #fff; }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all .3s;
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  background: linear-gradient(180deg, rgba(42,122,140,0.06) 0%, transparent 100%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 18px 6px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-l);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  max-width: 750px;
  margin: 0 auto 20px;
}
.hero h1 .highlight {
  color: var(--accent);
}
.hero h1 .highlight-orange {
  color: var(--orange);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text3);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-mascot {
  margin-top: 50px;
  position: relative;
  display: inline-block;
}
.hero-mascot svg {
  filter: drop-shadow(0 12px 40px rgba(42,122,140,0.2));
}

.hero-browsers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.browser-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
}
.browser-icon svg { width: 22px; height: 22px; }

/* ══════════════════════════════════════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════════════════════════════════════ */
.features {
  padding: 80px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text3);
  max-width: 520px;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-sub { margin: 0 auto; }

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

.feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all .25s ease;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(42,122,140,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-icon.teal    { background: rgba(42,122,140,0.1); }
.feature-icon.orange  { background: rgba(242,140,56,0.1); }
.feature-icon.green   { background: rgba(74,222,128,0.1); }
.feature-icon.red     { background: rgba(224,85,85,0.1); }
.feature-icon.purple  { background: rgba(147,51,234,0.1); }
.feature-icon.blue    { background: rgba(59,130,246,0.1); }

.feature-card h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════════════════════ */
.how-it-works {
  padding: 80px 0;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(42,122,140,0.25);
}

.step h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}

/* connector lines */
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  top: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent-l), var(--border));
  opacity: 0.4;
}
.steps::before {
  left: calc(33.33% / 2 + 28px);
  width: calc(33.33% - 56px);
}
.steps::after {
  left: calc(33.33% + 33.33% / 2 + 28px);
  width: calc(33.33% - 56px);
}

/* ══════════════════════════════════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════════════════════════════════ */
.pricing {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  transition: all .25s ease;
}
.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 8px 40px rgba(242,140,56,0.12);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-l));
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(90deg, var(--orange), var(--orange-l));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.pricing-card .plan-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card .plan-desc {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 24px;
}

.pricing-card .plan-price {
  margin-bottom: 28px;
}
.pricing-card .plan-price .amount {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}
.pricing-card .plan-price .period {
  font-size: 14px;
  color: var(--text3);
  font-weight: 500;
}
.pricing-card .plan-price .currency {
  font-size: 20px;
  font-weight: 600;
  vertical-align: super;
  margin-right: 2px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text2);
}
.pricing-features li .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 1px;
}
.pricing-features li .check.yes {
  background: rgba(74,222,128,0.15);
  color: var(--green);
}
.pricing-features li .check.no {
  background: rgba(107,114,128,0.1);
  color: var(--text3);
}
.pricing-features li.disabled {
  color: var(--text3);
  opacity: 0.55;
}

.pricing-card .btn { width: 100%; }

/* ══════════════════════════════════════════════════════════════════════════
   PRIVACY
   ══════════════════════════════════════════════════════════════════════════ */
.privacy-section {
  padding: 80px 0;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.privacy-content { max-width: 480px; }

.privacy-list {
  list-style: none;
  margin-top: 28px;
}
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.privacy-list li .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(42,122,140,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.privacy-list li strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.privacy-list li span {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
}

.privacy-visual {
  display: flex;
  justify-content: center;
}

.shield-graphic {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(42,122,140,0.08) 0%, rgba(242,140,56,0.06) 100%);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.shield-graphic::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px dashed var(--border2);
}
.shield-graphic .shield-icon {
  font-size: 80px;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   BROWSERS
   ══════════════════════════════════════════════════════════════════════════ */
.browsers-section {
  padding: 80px 0;
}

.browsers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.browser-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: all .25s ease;
}
.browser-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.browser-card .b-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.browser-card h4 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.browser-card p {
  font-size: 12px;
  color: var(--text3);
}

.browser-card .status-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* ══════════════════════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════════════════════ */
.faq {
  padding: 80px 0;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-grid {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.faq-question:hover { color: var(--accent); }

.faq-question .arrow {
  font-size: 18px;
  color: var(--text3);
  transition: transform .25s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question .arrow { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text3);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border-radius: 24px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.cta-box h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.cta-box p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-box .btn {
  position: relative;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .brand-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 13px;
  max-width: 260px;
  line-height: 1.5;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════════════════
   LEGAL PAGES (privacy, terms)
   ══════════════════════════════════════════════════════════════════════════ */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 40px;
}

.legal-content {
  max-width: 720px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.legal-content h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-content li {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content strong { color: var(--text); }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .browsers-grid { grid-template-columns: repeat(3, 1fr); }
  .privacy-grid { grid-template-columns: 1fr; text-align: center; }
  .privacy-content { max-width: 100%; margin: 0 auto; }
  .privacy-list li { justify-content: center; text-align: left; }

  .steps::before, .steps::after { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .nav-links.open .nav-cta { margin-left: 0; }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 32px; }

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

  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }

  .browsers-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { flex-direction: column; }

  .cta-box { padding: 48px 24px; }

  .legal-content { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .browsers-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LANGUAGE TOGGLE
   ══════════════════════════════════════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg2);
  border-radius: 8px;
  padding: 3px;
}

.lang-toggle-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  background: transparent;
  color: var(--text3);
  transition: all .15s ease;
}

.lang-toggle-btn.active {
  background: var(--accent);
  color: #fff;
}

.lang-toggle-btn:hover:not(.active) {
  color: var(--text);
}

/* ── Dual-language visibility (legal pages) ──────────────────────────── */
html[data-lang="en"] [lang="es"] { display: none !important; }
html[data-lang="es"] [lang="en"] { display: none !important; }
