/* Tokens mirror constants/theme.ts so the site and the app read as one product. */
:root {
  --bg: #FFFFFF;
  --surface-alt: #F7F7F7;
  --border: #E0E0E0;
  --text: #000000;
  --text-secondary: #888888;
  --text-muted: #BBBBBB;

  --xs: 4px; --sm: 8px; --md: 12px; --lg: 16px; --xl: 24px; --xxl: 32px; --xxxl: 52px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --measure: 1120px;
  --gutter: 24px;
}
html[lang="ar"] { --font: 'IBM Plex Sans Arabic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }

/* Type — scaled-up versions of the app's display / hero / label styles. */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
html[lang="ar"] .label { font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: 13px; }
.display {
  font-weight: 300;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
html[lang="ar"] .display { letter-spacing: 0; line-height: 1.3; font-weight: 300; }
.h2 {
  font-weight: 300;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.4; }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--text-secondary); max-width: 34ch; }
.muted { color: var(--text-secondary); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--xl); font-size: 14px; }
.nav a:not(.btn) { color: var(--text-secondary); transition: color .15s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline; } }

/* Buttons — zero radius, like radius.button in the app. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sm);
  height: 52px; padding-inline: var(--xxl);
  background: var(--text); color: var(--bg);
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid var(--text);
  transition: opacity .15s;
}
.btn:hover { opacity: .82; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { height: 38px; padding-inline: var(--lg); font-size: 13px; }
.btn-ghost { background: transparent; color: var(--text); }

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 112px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; gap: var(--xxxl); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.hero .label { margin-bottom: var(--xl); }
.hero .lead { margin-top: var(--xl); }
.hero .actions { margin-top: var(--xxl); display: flex; flex-wrap: wrap; gap: var(--md); align-items: center; }
.hero .note { font-size: 13px; color: var(--text-secondary); }
.hero-media { background: var(--bg); }
.hero-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
/* Product shots sit on off-white; multiply drops that into the page white. */
.hero-media img, .plan-media img { mix-blend-mode: multiply; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: var(--lg); margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .muted { max-width: 44ch; }
.section.alt { background: var(--surface-alt); }

/* Steps */
.steps { list-style: none; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li { min-height: 200px; } }
.steps li { background: var(--bg); padding: var(--xxl) var(--xl); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--xxl); }
.steps .num { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.steps h3 { font-weight: 300; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
html[lang="ar"] .steps h3 { letter-spacing: 0; line-height: 1.5; }
.steps p { margin-top: var(--sm); color: var(--text-secondary); font-size: 14px; }

/* Plans */
.plans { display: grid; gap: var(--lg); }
@media (min-width: 800px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { border: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--text); }
.plan-media { aspect-ratio: 1; background: var(--bg); border-bottom: 1px solid var(--border); overflow: hidden; }
.plan-media img { width: 100%; height: 100%; object-fit: contain; }
.plan-body { padding: var(--xl); display: flex; flex-direction: column; gap: var(--lg); flex: 1; }
.plan-name { display: flex; justify-content: space-between; align-items: baseline; gap: var(--md); }
.plan-name h3 { font-weight: 500; font-size: 16px; }
.plan-price { font-weight: 300; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
html[lang="ar"] .plan-price { letter-spacing: 0; }
.plan-price small { font-size: 14px; color: var(--text-secondary); letter-spacing: 0; margin-inline-start: var(--xs); }
.plan-desc { font-size: 14px; color: var(--text-secondary); }
.plan ul { list-style: none; border-top: 1px solid var(--border); margin-top: auto; }
.plan li { font-size: 14px; padding-block: var(--md); border-bottom: 1px solid var(--border); }
.plan li:last-child { border-bottom: 0; padding-bottom: 0; }
.plans-note { margin-top: var(--xl); font-size: 13px; color: var(--text-secondary); }

/* Handled — short facts list */
.facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(2, 1fr); column-gap: var(--xxxl); } }
.facts li { display: flex; justify-content: space-between; gap: var(--xl); padding-block: var(--xl); border-bottom: 1px solid var(--border); }
.facts strong { font-weight: 400; font-size: 17px; }
.facts span { color: var(--text-secondary); font-size: 14px; text-align: end; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--xl);
  padding-block: var(--xl); font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 18px; color: var(--text-secondary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--xl); color: var(--text-secondary); max-width: 62ch; }

/* Closing CTA */
.cta { text-align: center; }
.cta .display { font-size: clamp(36px, 6vw, 64px); }
.cta .actions { margin-top: var(--xxl); display: flex; justify-content: center; flex-wrap: wrap; gap: var(--md); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: var(--xxxl) var(--xxl); font-size: 14px; }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--xxl); }
.site-footer .brand img { height: 20px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: var(--xxxl); }
.site-footer .cols div { display: grid; gap: var(--sm); align-content: start; }
.site-footer .cols a { color: var(--text-secondary); }
.site-footer .cols a:hover { color: var(--text); }
.site-footer .bottom { margin-top: var(--xxxl); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--md); color: var(--text-muted); font-size: 12px; }

/* Legal pages */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .wrap { max-width: 760px; }
.legal h1 { margin-bottom: var(--md); }
.legal .updated { margin-bottom: var(--xxxl); }
.legal h2 { font-weight: 500; font-size: 17px; margin-top: var(--xxl); margin-bottom: var(--md); }
.legal p, .legal li { color: #333; margin-bottom: var(--md); }
.legal ul { padding-inline-start: var(--xl); }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.site-footer .bottom.flush { margin-top: 0; }
.notfound-logo { height: 22px; width: auto; margin: 0 auto var(--xxxl); }
.notfound-en { margin-top: var(--lg); }
