/* Screen Translator — public site. No build step, no framework.
   Palette matches the extension's own popup (popup.css): white cards on a
   soft gray-blue page, one accent blue, the same radius/shadow scale — so the
   site reads as the same product, not a separate marketing theme. */

:root {
  --bg:            #f4f6fb;
  --card:          #ffffff;
  --card-tint:     #f8fafd;

  --border:        #e6eaf2;
  --border-strong: #d8dee9;

  --text:          #1f2937;
  --text-soft:     #4b5563;
  --muted:         #6b7280;
  --faint:         #9aa3b2;

  --accent:        #4A90D9;
  --accent-dark:   #3a7bc8;
  --accent-soft:   #eaf2fc;
  --gold:          #d99118;
  --gold-soft:     #fff7e8;
  --ink:           #111827;

  --ok:            #1f9d6b;
  --ok-soft:       #e8f8f1;
  --bad:           #dc4747;
  --bad-soft:      #fdecec;

  --radius:        14px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --radius-sm:     8px;

  --shadow-sm:     0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow:        0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-lg:     0 20px 48px rgba(16, 24, 40, 0.10);
  --shadow-btn:    0 1px 2px rgba(58, 123, 200, 0.30), 0 6px 16px rgba(74, 144, 217, 0.20);

  --maxw: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: 0; }

img { display: block; max-width: 100%; }

/* A max-width + auto-margin wrapper for content living inside a full-bleed
   section (e.g. .section-alt). Kept as its own element rather than styled via
   a ">*" selector on arbitrary children: a child rule that resets margin (as
   a grid/list reset legitimately might) would silently cancel the centering
   again, which is exactly the bug this replaces. */
.section-inner { max-width: var(--maxw); margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--border-strong); background: var(--card-tint); }

.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(244, 246, 251, 0.86);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
  color: var(--text);
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}

.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 44px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 24px 76px;
}

.hero > * { min-width: 0; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero h1 { max-width: 13ch; font-size: clamp(36px, 5vw, 54px); color: var(--ink); }

.grad { color: var(--accent-dark); }

.lede {
  max-width: 46ch;
  margin: 20px 0 30px;
  color: var(--text-soft);
  font-size: 17px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.hero-art {
  display: block;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-art:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(16, 24, 40, 0.14); }
.hero-art img { width: 100%; min-width: 0; height: auto; }

/* ── Sections ────────────────────────────────────────────────────────── */

.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section-alt { background: var(--card); max-width: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt .section-inner { padding: 72px 24px; }

.section-title {
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--text);
}

.section-heading { max-width: 680px; margin-bottom: 34px; }
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.section-intro { margin: 12px 0 0; color: var(--text-soft); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.card:nth-child(3n + 2) { border-top-color: rgba(217, 145, 24, 0.55); }
.card:nth-child(3n + 3) { border-top-color: rgba(31, 157, 107, 0.45); }

.card-icon {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}
.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.card p { margin: 0; color: var(--text-soft); font-size: 15px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--accent);
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.steps h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.steps p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ── Demo ────────────────────────────────────────────────────────────── */

.demo-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.demo-shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-shot a {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #edf2f8;
}

.demo-shot img {
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}

.demo-shot a:hover img { transform: scale(1.012); }

.demo-shot figcaption {
  display: grid;
  gap: 3px;
  padding: 17px 18px 18px;
}

.demo-shot figcaption strong { color: var(--ink); font-size: 15px; }
.demo-shot figcaption span { color: var(--muted); font-size: 13px; }

.demo-video {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 34px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow);
}

.video-copy h3 { color: var(--ink); font-size: 22px; }
.video-copy p:not(.section-kicker) { margin: 10px 0 18px; color: var(--text-soft); font-size: 14px; }

.text-link {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #111827;
  overflow: hidden;
}

.video-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.video-poster:hover img {
  transform: scale(1.015);
  filter: brightness(0.88);
}

.video-play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #ff0033;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.3);
  transition: transform 0.18s ease, background 0.18s ease;
}

.video-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #ffffff;
}

.video-poster:hover .video-play {
  transform: scale(1.06);
  background: #e6002e;
}

.faq { display: grid; gap: 10px; }

.faq details {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq summary::marker { color: var(--accent); }
.faq p { margin: 12px 0 0; color: var(--text-soft); font-size: 15px; }
.faq code { background: var(--accent-soft); color: var(--accent-dark); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.cta h2 { font-size: clamp(24px, 3.4vw, 32px); color: var(--text); }
.cta p { color: var(--text-soft); margin: 14px 0 26px; }

.footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 30px 24px 46px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-sep { opacity: 0.6; }

/* ── Claim section ───────────────────────────────────────────────────── */

.claim-section[hidden] { display: none; }

.claim-section {
  scroll-margin-top: 70px;
  padding: 46px 24px;
  border-top: 1px solid #dce7fb;
  border-bottom: 1px solid #dce7fb;
  background: #edf4ff;
  outline: none;
}

.claim-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: 64px;
  max-width: 940px;
  margin: 0 auto;
}

.claim-context img {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.claim-context h1 {
  max-width: 13ch;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
}

.claim-context > p:last-child {
  max-width: 43ch;
  margin: 16px 0 0;
  color: var(--text-soft);
}

.claim-card {
  width: 100%;
  padding: 34px 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.claim-state { display: grid; gap: 14px; justify-items: center; }
.claim-state[hidden] { display: none; }

.claim-account[hidden] { display: none; }

.claim-account {
  margin: 0 0 22px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-tint);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claim-account strong {
  color: var(--text);
  font-weight: 600;
}

.claim-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid rgba(74, 144, 217, 0.35);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-dark);
}

.claim-badge-ok {
  background: var(--ok-soft);
  border-color: rgba(31, 157, 107, 0.35);
  color: var(--ok);
}

.claim-badge-bad {
  background: var(--bad-soft);
  border-color: rgba(220, 71, 71, 0.35);
  color: var(--bad);
}

.claim-title { font-size: 23px; color: var(--text); }
.claim-desc { margin: 0; color: var(--text-soft); font-size: 15px; }

.claim-reward {
  margin: 2px 0 6px;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-dark);
}

.claim-reward:empty { display: none; }

.claim-fineprint { margin: 0; color: var(--muted); font-size: 13px; }
.claim-muted { color: var(--muted); margin: 0; }

.claim-home {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.claim-home:hover { color: var(--text); }

/* Explicit display rules need matching [hidden] rules for reward details. */
.code-box[hidden],
.balance-box[hidden] { display: none; }

.code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 12px 12px 16px;
  border: 1px dashed rgba(74, 144, 217, 0.45);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.code-box code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  word-break: break-all;
}

.btn-copy { padding: 7px 14px; font-size: 14px; }

.balance-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-tint);
}

.balance-label { color: var(--muted); font-size: 14px; }
.balance-value { font-size: 26px; font-weight: 700; color: var(--text); }

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ── Narrow screens ──────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 56px; }
  .hero h1 { max-width: 15ch; }
  .nav-links { display: none; }
  .section { padding: 52px 20px; }
  .section-alt .section-inner { padding: 52px 20px; }
  .demo-video { grid-template-columns: 1fr; }
  .claim-shell { grid-template-columns: 1fr; gap: 28px; max-width: 540px; }
  .claim-context { text-align: center; }
  .claim-context img { margin-inline: auto; }
  .claim-context h1, .claim-context > p:last-child { margin-inline: auto; }
}

@media (max-width: 620px) {
  .nav { padding: 12px 16px; gap: 12px; }
  .brand-name { font-size: 14px; }
  .nav .btn-sm { padding: 7px 11px; font-size: 12px; }
  .hero { gap: 30px; padding-inline: 18px; }
  .hero h1 { font-size: 36px; }
  .hero-actions .btn { width: 100%; }
  .demo-shots { grid-template-columns: 1fr; }
  .demo-video { padding: 18px; }
  .footer { flex-wrap: wrap; }
  .claim-section { padding: 32px 16px; scroll-margin-top: 58px; }
  .claim-card { padding: 28px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .spinner { animation-duration: 2s; }
}
