:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-card: #ffffff;
  --text: #14161a;
  --text-soft: #5b6470;
  --link: #0a84ff;
  --link-hover: #006edc;
  --border: #e5e7ea;
  --accent: #0a84ff;
  --shadow: 0 1px 3px rgba(20, 22, 26, 0.06), 0 8px 24px rgba(20, 22, 26, 0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --max-w: 760px;
  --max-w-wide: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
               "Segoe UI", Roboto, "Inter", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
                  "Segoe UI", Roboto, "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --bg-soft: #16181d;
    --bg-card: #181a20;
    --text: #f3f4f6;
    --text-soft: #9aa3ad;
    --link: #4ea3ff;
    --link-hover: #82bfff;
    --border: #24272d;
    --accent: #4ea3ff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

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

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

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
a:hover {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

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

/* ---------- Layout ---------- */

main { max-width: var(--max-w); margin: 0 auto; padding: 56px 24px 96px; }
.container { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */

h1 {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 12px;
}
h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 8px;
}
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.lead { font-size: 19px; color: var(--text-soft); }

/* ---------- Legal pages ---------- */

body.legal main h1 { font-size: 38px; }
body.legal main h2 { font-size: 22px; margin: 40px 0 12px; }
body.legal header { border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 24px; }
body.legal header > p:first-child { margin: 0 0 24px; font-size: 15px; color: var(--text-soft); }
body.legal .meta { color: var(--text-soft); font-size: 14px; margin: 0; }
body.legal section { margin-bottom: 8px; }
body.legal strong { font-weight: 600; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.topbar .brand img { width: 28px; height: 28px; border-radius: 7px; }
.topbar nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.topbar nav a { color: var(--text-soft); border-bottom: none; }
.topbar nav a:hover { color: var(--text); }

.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 10px 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after {
  content: "▾";
  font-size: 10px;
  margin-left: 2px;
  opacity: 0.7;
  transition: transform 0.15s;
}
.lang-switch summary:hover { background: var(--bg-soft); color: var(--text); }
.lang-switch[open] summary { background: var(--bg-soft); color: var(--text); }
.lang-switch[open] summary::after { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  list-style: none;
  padding: 6px;
  margin: 0;
  min-width: 160px;
  z-index: 20;
}
.lang-menu li { margin: 0; }
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  border-bottom: none;
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--bg-soft); color: var(--text); border-bottom: none; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 96px 24px 72px;
  max-width: 820px;
  margin: 0 auto;
}
.hero .icon {
  width: 112px; height: 112px; border-radius: 26px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero .tagline { font-size: 22px; color: var(--text-soft); max-width: 600px; margin: 0 auto 32px; }
.hero .cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: none;
}
.btn-store:hover { color: var(--bg); border-bottom: none; opacity: 0.9; }
.btn-store .small { font-size: 11px; opacity: 0.8; font-weight: 400; line-height: 1; margin-bottom: 2px; }
.btn-store .label { line-height: 1.1; display: flex; flex-direction: column; align-items: flex-start; }
.btn-store .big { font-size: 18px; line-height: 1; }
.btn-store svg { width: 22px; height: 22px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  border-bottom: none;
}
.btn-secondary:hover { color: var(--text); border-bottom: none; background: color-mix(in srgb, var(--bg-soft) 80%, var(--text) 5%); }

.price-pill {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 24px auto 0;
  padding: 8px 16px;
  background: var(--bg-soft);
  color: var(--text-soft);
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--border);
}
.price-pill strong { color: var(--text); }

/* ---------- Sections ---------- */

section.block { padding: 64px 24px; }
section.block .container { max-width: var(--max-w-wide); }
section.block.alt { background: var(--bg-soft); }
section.block .head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
section.block .head .lead { margin: 8px auto 0; }

/* Pitch */

.pitch p { font-size: 18px; }
.pitch { max-width: 680px; margin: 0 auto; }

/* Feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature .ico {
  font-size: 28px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  border-radius: 12px;
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-soft); margin: 0; font-size: 15.5px; }

/* Screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.shot {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pricing */

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow);
}
.pricing-card .price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0;
}
.pricing-card .price-note { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }
.pricing-card ul { list-style: none; padding: 0; text-align: left; max-width: 280px; margin: 0 auto 24px; }
.pricing-card li { margin-bottom: 10px; padding-left: 26px; position: relative; }
.pricing-card li::before {
  content: "✓"; color: var(--accent); position: absolute; left: 0; font-weight: 700;
}

/* Footer */

footer.site {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  margin-top: 48px;
  color: var(--text-soft);
  font-size: 14px;
}
footer.site .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site nav a { color: var(--text-soft); border-bottom: none; }
footer.site nav a:hover { color: var(--text); }
footer.site .copy { color: var(--text-soft); }

/* Mobile */

@media (max-width: 640px) {
  .hero { padding: 56px 24px 40px; }
  .hero h1 { font-size: 44px; }
  .hero .tagline { font-size: 18px; }
  h2 { font-size: 26px; }
  section.block { padding: 48px 24px; }
  .topbar nav { gap: 12px; }
  .topbar nav a:not(.lang-switch *) { display: none; }
}
