/* Dutch blue + Dutch orange */
:root {
  --navy-950: #081736;
  --navy-900: #0f2557;
  --navy-800: #16316f;
  --blue: #21468b;
  --blue-400: #4f7fd9;
  --blue-50: #eef3fc;
  --orange: #ff6b00;
  --orange-hover: #ff8124;
  --orange-50: #fff1e6;
  --on-orange: #0f2557;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f1b3a;
  --muted: #56637f;
  --line: #e0e6f1;
  --link: #21468b;
  --ok: #157347;
  --ok-soft: #e3f4ea;
  --err: #b42318;
  --err-soft: #fde8e6;
  --info: #7a4a00;
  --info-soft: #fff4dc;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 37, 87, .06), 0 8px 24px rgba(15, 37, 87, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071229;
    --surface: #0e1e43;
    --ink: #e8eeff;
    --muted: #a3b2d4;
    --line: #213463;
    --link: #9cc0ff;
    --blue-50: #13285a;
    --orange-50: #2d1d12;
    --ok: #6fdc9d;
    --ok-soft: #12301f;
    --err: #ff9a8f;
    --err-soft: #3a1714;
    --info: #f5c86a;
    --info-soft: #2e2510;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
img, svg { max-width: 100%; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .5em; }
h3 { font-size: 1.1rem; margin: 0 0 .35em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 480px; margin: 0 auto; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .9rem; }
.ok { color: var(--ok); }
.err { color: var(--err); }
.mt { margin-top: 16px; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 2px solid transparent;
  background: var(--orange); color: var(--on-orange); font: inherit; font-weight: 750;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn.navy { background: var(--navy-900); color: #fff; }
.btn.navy:hover { background: var(--navy-800); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--blue-400); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.ghost-light:hover { border-color: #fff; }
.btn.danger { background: var(--err); color: #fff; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .9rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.big { min-height: 54px; padding: 12px 26px; font-size: 1.05rem; }
button.linklike { background: none; border: 0; font: inherit; cursor: pointer; }
.btn:focus-visible, a:focus-visible, input:focus, select:focus, summary:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--orange) 55%, transparent); outline-offset: 2px;
}

label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%; height: 46px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit;
}
.field { margin-bottom: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--orange); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}

/* ---------- flash ---------- */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; font-weight: 550; }
.flash.success { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--err-soft); color: var(--err); }
.flash.info { background: var(--info-soft); color: var(--info); }

/* ---------- header ---------- */
.top { background: var(--navy-900); color: #fff; position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-accent { color: var(--orange); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--orange); display: inline-grid; place-items: center; color: var(--navy-900); }
.nav { margin-inline-start: auto; display: flex; gap: 4px; align-items: center; }
.nav a, .nav .linklike { color: #dfe7fb; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav .linklike:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav a.btn { color: var(--on-orange); background: var(--orange); padding: 8px 16px; min-height: 40px; }
.nav a.btn:hover { background: var(--orange-hover); }
.nav form { margin: 0; }
.lang-menu { position: relative; margin-inline-start: 6px; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .85rem;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary, .lang-menu summary:hover { border-color: #fff; }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; width: 380px; max-height: 80vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 16px 40px rgba(8, 23, 54, .25); display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.lang-list a { color: var(--ink) !important; text-decoration: none; padding: 9px 12px !important; border-radius: 10px !important; font-weight: 600; font-size: .95rem !important; text-align: start; }
.lang-list a:hover { background: var(--blue-50) !important; }
.lang-list a.on { background: var(--orange) !important; color: var(--on-orange) !important; }
.mobile-menu { display: none; margin-inline-start: auto; }
.mobile-menu summary { list-style: none; cursor: pointer; color: #fff; padding: 8px; border-radius: 10px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { background: rgba(255,255,255,.1); }
.mobile-panel {
  position: absolute; left: 0; right: 0; top: 68px; background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.1); padding: 8px 16px 18px; display: grid; gap: 2px;
}
.mobile-panel a, .mobile-panel .linklike { color: #fff; text-decoration: none; padding: 12px 8px; font-weight: 600; text-align: start; border-radius: 8px; }
.mobile-panel a.btn { color: var(--on-orange); margin-top: 8px; text-align: center; }
.mobile-panel .lang-menu { margin: 8px 0 0; }
.mobile-panel .lang-list { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
bdi { unicode-bidi: isolate; }

main { padding: 32px 0 64px; }
main.flush { padding: 0; }

/* ---------- landing: hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(255,107,0,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #fff; padding: 56px 0 72px; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #dfe7fb; font-weight: 650; font-size: .9rem; margin-bottom: 20px;
}
.nl-flag { display: inline-grid; grid-template-rows: repeat(3, 5px); width: 22px; border-radius: 3px; overflow: hidden; }
.nl-flag i:nth-child(1) { background: #ae1c28; }
.nl-flag i:nth-child(2) { background: #fff; }
.nl-flag i:nth-child(3) { background: var(--blue); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); color: #fff; letter-spacing: -0.03em; }
.mark { white-space: nowrap; background: var(--orange); color: var(--navy-900); padding: 0 .18em; border-radius: .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { font-size: 1.18rem; color: #c9d5f2; max-width: 34em; margin-bottom: 26px; }
.searchbar {
  display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 16px; max-width: 560px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.searchbar select { border: 0; height: 52px; font-size: 1.02rem; color: var(--navy-900); background: transparent; }
.searchbar .btn { min-height: 52px; white-space: nowrap; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-inline-start: 28px; position: relative; margin: 6px 0; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange) 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='%230f2557' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero-ticks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; color: #dfe7fb; font-weight: 550; }

/* phone mockup */
.phone {
  width: min(320px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px;
  background: #050d22; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 2px #24345c; position: relative;
}
.phone-screen {
  height: 100%; border-radius: 32px; overflow: hidden; padding: 46px 14px 14px;
  background: linear-gradient(180deg, #1d3a80 0%, #0f2557 100%); display: flex; flex-direction: column; gap: 10px;
}
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: #050d22; border-radius: 999px; }
.phone-time { color: #fff; text-align: center; font-size: 2.6rem; font-weight: 300; letter-spacing: -0.02em; margin: 6px 0 4px; }
.notif { background: rgba(255,255,255,.94); color: var(--navy-900); border-radius: 18px; padding: 10px 12px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.notif .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--orange); display: grid; place-items: center; color: var(--navy-900); }
.notif b { display: block; font-size: .82rem; }
.notif span { display: block; font-size: .8rem; color: #3b4a6b; line-height: 1.35; }
.notif small { float: inline-end; color: #6b7894; font-size: .7rem; }
.notif:nth-of-type(3) { opacity: .85; }
.notif:nth-of-type(4) { opacity: .6; }

/* landing: sections */
.band { background: var(--navy-800); color: #dfe7fb; padding: 22px 0; }
.band .wrap { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; }
.band strong { color: #fff; margin-inline-end: 6px; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-weight: 650; font-size: .92rem; }
.section { padding: 76px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.kicker { color: var(--orange); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; display: block; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-no { font-size: 2.6rem; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 12px; letter-spacing: -0.04em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .feature-ic { color: var(--link); } }
.price-card { max-width: 440px; margin: 0 auto; text-align: start; border: 2px solid var(--orange); }
.price-big { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.price-big small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-weight: 900; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
.cta-band { background: var(--orange); color: var(--navy-900); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--navy-900); }
.cta-band p { font-size: 1.1rem; font-weight: 550; }

/* ---------- app pages ---------- */
.page-head { margin-bottom: 22px; }
.page-head p { color: var(--muted); max-width: 46em; margin: 0; }
.filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(100px, .9fr) repeat(6, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 18px; }
.filters .field { margin: 0; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 24px 0 14px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.listing {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.listing:hover { border-color: var(--blue-400); }
.listing-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 26px; }
.listing .price { font-size: 1.45rem; font-weight: 850; white-space: nowrap; letter-spacing: -0.02em; }
.listing .price small { font-size: .82rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.listing .price.unknown { font-size: 1rem; font-weight: 650; color: var(--muted); }
.listing .where { color: var(--muted); font-size: .93rem; }
.facts { display: flex; gap: 6px; flex-wrap: wrap; }
.fact { background: var(--blue-50); border-radius: 999px; padding: 3px 11px; font-size: .85rem; font-weight: 600; }
.badge { display: inline-block; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--orange); color: var(--on-orange); text-transform: uppercase; letter-spacing: .04em; }
.type-tag { font-size: .8rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
@media (prefers-color-scheme: dark) { .type-tag { color: var(--link); } }
.listing-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.listing-foot .time { color: var(--muted); font-size: .85rem; }
.links { display: flex; gap: 6px; flex-wrap: wrap; }
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 28px; }
.empty { text-align: center; padding: 56px 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.side-card { background: var(--navy-900); color: #dfe7fb; border: 0; align-self: start; }
.side-card h2 { color: #fff; }
.side-card .hint { color: #b8c6e8; }
.side-card a:not(.btn) { color: #fff; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.table-scroll { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.03em; }
.plain-list { margin: 0; padding-inline-start: 20px; }
.plain-list li { margin: 4px 0; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }

.auth-wrap { max-width: 460px; margin: 16px auto 0; }
.auth-wrap h1 { text-align: center; }

footer { background: var(--navy-950); color: #a9b8db; padding: 36px 0 44px; font-size: .92rem; }
footer .wrap { display: flex; gap: 16px 32px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
footer a { color: #dfe7fb; }
footer .brand { font-size: 1rem; }
.foot-note { max-width: 520px; margin-top: 10px; }

@media (max-width: 980px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .actions { grid-column: 1 / -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .mobile-menu { display: block; }
  .hero { padding: 36px 0 48px; }
  .hero .wrap, .split, .two-col, .steps, .stats { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .searchbar { flex-direction: column; }
  .features { grid-template-columns: 1fr; }
  .card { padding: 18px; }
}

/* ---------- right-to-left (arabų, darija) ---------- */
[dir="rtl"] svg.arrow { transform: scaleX(-1); }
[dir="rtl"] body { font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .hero h1 { letter-spacing: 0; }
[dir="rtl"] .hero { background:
    radial-gradient(900px 420px at 15% 10%, rgba(255,107,0,.18), transparent 60%),
    linear-gradient(200deg, var(--navy-900) 0%, var(--navy-950) 100%); }
