:root {
  --brand: #2F6FED;
  --brand-deep: #163B7A;
  --accent: #FFA726;
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --text: #121826;
  --muted: #5B6476;
  --border: #E2E7F0;
  --shadow: 0 1px 2px rgba(18, 24, 38, .04), 0 8px 24px rgba(18, 24, 38, .06);
  --radius: 16px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1420;
    --surface: #161E2E;
    --text: #E8ECF4;
    --muted: #9AA5B8;
    --border: #253049;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-weight: 600; }

@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
}
/* Phones: just the logo and the language switch; every link is also in the footer. */
@media (max-width: 480px) {
  .nav a:not(.lang):not([aria-current]) { display: none; }
  .site-footer nav { margin-left: 0; }
}
img, svg, table { max-width: 100%; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: color-mix(in srgb, var(--accent) 60%, var(--text));
  font-size: .85rem; font-weight: 600;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  margin: 20px auto 16px; max-width: 760px;
  font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; letter-spacing: -.02em;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .hero h1 span { background: linear-gradient(120deg, #6E9BFF, var(--brand)); -webkit-background-clip: text; background-clip: text; }
}
.hero p { margin: 0 auto; max-width: 640px; color: var(--muted); font-size: 1.15rem; }
.cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); }
.cta { align-items: center; }
.store-badge { display: block; line-height: 0; }
.store-badge img { display: block; height: 48px; width: auto; }

/* Sections */
section { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
.section-title p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
}
.icon svg { width: 24px; height: 24px; }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 1040px; margin: 0 auto; }
.plan h3 { margin: 0 0 4px; font-size: 1.2rem; }
.plan .sub { color: var(--muted); margin: 0 0 16px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }

/* Document pages (privacy, deletion) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 0 32px; }
.doc h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.callout {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--muted); }
.site-footer .legal { margin: 0; flex-basis: 100%; font-size: .8rem; }
