/* Run Ads App — Shared brand styles
   Dark mode + neon green (#39ff14) matching Run Ads Academy brand */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-deep: #050505;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.05);
  --green: #39ff14;
  --green-soft: rgba(57, 255, 20, 0.1);
  --green-border: rgba(57, 255, 20, 0.3);
  --green-glow: rgba(57, 255, 20, 0.4);
  --white: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #c4c4c4;
  --text-muted: #a8a8a8;
  --text-dim: #888;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 600px;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(57, 255, 20, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 30% at 80% 10%, rgba(57, 255, 20, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============ NAV ============ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem; max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 10;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--white); text-decoration: none;
}

.nav-logo .green { color: var(--green); }

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}

.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  background: var(--green); color: var(--bg);
  padding: 0.65rem 1.4rem; border-radius: 8px;
  text-decoration: none; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.05em;
  text-transform: uppercase; font-family: 'Sora', sans-serif;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.i18n-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 1.15rem;
  position: relative;
}

.i18n-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  padding: 0;
  outline: none;
}

.i18n-trigger::after {
  content: "▾";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.i18n-current-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Sora', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.i18n-trigger:hover,
.i18n-trigger:focus-visible {
  border-color: var(--green-border);
}

.i18n-menu {
  display: grid;
  justify-items: center;
  row-gap: 0.18rem;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  min-width: 70px;
  padding: 0.35rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(5,5,5,0.98);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}

.i18n-menu[hidden] {
  display: none;
}

.i18n-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  margin: 0 auto;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Sora', sans-serif;
  font-size: 1.18rem;
  line-height: 1;
  cursor: pointer;
}

.i18n-option:hover,
.i18n-option:focus-visible,
.i18n-option.active {
  background: var(--green-soft);
  outline: none;
}

/* ============ CONTAINER ============ */
.container {
  max-width: 860px; margin: 0 auto;
  padding: 4rem 2rem 6rem;
  position: relative; z-index: 1;
}

/* ============ TAGS ============ */
.tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-soft); color: var(--green);
  padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--green-border);
  margin-bottom: 1.5rem;
  font-family: 'Sora', sans-serif;
}

.tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}

/* ============ HEADINGS ============ */
h1.page-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.025em; margin-bottom: 1.5rem;
  color: var(--white);
}

h1.page-title .accent { color: var(--green); }

.page-subtitle {
  font-size: 1.05rem; color: var(--text-muted);
  margin-bottom: 2rem; max-width: 600px;
}

.last-updated {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.78rem; color: var(--text-secondary);
  margin-bottom: 3rem;
  font-family: 'Sora', sans-serif;
}

/* ============ LEGAL CONTENT ============ */
.legal-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  margin-top: 2.75rem; margin-bottom: 1rem;
  letter-spacing: -0.01em; color: var(--white);
}

.legal-content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  margin-top: 1.75rem; margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.1rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.callout {
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--green-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.callout strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  color: var(--white);
}

/* ============ PRICING (used in pricing.html) ============ */
.pricing-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.5rem; max-width: 480px; margin: 3rem auto 0;
}

.price-card {
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--green-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  box-shadow: 0 0 60px rgba(57, 255, 20, 0.1);
}

.price-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.price-card-tag {
  display: inline-block;
  background: var(--green); color: var(--bg);
  padding: 0.3rem 0.8rem; border-radius: 6px;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  font-family: 'Sora', sans-serif;
  margin-bottom: 1.25rem;
}

.price-name {
  font-family: 'Sora', sans-serif; font-size: 1.5rem;
  font-weight: 700; color: var(--white);
  margin-bottom: 0.4rem;
}

.price-amount {
  font-family: 'Sora', sans-serif;
  font-size: 4rem; font-weight: 800;
  color: var(--white); line-height: 1;
  display: flex; align-items: baseline; gap: 0.4rem;
  margin: 1.5rem 0 0.4rem;
}

.price-amount .currency { font-size: 1.5rem; font-weight: 600; color: var(--green); }
.price-amount sub, .price-amount .period {
  font-size: 1rem; font-weight: 500; color: var(--text-dim);
  font-family: 'Inter', sans-serif; vertical-align: baseline;
}

.price-period {
  color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.price-period::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
}

.price-features {
  list-style: none; margin-bottom: 1.75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.price-features li {
  padding: 0.4rem 0; font-size: 0.9rem;
  display: flex; align-items: flex-start; gap: 0.6rem;
  color: var(--text-secondary);
}

.price-features li::before {
  content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0;
}

.price-cta {
  display: block; text-align: center;
  background: var(--green); color: var(--bg);
  padding: 1rem; border-radius: 10px;
  text-decoration: none; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.05em;
  text-transform: uppercase; font-family: 'Sora', sans-serif;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.4);
  transition: transform 0.2s;
  margin-bottom: 1rem;
}

.price-cta:hover { transform: translateY(-2px); }

.payment-methods {
  text-align: center; margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

.payment-methods p {
  font-size: 0.7rem; color: var(--text-dim);
  margin-bottom: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 600;
  font-family: 'Sora', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

.payment-logos {
  display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
}

.payment-badge {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-strong);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Sora', sans-serif;
  letter-spacing: 0.05em;
}

/* ============ FAQ ============ */
.faq-section { max-width: 720px; margin: 4rem auto 0; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--green-border); }

.faq-item summary {
  font-weight: 600; cursor: pointer; font-size: 1rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--white); font-family: 'Sora', sans-serif;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400;
  color: var(--green);
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin-top: 0.85rem; color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin: 3rem 0;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem;
  transition: border-color 0.2s;
}

.contact-card:hover { border-color: var(--green-border); }

.contact-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem; margin-bottom: 0.6rem;
  color: var(--white);
}

.contact-card p, .contact-card a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; display: block;
  margin-bottom: 0.2rem;
}

.contact-card a:hover { color: var(--green); }
.contact-card a strong { color: var(--green); font-weight: 600; }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
  position: relative; z-index: 1;
}

.footer-content {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem; margin-bottom: 1rem;
  color: var(--white); font-weight: 800;
}

.footer-brand h3 .green { color: var(--green); }

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1rem;
  font-weight: 700; color: var(--white);
  font-family: 'Sora', sans-serif;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.88rem; transition: color 0.2s;
}

.footer-col a:hover { color: var(--green); }

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: var(--text-dim);
}

.footer-bottom address { font-style: normal; }

/* ============ NAV TOGGLE ============ */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--white);
  flex-direction: column; justify-content: center; gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ STEPS GRID ============ */
.steps-grid { grid-template-columns: repeat(4, 1fr); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1040px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .nav-logo {
    flex-shrink: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .i18n-switcher {
    margin-left: auto;
    margin-right: 0.5rem;
  }
  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(10,10,10,0.97);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.25rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .nav-links a:hover,
  .nav-links a:active {
    background: var(--green-soft);
    color: var(--green);
  }
  .nav-links a::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.25rem;
    flex-wrap: wrap; gap: 0.75rem;
    position: relative;
  }
  .i18n-switcher {
    margin-left: 0;
    margin-right: 0;
  }
  .i18n-trigger {
    width: 58px;
    height: 34px;
  }
  .i18n-current-flag {
    font-size: 1rem;
  }
  .i18n-menu {
    min-width: 58px;
  }
  .i18n-option {
    width: 36px;
    height: 30px;
    font-size: 1rem;
  }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    order: 3; width: 100%;
    flex-direction: column; gap: 0;
    background: rgba(10,10,10,0.97);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .nav-links a:hover, .nav-links a:active {
    background: var(--green-soft);
    color: var(--green);
  }
  .nav-links a::after { display: none; }
  .container { padding: 2rem 1.25rem 4rem; }
  h1.page-title { font-size: 2rem; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.78rem;
  }
  .price-card { padding: 2rem 1.5rem; }
  .price-amount { font-size: 3rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav { padding: 0.875rem 1rem; }
  .nav-cta { padding: 0.55rem 1rem; font-size: 0.72rem; }
  .container { padding: 1.75rem 1rem 3rem; }
  h1.page-title { font-size: 1.75rem; }
  .tag { font-size: 0.65rem; padding: 0.35rem 0.85rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .payment-methods { padding: 1rem; }
  .payment-logos { gap: 0.35rem; }
  .faq-section { margin-top: 2.5rem; }
  .faq-item { padding: 1rem 1.25rem; }
}
