:root {
  --navy: #021d49; --navy-2: #323e66; --orange: #fe5f00; --teal: #9ec4c8;
  --bg: #f3f5f9; --surface: #fff; --surface-2: #eaecf3; --text: #1b2238; --muted: #6b7280; --border: #dde2ec;
  --primary: var(--navy); --accent: var(--orange); --accent-fill: color-mix(in srgb, var(--orange) 12%, transparent);
  --success: #1f9d55; --warning: #d98a00; --danger: #d64545; --info: #2563eb;
  --success-soft: color-mix(in srgb, var(--success) 14%, transparent); --warning-soft: color-mix(in srgb, var(--warning) 16%, transparent);
  --danger-soft: color-mix(in srgb, var(--danger) 14%, transparent); --info-soft: color-mix(in srgb, var(--info) 14%, transparent);
  --radius: 14px; --shadow-sm: 0 1px 2px rgb(2 29 73 / .06); --shadow-md: 0 8px 24px rgb(2 29 73 / .08);
  --sidebar: 248px;
}
[data-theme=dark] {
  --bg: #0b1226; --surface: #121b33; --surface-2: #1a2543; --text: #e6eaf4; --muted: #96a0b8; --border: #26324f;
  --primary: #9ec4c8; --shadow-md: 0 8px 24px rgb(0 0 0 / .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Vazirmatn, Tahoma, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.3; }
h1 { font-size: 1.4rem; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; }
.muted { color: var(--muted); } small, .small { font-size: 12px; }

/* Layout */
.layout { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #dfe6f5; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1rem .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; padding: .25rem .5rem 1rem; color: #fff; }
.brand i { color: var(--orange); font-size: 1.5rem; }
.nav-group { font-size: 12px; color: #8fa0c4; margin: 1rem .6rem .25rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 10px; color: #cdd6ea; }
.nav a:hover { background: rgb(255 255 255 / .06); }
.nav a.active { background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset -3px 0 0 var(--orange); }
.nav a i { font-size: 1.05rem; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.topbar .grow { flex: 1; }
.content { padding: 1.25rem; max-width: 1400px; margin: 0 auto; }
.menu-btn { display: none; }

/* Components */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem; }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cols-2 { grid-template-columns: 2fr 1fr; }
.kpi { container-type: inline-size; display: flex; flex-direction: column; gap: .25rem; }
.kpi .label { color: var(--muted); font-size: 13px; display: flex; gap: .4rem; align-items: center; }
.kpi .value { font-size: clamp(1.1rem, 14cqi, 1.9rem); font-weight: 800; white-space: nowrap; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.kpi .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-fill); color: var(--accent); }
.page-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; flex: 1; }
.btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border); background: var(--surface); padding: .45rem .9rem; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }
.btn.primary:hover { background: color-mix(in srgb, var(--orange) 88%, #000); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.sm { padding: .2rem .55rem; font-size: 12px; }
.btn.icon { padding: .4rem .55rem; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: .5rem .7rem; }
.input:focus { outline: 2px solid color-mix(in srgb, var(--orange) 40%, transparent); border-color: var(--orange); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1rem; }
.form label { display: flex; flex-direction: column; gap: .25rem; font-size: 13px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.toolbar .input { width: auto; min-width: 160px; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 99px; font-size: 12px; background: var(--surface-2); white-space: nowrap; }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warning { background: var(--warning-soft); color: var(--warning); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-fill); color: var(--accent); }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: .6rem 1rem; cursor: pointer; border-bottom: 2px solid transparent; color: var(--muted); white-space: nowrap; }
.tabs button.active { color: var(--text); border-color: var(--orange); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Tables -> cards on mobile */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: right; padding: .6rem .7rem; border-bottom: 1px solid var(--border); }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface-2); }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgb(2 29 73 / .45); display: grid; place-items: center; z-index: 50; padding: 1rem; }
.modal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md); width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 1.25rem; }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-start; margin-top: 1rem; }
#toasts { position: fixed; bottom: 1rem; left: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 60; }
.toast { background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 10px; box-shadow: var(--shadow-md); display: flex; gap: .5rem; align-items: center; }
.toast.error { background: var(--danger); }

/* Notifications bell */
.bell { position: relative; }
.bell .count { position: absolute; top: -4px; left: -4px; background: var(--orange); color: #fff; border-radius: 99px; font-size: 11px; min-width: 18px; text-align: center; padding: 0 4px; }
.notif-item { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.notif-item.unread .title { font-weight: 700; }
.notif-item i { color: var(--accent); font-size: 1.2rem; }

/* Bar chart */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: .5rem; }
.bars div { flex: 1; background: color-mix(in srgb, var(--teal) 70%, var(--navy)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars div:hover { background: var(--orange); }
.compare { display: grid; grid-template-columns: auto 1fr auto; gap: .35rem .75rem; align-items: center; font-size: 13px; }
.compare .track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.compare .track span { display: block; height: 100%; background: var(--orange); }
.compare .track.prev span { background: var(--teal); }

/* Schedule */
.sched { display: grid; border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; background: var(--surface); }
.sched .hdr { position: sticky; top: 0; background: var(--surface-2); padding: .5rem; font-weight: 600; text-align: center; border-bottom: 1px solid var(--border); z-index: 1; }
.sched .time { font-size: 12px; color: var(--muted); padding: 0 .5rem; border-top: 1px dashed var(--border); height: 48px; }
.sched .col { position: relative; border-right: 1px solid var(--border); }
.sched .cell { height: 48px; border-top: 1px dashed var(--border); cursor: pointer; }
.sched .cell:hover { background: var(--accent-fill); }
.appt { position: absolute; inset-inline: 4px; border-radius: 8px; padding: .25rem .5rem; font-size: 12px; overflow: hidden; color: #fff; cursor: pointer; box-shadow: var(--shadow-sm); }
.appt.pending { outline: 2px dashed #fff; opacity: .85; }
.appt.cancelled, .appt.no_show { opacity: .4; text-decoration: line-through; }

/* Dental chart */
.teeth { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; direction: ltr; }
.tooth { aspect-ratio: 3/4; border: 1px solid var(--border); border-radius: 8px 8px 12px 12px; display: grid; place-items: center; font-size: 12px; cursor: pointer; background: var(--surface); }
.tooth:hover { border-color: var(--orange); }
.tooth.has-t { background: color-mix(in srgb, var(--teal) 45%, var(--surface)); }
.tooth.has-d { box-shadow: inset 0 -4px 0 var(--warning); }
.tooth.sel { outline: 2px solid var(--orange); }
.jaw-sep { grid-column: 1 / -1; height: 1px; background: var(--border); margin: .25rem 0; }

/* Auth & public */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.auth-card { width: min(420px, 100%); }
.public { max-width: 820px; margin: 0 auto; padding: 1.5rem 1rem; }
.public-hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.public-hero h1 { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--border); background: var(--surface); padding: .45rem .9rem; border-radius: 99px; cursor: pointer; }
.chip.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.steps { display: flex; gap: .5rem; margin-bottom: 1rem; }
.steps span { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-2); }
.steps span.on { background: var(--orange); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar); transform: translateX(100%); transition: transform .2s; z-index: 40; }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .cols-2 { grid-template-columns: 1fr; }
  .content { padding: .75rem; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: block; border: 1px solid var(--border); border-radius: 12px; margin-bottom: .6rem; padding: .3rem .5rem; background: var(--surface); }
  .tbl.stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .3rem .2rem; }
  .tbl.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  .teeth { grid-template-columns: repeat(8, 1fr); }
}
@media print { .sidebar, .topbar, .no-print { display: none !important; } .layout { display: block; } }

/* ===== Public landing page (Curve-style) ===== */
/* The landing page is always light/white, independent of the staff panel theme. */
.lp { --ink: #021d49; --body: #4b5563; --soft: #7a8593; --line: #e3e7ef; --teal-ink: #2b8a9c; --bg: #fff; --surface: #fff; --surface-2: #eaecf3; --text: #1b2238; --muted: #6b7280; --border: #e3e7ef;
  background: #fff; color: var(--ink); font-size: 15px; min-height: 100vh; color-scheme: light; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.25rem; }
.lp-top { border-top: 4px solid var(--teal); }
.lp-top .lp-wrap { justify-content: space-between; height: 72px; }
.lp-logo { display: flex; align-items: center; gap: .5rem; font-weight: 900; font-size: 1.35rem; color: var(--ink); }
.lp-logo i { color: var(--orange); font-size: 1.8rem; }
.lp-logo.light { color: #fff; }
.lp-phone { font-size: clamp(1.1rem, 2.6vw, 1.9rem); font-weight: 900; color: #313131; letter-spacing: .02em; }
.lp-nav { background: #313131; color: #fff; position: sticky; top: 0; z-index: 20; }
.lp-nav .lp-wrap { height: 44px; }
.lp-links { display: flex; gap: 2.2rem; font-size: 13px; }
.lp-links a:hover { color: var(--orange); }
.lp-nav .grow { flex: 1; }
.lp-burger { display: none; background: none; border: 0; color: #fff; font-size: 1.4rem; }
.lp-pill { background: linear-gradient(90deg, #7a3a24, #4b3a5e); border-radius: 99px; padding: .2rem .9rem; font-size: 13px; display: inline-flex; gap: .4rem; align-items: center; }
.lp-pill i { color: #ffb38a; }
.lp-cta { background: var(--orange); color: #fff !important; font-weight: 800; padding: .25rem 1.5rem; border-radius: 99px; font-size: 14px; white-space: nowrap; }
.lp-cta:hover { background: color-mix(in srgb, var(--orange) 88%, #000); }

.lp-hero { background: radial-gradient(600px 300px at 100% 0, color-mix(in srgb, var(--orange) 7%, transparent), transparent 70%); padding: 3rem 0 0; }
.lp-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.lp-eyebrow { display: flex; align-items: center; gap: .5rem; font-size: 12px; letter-spacing: .12em; font-weight: 600; color: var(--ink); margin-bottom: 1.25rem; }
.lp-eyebrow.orange { color: var(--orange); } .lp-eyebrow.teal { color: var(--teal-ink); } .lp-eyebrow.light { color: #c8d3ea; }
.lp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.lp-h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 900; line-height: 1.25; color: var(--ink); margin: 0 0 1.25rem; letter-spacing: -.01em; }
.lp-h1 .accent { color: var(--orange); }
.lp-h2 { font-size: clamp(1.7rem, 3.8vw, 2.8rem); font-weight: 900; line-height: 1.3; color: var(--ink); margin: 0; }
.lp-h3 { font-size: 1.5rem; font-weight: 900; margin: 4rem 0 1rem; }
.lp-lead { color: var(--body); max-width: 440px; margin: 0 0 1.1rem; line-height: 1.9; }
.lp-actions { display: flex; gap: 1.5rem; align-items: center; margin-top: 1.75rem; flex-wrap: wrap; }
.lp-btn { background: var(--navy); color: #fff; padding: .7rem 1.3rem; border-radius: 6px; display: inline-flex; gap: .6rem; align-items: center; font-size: 14px; }
.lp-btn:hover { background: var(--navy-2); }
.lp-link { color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; display: inline-flex; gap: .4rem; align-items: center; font-size: 14px; }
.lp-link.sm { font-size: 13px; color: var(--orange); border: 0; margin-top: .5rem; }
.lp-muted { color: var(--soft); }

.lp-visual { position: relative; padding: 1rem 1rem 1rem 0; }
.lp-visual::after { content: ''; position: absolute; inset: 2rem 2rem 0 -0.75rem; border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent); border-radius: 24px 110px 24px 24px; z-index: 0; }
.lp-frame { position: relative; z-index: 1; aspect-ratio: 6/5; border-radius: 20px 110px 20px 20px; overflow: hidden; box-shadow: 0 30px 60px rgb(2 29 73 / .18);
  background: radial-gradient(120% 90% at 0 100%, #3b6f86 0, transparent 55%), linear-gradient(160deg, #9ec4c8 0%, #4c7e98 38%, #021d49 100%); display: grid; place-items: center; }
.lp-bg-icon { position: absolute; font-size: 22rem; color: rgb(255 255 255 / .06); left: -4rem; bottom: -6rem; pointer-events: none; }
.lp-mock { width: 76%; background: rgb(255 255 255 / .96); border-radius: 18px; padding: 1.1rem; box-shadow: 0 20px 40px rgb(2 29 73 / .3); color: #021d49; position: relative; z-index: 1; }
.lp-mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.lp-live { font-size: 12px; color: #1f9d55; display: flex; align-items: center; gap: .35rem; }
.lp-live span { width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 4px rgb(31 157 85 / .2); animation: lpPulse 1.6s infinite; }
@keyframes lpPulse { 50% { box-shadow: 0 0 0 7px rgb(31 157 85 / 0); } }
.lp-mock-row { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid #eaecf3; }
.lp-mock-row small { display: block; color: #7a8593; font-size: 12px; }
.lp-time { font-weight: 700; color: var(--orange); font-size: 13px; }
.lp-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; background: #c8d0e0; flex: none; }
.lp-mock-bar { height: 6px; background: #eaecf3; border-radius: 99px; margin-top: .6rem; overflow: hidden; }
.lp-mock-bar span { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.lp-mock-cap { color: #7a8593; font-size: 12px; }
.lp-float { position: absolute; z-index: 2; bottom: 9%; right: 6%; background: #021d49; color: #fff; border-radius: 14px; padding: .6rem .9rem; display: flex; gap: .6rem; align-items: center; box-shadow: 0 12px 30px rgb(0 0 0 / .3); font-size: 13px; }
.lp-float i { color: var(--orange); font-size: 1.4rem; }
.lp-float small { display: block; color: #9fb0d0; font-size: 12px; }

.lp-strip { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-top: 1px solid var(--line); margin-top: 3rem; }
.lp-strip-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.25rem 1.5rem; border-inline-start: 1px solid var(--line); }
.lp-strip-item:first-child { border-inline-start: 0; }
.lp-strip-item small { display: block; font-size: 12px; letter-spacing: .08em; color: var(--soft); }
.lp-strip-item span { font-size: 1.05rem; color: var(--ink); }
.lp-circle { width: 38px; height: 38px; flex: none; border: 1px solid #b9c3d3; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--surface); transition: .2s; }
a:hover > .lp-circle { background: var(--orange); border-color: var(--orange); color: #fff; }

.lp-sec { padding: 5rem 0; }
.lp-sec > .lp-wrap { display: block; }
.lp-tint { background: #fff; border-top: 1px solid var(--line); }
.lp-sec-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.lp-side { color: var(--soft); font-size: 1.05rem; line-height: 1.9; margin: 0; }

.lp-steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); margin: .5rem 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.lp-step { background: none; border: 0; text-align: right; padding: 0 0 0 1rem; cursor: pointer; color: var(--soft); position: relative; }
.lp-node { display: block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); margin: -7px 0 1rem; }
.lp-step small { display: block; font-size: 12px; letter-spacing: .1em; }
.lp-step b { display: block; font-size: 1.15rem; font-weight: 500; color: var(--soft); margin: .2rem 0; }
.lp-step span:last-child { font-size: 12px; }
.lp-step.on .lp-node { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 25%, transparent); }
.lp-step.on b { color: var(--ink); }
.lp-feature { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; background: var(--navy); color: #fff; box-shadow: 0 30px 60px rgb(2 29 73 / .2); min-height: 420px; }
.lp-feature-visual { position: relative; background: radial-gradient(90% 80% at 30% 30%, #4c7e98, #0b2a55 60%, #061634); display: grid; place-items: center; }
.lp-feature-visual > i { font-size: 9rem; color: rgb(255 255 255 / .85); filter: drop-shadow(0 20px 30px rgb(0 0 0 / .35)); }
.lp-flow { position: absolute; inset: auto 0 0 0; padding: 1rem 1.25rem; background: rgb(2 29 73 / .75); backdrop-filter: blur(6px); border-top: 1px solid rgb(255 255 255 / .08); }
.lp-flow small { color: #6fc3d1; letter-spacing: .12em; font-size: 12px; }
.lp-flow div { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: .4rem; font-size: 13px; }
.lp-flow span::before, .lp-bullets span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-inline-end: .5rem; vertical-align: middle; }
.lp-feature-text { padding: 2.5rem; position: relative; display: flex; flex-direction: column; justify-content: center; }
.lp-count { position: absolute; top: 1.5rem; left: 1.75rem; font-size: 12px; letter-spacing: .15em; color: #c8d3ea; }
.lp-feature-text h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.35; margin: 0 0 1rem; color: #fff; }
.lp-feature-text p { color: #c8d3ea; line-height: 1.9; margin: 0; }
.lp-feature-text hr { border: 0; border-top: 1px solid rgb(255 255 255 / .12); margin: 1.5rem 0 1rem; width: 100%; }
.lp-bullets { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: 13px; color: var(--ink); }
.lp-bullets.light { color: #e6ecf8; }

.lp-rows { background: var(--surface); border: 1px solid #cfe0e4; border-radius: 26px; overflow: hidden; box-shadow: 0 20px 50px rgb(2 29 73 / .06); }
.lp-row { display: grid; grid-template-columns: 70px 120px 1.1fr 1.5fr auto; gap: 1.5rem; align-items: center; padding: 1.75rem 2rem; border-top: 1px solid var(--line); }
.lp-row:first-child { border-top: 0; }
.lp-row:nth-child(even) { background: color-mix(in srgb, var(--teal) 7%, var(--surface)); }
.lp-num { color: var(--orange); font-size: 1.7rem; font-weight: 900; }
.lp-tag { color: var(--teal-ink); font-size: 13px; letter-spacing: .1em; }
.lp-row h3 { font-size: 1.25rem; font-weight: 900; margin: 0; line-height: 1.5; }
.lp-row-body p { color: var(--soft); margin: 0 0 .5rem; line-height: 1.8; }


.lp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lp-quote { margin: 0; background: #e9ecf3; border: 1px solid #d5dbe8; border-radius: 18px; padding: 1.75rem; display: flex; flex-direction: column; color: #021d49; }
.lp-quote.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.lp-quote > i { color: #3a9db0; font-size: 2rem; line-height: 1; }
.lp-quote blockquote { margin: 1rem 0 1.5rem; line-height: 1.95; flex: 1; font-size: 15px; }
.lp-quote figcaption { display: flex; gap: .75rem; align-items: center; border-top: 1px solid rgb(127 140 170 / .3); padding-top: 1rem; }
.lp-quote figcaption small { display: block; opacity: .7; font-size: 12px; }
.lp-quote.dark .lp-av { background: #23396a; }
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.lp-stats b { font-size: 2.2rem; font-weight: 400; color: var(--ink); }
.lp-stats small { color: var(--soft); font-size: 12px; }
.lp-stats span { display: block; color: var(--soft); font-size: 13px; margin-top: .25rem; }

.lp-foot { background: var(--navy); color: #c8d3ea; padding: 3rem 0; }
.lp-foot-grid { display: grid !important; grid-template-columns: 2fr 1fr auto; align-items: center; }
.lp-foot small { display: block; color: #8fa0c4; }
.lp-foot a[dir] { color: #fff; font-size: 1.3rem; font-weight: 800; }

@media (max-width: 900px) {
  .lp-links { display: none; position: absolute; top: 44px; inset-inline: 0; background: #313131; flex-direction: column; gap: 0; padding: .5rem 1.5rem 1rem; }
  .lp-links.open { display: flex; } .lp-links a { padding: .6rem 0; }
  .lp-burger { display: block; }
  .lp-pill { display: none; }
  .lp-hero-grid, .lp-sec-head, .lp-feature, .lp-quotes, .lp-foot-grid { grid-template-columns: 1fr; }
  .lp-hero-grid { gap: 2rem; } .lp-visual { padding: 0; } .lp-visual::after { display: none; }
  .lp-strip { grid-template-columns: 1fr; } .lp-strip-item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .lp-steps { grid-template-columns: repeat(5, minmax(110px, 1fr)); overflow-x: auto; }
  .lp-feature-visual { min-height: 240px; } .lp-feature-text { padding: 2rem 1.5rem; }
  .lp-row { grid-template-columns: auto 1fr auto; padding: 1.25rem; gap: .5rem 1rem; }
  .lp-row .lp-tag { grid-column: 2; } .lp-row h3, .lp-row-body { grid-column: 1 / -1; } .lp-row .lp-circle { grid-row: 1; grid-column: 3; }
  .lp-stats { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .lp-sec { padding: 3.5rem 0; } .lp-wrap { padding: 0 1rem; }
  .lp-top .lp-wrap { height: 60px; } .lp-logo { font-size: 1.1rem; }
}

/* Landing: product features, modules, hardware, booking band, demo form */
.lp-logo small { font-size: 12px; font-weight: 500; color: var(--soft); border-inline-start: 1px solid var(--line); padding-inline-start: .6rem; }
.lp-phone.big { display: inline-block; margin-top: 1.5rem; font-size: 1.8rem; }
.lp-soon { display: inline-flex; align-items: center; gap: .25rem; font-size: 11px; font-weight: 600; color: var(--orange); background: var(--accent-fill); border-radius: 99px; padding: 0 .55rem; margin-inline-start: .45rem; vertical-align: middle; white-space: nowrap; line-height: 1.8; }
.lp-sec-tight { padding: 2rem 0; }

.lp-explorer { display: grid; grid-template-columns: 290px 1fr; gap: 1.25rem; align-items: stretch; }
.lp-tabs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); align-self: start; }
.lp-tab { display: grid; grid-template-columns: 2rem auto 1fr; gap: .7rem; align-items: center; background: none; border: 0; border-top: 1px solid var(--line); padding: 1rem 1.25rem; text-align: right; cursor: pointer; color: var(--soft); font: inherit; font-size: 15px; transition: background .15s; }
.lp-tab:first-child { border-top: 0; }
.lp-tab-num { font-size: 12px; letter-spacing: .1em; }
.lp-tab i { font-size: 1.15rem; }
.lp-tab:hover { background: color-mix(in srgb, var(--teal) 12%, var(--surface)); }
.lp-tab.on { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--orange) 6%, var(--surface)); box-shadow: inset -3px 0 0 var(--orange); }
.lp-tab.on i, .lp-tab.on .lp-tab-num { color: var(--orange); }
.lp-panel { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px rgb(2 29 73 / .08); padding: 2.25rem; }
.lp-panel-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.lp-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-fill); color: var(--orange); font-size: 1.6rem; flex: none; }
.lp-panel h3 { font-size: 1.6rem; font-weight: 900; margin: 0; color: var(--ink); }
.lp-panel > p { color: var(--soft); line-height: 1.9; margin: 0 0 1.5rem; max-width: 640px; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.75rem; }
.lp-checks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--body); line-height: 1.8; font-size: 14px; }
.lp-checks li > i { color: var(--orange); font-size: 1rem; margin-top: .2rem; flex: none; }
.lp-checks.compact { grid-template-columns: 1fr; gap: .3rem; }
.lp-checks.compact li { font-size: 13px; color: var(--ink); }

.lp-mod { cursor: pointer; align-items: start; }
.lp-mod > .lp-num, .lp-mod > .lp-tag, .lp-mod > h3 { padding-top: .15rem; }
.lp-mod .lp-tag { display: flex; gap: .35rem; align-items: center; }
.lp-mod:not(.open) .lp-checks li:nth-child(n+4) { display: none; }
.lp-more { display: block; font-size: 12px; color: var(--teal-ink); margin-top: .4rem; }
.lp-mod.open .lp-more { display: none; }
button.lp-circle { cursor: pointer; font: inherit; padding: 0; }
.lp-circle i { transition: transform .2s; }
.lp-mod:hover .lp-circle, .lp-mod.open .lp-circle { background: var(--orange); border-color: var(--orange); color: #fff; }
.lp-mod.open .lp-circle i { transform: rotate(45deg); }

.lp-hw { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lp-hw-card { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--navy); color: #fff; border-radius: 22px; padding: 2rem; box-shadow: 0 20px 50px rgb(2 29 73 / .15); }
.lp-hw-card > i { font-size: 2.4rem; color: var(--orange); line-height: 1; }
.lp-hw-card small { color: #6fc3d1; letter-spacing: .12em; font-size: 12px; }
.lp-hw-card h3 { color: #fff; font-size: 1.3rem; font-weight: 900; margin: .25rem 0 .5rem; }
.lp-hw-card p { color: #c8d3ea; margin: 0; line-height: 1.9; }

.lp-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; background: linear-gradient(135deg, var(--navy) 0%, #0b3a6b 100%); color: #fff; border-radius: 26px; padding: 3rem; box-shadow: 0 30px 60px rgb(2 29 73 / .2); }
.lp-band .lp-h2 { color: #fff; margin-bottom: 1rem; }
.lp-band p { color: #c8d3ea; line-height: 1.95; margin: 0 0 1rem; }
.lp-btn.light { background: var(--orange); }
.lp-btn.light:hover { background: color-mix(in srgb, var(--orange) 88%, #000); }
.lp-notifs { display: grid; gap: .7rem; }
.lp-notif { display: flex; gap: .8rem; align-items: center; background: rgb(255 255 255 / .96); color: #021d49; border-radius: 16px; padding: .8rem 1rem; box-shadow: 0 12px 30px rgb(0 0 0 / .2); }
.lp-notif:nth-child(even) { margin-inline-start: 2rem; }
.lp-notif i { color: var(--orange); font-size: 1.4rem; }
.lp-notif small { display: block; color: #7a8593; font-size: 12px; }

.lp-contact { display: grid !important; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.lp-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.75rem; box-shadow: 0 30px 60px rgb(2 29 73 / .08); display: grid; gap: .9rem; }
.lp-form label { display: flex; flex-direction: column; gap: .3rem; font-size: 13px; color: var(--soft); }
.lp-form input, .lp-form textarea { border: 1px solid var(--line); border-radius: 10px; padding: .65rem .8rem; background: var(--surface); color: var(--ink); font: inherit; }
.lp-form input:focus, .lp-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--orange) 35%, transparent); border-color: var(--orange); }
.lp-form .lp-btn { justify-content: center; border: 0; cursor: pointer; font: inherit; padding: .8rem; }
.lp-done { text-align: center; place-items: center; padding: 3rem 1.5rem; }
.lp-done > i { font-size: 3rem; color: var(--success); }
.lp-done h3 { margin: 0; font-size: 1.3rem; }
.lp-done p { color: var(--soft); margin: 0; }

@media (max-width: 900px) {
  .lp-explorer, .lp-hw, .lp-band, .lp-contact { grid-template-columns: 1fr; }
  .lp-tabs { flex-direction: row; overflow-x: auto; border-radius: 14px; }
  .lp-tab { border-top: 0; border-inline-start: 1px solid var(--line); white-space: nowrap; grid-template-columns: auto auto; padding: .75rem 1rem; }
  .lp-tab:first-child { border-inline-start: 0; }
  .lp-tab-num { display: none; }
  .lp-tab.on { box-shadow: inset 0 -3px 0 var(--orange); }
  .lp-checks { grid-template-columns: 1fr; }
  .lp-panel { padding: 1.5rem; }
  .lp-band { padding: 2rem 1.5rem; }
  .lp-notif:nth-child(even) { margin-inline-start: 0; }
  .lp-hw-card { padding: 1.5rem; }
  .lp-logo small { display: none; }
}

body:has(.lp) { background: #fff; }
