:root {
  --accent: #3578C8;
  --accent-dark: #2a62a6;
  --tint: #C4E1F6;
  --tint-soft: #EAF4FC;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --fg: #1a2230;
  --muted: #5a6577;
  --line: #e3e8ef;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(26, 34, 48, .10);
  --phone: #111827;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tint: #1d3b5c;
    --tint-soft: #16283b;
    --bg: #0f1520;
    --bg-alt: #141c29;
    --fg: #e8edf4;
    --muted: #9aa7ba;
    --line: #26303f;
    --card: #182233;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --phone: #2b3444;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1100px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
nav { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--fg); }
.brand img { width: 34px; height: 34px; }
nav a { color: var(--muted); margin-left: 1.3rem; font-size: .95rem; font-weight: 500; }
nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) { nav a { margin-left: .9rem; font-size: .9rem; } nav .hide-sm { display: none; } }
@media (max-width: 360px) { .brand span { display: none; } }

/* hero */
.hero { background: linear-gradient(180deg, var(--tint-soft) 0%, var(--bg) 100%); padding: 4rem 0 3rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero .icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 1.4rem; }
.hero .tag { font-size: 1.25rem; color: var(--muted); max-width: 32rem; }
.hero .lead { font-size: 1.1rem; max-width: 34rem; }
.cta { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.6rem; flex-wrap: wrap; }
.badge img { width: 200px; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; font-size: .95rem; color: var(--muted); }
.proof strong { color: var(--fg); font-weight: 700; }
@media (max-width: 800px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .icon, .hero .tag, .hero .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
}

/* phone frame */
.phone {
  width: 270px; aspect-ratio: 9 / 19.2; margin: 0 auto;
  background: var(--phone); border-radius: 34px; padding: 11px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.08);
  position: relative;
}
.phone img, .phone .blank { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; background: #fff; }
.phone .blank { display: flex; align-items: center; justify-content: center; color: #9aa7ba; font-size: .9rem; }
.hero .phone { width: 300px; transform: rotate(-3deg); }
@media (max-width: 800px) { .hero .phone { width: 240px; transform: none; margin-top: 1.5rem; } }

/* sections */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature .emoji { font-size: 1.9rem; line-height: 1; margin-bottom: .9rem; display: block; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 1.5rem; }
.shot { text-align: center; }
.shot .phone { width: 100%; max-width: 250px; }
.shot h3 { margin-top: 1rem; font-size: 1rem; }
.shot p { color: var(--muted); font-size: .92rem; margin: 0; }

.free { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  background: var(--tint-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.4rem; }
.free h2 { margin-bottom: .3em; }
.free p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .free { grid-template-columns: 1fr; text-align: center; } .free .badge { margin: 0 auto; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 2.2rem 0 3rem; font-size: .92rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--muted); margin-right: 1.2rem; }
footer a:hover { color: var(--accent); }

/* text pages */
.page { padding: 3rem 0 4rem; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3em; }
.page h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.page h3 { margin-top: 1.8rem; }
.page table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: .95rem; }
.page th, .page td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { color: var(--muted); font-weight: 600; }
.page ul, .page ol { padding-left: 1.3rem; }
.page li { margin-bottom: .35rem; }
.page .lede { font-size: 1.15rem; color: var(--muted); }
.page dl dt { font-weight: 700; margin-top: 1.6rem; }
.page dl dd { margin: .3rem 0 0; color: var(--fg); }
.note { background: var(--tint-soft); border-left: 4px solid var(--accent); padding: .9rem 1.1rem; border-radius: 8px; margin: 1.5rem 0; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: .7rem 1.3rem; border-radius: 10px; font-weight: 600; }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.table-wrap { overflow-x: auto; }

/* language picker */
footer .langs { margin-top: 1.4rem; font-size: .85rem; line-height: 2; }
footer .langs span { margin-right: .6rem; }
footer .langs a { margin-right: .9rem; white-space: nowrap; }
footer .langs a.on { color: var(--accent); font-weight: 600; }
[dir="rtl"] nav a { margin-left: 0; margin-right: 1.3rem; }
[dir="rtl"] footer a { margin-right: 0; margin-left: 1.2rem; }
