/* Carli — landing page. Colours mirror app/src/theme/colors.ts (the "Carli App" redesign);
   brand accent #1c9ee8 as on barq.agency. Logical properties throughout so / (he, rtl) and
   /en/ (en, ltr) share one stylesheet. */
:root {
  --brand: #1c9ee8;
  --brand-app: #229bdc;
  --brand-pressed: #1a7db4;
  --brand-pale: #eaf4fc;
  --bg: #f4f9fd;
  --surface: #ffffff;
  --field: #f8fbfd;
  --border: #dce8f2;
  --border-subtle: #e1ebf4;
  --divider: #eef4f9;
  --text: #0f2a3d;
  --text-2: #5c7488;
  --text-3: #7d95a8;
  --text-4: #a7bccc;
  --good: #1fa971;
  --good-bg: #eaf7f0;
  --good-text: #136d49;
  --warn: #e39a0c;
  --warn-bg: #fdf4e3;
  --warn-text: #96620a;
  --danger: #e04b3c;
  --danger-bg: #fcedeb;
  --danger-text: #a3291c;
  --radius: 18px;
  --max: 1160px;
  --font: 'Rubik', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-pressed); outline-offset: 3px; border-radius: 8px;
}
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 249, 253, 0.8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang {
  height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--surface);
}
.lang:hover { color: var(--text); border-color: var(--text-4); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover { border-color: var(--text-4); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 10px 24px -10px rgba(28, 158, 232, 0.7); }
.btn-primary:hover { background: var(--brand-pressed); border-color: var(--brand-pressed); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 48px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -240px 0 auto 0; height: 760px; pointer-events: none;
  background:
    radial-gradient(520px 360px at 22% 40%, rgba(28, 158, 232, 0.16), transparent 70%),
    radial-gradient(420px 300px at 80% 20%, rgba(28, 158, 232, 0.10), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px var(--warn-bg); }
h1 {
  margin: 20px 0 18px; font-size: clamp(38px, 5.8vw, 66px); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 700;
}
h1 .accent { color: var(--brand); }
.lede { margin: 0 0 30px; max-width: 32em; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-notes { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--text-2); }
.hero-notes span::before { content: '✓'; margin-inline-end: 6px; color: var(--brand); font-weight: 700; }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 640px; }

/* ---------- phone (shared mock-up frame) ---------- */
.phone {
  position: relative; width: 300px; flex: none; aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #1d3446, #0b1823);
  box-shadow: 0 0 0 1px #2b4253, 0 40px 80px -24px rgba(15, 42, 61, 0.45), inset 0 0 0 1px #000;
}
.screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg);
  font-size: 11px; line-height: 1.35; display: flex; flex-direction: column; text-align: start;
}
.island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 86px; height: 24px; border-radius: 20px; background: #000; z-index: 3; }
.status { height: 42px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 6px; font-size: 11.5px; font-weight: 600; direction: ltr; }
.status .sys { display: flex; gap: 5px; align-items: center; }
.bars { display: inline-flex; gap: 1.5px; align-items: flex-end; height: 9px; }
.bars i { width: 3px; background: var(--text); border-radius: 1px; }
.bars i:nth-child(1) { height: 3px; } .bars i:nth-child(2) { height: 5px; } .bars i:nth-child(3) { height: 7px; } .bars i:nth-child(4) { height: 9px; }
.batt { width: 20px; height: 10px; border: 1.5px solid var(--text-2); border-radius: 3px; position: relative; }
.batt::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--text); border-radius: 1px; }
.app { flex: 1; overflow: hidden; padding: 4px 16px 0; display: flex; flex-direction: column; gap: 11px; }
.app-head { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.app-brand { color: var(--brand-app); font-weight: 700; font-size: 19px; }
.app-title { font-weight: 700; font-size: 18px; }
.icon-btn { width: 32px; height: 32px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border-subtle); display: grid; place-items: center; color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; }
.p-hero { background: var(--brand-app); color: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 8px 18px -6px rgba(34, 155, 220, 0.55); }
.p-hero .t { font-weight: 700; font-size: 16px; }
.p-hero .s { opacity: 0.9; font-size: 10.5px; margin-top: 1px; }
.p-chips { display: flex; gap: 6px; margin-top: 10px; }
.plate { background: #fff; color: var(--text); border-radius: 7px; padding: 4px 9px; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; direction: ltr; }
.km { background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 7px; padding: 4px 9px; font-weight: 600; font-size: 11.5px; }
.sec { display: flex; justify-content: space-between; align-items: baseline; }
.sec b { font-size: 13px; font-weight: 700; }
.sec a, .sec span { color: var(--brand-pressed); font-size: 10px; font-weight: 500; }
.row {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 9px 11px; box-shadow: 0 2px 8px rgba(15, 42, 61, 0.05);
}
.row.edge-warn { border-inline-start: 3px solid var(--warn); }
.row.edge-brand { border-inline-start: 3px solid var(--brand-app); }
.row.edge-danger { border-inline-start: 3px solid var(--danger); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: 11.5px; }
.row .s { color: var(--text-2); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .chev { color: var(--text-4); font-size: 14px; }
.ic { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand-pale); color: var(--brand-pressed); }
.ic svg { width: 15px; height: 15px; }
.ic.warn { background: var(--warn-bg); color: var(--warn-text); }
.ic.good { background: var(--good-bg); color: var(--good-text); }
.ic.danger { background: var(--danger-bg); color: var(--danger-text); }
.ic.muted { background: var(--bg); color: var(--text-2); border: 1px solid var(--border-subtle); }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qa div { border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 11.5px; }
.qa svg { width: 20px; height: 20px; }
.qa .pri { background: var(--brand-app); color: #fff; }
.qa .sec2 { background: var(--brand-pale); color: var(--brand-pressed); border: 1px solid var(--border); }
.tabbar {
  flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 6px 22px;
  border-top: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.96);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-3); font-size: 8.5px; font-weight: 500; }
.tab.on { color: var(--brand-app); }
.tab svg { width: 18px; height: 18px; }
.search { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 7px 10px; color: var(--text-3); font-size: 10.5px; }
.search svg { width: 13px; height: 13px; }
.chips { display: flex; gap: 6px; overflow: hidden; }
.chip { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 10px; white-space: nowrap; }
.chip.on { background: var(--brand-app); color: #fff; border-color: var(--brand-app); font-weight: 600; }
.year { color: var(--text-3); font-size: 10px; font-weight: 600; margin-top: 2px; }
.pill { display: inline-block; font-size: 8.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; }
.pill.warn { color: var(--warn-text); background: var(--warn-bg); }
.pill.danger { color: var(--danger-text); background: var(--danger-bg); }
.pill.good { color: var(--good-text); background: var(--good-bg); }
.pill.brand { color: var(--brand-pressed); background: var(--brand-pale); }
.minis { display: flex; gap: 6px; margin-top: 6px; }
.mini { font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); color: var(--text-2); }
.mini svg { display: inline-block; vertical-align: -1px; }
.row > b { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.mini.solid { background: var(--brand-app); border-color: var(--brand-app); color: #fff; }
.policy { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 12px; box-shadow: 0 2px 8px rgba(15, 42, 61, 0.05); }
.policy .k { color: var(--text-3); font-size: 9.5px; }
.policy .v { font-weight: 700; font-size: 14px; margin-top: 1px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tiles div { background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; padding: 8px 2px; text-align: center; font-size: 8.5px; color: var(--text-2); display: grid; justify-items: center; gap: 4px; }
.tiles svg { width: 15px; height: 15px; color: var(--brand-pressed); }
.loc { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 11px; padding: 8px; background: var(--brand-pale); color: var(--brand-pressed); font-weight: 600; font-size: 10.5px; border: 1px solid var(--border); }
.loc svg { width: 13px; height: 13px; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cats div { border-radius: 11px; padding: 7px 4px; text-align: center; font-size: 9px; font-weight: 500; background: var(--surface); border: 1px solid var(--border-subtle); color: var(--text-2); display: grid; justify-items: center; gap: 3px; }
.cats div.on { background: var(--brand-app); color: #fff; border-color: var(--brand-app); }
.cats svg { width: 14px; height: 14px; }
.dist { color: var(--brand-pressed); font-weight: 600; font-size: 10px; white-space: nowrap; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.kicker { color: var(--brand-pressed); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
html[lang='en'] .kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; margin: 10px 0 16px; }
.sub { color: var(--text-2); font-size: 18px; max-width: 36em; margin: 0; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.strip { padding: 26px 0; border-block: 1px solid var(--border); background: var(--surface); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 38px; color: var(--text-2); font-size: 15px; }
.strip-inner b { color: var(--text); font-weight: 600; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-visual { display: flex; justify-content: center; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-2); }
.points li b { color: var(--text); font-weight: 600; }
.points svg { margin-top: 5px; color: var(--brand); width: 16px; height: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; text-align: start; }
.tile { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 26px; box-shadow: 0 2px 10px rgba(15, 42, 61, 0.04); }
.tile h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--text-2); font-size: 15px; }
.tile .tic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-pale); color: var(--brand-pressed); display: grid; place-items: center; }
.tile .tic svg { width: 21px; height: 21px; }

/* steps */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: start; }
.step { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 24px; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; font-size: 15px; color: var(--text-2); }

/* honesty note */
.note {
  margin-top: 28px; display: flex; gap: 12px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; color: var(--text-2); font-size: 14.5px;
}
.note svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand-pressed); }

/* FAQ */
.faq { max-width: 780px; margin: 40px auto 0; }
details { border-bottom: 1px solid var(--border); padding: 20px 0; }
summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--text-3); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 12px 0 0; color: var(--text-2); }

/* final CTA */
.final { text-align: center; border-top: 1px solid var(--border); background: radial-gradient(700px 320px at 50% 0%, rgba(28, 158, 232, 0.14), transparent 70%); }
.final-logo { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 8px; box-shadow: 0 14px 30px -12px rgba(28, 158, 232, 0.8); }
.stores { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.store { position: relative; display: inline-block; opacity: 0.6; }
.store img { height: 48px; width: auto; }
.store .soon { position: absolute; top: -10px; inset-inline-end: -10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }

footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--text-2); font-size: 14px; background: var(--surface); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.disclaimer { margin-top: 18px; font-size: 13px; line-height: 1.7; max-width: 66em; color: var(--text-3); }

/* ---------- motion ---------- */
.float-card {
  position: absolute; z-index: 4; top: 96px; inset-inline-end: calc(50% - 250px); width: 240px;
  border-radius: 18px; padding: 12px 14px; display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); box-shadow: 0 24px 50px -16px rgba(15, 42, 61, 0.35);
  animation: drop 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.5s both;
}
.float-card .t { font-weight: 600; font-size: 14px; }
.float-card .s { color: var(--text-2); font-size: 12.5px; }
.float-card .ic { width: 36px; height: 36px; }
.float-card .ic svg { width: 18px; height: 18px; }
@keyframes drop { from { opacity: 0; transform: translateY(-20px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-copy { order: 0; }
  .hero { padding-top: 44px; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .cta-row, .hero-notes { justify-content: center; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 72px 0; }
  .hero-visual { min-height: 0; }
  .float-card { inset-inline-end: auto; left: 50%; transform: translateX(-50%); top: auto; bottom: -22px; width: min(260px, 86vw); animation: none; }
}
@media (max-width: 420px) {
  .nav-end .btn-sm { display: none; }
}
@media (max-width: 380px) {
  .phone { width: 272px; border-radius: 42px; }
  .screen { border-radius: 33px; }
  .wrap { width: calc(100% - 32px); }
}
