:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1c1c1e;
  --line: #2c2c2e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --blue: #1a8cff;
  --blue-light: #5ac8fa;
  --gradient: linear-gradient(120deg, #0a4fd6 0%, #0d7ff0 55%, #15b2f2 100%);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-light); }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.45rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero { background: var(--gradient); padding: 64px 0 0; text-align: center; overflow: hidden; }
.hero-inner { max-width: 760px; }
.hero-icon { border-radius: 22px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); margin-bottom: 20px; }
.hero h1 { color: #fff; }
.lead { font-size: 1.2rem; color: rgba(255, 255, 255, 0.88); margin: 0 0 28px; }
.prose .lead { color: var(--muted); }
.hero-note { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; margin: 10px 0 40px; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 54px; width: auto; }
.header-shot { display: block; width: 1000px; margin: 0 auto -1px; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.3); }

/* Features */
#features { padding: 40px 20px 24px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px;
  padding: 56px 0; border-bottom: 1px solid var(--line);
}
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.feature-shot { text-align: center; }
.shot {
  width: 300px; border-radius: 36px;
  border: 6px solid #2a2a2c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.feature.wide { grid-template-columns: 1fr; gap: 32px; text-align: center; }
.feature.wide .feature-text { max-width: 640px; margin: 0 auto; }
.shot.wide { width: 860px; border-radius: 30px; }
.languages { text-align: center; color: var(--muted); padding: 40px 0 0; margin: 0; }

/* Pricing */
.pricing { padding: 72px 0 88px; text-align: center; }
.pricing-sub { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.tiers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 40px auto 28px; text-align: left;
}
.tier {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px 22px;
}
.tier h3 { font-size: 1.25rem; margin: 0 0 14px; }
.tier-free { grid-row: span 2; }
.tier-best {
  border: 2px solid var(--blue);
  background: linear-gradient(180deg, rgba(26, 140, 255, 0.18), var(--surface) 70%);
}
.tag {
  position: absolute; top: -13px; left: 22px;
  background: var(--gradient); color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.eyebrow { margin: 0 0 4px; color: var(--blue-light); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.price { margin: 0; line-height: 1.1; }
.amount { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; }
.per { color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.tier-sub { color: var(--muted); margin: 8px 0 0; font-size: 0.95rem; }
.tier-includes {
  grid-column: 2 / 5; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px;
}
.tier-includes h3 { font-size: 1.05rem; margin: 0; }
.tier-includes .checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { padding: 5px 0 5px 28px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 13px; height: 7px;
  border-left: 2.5px solid var(--blue-light); border-bottom: 2.5px solid var(--blue-light);
  transform: rotate(-45deg);
}
.pricing .small { max-width: 680px; margin: 0 auto; }
.cta { margin-top: 36px; }

@media (max-width: 1000px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .tier-free { grid-row: auto; grid-column: 1 / -1; }
  .tier-includes { grid-column: 1 / -1; }
}

/* Text pages */
.prose { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: #d6d6db; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.button {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; padding: 12px 24px; border-radius: 999px;
}
.button:hover { background: #3a9dff; color: #fff; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }
.plain { list-style: none; padding: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.9rem; }
.foot-inner { display: grid; gap: 14px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover, .foot a[aria-current] { color: var(--text); }
.foot-links, .langs { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot p { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .feature { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; gap: 22px; }
  .tier-yearly { order: -1; }
  .tier-free { order: 5; }
  .feature { gap: 28px; padding: 44px 0; text-align: center; }
  .feature.flip .feature-text { order: 0; }
  .shot { width: 250px; border-radius: 30px; }
  .shot.wide { border-radius: 18px; border-width: 4px; }
  .header-shot { border-radius: 10px 10px 0 0; }
  .top nav { gap: 16px; }
}

@media (max-width: 420px) {
  .hide-narrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Only the currency for the visitor is shown, see pricing() in build.py */
[data-currency="usd"] .eur,
[data-currency="eur"] .usd { display: none; }
