@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Alexandria";
  src: url("fonts/Alexandria-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

/* Midnight Violet, same tokens as the app: yellow only marks the current page and keyboard focus. */
:root {
  --bg: #140f22;
  --surface: #241b3a;
  --line: rgba(185, 167, 230, 0.16);
  --text: #ffffff;
  --muted: #a99fc4;
  --accent: #c9bdf0;
  --hover: #ffffff;
  --active: #e8ff3a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(108, 85, 201, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(185, 167, 230, 0.08), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
[dir="rtl"] body, html[dir="rtl"] body {
  font-family: "Alexandria", "Inter", system-ui, sans-serif;
  line-height: 1.8;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--hover); }
a:focus-visible { outline: 2px solid var(--active); outline-offset: 3px; border-radius: 4px; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 8px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 9px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.top nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--active); }
.top nav .lang { color: var(--accent); }

main { max-width: 1100px; margin: 0 auto; padding: 0 20px 48px; }

.hero { text-align: center; padding: 48px 0 32px; }
.appicon { border-radius: 22px; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.15; margin: 20px 0 8px; letter-spacing: -0.02em; }
html[dir="rtl"] h1 { letter-spacing: 0; }
.lead { font-size: clamp(19px, 2.6vw, 24px); margin: 0 auto 8px; max-width: 34ch; }
.muted { color: var(--muted); }
/* "See Premium plans": the one call to action, violet like the app's primary buttons. */
.cta {
  display: inline-block; margin-top: 12px; padding: 12px 22px; border-radius: 12px;
  background: #6c55c9; color: var(--text); font-weight: 600; text-decoration: none;
}
.cta:hover { background: #7b65d6; color: var(--hover); }
.cta:focus-visible { outline: 3px solid var(--active); outline-offset: 3px; }

.shots { display: grid; gap: 16px; margin: 8px 0 40px; }
.shots img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.shots .tv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shots .phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 520px; margin: 0 auto; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.features article { background: rgba(36, 27, 58, 0.72); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.features h2 { font-size: 18px; margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.note { text-align: center; color: var(--muted); margin: 32px 0; }

.doc { max-width: 760px; margin: 0 auto; }
article.doc { padding-top: 24px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 6px 0; }
.steps li { margin: 12px 0; }

footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; padding: 20px; }
footer p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shots .tv { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
}
