/* MAALSO Logistics — public site (home, privacy, terms, account deletion).
   Same tokens as the rider app (apps/mobile/src/theme.ts). */
:root {
  --primary: #f4473f;
  --primary-dark: #d9362f;
  --primary-soft: #ffedeb;
  --ink: #1d1d1f;
  --text: #2b2b2e;
  --muted: #6b6b73;
  --line: #e8e8ec;
  --canvas: #f7f7f9;
  --surface: #ffffff;
  --blue: #2f6feb;
  --amber: #f5a524;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 16, 24, 0.04), 0 8px 24px rgba(16, 16, 24, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f6;
    --text: #dcdce1;
    --muted: #a1a1aa;
    --line: #2c2c31;
    --canvas: #121214;
    --surface: #1b1b1e;
    --primary-soft: #3a1d1b;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: 0; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { padding: 7px 11px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.lang { border: 1px solid var(--line); background: var(--surface); }

/* Hero */
.hero { background: var(--primary); color: #fff; border-radius: 0 0 32px 32px; overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: auto -120px -180px auto; width: 420px; height: 420px; border-radius: 50%;
  border: 56px solid rgba(255, 255, 255, 0.08); pointer-events: none;
}
.hero__in { max-width: 1080px; margin: 0 auto; padding: 56px 16px 64px; display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; color: #fff; }
.hero p { font-size: 18px; margin: 0 0 24px; color: rgba(255, 255, 255, 0.92); max-width: 34em; }
.hero__logo { justify-self: center; width: min(260px, 70%); border-radius: 44px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.pill--light { background: #fff; color: var(--primary); }
.pill--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); }
.pill--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.soon { display: inline-block; margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, 0.85); }

/* Sections */
.wrap { max-width: 1080px; margin: 0 auto; padding: 48px 16px; }
.wrap h2 { font-size: 28px; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 6px; font-size: 17px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
.steps { counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.steps li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps { padding: 0; margin: 0; }

/* Legal documents */
.doc { max-width: 1080px; margin: 0 auto; padding: 32px 16px 64px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.doc__head { grid-column: 1 / -1; }
.doc__head h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.025em; color: var(--ink); margin: 0 0 6px; line-height: 1.15; }
.doc__head .meta { color: var(--muted); font-size: 14px; }
.toc { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 14px; }
.toc strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); }
article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 40px); box-shadow: var(--shadow); min-width: 0; }
article h2 { font-size: 21px; color: var(--ink); margin: 32px 0 8px; letter-spacing: -0.01em; scroll-margin-top: 80px; }
article h2:first-child { margin-top: 0; }
article h3 { font-size: 16.5px; color: var(--ink); margin: 20px 0 6px; }
article p, article li { max-width: 72ch; }
article ul { padding-left: 20px; }
article li { margin: 4px 0; }
.glance { background: var(--primary-soft); border-radius: 14px; padding: 16px 20px; margin: 0 0 8px; }
.glance strong { color: var(--primary); }
.glance ul { margin: 8px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 10px 0; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 700; background: var(--canvas); }
.box { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 12px 0; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--surface); }
.foot { max-width: 1080px; margin: 0 auto; padding: 24px 16px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--primary); }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; padding: 40px 16px 48px; }
  .hero__logo { width: 160px; border-radius: 32px; justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  .brand small { display: none; }
}
@media (max-width: 640px) {
  .top__in { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
  .brand { white-space: nowrap; }
  .nav { margin-left: 0; width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 10px; font-size: 13.5px; }
  .lang { margin-left: auto; }
  .toc { top: 0; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
