/* Auto Practise public website (home + sign-up). Brand: dark blue from the logo. */
:root {
  --navy: #0b2380;
  --navy-deep: #061456;
  --navy-ink: #040d3a;
  --blue: #1f4bff;
  --sky: #eaf0ff;
  --ink: #111a3a;
  --muted: #5b6480;
  --line: #e3e8f5;
  --bg: #f6f8fd;
  --green: #14a06a;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(11, 35, 128, 0.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 92%); margin-inline: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; box-shadow: 0 10px 24px rgba(31, 75, 255, .28); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(31, 75, 255, .36); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-lg { padding: 15px 28px; font-size: 16.5px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 24px; margin-inline-start: 12px; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--navy); }
.top .actions { margin-inline-start: auto; display: flex; gap: 10px; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1000px 520px at 85% -10%, #dfe7ff 0, transparent 60%), radial-gradient(800px 500px at 0% 110%, #e9eeff 0, transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 80px 0 96px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 13.5px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(20, 160, 106, .15); }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.25; margin: 18px 0 16px; font-weight: 800; color: var(--navy-ink); letter-spacing: -.5px; }
.hero h1 span { background: linear-gradient(135deg, var(--blue), var(--navy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18.5px; color: var(--muted); margin: 0 0 30px; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero .note b { color: var(--green); }

/* product mock */
.mock { background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; transform: perspective(1400px) rotateY(6deg) rotateX(2deg); }
.mock .bar { height: 44px; background: linear-gradient(90deg, var(--navy-deep), var(--navy)); display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.mock .bar span { margin-inline-start: auto; height: 22px; width: 42%; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.mock .body { display: grid; grid-template-columns: 120px 1fr; min-height: 330px; }
.mock .side { background: #f7f9ff; border-inline-end: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 9px; align-content: start; }
.mock .side b { height: 10px; border-radius: 6px; background: #dfe5f7; }
.mock .side b.on { background: var(--navy); }
.mock .main { padding: 16px; display: grid; gap: 14px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi small { color: var(--muted); font-size: 11px; display: block; }
.kpi strong { font-size: 17px; color: var(--navy-ink); }
.kpi em { font-style: normal; font-size: 11px; color: var(--green); font-weight: 700; }
.chart { border: 1px solid var(--line); border-radius: 12px; padding: 12px; height: 120px; display: flex; align-items: flex-end; gap: 8px; }
.chart u { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--blue), var(--navy)); opacity: .9; }
.chart u:nth-child(odd) { background: linear-gradient(180deg, #9db2ff, #6f8cff); }
.rows { display: grid; gap: 7px; }
.rows div { display: grid; grid-template-columns: 70px 1fr 60px; gap: 10px; align-items: center; font-size: 11.5px; color: var(--muted); }
.rows div b { height: 8px; border-radius: 5px; background: #e6ebf8; }
.rows div span { justify-self: end; padding: 1px 8px; border-radius: 99px; background: #e3f6ee; color: var(--green); font-weight: 700; font-size: 10.5px; }

/* trust strip */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 22px 0; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.strip span { display: inline-flex; align-items: center; gap: 8px; }
.strip svg { color: var(--navy); }

/* sections */
section.block { padding: 96px 0; }
section.alt { background: var(--bg); }
.head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.head small { color: var(--blue); font-weight: 800; letter-spacing: .5px; }
.head h2 { font-size: clamp(26px, 3vw, 38px); margin: 8px 0 12px; color: var(--navy-ink); line-height: 1.35; }
.head p { color: var(--muted); font-size: 17px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd7f5; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--navy); margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 18.5px; color: var(--navy-ink); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; inset-inline-start: 24px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 8px 18px rgba(31, 75, 255, .3); }
.step h3 { margin: 8px 0 6px; color: var(--navy-ink); }
.step p { margin: 0; color: var(--muted); }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.why li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.why li .ico { margin: 0; width: 44px; height: 44px; }
.why li h4 { margin: 0 0 2px; font-size: 17px; color: var(--navy-ink); }
.why li p { margin: 0; color: var(--muted); font-size: 15px; }
.panel { border-radius: 22px; padding: 34px; color: #fff; background: radial-gradient(500px 300px at 100% 0, rgba(31, 75, 255, .55), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-ink)); box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 8px; font-size: 24px; }
.panel p { margin: 0 0 22px; color: #c8d3ff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 16px; }
.stats strong { display: block; font-size: 26px; }
.stats small { color: #c8d3ff; }

.band { padding: 0 0 96px; }
.band .box { border-radius: 26px; padding: 56px 40px; text-align: center; color: #fff; background: radial-gradient(600px 300px at 0 0, rgba(31, 75, 255, .6), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-ink)); box-shadow: var(--shadow); }
.band h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); }
.band p { margin: 0 0 26px; color: #c8d3ff; font-size: 17px; }
.band .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
footer img { height: 38px; }
footer nav { display: flex; gap: 18px; margin-inline-start: auto; }

/* sign-up page */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.05fr; }
.auth .aside { color: #fff; padding: 56px; display: flex; flex-direction: column; background: radial-gradient(700px 420px at 100% 0, rgba(31, 75, 255, .55), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-ink)); }
.auth .aside .logo { background: #fff; border-radius: 14px; padding: 6px 10px; align-self: flex-start; }
.auth .aside .logo img { height: 50px; }
.auth .aside h2 { font-size: 34px; line-height: 1.35; margin: 48px 0 12px; }
.auth .aside > p { color: #c8d3ff; font-size: 17px; margin: 0 0 28px; }
.auth .aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth .aside li { display: flex; gap: 12px; align-items: flex-start; color: #e4e9ff; }
.auth .aside li svg { flex: none; margin-top: 4px; color: #7ff0bf; }
.auth .aside .foot { margin-top: auto; color: #aab8f5; font-size: 13.5px; padding-top: 30px; }
.auth .form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth form { width: min(520px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.auth form h1 { margin: 0 0 4px; font-size: 26px; color: var(--navy-ink); }
.auth form .sub { margin: 0 0 24px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field input { font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfcff; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 75, 255, .12); background: #fff; }
.field input.bad { border-color: #e25555; }
.field .pw { position: relative; }
/* the show/hide button sits on the left (RTL page) and the password is typed left to right: keep them apart */
.field .pw input { padding-left: 66px; }
.field .pw button { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; }
.meter { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: #e25555; transition: width .2s, background .2s; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.check input { margin-top: 5px; accent-color: var(--navy); }
.err { display: none; background: #fdecec; color: #b42323; border: 1px solid #f6caca; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14.5px; }
.auth form .btn { width: 100%; }
.auth form .alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.auth form .alt a { color: var(--navy); font-weight: 800; }
/* Hidden anti-bot field. Clipped in place: a far-off offset makes RTL pages scroll sideways on phones. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.field select { font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fbfcff; outline: none; width: 100%; }
.field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 75, 255, .12); background: #fff; }
.field .hint { color: var(--muted); font-size: 12.5px; }
.field .hint b { color: var(--navy); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer; background: #fbfcff; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #b9c6f2; }
.field .opt input { width: 18px; height: 18px; padding: 0; margin: 4px 0 0; border: 0; box-shadow: none; background: none; accent-color: var(--navy); flex: none; }
.opt span { flex: 1; min-width: 0; }
.opt b { display: block; font-size: 14px; color: var(--ink); }
.opt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 2px; }
.opt:has(input:checked) { border-color: var(--blue); background: #f1f4ff; box-shadow: 0 0 0 3px rgba(31, 75, 255, .08); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: r .8s linear infinite; display: none; }
.busy .spin { display: inline-block; }
@keyframes r { to { transform: rotate(360deg); } }

/* entrance animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .auth .aside { padding: 22px 20px 20px; }
  .auth .aside .logo img { height: 40px; }
  .auth .aside h2 { margin: 18px 0 6px; font-size: 22px; }
  .auth .aside > p { font-size: 14.5px; margin: 0 0 14px; }
  .auth .aside ul { grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13.5px; }
  .auth .aside .foot { display: none; }
  .auth .form { padding: 18px 12px 34px; place-items: start center; }
  .auth form { padding: 24px 18px; border-radius: 18px; }
  .hero .wrap, .why, .auth { grid-template-columns: 1fr; }
  .hero .wrap { padding: 48px 0 64px; gap: 40px; }
  .mock { transform: none; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .auth .aside { padding: 36px 24px; }
  .auth .aside h2 { margin-top: 28px; font-size: 26px; }
}
@media (max-width: 620px) {
  .grid, .steps, .row2, .kpis, .choice { grid-template-columns: 1fr; }
  .auth .aside ul { display: none; }
  .auth form h1 { font-size: 22px; }
  /* 16px stops phones from zooming in when a field is tapped */
  .field input, .field select { font-size: 16px; }
  .top .actions .btn-ghost { display: none; }
  .brand img { height: 38px; }
  .mock .body { grid-template-columns: 1fr; }
  .mock .side { display: none; }
  footer nav { margin-inline-start: 0; }
}
