/* TypeLess product page — static, framework-free, served via GitHub Pages. */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg: #ffffff;
  --bg-soft: #f8f8fb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --ok: #059669;
  --no: #9ca3af;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117; --bg-soft: #171a23; --text: #f3f4f6; --muted: #9ca3af;
    --border: #2a2f3a; --no: #6b7280;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }

/* Language switch */
.lang-switch {
  position: fixed; top: 14px; right: 16px; z-index: 10;
  display: inline-flex; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; background: var(--bg);
}
.lang-switch button {
  border: none; background: transparent; color: var(--muted);
  padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.lang-switch button.active { background: var(--primary); color: #fff; }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 20px 40px;
  background: radial-gradient(1200px 400px at 50% -120px, rgba(79,70,229,.14), transparent);
}
.hero .logo { border-radius: 18px; }
.hero h1 { font-size: 42px; margin: 14px 0 4px; letter-spacing: -.5px; }
.hero .tagline { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.hero .sub { max-width: 620px; margin: 0 auto 24px; color: var(--muted); font-size: 16px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-weight: 600; font-size: 15px;
}
.btn:hover { text-decoration: none; border-color: var(--primary); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.badges span {
  font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}

/* Screenshot frames */
.shot {
  margin: 0 auto; max-width: 920px;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--bg-soft); box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { display: none; font-size: 12px; color: var(--muted); padding: 10px; text-align: center; }
.shot.missing img { display: none; }
.shot.missing figcaption { display: block; }
.shot.missing { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }

/* Trust band */
.band {
  max-width: 820px; margin: 44px auto; padding: 22px 24px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft);
  text-align: center;
}
.band strong { display: block; font-size: 18px; margin-bottom: 6px; }
.band span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 0 20px; }
section h2 { text-align: center; font-size: 28px; margin: 56px 0 28px; }

/* Feature grid */
.grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: var(--bg-soft); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Steps */
.steps ol {
  max-width: 760px; margin: 0 auto; list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.steps li { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--bg-soft); }
.steps li b { color: var(--primary); margin-right: 6px; }

/* Comparison */
.compare { max-width: 920px; margin: 0 auto; }
.table-wrap { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text); }
.compare thead th { font-size: 13px; color: var(--muted); }
.compare thead th:nth-child(2) { color: var(--primary); font-weight: 700; }
.compare td.y { color: var(--ok); font-weight: 700; }
.compare td.n { color: var(--no); }
.fineprint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* Privacy / policy page */
.policy { max-width: 720px; margin: 0 auto; padding: 64px 20px 0; }
.policy .back { margin-bottom: 24px; }
.policy h1 { font-size: 32px; margin: 0 0 4px; }
.policy .updated { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.policy h2 { text-align: left; font-size: 20px; margin: 34px 0 8px; }
.policy ul { padding-left: 20px; }
.policy li { margin-bottom: 6px; }
.policy b { color: var(--primary); }

/* Footer */
footer {
  margin-top: 64px; padding: 28px 20px; text-align: center;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
