:root {
    --ink: #182027;
    --muted: #65727f;
    --line: #dfe5ea;
    --paper: #f7f9fb;
    --panel: #ffffff;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --accent: #f59e0b;
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 12px 30px rgba(24, 32, 39, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.brand,
.account,
.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    font-weight: 800;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: white;
    background: var(--primary);
    font-weight: 900;
}

.brand-mark.large {
    width: 54px;
    height: 54px;
}

.nav {
    overflow-x: auto;
    padding-bottom: 2px;
}

.nav a,
.account a {
    min-height: 36px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--muted);
    white-space: nowrap;
}

.nav a:hover,
.account a:hover {
    color: var(--ink);
    background: #eef5f4;
}

.shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 48px;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 44px);
    background:
        radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.18), transparent 30%),
        linear-gradient(135deg, #071b2c 0%, #0d3b4a 46%, #f7f9fb 46.2%, #f7f9fb 100%);
}

.login-shell {
    width: min(1060px, 100%);
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 80px rgba(7, 27, 44, 0.28);
}

.login-visual {
    position: relative;
    display: grid;
    align-content: space-between;
    min-height: 640px;
    padding: clamp(28px, 5vw, 56px);
    color: white;
    background:
        linear-gradient(145deg, rgba(7, 27, 44, 0.96), rgba(15, 118, 110, 0.58)),
        #082237;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(7, 27, 44, 0.88), transparent);
}

.login-visual > * {
    position: relative;
    z-index: 1;
}

.login-statement {
    align-self: end;
    max-width: 560px;
}

.login-statement h1 {
    max-width: 540px;
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: 0.96;
}

.login-statement p {
    max-width: 470px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.55;
}

.login-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.login-signals span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 800;
}

.login-panel,
.panel,
.agent-capture,
.ticket {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.login-panel {
    width: 100%;
    align-self: center;
    justify-self: center;
    max-width: 440px;
    padding: clamp(24px, 4vw, 40px);
    border: 0;
    box-shadow: none;
    background: transparent;
}

.brand-stack {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.login-logo {
    width: min(100%, 420px);
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
}

.login-card-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
}

.login-card-head h2 {
    margin: 0;
    font-size: 1.85rem;
}

.login-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(7, 27, 44, 0.16);
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form input {
    min-height: 52px;
    border-color: #cfd8df;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-form input:focus {
    outline: 3px solid rgba(15, 118, 110, 0.14);
    border-color: var(--primary);
}

.login-submit {
    min-height: 52px;
    margin-top: 4px;
    font-size: 1rem;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 4px;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.05;
}

h2 {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.page-head,
.panel-head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.page-head.compact {
    margin-bottom: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: white;
    font: inherit;
}

select:disabled,
input:disabled {
    color: var(--muted);
    background: #eef1f4;
}

textarea {
    resize: vertical;
}

.span-2 {
    grid-column: span 2;
}

.button,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    border-color: var(--primary);
    color: white;
    background: var(--primary);
}

.button.primary:hover {
    background: var(--primary-dark);
}

.button.ghost {
    background: #eef5f4;
}

.button.small {
    min-height: 34px;
    padding: 7px 10px;
}

.button.danger {
    border-color: #fecaca;
    color: var(--danger);
    background: #fff7f7;
}

.icon-button {
    width: 54px;
    height: 44px;
    color: var(--primary);
}

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eef5f4;
    color: var(--primary-dark);
    font-weight: 700;
}

.alert.danger {
    color: var(--danger);
    background: #fff0ee;
}

.alert.success {
    color: var(--success);
    background: #edfcf2;
}

.lookup-state {
    min-height: 20px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.lookup-state.found {
    color: var(--success);
}

.muted-field {
    opacity: 0.9;
}

.demo-accounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.82rem;
}

.demo-accounts strong,
.demo-accounts span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.demo-accounts strong {
    color: var(--ink);
}

.metrics,
.role-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metrics article,
.role-grid article {
    min-height: 92px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.metrics span {
    display: block;
    font-size: 2rem;
    font-weight: 900;
}

.metrics p,
.role-grid span {
    color: var(--muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.admin-form h2 {
    margin: 0;
}

.admin-roles {
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.admin-note p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.panel {
    padding: 18px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: #eef1f4;
    font-size: 0.8rem;
    font-weight: 800;
}

.status.active {
    color: var(--success);
    background: #edfcf2;
}

.agent-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.agent-capture {
    padding: 18px;
}

.capture-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visit-list {
    display: grid;
    gap: 10px;
}

.exit-scan {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-head.stacked {
    margin-top: 12px;
}

.exit-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfb;
}

.exit-card[hidden] {
    display: none;
}

.exit-card strong,
.exit-card span {
    display: block;
}

.visit-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.visit-item span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.ticket {
    display: none;
    width: 280px;
    margin-top: 18px;
    padding: 18px;
    gap: 8px;
}

.ticket span,
.ticket strong {
    display: block;
}

.search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 18px;
}

.payment-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.payment-strip span {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    font-weight: 800;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actions form {
    margin: 0;
}

.login-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.public-home,
.signup-screen {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -22px;
    padding: clamp(18px, 3vw, 34px);
    background:
        linear-gradient(135deg, #071b2c 0%, #0f766e 45%, #f7f9fb 45.2%, #f7f9fb 100%);
    min-height: 100vh;
}

.public-nav {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0 28px;
}

.public-brand,
.public-nav nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-brand {
    color: white;
    font-weight: 900;
}

.public-brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.public-nav nav a:not(.button) {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.home-hero {
    width: min(1180px, 100%);
    margin: 0 auto;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
}

.home-copy {
    color: white;
}

.home-logo {
    width: min(390px, 100%);
    margin-bottom: 26px;
    mix-blend-mode: screen;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.18));
}

.home-copy .eyebrow {
    color: #f6b23d;
}

.home-copy h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 0.94;
}

.home-copy p:not(.eyebrow) {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.7;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-actions .button {
    min-height: 50px;
}

.home-product {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 80px rgba(7, 27, 44, 0.26);
}

.product-top {
    display: flex;
    gap: 7px;
}

.product-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
}

.product-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.product-metrics article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fbfc;
}

.product-metrics strong {
    display: block;
    font-size: 1.75rem;
}

.product-metrics span,
.flow-list span {
    color: var(--muted);
    font-size: 0.86rem;
}

.flow-list {
    display: grid;
    gap: 10px;
}

.flow-list div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.flow-list b,
.flow-list span {
    display: block;
}

.home-bands {
    width: min(1180px, 100%);
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.home-bands article,
.signup-form,
.signup-aside {
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(7, 27, 44, 0.12);
}

.home-bands article {
    padding: 22px;
}

.home-bands p,
.signup-aside p {
    color: var(--muted);
    line-height: 1.6;
}

.signup-layout {
    width: min(1180px, 100%);
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
}

.signup-aside,
.signup-form {
    padding: clamp(18px, 3vw, 30px);
}

.signup-logo {
    width: min(100%, 340px);
    margin-bottom: 22px;
}

.signup-aside h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.signup-checks {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.signup-checks span {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfb;
    font-weight: 800;
}

.signup-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.signup-form h2 {
    margin: 8px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.signup-form h2:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.shad-home {
    background:
        linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 420px),
        #ffffff;
    color: var(--ink);
}

.shad-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0;
    border-bottom: 1px solid rgba(223, 229, 234, 0.76);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
}

.shad-nav .public-brand,
.shad-nav nav a:not(.button) {
    color: var(--ink);
}

.shad-hero {
    width: min(980px, 100%);
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    align-content: center;
    padding: clamp(54px, 8vw, 108px) 0 34px;
    text-align: center;
}

.shad-hero > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 900;
}

.shad-logo {
    width: min(360px, 90%);
    margin-bottom: 24px;
    mix-blend-mode: normal;
    filter: none;
}

.shad-hero h1 {
    max-width: 940px;
    margin-bottom: 18px;
    font-size: clamp(2.7rem, 7vw, 6rem);
    line-height: 0.93;
}

.shad-hero p {
    max-width: 740px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.shad-actions {
    justify-content: center;
}

.dashboard-preview,
.logo-strip,
.section-head,
.feature-grid,
.how-section,
.pricing-grid,
.testimonial-section,
.faq-section,
.final-cta {
    width: min(1180px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.dashboard-preview {
    overflow: hidden;
    margin-top: -18px;
    margin-bottom: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(7, 27, 44, 0.14);
}

.preview-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: #f8fafb;
}

.preview-toolbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5de;
}

.preview-toolbar strong {
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}

.preview-grid article {
    padding: 22px;
    background: white;
}

.preview-grid strong {
    display: block;
    font-size: 2rem;
}

.preview-grid span {
    color: var(--muted);
    font-size: 0.9rem;
}

.preview-table {
    display: grid;
    padding: 12px 16px 16px;
}

.preview-table div {
    display: grid;
    grid-template-columns: 100px 1fr 1.2fr 70px;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.preview-table div:last-child {
    border-bottom: 0;
}

.preview-table span,
.preview-table em {
    color: var(--muted);
    font-style: normal;
}

.logo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 80px;
}

.logo-strip span {
    display: grid;
    place-items: center;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafb;
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

.section-head {
    display: grid;
    gap: 10px;
    justify-items: center;
    margin-bottom: 24px;
    text-align: center;
}

.section-head.compact {
    justify-items: start;
    text-align: left;
}

.section-head h2 {
    max-width: 760px;
    font-size: clamp(1.9rem, 4vw, 3.6rem);
    line-height: 1;
}

.section-head p:not(.eyebrow) {
    max-width: 680px;
    color: var(--muted);
    line-height: 1.65;
}

.feature-grid,
.steps-grid,
.pricing-grid {
    display: grid;
    gap: 14px;
}

.feature-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 80px;
}

.feature-grid article,
.steps-grid article,
.pricing-grid article,
.testimonial-section article,
.faq-section details,
.final-cta {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.feature-grid article,
.steps-grid article,
.pricing-grid article {
    padding: 22px;
}

.feature-grid article span {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 900;
}

.feature-grid h3,
.steps-grid h3,
.pricing-grid h3 {
    margin-bottom: 8px;
}

.feature-grid p,
.steps-grid p,
.pricing-grid p,
.testimonial-section p,
.faq-section p,
.final-cta p {
    color: var(--muted);
    line-height: 1.6;
}

.how-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 80px;
}

.steps-grid {
    grid-template-columns: 1fr;
}

.steps-grid strong {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 8px;
    color: white;
    background: var(--primary);
}

.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 80px;
}

.pricing-grid strong {
    display: block;
    margin: 12px 0 2px;
    font-size: 2rem;
}

.pricing-grid span {
    color: var(--muted);
}

.featured-plan {
    border-color: rgba(15, 118, 110, 0.42) !important;
    box-shadow: 0 20px 55px rgba(15, 118, 110, 0.14);
}

.testimonial-section {
    margin-bottom: 80px;
}

.testimonial-section article {
    padding: clamp(24px, 5vw, 52px);
    text-align: center;
}

.testimonial-section p {
    max-width: 860px;
    margin: 0 auto 16px;
    color: var(--ink);
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.35;
}

.faq-section {
    display: grid;
    gap: 12px;
    margin-bottom: 80px;
}

.faq-section details {
    padding: 18px 20px;
}

.faq-section summary {
    cursor: pointer;
    font-weight: 900;
}

.faq-section p {
    margin: 12px 0 0;
}

.final-cta {
    display: grid;
    gap: 14px;
    justify-items: center;
    margin-bottom: 24px;
    padding: clamp(28px, 6vw, 64px);
    text-align: center;
    background: #071b2c;
    color: white;
}

.final-cta h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.final-cta p {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 920px) {
    .topbar {
        grid-template-columns: 1fr;
    }

    .account {
        justify-content: space-between;
    }

    .metrics,
    .role-grid,
    .agent-layout,
    .admin-grid {
        grid-template-columns: 1fr 1fr;
    }

    .agent-layout,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-visual {
        min-height: 360px;
    }

    .login-panel {
        max-width: none;
    }

    .home-hero,
    .signup-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-product {
        order: -1;
    }

    .home-bands {
        grid-template-columns: 1fr;
    }

    .preview-grid,
    .feature-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 20px, 1180px);
        padding-top: 14px;
    }

    .page-head,
    .panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid,
    .capture-form,
    .metrics,
    .role-grid,
    .search-bar {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .button {
        width: 100%;
    }

    .login-panel,
    .panel,
    .agent-capture {
        padding: 14px;
    }

    .login-screen {
        padding: 10px;
        background: #f7f9fb;
    }

    .public-home,
    .signup-screen {
        margin-top: -14px;
        padding: 12px;
        background: #f7f9fb;
    }

    .public-brand,
    .public-nav nav a:not(.button),
    .home-copy {
        color: var(--ink);
    }

    .public-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .public-nav nav {
        justify-content: space-between;
    }

    .home-logo {
        mix-blend-mode: normal;
    }

    .home-copy .eyebrow {
        color: var(--primary);
    }

    .home-copy p:not(.eyebrow) {
        color: var(--muted);
    }

    .home-copy h1 {
        font-size: 2.25rem;
    }

    .product-metrics,
    .signup-form {
        grid-template-columns: 1fr;
    }

    .shad-nav nav {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .shad-hero {
        min-height: auto;
        padding: 44px 0 26px;
    }

    .shad-hero h1 {
        font-size: 2.45rem;
    }

    .dashboard-preview {
        margin-bottom: 42px;
    }

    .preview-grid,
    .feature-grid,
    .pricing-grid,
    .logo-strip {
        grid-template-columns: 1fr;
    }

    .preview-table div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .section-head,
    .feature-grid,
    .how-section,
    .pricing-grid,
    .testimonial-section,
    .faq-section {
        margin-bottom: 48px;
    }

    .login-shell {
        border-radius: 12px;
    }

    .login-visual {
        min-height: 300px;
        padding: 22px;
    }

    .login-statement h1 {
        font-size: 2rem;
    }

    .login-statement p {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.55rem;
    }
}

@media print {
    body > *:not(.shell),
    .shell > *:not(.ticket),
    .ticket .button {
        display: none !important;
    }

    .ticket {
        display: block;
        box-shadow: none;
        border: 1px dashed #111;
    }
}
