/* Smart Translate & Rewrite site. Mirrors the extension's tvOS-style dark shell (src/style.css). */
:root {
  --bg: #08080a;
  --bg-raised: #111114;
  --surface: #1c1c1f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --btn-bg: #ffffff;
  --btn-text: #111114;
  --btn2-bg: rgba(255, 255, 255, 0.1);
  --btn2-hover: rgba(255, 255, 255, 0.16);
  --hero-top: #191a20;
  --hero-bottom: #050506;
  --shot-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --space-section: 112px;
  --wrap: 1120px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-raised: #f5f5f7;
    --surface: #ffffff;
    --line: rgba(0, 0, 0, 0.1);
    --text: #1d1d1f;
    --text-2: #56565b;
    --btn-bg: #1d1d1f;
    --btn-text: #ffffff;
    --btn2-bg: rgba(0, 0, 0, 0.06);
    --btn2-hover: rgba(0, 0, 0, 0.1);
    --hero-top: #f5f5f7;
    --hero-bottom: #ffffff;
    --shot-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--btn2-bg);
  border-radius: 6px;
  padding: 2px 6px;
}

:focus-visible { outline: 3px solid #0a84ff; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
.muted { color: var(--text-2); }
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--btn-bg); color: var(--btn-text); padding: 8px 12px; border-radius: var(--radius-sm);
}
.skip:focus { left: 8px; z-index: 10; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  background: var(--btn2-bg); color: var(--text);
  transition: background-color 160ms ease, opacity 160ms ease;
}
.btn:hover { background: var(--btn2-hover); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg); opacity: 0.88; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--bg-raised); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.section-title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; margin-bottom: 16px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 640px; }

/* Hero */
.hero {
  padding: 96px 0 var(--space-section);
  background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom));
  text-align: center;
}
.hero h1 { font-size: clamp(38px, 7vw, 76px); font-weight: 700; letter-spacing: -0.035em; max-width: 900px; margin: 0 auto 20px; }
.hero .lead { margin: 0 auto 32px; }
.hero .actions { justify-content: center; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--text-2); }
.hero-shot { margin-top: 64px; }

.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shot-shadow);
  background: #0b0b0d;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 24px; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-text);
  font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--text-2); margin: 0; }

/* Feature rows */
.tones { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tones li { padding: 8px 16px; border-radius: 999px; background: var(--btn2-bg); font-size: 15px; font-weight: 500; }
.tones li.on { background: var(--btn-bg); color: var(--btn-text); }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-top: var(--space-section); }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 16px; }
.feature p { color: var(--text-2); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { margin-top: 3px; width: 18px; height: 18px; color: var(--text); }
.also { margin-top: var(--space-section); padding-top: 32px; border-top: 1px solid var(--line); color: var(--text-2); max-width: 760px; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.privacy-item { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.privacy-item .icon { width: 24px; height: 24px; margin-bottom: 16px; }
.privacy-item h3 { font-size: 19px; margin-bottom: 8px; }
.privacy-item p { color: var(--text-2); margin: 0; }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Providers */
.providers { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-top: 64px; }
.provider-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.provider-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.provider-list span { color: var(--text-2); font-size: 15px; text-align: right; }
.langs { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.langs h3 { font-size: 20px; margin-bottom: 12px; }
.langs p { color: var(--text-2); }

/* Final CTA */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 32px; }
.cta .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 15px; color: var(--text-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Docs pages (setup guide, privacy policy) */
.doc-head { padding: 80px 0 48px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; margin-bottom: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--btn2-bg); text-decoration: none; font-size: 14px; font-weight: 500; }
.toc a:hover { background: var(--btn2-hover); }
.doc { padding-bottom: 96px; }
.doc section { padding-top: 72px; scroll-margin-top: 72px; }
.doc h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin-bottom: 16px; }
.doc h3 { font-size: 19px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ol, .doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc .shot { margin: 32px 0 8px; }
.note { padding: 18px 20px; border-radius: var(--radius-md); background: var(--bg-raised); border: 1px solid var(--line); margin: 24px 0; }
.note p:last-child { margin: 0; }
.key-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.key-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid var(--line);
  background: var(--surface); text-decoration: none;
}
.key-card:hover { border-color: var(--text-2); }
.key-card strong { display: block; }
.key-card span { font-size: 14px; color: var(--text-2); }

/* Markdown content (privacy policy via Jekyll layout) */
.prose h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; margin: 0 0 16px; }
.prose h2 { font-size: 26px; margin: 56px 0 16px; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .table-wrap, .prose table { display: block; overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); background: var(--bg-raised); }
.prose td { color: var(--text-2); }

@media (max-width: 900px) {
  :root { --space-section: 80px; }
  .feature, .providers { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .hero { padding-top: 64px; }
  .hero-shot { margin-top: 40px; }
  .shot { border-radius: var(--radius-md); }
  .privacy-grid, .key-grid { grid-template-columns: 1fr; }
  .privacy-grid { margin-top: 40px; }
  .doc-head { padding: 56px 0 32px; }
}

@media (max-width: 400px) {
  /* Hero repeats the CTA right below, so the header keeps only the brand. */
  .site-header .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
