:root {
  --ink: #142231;
  --muted: #5f6c7b;
  --line: #e3e7ee;
  --brand: #0075ff;
  --primary: #0075ff;
  --tint: #e8f1ff;
  --warn: #ffc107;
  --soft: #f4f7fa;
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Geeza Pro', system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 92%); margin: 0 auto; }
.narrow { width: min(760px, 92%); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Buttons don't inherit the page font by default (they fall back to Arial 13px): every control takes it. */
button, input, select, textarea { font: inherit; color: inherit; }
/* One button scale: 46px (16px text) and big 54px (17px text) — every button on the page is one of the two. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 700; line-height: 1; border: 1px solid transparent; cursor: pointer; white-space: nowrap; box-sizing: border-box; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: var(--line); background: #fff; }
.btn.big { height: 54px; padding: 0 26px; font-size: 17px; }
.btn.full { width: 100%; }

/* The header sits at the top of the page and scrolls away with it (not fixed). */
.nav { position: static; background: #fff; border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.logo img { width: 32px; height: 32px; }
.links { display: flex; gap: 8px; flex: 1; color: var(--ink); font-weight: 700; }
.links a { display: inline-flex; align-items: center; height: 46px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; background: #fff; font-size: 16px; }
.links a:hover { color: var(--primary); border-color: var(--primary); background: #fff; }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.lang { height: 46px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }

.hero { background: linear-gradient(180deg, var(--tint), #fff); color: var(--ink); padding: 70px 0 80px; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--warn); border: 1px solid #e0a800; color: #3d2c00; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hero h1 { font-size: 44px; line-height: 1.25; margin: 16px 0 14px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn.ghost { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li > span[data-icon] { color: var(--primary); display: inline-flex; }



.section { padding: 72px 0; }
.section.alt { background: var(--soft); }
h2 { font-size: 32px; margin: 0 0 8px; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 0 0 36px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.f { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; }
.f .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--primary); }
.f { transition: transform .15s, box-shadow .15s; }
.f:hover { transform: translateY(-2px); box-shadow: 0 10px 30px #0075ff1f; }
.f h3 { margin: 8px 0 6px; font-size: 17px; }
.f p { margin: 0; color: var(--muted); font-size: 15px; }
.s { background: #fff; border-radius: 14px; padding: 22px; border: 1px solid var(--line); }
.s span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.s h3 { margin: 10px 0 4px; }
.s p { margin: 0; color: var(--muted); }

details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; color: var(--primary); }
details p { margin: 10px 0 0; color: var(--muted); }
.final { background: var(--brand); color: #fff; padding: 60px 0; text-align: center; }
.final .btn.primary { background: #fff; color: var(--primary); }
.final h2 { margin-bottom: 20px; }
.foot { padding: 24px 0; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 900px) {
  .hero-in, .package { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
    .links { display: none; }
  .hero h1 { font-size: 32px; }
  .nav-cta .btn.ghost { display: none; }
}
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
/* Price in the hero */
.hero-price { display: inline-grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin: 0 0 22px; box-shadow: 0 8px 24px #0075ff14; }
.hp-main { font-size: 16px; font-weight: 700; }
.hp-main b { font-size: 34px; color: var(--primary); }
.hp-sub { color: var(--muted); font-size: 15px; }
.hp-sub b { color: var(--ink); }
.save { display: inline-block; background: #e7f7ee; color: #157347; border-radius: 999px; padding: 1px 10px; font-weight: 800; font-size: 13px; margin-inline-start: 6px; }
.btn span[data-icon] { display: inline-flex; }

/* One package (everything) + the sign-up next to it */
.package { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.plan { border: 2px solid var(--primary); border-radius: 18px; padding: 28px; box-shadow: 0 16px 40px #0075ff22; background: #fff; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan h3 { margin: 0; font-size: 20px; }
.period { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.period button { border: none; background: transparent; border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.period button.on { background: var(--primary); color: #fff; }
.price { font-size: 18px; margin: 14px 0 2px; }
.price b { font-size: 52px; line-height: 1.1; }
.plan-note { margin: 0; color: var(--muted); }
.plan h4 { margin: 20px 0 10px; font-size: 16px; }
.all-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.all-features li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.all-features li svg { flex: none; color: var(--primary); margin-top: 3px; }

.signup { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: linear-gradient(180deg, var(--tint), #fff 60%); }
.signup form { display: grid; gap: 14px; }
.signup .btn.big { margin-top: 4px; }
.signup h3 { margin: 0; font-size: 22px; }
.signup p { margin: 0; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field input { font: inherit; font-size: 16px; height: 52px; box-sizing: border-box; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: none; width: 100%; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint); }
.err { color: #b42318; background: #fdecea; border-radius: 10px; padding: 8px 12px; margin: 0; font-weight: 600; }
.link { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-ok a { color: var(--primary); text-decoration: underline; }
.center { text-align: center; }
.signup .btn[disabled] { opacity: .6; cursor: wait; }

/* Saudi mobile input (same look as in the app) */
.phone-input { display: flex; align-items: center; gap: 8px; height: 52px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 12px; cursor: text; }
.phone-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint); }
.phone-input .flag { display: inline-flex; flex: none; }
.phone-input .flag svg { border-radius: 2px; box-shadow: 0 0 0 1px #0001; }
.phone-input .cc { color: var(--muted); font-weight: 700; flex: none; }
.phone-input input { border: none !important; box-shadow: none !important; outline: none; background: transparent; padding: 0 !important; flex: 1; min-width: 0; font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .04em; height: 100%; }

/* Footer + legal pages */
.foot-in { display: grid; gap: 8px; justify-items: center; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--primary); font-weight: 600; }
.nav .spacer { flex: 1; }
.legal { padding: 40px 0 60px; }
.legal h1 { font-size: 32px; margin: 0 0 4px; }
.legal h2 { text-align: start; font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.9; color: #283646; }
.legal ul { padding-inline-start: 22px; }
.legal a { color: var(--primary); text-decoration: underline; }

@media (max-width: 900px) {
  .package { grid-template-columns: 1fr; }
  .signup { position: static; }
  .all-features { grid-template-columns: 1fr; }
  .hero-price { display: grid; }
}
@media (max-width: 520px) {
  .hero { padding: 40px 0 50px; }
  .hp-main b { font-size: 30px; }
  .price b { font-size: 42px; }
  .nav-in { gap: 10px; }
  .logo span { font-size: 16px; }
}

/* Hero: the price and the package in short, where the drawing was. */
.hero-card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 20px 50px #0075ff26; display: grid; gap: 12px; }
.hc-head { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; }
.hc-price { font-size: 16px; font-weight: 700; }
.hc-price b { font-size: 44px; color: var(--primary); line-height: 1; }
.hc-sub { color: var(--muted); font-size: 15px; }
.hc-sub b { color: var(--ink); }
.hc-lines { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.hc-lines li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.hc-lines li span[data-icon] { color: var(--primary); display: inline-flex; }

/* "+N more features" and the window with every feature (and the same sign-up). */
.more-btn { margin-top: 14px; width: 100%; border: 2px dashed #b8d4ff; color: var(--primary); background: var(--tint); }
.more-btn:hover { border-style: solid; }
.feat-dialog { width: min(1100px, 96vw); max-height: 92vh; border: none; border-radius: 20px; padding: 0; box-shadow: 0 30px 80px #0003; color: var(--ink); }
.feat-dialog::backdrop { background: #0b1b3380; }
.fd-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: #fff; border-bottom: 1px solid var(--line); z-index: 1; }
.fd-head h2 { margin: 0; font-size: 20px; }
.fd-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 16px; cursor: pointer; }
.fd-close:hover { background: var(--tint); }
.fd-body { display: grid; grid-template-columns: 1fr 340px; gap: 22px; padding: 20px 22px 26px; overflow: auto; max-height: calc(92vh - 72px); }
.fd-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-content: start; }
.fd-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; color: var(--primary); }
.fd-group h3 small { margin-inline-start: auto; color: var(--muted); font-weight: 600; font-size: 12px; background: var(--soft); border-radius: 999px; padding: 2px 8px; }
.fd-group .all-features { grid-template-columns: 1fr; gap: 6px; }
.fd-signup { position: sticky; top: 0; align-self: start; }
@media (max-width: 900px) {
  .fd-body { grid-template-columns: 1fr; }
  /* Phone: the features scroll above, the sign-up stays pinned at the bottom (short form). */
  .feat-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .feat-dialog[open] { display: flex; flex-direction: column; }
  .fd-head { flex: none; }
  .fd-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 0; gap: 14px; height: auto; max-height: none; box-sizing: border-box; }
  .fd-groups { grid-template-columns: 1fr; }
  .fd-signup { position: sticky; bottom: 0; order: 2; align-self: stretch; margin: 0 -22px; padding: 12px 16px 14px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px #0b1b3314; border-radius: 16px 16px 0 0; z-index: 2; }
  .fd-signup h3, .fd-signup .center { display: none; }
  .fd-signup form { gap: 10px; }
  .fd-signup .legal-ok { margin: 6px 0 0; }
  .hero-card { padding: 20px; }
  .hc-price b { font-size: 38px; }
}

/* The package's own start button: phones only (wide screens have the form beside the package). */
.plan-start { display: none; margin-top: 18px; }
@media (max-width: 760px) {
  .package > .signup { display: none; }
  .plan-start { display: flex; }
}

/* Sign-up sheet: a window on wide screens, slides up from the bottom on phones. */
body.locked { overflow: hidden; }
.signup-sheet { border: none; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.signup-sheet::backdrop { background: #0b1b3380; }
.signup-sheet[open] { display: grid; place-items: center; width: 100vw; height: 100dvh; margin: 0; inset: 0; }
.sheet-panel { position: relative; width: min(440px, 94vw); background: #fff; border-radius: 20px; box-shadow: 0 30px 80px #0003; animation: sheet-pop .2s ease-out; }
.sheet-panel .sheet-signup { position: static; border: none; border-radius: 20px; background: #fff; padding: 26px 24px 22px; }
.sheet-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; }
.sheet-grab { display: none; }
.signup-sheet.closing .sheet-panel { animation: sheet-out .2s ease-in forwards; }
@keyframes sheet-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sheet-out { to { opacity: 0; transform: scale(.96); } }
@media (max-width: 760px) {
  .signup-sheet[open] { place-items: end stretch; }
  .sheet-panel { width: 100vw; border-radius: 20px 20px 0 0; max-height: 92dvh; overflow: auto; animation: sheet-up .25s cubic-bezier(.2, .8, .2, 1); transition: transform .15s; padding-bottom: env(safe-area-inset-bottom); }
  .sheet-panel .sheet-signup { padding: 8px 18px 20px; border-radius: 20px 20px 0 0; }
  .sheet-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: #d6dbe3; margin: 10px auto 4px; }
  .sheet-x { top: 8px; }
  .signup-sheet.closing .sheet-panel { animation: sheet-down .2s ease-in forwards; }
  .signup-sheet::backdrop { animation: fade-in .25s ease-out; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
