:root {
    color-scheme: light;
    --ink: #111c32;
    --muted: #51617a;
    --blue: #245df5;
    --blue-dark: #1346ce;
    --sky: #eef4ff;
    --background: #f4f7fc;
    --border: #dce4f0;
    --navy: #111c32;
    --green: #096344;
    --radius: 13px;
    font: 16px/1.5 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.22rem; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #4986ff; outline-offset: 3px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.21rem; letter-spacing: -.045em; font-weight: 600; white-space: nowrap; }
.brand img { flex: none; }
.brand strong { font-weight: 800; }
.wrap { width: min(100% - 52px, 1240px); margin-inline: auto; }
.button { display: inline-flex; justify-content: center; align-items: center; align-self: end; text-align: center; min-height: 45px; padding: 11px 17px; border: 1px solid transparent; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.button:hover { background: var(--blue-dark); }
.button.outline { color: var(--ink); background: white; border-color: #c8d3e3; }
.button.outline:hover { color: var(--blue-dark); border-color: var(--blue); }
.button.small { min-height: 37px; padding: 8px 12px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.link { padding: 0; background: transparent; border: 0; color: var(--blue-dark); font-weight: 650; font-size: .92rem; }
.link:hover, .back:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.marketing-header { border-bottom: 1px solid var(--border); }
.navbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.navbar nav { display: flex; gap: 30px; font-size: .92rem; font-weight: 650; }
.login-link { padding: 6px 12px; font-weight: 700; }
.hero { min-height: 545px; display: grid; grid-template-columns: .95fr 1fr; align-items: center; gap: 34px; padding-block: 64px; }
.eyebrow { font-size: .73rem; letter-spacing: .12em; color: var(--blue-dark); font-weight: 800; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 5.1vw, 4.7rem); letter-spacing: -.067em; }
.hero em { color: var(--blue); font-style: normal; }
.hero-copy { margin: 18px 0 25px; max-width: 37ch; color: var(--muted); font-size: 1.12rem; }
.preview { isolation: isolate; position: relative; display: grid; grid-template-columns: 31% 1fr; background: white; border: 1px solid var(--border); border-radius: 17px; box-shadow: 0 15px 35px #1c427621; }
.preview::before { z-index: -1; content: ""; position: absolute; inset: -24px -14px -21px 21px; background: linear-gradient(135deg, #e1f5ff, #c9dafe); border-radius: 37px 51px 45px 29px; transform: rotate(-4deg); }
.preview-sidebar { padding: 17px 10px; background: var(--navy); color: white; border-radius: 16px 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.preview-sidebar .brand { font-size: .76rem; gap: 5px; }
.preview-sidebar .brand img { width: 23px; height: 23px; }
.preview-sidebar > span:not(.brand) { font-size: .71rem; font-weight: 650; border-radius: 5px; padding: 6px 4px; }
.preview-sidebar > span:nth-child(2) { background: var(--blue); }
.preview-main { min-width: 0; padding: 17px; background: white; border-radius: 0 16px 16px 0; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .74rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.preview h2 { margin: 15px 0 11px; font-size: 1.2rem; }
.preview-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 11px; }
.preview-metrics > div, .preview-chart { padding: 10px; background: var(--sky); border: 1px solid var(--border); border-radius: 8px; }
.preview-metrics strong { display: block; font-size: 1.42rem; line-height: 1.25; }
.preview-chart { background: #fafcff; font-size: .75rem; font-weight: 650; }
.preview-chart > small { color: var(--muted); font-weight: 500; }
.bars { display: flex; align-items: end; gap: 7px; height: 74px; padding: 6px 0 4px; border-bottom: 1px solid var(--border); }
.bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(#245df5, #97b7ff); }
.bar.a { height: 42%; }.bar.b { height: 60%; }.bar.c { height: 76%; }.bar.d { height: 69%; }.bar.e { height: 90%; }.bar.f { height: 48%; }.bar.g { height: 35%; }
.benefits { border-radius: var(--radius); background: var(--sky); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; }
.benefits article { display: flex; gap: 12px; align-items: flex-start; }
.benefits h2 { font-size: 1.03rem; letter-spacing: -.03em; margin-bottom: 4px; }
.benefits p, .segment p { color: var(--muted); font-size: .9rem; }
.feature-icon { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; color: var(--blue-dark); border-radius: 10px; background: #e2edff; font-size: 1.25rem; font-weight: 800; }
.section { padding-block: 52px; }
.section > h2, .demo h2 { font-size: clamp(1.8rem, 3.1vw, 2.65rem); margin-bottom: 18px; }
.three, .two, .metrics { display: grid; gap: 15px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h2 { margin-bottom: 12px; }
.card > p { margin: 5px 0 10px; }
.segment { display: grid; gap: 8px; align-content: start; }
.segment .feature-icon { margin-bottom: 4px; }
.segment .badge { justify-self: start; }
.demo { background: var(--sky); padding-block: 56px; }
.demo-grid { display: grid; grid-template-columns: .76fr 1fr; gap: 30px; align-items: start; }
.demo p { color: var(--muted); max-width: 43ch; }
.marketing-footer { background: var(--navy); color: white; padding-block: 24px; }
.marketing-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 13px; }
.form-grid > .full { grid-column: 1/-1; }
.form-grid > .full:empty { display: none; }
.form-grid.spread { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 5px; font-weight: 650; font-size: .86rem; }
input, select { color: var(--ink); background: #fff; border: 1px solid #c4cfe0; border-radius: 8px; width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; }
input[readonly] { background: var(--background); }
.actions select, .actions input { width: auto; max-width: 100%; }
.auth { min-height: 100vh; padding: 25px 16px; background: radial-gradient(at top right, #d5e5ff, var(--background) 65%); display: grid; place-items: center; }
.auth-card { width: min(100%, 435px); background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 50px #1c427617; padding: 27px; }
.auth-card h1 { margin: 20px 0 6px; font-size: 2rem; }
.auth-card > p { margin-bottom: 16px; }
.back { display: block; margin-top: 18px; color: var(--blue-dark); }
.alert { padding: 10px 12px; border-radius: 8px; margin: 0 0 12px; font-size: .9rem; font-weight: 650; }
.alert.success { color: var(--green); background: #e3f7ed; }
.alert.error { color: #912329; background: #ffe8ea; }
.console { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; background: var(--background); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 16px; background: var(--navy); color: #f6f8ff; padding: 18px 12px; overflow: auto; }
.side-brand { margin-inline: 7px; }
.side-context { margin-inline: 7px; border-block: 1px solid #344159; padding-block: 12px; overflow-wrap: anywhere; }
.side-context strong, .side-context span { display: block; }
.side-context span, .side-bottom { color: #bfcce4; font-size: .86rem; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { padding: 8px; border-radius: 8px; font-size: .92rem; }
.sidebar nav a:hover { background: #253657; }
.sidebar nav a.current { background: var(--blue); font-weight: 700; }
.sidebar nav span { display: inline-block; width: 28px; text-align: center; margin-right: 4px; }
.side-bottom { margin: auto 7px 0; display: grid; gap: 8px; }
.side-bottom .link { color: #e5eeff; }
.console-top { min-height: 61px; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 9px; background: white; border-bottom: 1px solid var(--border); font-weight: 750; }
.profile { color: var(--muted); font-size: .77rem; font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.workspace { width: min(100%, 1520px); padding: 24px; margin-inline: auto; }
.workspace > .card, .workspace > .two { margin-bottom: 15px; }
.page-heading, .card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-heading { margin-bottom: 19px; }
.page-heading h1 { font-size: clamp(1.75rem, 3.5vw, 2.55rem); overflow-wrap: anywhere; }
.page-heading p { color: var(--muted); margin-top: 5px; }
.card-heading { margin-bottom: 12px; }
.card-heading h2 { margin: 0; }
.metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 15px; }
.metric { display: grid; gap: 5px; align-content: space-between; }
.metric span { font-size: .85rem; color: var(--muted); font-weight: 650; }
.metric strong { font-size: clamp(1.25rem, 2.35vw, 2rem); line-height: 1.14; letter-spacing: -.045em; overflow-wrap: anywhere; }
a.metric:hover { border-color: var(--blue); }
.line-item, .company-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.company-row { flex-wrap: wrap; }
.company-row p { margin: 2px 0; }
.company-row details { margin-top: 7px; font-size: .86rem; }
summary { color: var(--blue-dark); cursor: pointer; }
td small, .line-item small { display: block; color: var(--muted); font-size: .77rem; }
.whatsapp { display: inline-block; color: var(--green); font-weight: 750; font-size: .82rem; padding: 4px 7px; background: #e8f7f0; border-radius: 6px; white-space: nowrap; }
.whatsapp:hover { text-decoration: underline; }
.badge { display: inline-block; background: #edf1f7; padding: 4px 8px; border-radius: 6px; color: #42516a; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.badge.green { background: #e4f7ed; color: var(--green); }
.badge.red { background: #ffe8ea; color: #972a32; }
.badge.selected { background: var(--blue); color: white; }
.attendance-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.attendance-chart > div { display: grid; justify-items: center; color: var(--muted); font-size: .8rem; }
.attendance-chart meter { width: 90%; accent-color: var(--blue); }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; text-align: left; }
th, td { border-top: 1px solid var(--border); padding: 10px; }
th { color: var(--muted); white-space: nowrap; }
td > .whatsapp { margin-top: 5px; }
td select { min-height: 36px; padding: 4px; }
@media (max-width: 1000px) {
    .hero { min-height: 470px; padding-block: 50px; }
    .console { grid-template-columns: 195px minmax(0, 1fr); }
    .workspace, .console-top { padding-inline: 16px; }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 30px); }
    .navbar { min-height: 61px; }
    .navbar nav, .nav-demo { display: none; }
    .hero, .demo-grid { grid-template-columns: 1fr; }
    .hero { padding: 34px 0 44px; gap: 32px; }
    .preview { width: min(100% - 10px, 520px); margin: auto; }
    .preview::before { inset: -12px -5px -11px 10px; }
    .benefits, .three { grid-template-columns: 1fr; }
    .section, .demo { padding-block: 34px; }
    .console { display: block; }
    .sidebar { position: relative; height: auto; padding: 11px; gap: 8px; overflow: visible; }
    .sidebar nav { display: flex; overflow: auto; padding: 3px 3px 5px; }
    .sidebar nav a { white-space: nowrap; font-size: .8rem; }
    .sidebar nav span { width: auto; }
    .side-context { padding-block: 6px; }
    .side-context span { font-size: .76rem; }
    .side-bottom { display: flex; flex-wrap: wrap; column-gap: 13px; }
    .side-bottom .link { font-size: inherit; }
    .console-top { min-height: 43px; }
    .workspace { padding: 14px; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .two { grid-template-columns: 1fr; }
    .card { padding: 13px; }
    .form-grid.spread { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
    .form-grid, .form-grid.spread { grid-template-columns: 1fr; }
    .preview-sidebar .brand span { display: none; }
    .preview-main { padding: 10px; }
}
