/* Design tokens — canonical source is extension/popup/popup.css's :root
   (same names/values). No shared build between landing/popup/options, so
   this block is kept in sync by hand across all 3 CSS files, not
   imported. Only cross-surface-shared colors are tokenized here; landing's
   own additional decorative colors (#94a3b8, #334155, #eff6ff, #dbeafe,
   #f1f5f9, etc.) are out of this phase's scope — they don't have a
   cross-file inconsistency to fix. */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

header {
  text-align: center;
  margin-bottom: 48px;
}

.language-picker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0 0 24px auto;
  width: fit-content;
}

.language-select-wrap {
  position: relative;
}

.language-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
}

.language-select {
  display: block;
  padding: 7px 28px 7px 32px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat right 8px center;
  background-size: 14px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.language-select:hover,
.language-select:focus {
  border-color: var(--brand);
  outline: none;
}

.request-language-hint {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 6px 0 0;
}

.request-language-hint a {
  color: #94a3b8;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.subtitle {
  color: var(--muted);
  font-size: 16px;
  margin: 10px 0 0;
}

.language-badge {
  display: inline-block;
  color: var(--brand-dark);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  margin: 16px 0 0;
}

.activation-note {
  text-align: center;
  color: var(--brand-dark);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  font-size: 13.5px;
  padding: 12px 18px;
  margin: 0 auto 32px;
  max-width: 560px;
}

.home {
  max-width: 1040px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

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

.hero-copy {
  text-align: left;
}

.hero-headline {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0 0 16px;
}

.hero-sub {
  color: #475569;
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.hero-copy .hero-actions {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.hero-copy .price-disclaimer {
  text-align: left;
  margin-top: 0;
}

.demo-pair {
  display: flex;
  gap: 12px;
}

.demo-shot {
  flex: 1;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.demo-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.demo-shot figcaption {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 32px;
}

.how-it-works {
  margin-bottom: 16px;
}

.platforms-section {
  margin-bottom: 72px;
}

.platforms-grid {
  /* flex-wrap, not grid — explicit grid column tracks reserve full-width
     empty space in a partial last row no matter the repeat()/minmax()
     keyword used (confirmed: 7 cards, prime, never divides evenly into
     any column count that also looks right on mobile). Flex items only
     claim the width they're given, so a partial last row centers instead
     of stretching into a now-empty reserved column. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.platform-card {
  flex: 1 1 200px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.platform-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.platform-icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

@media (max-width: 760px) {
  .platform-card {
    flex-basis: 140px;
    max-width: 180px;
  }
}

.why-section {
  margin-bottom: 72px;
}

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

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

.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: left;
}

.why-icon {
  width: 40px;
  height: 40px;
  display: block;
  margin-bottom: 14px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.why-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.final-cta {
  background: var(--brand-dark);
  border-radius: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
}

.final-cta p {
  color: #dbeafe;
  font-size: 15px;
  margin: 0 0 24px;
}

.final-cta .cta-btn {
  width: auto;
  display: inline-block;
  background: #fff;
  color: var(--brand-dark);
  padding: 14px 28px;
  text-decoration: none;
}

.final-cta .cta-btn:hover {
  background: #eff6ff;
}

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

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

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: left;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: #eff6ff;
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
}

.step-shot {
  width: 100%;
  height: auto;
  max-width: 220px;
  margin: 4px auto 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-actions .btn {
  width: auto;
  padding: 14px 24px;
  text-decoration: none;
  display: inline-block;
}

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

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

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}

.feature-card h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

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

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.plan-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.plan-card.popular {
  border: 2px solid var(--brand);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.16);
}

.plan-card.popular:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.2);
}

.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.plan-card.popular h2 {
  color: var(--brand);
}

.price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0 6px;
}

.price span {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
}

.quota {
  font-weight: 600;
  font-size: 14.5px;
  color: #334155;
  margin: 0 0 28px;
  flex-grow: 1;
}

.btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover:not(:disabled) {
  background: var(--brand-dark);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: default;
}

.btn.secondary {
  background: #f1f5f9;
  color: var(--ink);
}

.btn.secondary:hover:not(:disabled) {
  background: var(--border);
}

.price-disclaimer {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 16px;
}

.support-hint {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  margin-top: 40px;
}

.support-hint a {
  color: var(--muted);
}

.success-box {
  max-width: 480px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.license-key-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 20px;
}

.license-key-row code {
  flex: 1;
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.license-key-row button {
  width: auto;
  flex-shrink: 0;
}

.email-backup-note {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0 0 16px;
}

.instructions {
  text-align: left;
  font-size: 14px;
  color: #334155;
  padding-left: 20px;
}

.instructions li {
  margin-bottom: 6px;
}

.legal-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: #94a3b8;
}

.legal-footer a {
  color: var(--muted);
}

.legal-footer span {
  margin: 0 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1040px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .site-footer {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  justify-content: flex-start;
  margin-bottom: 8px;
}

.footer-brand span {
  font-weight: 700;
  font-size: 15px;
}

.footer-tagline {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.footer-col h3 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  color: #334155;
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 10px;
}

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

.legal {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 28px;
}

.faq-item h2 {
  font-size: 17px;
  margin: 0 0 8px;
}

.faq-item p {
  color: #334155;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.faq-contact {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
