/* ==========================================================================
   Driving License Tayari: marketing + legal site
   One stylesheet for index / privacy-policy / terms / delete-account.
   ========================================================================== */

:root {
  /* Brand colours, taken from the app's purple app bar and the logo. */
  --brand: #5e2b8a;
  --brand-600: #6d34a0;
  --brand-700: #4a2170;
  --brand-900: #2e1247;
  --accent: #f5821f;
  --green: #0e7a3c;
  --red: #e23a2e;

  --bg: #ffffff;
  --bg-soft: #f7f5fb;
  --bg-card: #ffffff;
  --text: #1b1526;
  --text-soft: #5a5268;
  --border: #e6e1ef;
  --shadow: 0 1px 2px rgba(27, 21, 38, .05), 0 12px 32px rgba(46, 18, 71, .07);
  --shadow-lg: 0 24px 60px rgba(46, 18, 71, .18);

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14101c;
    --bg-soft: #1b1526;
    --bg-card: #1f1830;
    --text: #f3f0f8;
    --text-soft: #b3aac6;
    --border: #332a47;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-600); }
@media (prefers-color-scheme: dark) { a { color: #c39bf0; } }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

.center { text-align: center; }
.muted { color: var(--text-soft); }
.small { font-size: .92rem; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.02em;
  flex: none;
}
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand span { font-size: 1.02rem; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { color: var(--brand-600); background: var(--bg-soft); }
.nav a.cta {
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  box-shadow: 0 6px 18px rgba(94, 43, 138, .3);
}
.nav a.cta:hover { background: var(--brand-700); color: #fff; }

@media (max-width: 720px) {
  .nav a { padding: 6px 9px; font-size: .86rem; }
  /* Header only. The footer keeps its wordmark on small screens. */
  .site-header .brand span { display: none; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 600px at 12% -10%, #8b45c9 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #7a2fb0 0%, transparent 55%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-900) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 84px 24px 96px;
}

.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead { font-size: 1.14rem; color: rgba(255, 255, 255, .88); max-width: 44ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-size: 1.5rem; line-height: 1.2; }
.hero-stats div span { font-size: .86rem; color: rgba(255, 255, 255, .72); }

/* store buttons */
.stores { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #101014;
  color: #fff;
  text-decoration: none;
  padding: 11px 22px 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); color: #fff; }
.store-btn svg { width: 26px; height: 26px; flex: none; fill: #fff; }
.store-btn i { font-style: normal; display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .72; line-height: 1.4; }
.store-btn b { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.25; }

/* phone mockup */
.phone {
  position: relative;
  width: 288px;
  margin: 0 auto;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #3b3b46, #16161c);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 25px;
  background: #0c0c10;
  border-radius: 999px;
  z-index: 2;
}
.phone img { border-radius: 32px; width: 100%; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 60px 24px 72px; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .stores, .hero-stats { justify-content: center; }
  .eyebrow { margin-inline: auto; }
}

/* --------------------------------------------------------------- sections */

section { padding: 84px 0; }
section.soft { background: var(--bg-soft); }

.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--text-soft); margin-bottom: 0; }

.kicker {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 10px;
}
@media (prefers-color-scheme: dark) { .kicker { color: #c39bf0; } }

/* feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--text-soft); font-size: .96rem; }

.ficon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-600);
}
.ficon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ficon.o { background: color-mix(in srgb, var(--accent) 15%, transparent); color: #c96204; }
.ficon.g { background: color-mix(in srgb, var(--green) 13%, transparent); color: var(--green); }
.ficon.r { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
@media (prefers-color-scheme: dark) {
  .ficon { color: #c39bf0; }
  .ficon.o { color: #f7a55b; }
  .ficon.g { color: #4fc07d; }
  .ficon.r { color: #f2776c; }
}

/* CTA band */
.band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-900) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .85); max-width: 52ch; margin-inline: auto; }
.band .stores { justify-content: center; }

/* ------------------------------------------------------------ legal pages */

.page-head {
  background:
    radial-gradient(800px 400px at 20% -20%, #8b45c9 0%, transparent 60%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-900) 100%);
  color: #fff;
  padding: 62px 0 56px;
}
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .3em; }
.page-head p { color: rgba(255, 255, 255, .82); margin: 0; }

.doc { padding: 60px 0 84px; }
.doc h2 {
  font-size: 1.42rem;
  margin-top: 2.2em;
  padding-top: .2em;
  scroll-margin-top: 90px;
}
.doc h2:first-of-type { margin-top: .4em; }
.doc h3 { margin-top: 1.7em; font-size: 1.06rem; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.doc li { margin-bottom: .5em; }
.doc li::marker { color: var(--brand-600); }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: .94rem;
}
.doc th, .doc td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.doc th { background: var(--bg-soft); font-weight: 600; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 0 0 1.6em;
}
.note :last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--red); }
.note.ok { border-left-color: var(--green); }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.toc strong { display: block; margin-bottom: 10px; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .35em; font-size: .95rem; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* --------------------------------------------------------- delete steps */

.steps { display: grid; gap: 34px; counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 34px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.step .shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.step-body { min-width: 0; }
.step-n {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 10px;
}
.step-n::after {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .84rem;
  letter-spacing: 0;
}
.step h3 { margin-bottom: .4em; }
.step p { margin-bottom: 0; color: var(--text-soft); }
@media (prefers-color-scheme: dark) { .step-n { color: #c39bf0; } }

@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 22px; }
  .step .shot { max-width: 260px; margin: 0 auto; }
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  word-break: break-word;
}
.doc code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}
.doc th code, .doc td code { background: transparent; border: 0; padding: 0; }

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--text);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(94, 43, 138, .28);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--brand-600);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--bg-soft); color: var(--brand-600); }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------- 404 page */

.notfound { padding: 74px 0 96px; }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: .35em; }
.notfound .muted { max-width: 46ch; margin-inline: auto; margin-bottom: 32px; }

.nf-art {
  width: 148px;
  height: auto;
  margin: 0 auto 26px;
  filter: drop-shadow(0 18px 30px rgba(46, 18, 71, .18));
}

.nf-links {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .93rem;
}
.nf-links a { color: var(--text-soft); text-decoration: none; }
.nf-links a:hover { color: var(--brand-600); text-decoration: underline; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 54px 0 40px;
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--brand-600); text-decoration: underline; }
.footer-grid p { color: var(--text-soft); font-size: .93rem; max-width: 40ch; }

.legal-line {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .87rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  section { padding: 62px 0; }
}
