/* The home and pricing pages' styles. A file rather than inline, so both pages share it. */
:root {
  --bg: #f7f7fb; --surface: #ffffff; --surface-2: #f0f0f6; --text: #14151a; --muted: #5d6170; --line: #e3e4ec;
  --accent: #5b5bf0; --accent-2: #13b5b1; --accent-text: #ffffff; --pill: #111217; --pill-text: #ffffff;
  --shadow: 0 1px 2px rgba(20, 21, 26, .05), 0 12px 32px -12px rgba(20, 21, 26, .18);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10; --surface: #14161c; --surface-2: #1b1e26; --text: #eceef3; --muted: #9ba1b0; --line: #262a34;
    --accent: #7b7bff; --accent-2: #2fd1cc; --pill: #000000; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.7; }
a { color: inherit; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.kbd { direction: ltr; unicode-bidi: isolate; display: inline-block; min-width: 1.9em; padding: .1em .5em; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 8px; background: var(--surface); font: 600 .85em/1.5 -apple-system, BlinkMacSystemFont, sans-serif; text-align: center; white-space: nowrap; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.lang { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.nav .btn { padding: 8px 16px; font-size: 15px; }
@media (max-width: 720px) { .nav-links { display: none; } .lang { margin-inline-start: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 16px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: 0 8px 22px -10px var(--accent); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 14px; font-weight: 600; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.05; letter-spacing: -.035em; margin: 20px auto 18px; max-width: 14ch; }
html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.25; max-width: 16ch; }
h1 .grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.3vw, 21px); color: var(--muted); max-width: 40ch; margin: 0 auto 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.platforms { margin-top: 12px; }
.platforms .btn { padding: 9px 16px; font-size: 15px; }
.platforms .chip { margin-inline-start: 2px; vertical-align: 0; }

/* Demo */
.demo { margin: 52px auto 0; max-width: 720px; }
.window { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; text-align: start; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-inline-start: 10px; font-size: 13px; color: var(--muted); }
.window-body { padding: 22px 22px 26px; min-height: 150px; }
.msg-to { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.field { font-size: 19px; min-height: 2.4em; line-height: 1.6; }
.field .caret { display: inline-block; width: 2px; height: 1.15em; vertical-align: -.2em; background: var(--accent); margin-inline-start: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hud { display: flex; justify-content: center; margin-top: -22px; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 44px; border-radius: 22px; background: var(--pill); color: var(--pill-text); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45); font: 500 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; transition: opacity .25s ease, transform .25s ease; }
.pill.hidden { opacity: 0; transform: translateY(6px) scale(.96); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff453a; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.bars { display: flex; align-items: center; gap: 2.5px; height: 20px; direction: ltr; }
.bars b { width: 3px; height: 4px; border-radius: 2px; background: currentColor; }
.pill.listening .bars b { animation: bar .9s ease-in-out infinite; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: var(--h, 16px); } }
.pill .tag { font-size: 12px; font-weight: 700; opacity: .65; }
.pill .spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pill .check { color: #32d74b; font-size: 15px; }
.demo-keys { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
h2 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 12px; }
html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.35; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.step h3, .feature h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }
html[lang="ar"] .step h3, html[lang="ar"] .feature h3 { letter-spacing: 0; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 18%, transparent)); color: var(--accent); }
.icon svg { width: 22px; height: 22px; }
.feature .sample { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 15px; color: var(--text); }
.sample:empty { display: none; }
.chip { display: inline-block; margin-inline-start: 8px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 0; vertical-align: 2px; }
.chip.new { background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.chip.soon { background: var(--surface-2); color: var(--muted); }
.sample.pair { text-align: center; }
.sample.pair span { display: block; }
.sample .arrow { color: var(--muted); font-size: 13px; margin: 2px 0; }

/* Plans */
.beta-note { display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; max-width: 640px; margin: 0 auto 28px; padding: 14px 18px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: 15px; }
.checkout-note { max-width: 640px; margin: 0 auto 28px; padding: 14px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); text-align: center; font-size: 15px; }
.checkout-note.done { border-color: color-mix(in srgb, var(--accent-2) 60%, transparent); background: color-mix(in srgb, var(--accent-2) 13%, transparent); }
.checkout-note.problem { border-style: dashed; color: var(--muted); }
.checkout-note[hidden], .beta-note[hidden] { display: none; }
.checkout-note .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; unicode-bidi: isolate; }
.billing { display: flex; justify-content: center; margin-bottom: 28px; }
.billing[hidden] { display: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { font: 600 14px/1 inherit; font-family: inherit; padding: 9px 16px; border-radius: 99px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg small { color: var(--accent-2); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: stretch; min-height: 420px; }
.plans-error { text-align: center; color: var(--muted); }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 26px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; inset-inline-start: 24px; padding: 4px 12px; border-radius: 99px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .for { margin: 4px 0 18px; color: var(--muted); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; direction: ltr; }
html[lang="ar"] .price { justify-content: flex-end; }
.price b { font-size: 44px; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 15px; }
.price-note { min-height: 1.5em; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: color-mix(in srgb, var(--accent-2) 20%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2313b5b1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan li.later { color: var(--muted); }
.plan li.later::before { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='2.5' fill='%239ba1b0'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan .btn { margin-top: auto; width: 100%; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }

/* Final CTA + footer */
.final { text-align: center; }
.final .card { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, var(--accent-2) 14%, var(--surface))); border: 1px solid var(--line); border-radius: 28px; padding: 56px 24px; }
.final h2 { margin-bottom: 10px; }
.final p { color: var(--muted); margin: 0 0 26px; }
footer { padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { text-decoration: none; }

@media (max-width: 860px) {
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 460px; margin-inline: auto; }
  section { padding: 56px 0; }
  .hero { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
