/* ebabilapp.com — the app's own colours (apps/web/src/index.css), display type in Bricolage Grotesque. */
:root {
  --background: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f4f4f5;
  --foreground: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --success: #047857;
  --success-soft: #d1fae5;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  /* Card tints, made from the app's soft colours. */
  --tint-accent: #eef2ff;
  --tint-success: #ecfdf5;
  --tint-warning: #fffbeb;
  --tint-neutral: #f4f4f5;
  --radius: 20px;
  --display: 'Bricolage Grotesque', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --text: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 5.6vw, 62px); line-height: 1.04; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: 700; max-width: 22ch; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
.hl { color: var(--accent); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.center h2, h2.center { margin-inline: auto; }
.center .sub { margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 18px; max-width: 60ch; margin-top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -6px rgba(79,70,229,.55); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.outline { background: var(--surface); border-color: var(--border); }
.btn.outline:hover { border-color: #c7c7cf; }
.btn.ghost:hover { background: var(--surface-muted); }
.btn.dark { background: var(--foreground); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn.light:hover { background: rgba(255,255,255,.2); }
.btn:active { transform: translateY(1px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250,250,250,.85); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; color: #3f3f46; }
.links a:hover { color: var(--foreground); }
.top-r { display: flex; align-items: center; gap: 8px; }
.lang { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.lang:hover { color: var(--foreground); }
@media (max-width: 860px) { .links { display: none; } .top-r { margin-left: auto; } }
@media (max-width: 520px) { .hide-s { display: none; } .top-r .btn { height: 38px; padding: 0 14px; font-size: 14px; } }

/* Hero */
.hero { padding: 24px 0 24px; }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 64px 0 64px 56px; border-radius: 28px; background: radial-gradient(120% 120% at 0% 0%, #eef2ff 0%, #f5f5ff 45%, #fafafa 100%); border: 1px solid #e7e8f5; overflow: hidden; }
.lead { color: #52525b; font-size: 19px; margin-top: 22px; max-width: 52ch; }
.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 22px 0 0; font-size: 14px; color: #52525b; }
.ticks li, .trust span { display: inline-flex; align-items: center; gap: 6px; }
.ticks svg, .trust svg { color: var(--success); }
.hero-shot { margin-right: -2px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 22px 0 6px; color: var(--muted); font-size: 14px; }
@media (max-width: 980px) { .hero-panel { grid-template-columns: 1fr; padding: 40px 24px 0; gap: 36px; } .hero-shot { margin: 0 -24px; padding-left: 24px; } }

/* App window */
.win { background: var(--surface); border: 1px solid var(--border); border-right: 0; border-radius: 18px 0 0 18px; box-shadow: 0 30px 60px -30px rgba(24,24,27,.25), 0 8px 24px -12px rgba(79,70,229,.2); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); background: #fcfcfd; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e4e7; }
.win-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); background: var(--surface-muted); padding: 2px 10px; border-radius: 6px; }
.win-body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.win-side { border-right: 1px solid var(--border); padding: 14px 10px; display: grid; align-content: start; gap: 2px; }
.win-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin: 0 6px 12px; }
.win-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-nav { font-size: 13px; padding: 6px 10px; border-radius: 8px; color: #52525b; }
.win-nav.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.win-main { padding: 18px; min-width: 0; }
.win-greet { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.win-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.win-stat { border: 1px solid var(--border); border-radius: 12px; padding: 10px; display: grid; gap: 2px; min-width: 0; }
.win-stat span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-stat b { font-size: 22px; font-variant-numeric: tabular-nums; }
.win-stat small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-stat small.red { color: var(--danger); }
.win-stat small.green { color: var(--success); }
.prog { height: 5px; border-radius: 5px; background: var(--surface-muted); overflow: hidden; }
.prog i { display: block; height: 100%; width: 34%; background: var(--success); border-radius: 5px; }
.win-list { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.win-job { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; font-size: 12px; }
.win-job + .win-job { border-top: 1px solid var(--border); }
.win-job b { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.win-job span { display: grid; min-width: 0; }
.win-job strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-job small { color: var(--muted); }
.st { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.st.ok { background: var(--success-soft); color: var(--success); }
.st.warn { background: var(--warning-soft); color: var(--warning); }
.st.info { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 560px) { .win-body { grid-template-columns: 1fr; } .win-side { display: none; } .win-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .win-stat:nth-child(3) { display: none; } }

/* Sections */
.sec { padding: 104px 0 0; }
.sec.last { padding-bottom: 104px; }
@media (max-width: 700px) { .sec { padding-top: 72px; } .sec.last { padding-bottom: 72px; } }
.num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--accent); }

.steps4, .steps3 { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 16px; }
.steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps4 li, .steps3 li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.steps4 p, .steps3 p { color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps4 { grid-template-columns: 1fr; } }

/* Simple */
.simple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.simple-art { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px 32px; display: grid; gap: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.chip.c0 { background: var(--surface-muted); color: var(--muted); }
.chip.c1 { background: var(--accent-soft); color: var(--accent); }
.chip.c2, .chip.c3 { background: var(--warning-soft); color: var(--warning); }
.chip.c4 { background: var(--success-soft); color: var(--success); }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.flow i { height: 8px; border-radius: 8px; background: var(--surface-muted); }
.flow i.done { background: var(--accent); }
.flow i.now { background: linear-gradient(90deg, var(--accent), #a5b4fc); }
.plist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.plist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.plist p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.dot { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
@media (max-width: 900px) { .simple { grid-template-columns: 1fr; gap: 32px; } .simple-art { order: 2; } }

/* Feature cards */
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.head-row h2 { max-width: 24ch; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.card { border-radius: 24px; padding: 32px 32px 0; display: grid; grid-template-rows: auto auto auto 1fr; gap: 12px; overflow: hidden; border: 1px solid transparent; }
.card p { color: #52525b; font-size: 15px; max-width: 52ch; }
.card ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; background: rgba(255,255,255,.7); border-radius: 999px; padding: 5px 12px 5px 9px; }
.card li svg { color: var(--accent); }
.t-violet, .t-lilac { background: var(--tint-accent); border-color: #e0e4ff; }
.t-mint { background: var(--tint-success); border-color: #d6f5e7; }
.t-peach, .t-lemon { background: var(--tint-warning); border-color: #fbeccb; }
.t-sky { background: var(--tint-neutral); border-color: var(--border); }
.art { align-self: end; margin-top: 18px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } .card { padding: 26px 22px 0; } }

/* Scenes inside cards */
.sc { background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: 16px 16px 0 0; padding: 18px; font-size: 13px; box-shadow: 0 -10px 30px -18px rgba(24,24,27,.18); min-height: 168px; }
.sc-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; padding: 5px 0; }
.sc-h { color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-bar { border-radius: 8px; padding: 6px 10px; font-weight: 600; border-left: 3px solid; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-bar.b0 { background: var(--success-soft); border-color: var(--success); width: 70%; }
.sc-bar.b1 { background: var(--warning-soft); border-color: var(--warning); width: 85%; margin-left: 10%; }
.sc-bar.b2 { background: var(--accent-soft); border-color: var(--accent); width: 60%; margin-left: 25%; }
.sc-bar.b3 { background: var(--surface-muted); border-color: #a1a1aa; width: 55%; }
.sc-est { display: grid; gap: 8px; }
.sc-opt { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.sc-opt b { font-variant-numeric: tabular-nums; }
.sc-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.sc-opt i { color: var(--accent); }
.sc-sign { justify-self: end; font-family: 'Brush Script MT', cursive; font-size: 20px; color: var(--success); transform: rotate(-4deg); }
.sc-inv { position: relative; display: grid; gap: 8px; }
.sc-inv-h { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.sc-line, .sc-total { display: grid; grid-template-columns: 1fr 44px 70px; gap: 8px; text-align: right; }
.sc-line span:first-child, .sc-total span { text-align: left; }
.sc-line span:nth-child(2) { color: var(--muted); }
.sc-total { border-top: 1px solid var(--border); padding-top: 8px; font-weight: 700; grid-template-columns: 1fr 70px; }
.sc-paid { position: absolute; right: 12px; top: 26px; color: var(--success); border: 2px solid var(--success); border-radius: 8px; padding: 2px 8px; font-weight: 700; font-size: 12px; transform: rotate(8deg); }
.sc-stock { display: grid; gap: 12px; }
.sc-st, .sc-lv { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; }
.sc-st b, .sc-lv b { text-align: right; font-variant-numeric: tabular-nums; }
.sc-meter { height: 8px; border-radius: 8px; background: var(--surface-muted); overflow: hidden; }
.sc-meter i { display: block; height: 100%; background: var(--accent); border-radius: 8px; }
.sc-chip { justify-self: start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.sc-chip.warn { background: var(--warning-soft); color: var(--warning); }
.sc-chip.ok { background: var(--success-soft); color: var(--success); }
.sc-phone { display: grid; place-items: center; padding-bottom: 0; }
.sc-ph { width: 190px; border: 6px solid var(--foreground); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 14px 12px; display: grid; gap: 10px; }
.sc-ph-top { font-weight: 700; font-family: var(--display); }
.sc-ph-job { display: grid; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.sc-ph-job small { color: var(--muted); }
.sc-ph-btn { background: var(--accent); color: #fff; text-align: center; font-weight: 600; border-radius: 10px; padding: 9px; }
.sc-ph-row { display: flex; justify-content: space-around; color: var(--muted); }
.sc-time { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.sc-qr { display: grid; grid-template-columns: repeat(5, 16px); gap: 3px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.sc-qr i { width: 16px; height: 16px; border-radius: 3px; background: var(--surface-muted); }
.sc-qr i.on { background: var(--foreground); }
.sc-time-r { display: grid; gap: 8px; }
.sc-time-r div { display: flex; justify-content: space-between; }
.sc-time-r span { color: var(--muted); }
.sc-time-r .ok { justify-content: flex-start; color: var(--success); font-weight: 600; }
.sc-leave { display: grid; gap: 12px; }
.sc-lv { grid-template-columns: 1fr auto; row-gap: 6px; }
.sc-lv .sc-meter { grid-column: 1 / -1; }
.sc-lv .sc-meter i { background: var(--success); }
.sc-dash { display: grid; gap: 14px; }
.sc-bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; height: 90px; }
.sc-bars i { background: #c7d2fe; border-radius: 6px 6px 0 0; }
.sc-bars i.now { background: var(--accent); }
.sc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-pills span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-muted); }
.sc-pills b { font-variant-numeric: tabular-nums; }
.sc-pills .p1 { background: var(--accent-soft); color: var(--accent); }
.sc-pills .p2, .sc-pills .p3 { background: var(--warning-soft); color: var(--warning); }

.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: grid; gap: 8px; align-content: start; }
.mini p { color: var(--muted); font-size: 15px; }
@media (max-width: 980px) { .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .minis { grid-template-columns: 1fr; } }

/* AI */
.ai { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; background: #1e1b4b; color: #fff; border-radius: 28px; padding: 64px 56px; position: relative; overflow: hidden; }
.ai::after { content: ''; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; background: radial-gradient(circle, rgba(129,140,248,.45), transparent 65%); pointer-events: none; }
.ai .sub { color: #c7d2fe; }
.eyebrow.light { color: #a5b4fc; }
.ai-items { display: grid; gap: 14px; position: relative; z-index: 1; }
.ai-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px; display: grid; gap: 6px; }
.ai-item .num { color: #a5b4fc; }
.ai-item p { color: #c7d2fe; font-size: 15px; }
@media (max-width: 900px) { .ai { grid-template-columns: 1fr; padding: 40px 24px; gap: 28px; } }

/* Trades */
.tags { list-style: none; padding: 0; margin: 36px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.tags li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-weight: 500; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.compare .col { border-radius: 24px; padding: 32px; }
.compare ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.compare li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.compare li svg { margin-top: 4px; }
.old { background: var(--surface-muted); color: #52525b; }
.old svg { color: var(--danger); }
.new { background: var(--accent); color: #fff; }
.new svg { color: #c7d2fe; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* Apps */
.apps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.app-list { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 14px 22px; }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.app-row:last-child { border-bottom: 0; }
.sw { width: 38px; height: 22px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.sw::after { content: ''; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.soon-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.app-row.soon { color: var(--muted); }
.app-row em { font-style: normal; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; gap: 28px; } }

/* Security */
.sec3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .sec3 { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq .btn { margin-top: 24px; }
.qa { display: grid; gap: 10px; }
.qa details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.qa summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .15s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { color: var(--muted); padding-bottom: 18px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* Final */
.final { background: var(--accent); color: #fff; border-radius: 28px; padding: 72px 32px; text-align: center; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%); }
.final h2 { margin-inline: auto; position: relative; }
.final .sub { color: #e0e7ff; margin-inline: auto; position: relative; }
.final .cta { justify-content: center; position: relative; }
.final .btn.primary { background: #fff; color: var(--accent); box-shadow: none; }
.final .btn.primary:hover { background: #eef2ff; }

/* Footer */
.foot { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 0 28px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); margin: 12px 0 16px; max-width: 36ch; }
.foot h4 { font-size: 14px; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.foot a:hover { color: var(--foreground); }
.foot-b { color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Product menu in the top bar */
.links { align-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { color: var(--foreground); }
.menu[open] summary svg { transform: rotate(180deg); }
.menu-pop { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 10px; box-shadow: 0 24px 48px -20px rgba(24,24,27,.25); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu-grid a { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; }
.menu-grid a:hover { background: var(--surface-muted); }
.menu-grid b { display: block; font-size: 14px; font-weight: 600; color: var(--foreground); }
.menu-grid small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.35; }
.menu-grid a { grid-template-columns: 36px 1fr; gap: 12px; }
.mdot { width: 36px; height: 36px; border-radius: 10px; border: 1px solid; display: grid; place-items: center; }
.mdot.t-violet, .mdot.t-lilac { color: var(--accent); }
.mdot.t-mint { color: var(--success); }
.mdot.t-peach, .mdot.t-lemon { color: var(--warning); }
.mdot.t-sky { color: #3f3f46; }
.menu-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 10px; border-top: 1px solid var(--border); font-size: 14px; color: var(--accent); font-weight: 600; }

/* "Learn more" on cards */
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.card .more { justify-self: start; }
.card .more:hover { text-decoration: underline; }

/* Product pages */
.p-hero { padding: 56px 0 0; }
.p-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.p-hero h1 { font-size: clamp(36px, 4.6vw, 54px); }
.crumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--accent); font-weight: 600; }
.p-art { border-radius: 28px; padding: 48px 40px 0; border: 1px solid; }
.p-art .sc { font-size: 14px; min-height: 220px; }
.p-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.p-points .dot { margin-bottom: 6px; }
.p-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.p-rel.all { margin-top: 44px; }
.p-card { border-radius: 22px; padding: 26px; display: grid; gap: 10px; align-content: start; border: 1px solid; transition: transform .15s; }
.p-card:hover { transform: translateY(-2px); }
.p-card p { color: #52525b; font-size: 15px; }
.p-card .more { margin-top: 4px; }
@media (max-width: 980px) { .p-points, .p-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .p-hero-in { grid-template-columns: 1fr; gap: 36px; } .p-hero { padding-top: 36px; } .p-art { padding: 32px 20px 0; } }
@media (max-width: 600px) { .p-points, .p-rel { grid-template-columns: 1fr; } }

/* Scenes for the product pages */
.sc-cust { display: grid; gap: 10px; }
.sc-cu-h { display: flex; gap: 12px; align-items: center; }
.sc-cu-h small { display: block; color: var(--muted); }
.sc-av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.sc-eq { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.sc-eq small { color: var(--muted); font-size: 13px; }
.sc-pb { display: grid; gap: 4px; }
.sc-pb-r { display: grid; grid-template-columns: 1fr 56px 44px 70px; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.sc-pb-r b { text-align: right; font-variant-numeric: tabular-nums; }
.sc-pb-r.h { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.sc-pb-r.h span:last-child { text-align: right; }
.sc-pb .sc-chip { margin-top: 8px; }
.sc-form { display: grid; gap: 8px; }
.sc-ck { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.sc-ck i { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #a1a1aa; display: grid; place-items: center; }
.sc-ck.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.sc-ck i svg { width: 14px; height: 14px; }
.sc-ck em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--success); background: var(--success-soft); border-radius: 999px; padding: 2px 8px; }
.sc-ai { display: grid; gap: 10px; }
.sc-wave { display: flex; align-items: center; gap: 3px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--accent-soft); }
.sc-wave i { flex: 1; background: var(--accent); border-radius: 2px; max-width: 6px; }
.sc-wave span { margin-left: auto; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-sug { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 9px 10px; }
.sc-sug em { font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 8px; padding: 4px 10px; }

/* The service cycle on the home page */
.cycle { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: c; }
.cycle li { position: relative; }
.cycle li:not(:last-child)::after { content: ''; position: absolute; top: 38px; right: -12px; width: 12px; height: 2px; background: #c7d2fe; }
.cycle a { display: grid; gap: 8px; align-content: start; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 18px; transition: border-color .15s, transform .15s; }
.cycle a:hover { border-color: #c7d2fe; transform: translateY(-2px); }
.cy-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cy-n { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cycle h3 { font-size: 17px; }
.cycle p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.backoffice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--surface-muted); }
.backoffice > span { font-size: 14px; font-weight: 600; margin-right: 6px; }
.backoffice a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.backoffice a svg { color: var(--accent); }
.backoffice a:hover { border-color: #c7d2fe; }
.balance { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.bal { border-radius: 22px; padding: 26px 28px; border: 1px solid; }
.bal.b-need { background: var(--tint-success); border-color: #d6f5e7; }
.bal.b-extra { background: var(--tint-accent); border-color: #e0e4ff; }
.bal ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.bal li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.bal.b-need li svg { color: var(--success); flex: none; }
.bal.b-extra li svg { color: var(--accent); flex: none; }
@media (max-width: 1080px) { .cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cycle li:nth-child(3)::after { display: none; } }
@media (max-width: 640px) { .cycle { grid-template-columns: 1fr; } .cycle li::after { display: none; } .balance { grid-template-columns: 1fr; } }

/* Phone menu: the burger button shows when the top-bar links are hidden */
.mnav { display: none; }
.mnav summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav .i-close, .mnav[open] .i-open { display: none; }
.mnav[open] .i-close { display: block; }
.mnav-pop { position: fixed; left: 0; right: 0; top: 68px; height: calc(100vh - 68px); height: calc(100dvh - 68px); overflow-y: auto; background: var(--background); border-top: 1px solid var(--border); padding: 20px 16px 32px; display: grid; gap: 16px; align-content: start; }
.mnav-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mnav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mnav-grid a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.mnav-grid a:hover { background: var(--surface-muted); }
.mnav-grid .mdot { flex: none; }
.mnav-all { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; }
.mnav-links { display: grid; border-top: 1px solid var(--border); }
.mnav-links a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 500; }
.mnav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 860px) { .mnav { display: block; } }
@media (max-width: 520px) { .top-r .lang { display: none; } .mnav-grid { grid-template-columns: 1fr; } }
body:has(.mnav[open]) { overflow: hidden; }
@media (max-width: 400px) {
  .top-in { gap: 10px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .top-r { gap: 6px; }
  .top-r > .btn.primary { padding: 0 10px; font-size: 13px; }
  .mnav summary { width: 38px; height: 38px; }
  .sc-pb-r { grid-template-columns: minmax(0, 1fr) 40px 34px 56px; gap: 6px; font-size: 12px; }
  .sc-pb-r span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .p-art .sc { font-size: 13px; }
}
