:root {
    color-scheme: light;
    font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f7f6f2;
    color: #17201b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
}

a {
    color: inherit;
}

.identity-shell,
.admin-shell,
.empty-state {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 24px;
}

.hero {
    min-height: 42vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 0 30px;
}

.brand-row,
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-weight: 800;
    text-decoration: none;
}

.profile-url,
.eyebrow {
    color: #5f6f68;
    font-size: 14px;
}

.intro {
    max-width: 720px;
}

.intro h1,
.admin-header h1,
.empty-state h1 {
    margin: 10px 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1;
    letter-spacing: 0;
}

.intro p {
    color: #43524b;
    font-size: 19px;
    line-height: 1.55;
}

.intro h2 {
    margin: 28px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
}

.concierge {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 12px 0 34px;
}

.action-card {
    min-height: 132px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dedbd1;
    border-radius: 8px;
    background: #fffefb;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(28, 38, 33, 0.08);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.action-card:hover,
.action-card:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 18px 46px rgba(28, 38, 33, 0.13);
    transform: translateY(-2px);
    outline: none;
}

.action-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 14%, white);
    font-size: 21px;
    flex: 0 0 auto;
}

.action-card strong,
.action-card small {
    display: block;
}

.action-card strong {
    font-size: 17px;
    line-height: 1.2;
}

.action-card small {
    margin-top: 8px;
    color: #62736b;
    line-height: 1.35;
}

.module-panel {
    margin: 0 0 24px;
    padding: 22px;
    border: 1px solid #dedbd1;
    border-radius: 8px;
    background: #fffefb;
}

.iframe-panel iframe {
    width: 100%;
    min-height: 620px;
    border: 1px solid #dedbd1;
    border-radius: 8px;
    background: white;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-header h2,
.admin-grid h2 {
    margin: 0 0 16px;
}

.panel-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #edf0ec;
    cursor: pointer;
    font-size: 24px;
}

.download-list,
.table {
    display: grid;
    gap: 10px;
}

.download-list a,
.table a,
.table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f4f3ed;
    text-decoration: none;
}

.lead-form,
.stack-form {
    display: grid;
    gap: 12px;
}

.lead-form label,
.stack-form label,
.form-grid label {
    display: grid;
    gap: 6px;
    color: #43524b;
    font-weight: 700;
}

.lead-form input,
.lead-form textarea,
.stack-form input,
.stack-form textarea,
.stack-form select,
.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    border: 1px solid #cfd6d1;
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
}

.lead-form button,
.stack-form button,
.primary-link,
.secondary-link,
.secondary-button,
.save-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: fit-content;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: #17201b;
    color: white;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.secondary-link,
.secondary-button {
    border: 1px solid #cfd6d1;
    background: #fffefb;
    color: #17201b;
}

.danger-button {
    min-height: 38px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.save-button {
    grid-column: 1 / -1;
}

.panel-copy,
.form-status {
    color: #43524b;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-panel {
    width: min(100%, 440px);
    padding: 28px;
    border: 1px solid #dedbd1;
    border-radius: 8px;
    background: #fffefb;
    box-shadow: 0 18px 46px rgba(28, 38, 33, 0.12);
}

.auth-panel h1 {
    margin: 8px 0;
    font-size: 42px;
}

.admin-shell {
    padding-top: 42px;
}

.admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.notice {
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
}

.notice.error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.metrics,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.metrics article,
.admin-grid > div {
    padding: 20px;
    border: 1px solid #dedbd1;
    border-radius: 8px;
    background: #fffefb;
}

.metrics strong {
    display: block;
    font-size: 42px;
}

.metrics span,
.table small {
    color: #62736b;
}

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

.qr-preview,
.editor-section {
    margin: 22px 0;
    padding: 20px;
    border: 1px solid #dedbd1;
    border-radius: 8px;
    background: #fffefb;
}

.qr-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.qr-preview h2,
.qr-preview p {
    margin: 0;
}

.qr-preview p {
    margin-top: 8px;
    color: #43524b;
    word-break: break-all;
}

.qr-image {
    width: 112px;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid #dedbd1;
    background: white;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.editor-section h2,
.editor-section h3 {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid .wide,
.toggle-line {
    grid-column: 1 / -1;
}

.toggle-line {
    display: flex !important;
    align-items: center;
    grid-template-columns: none !important;
}

.toggle-line input {
    width: auto;
}

.admin-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.admin-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #f4f3ed;
    color: inherit;
    text-decoration: none;
}

.module-editor {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: #f4f3ed;
}

.module-editor .compact {
    padding-top: 0;
    border-top: 0;
}

.module-editor h3 {
    margin: 0;
}

.admin-list-row strong,
.admin-list-row small {
    display: block;
}

.admin-list-row small {
    margin-top: 5px;
    color: #62736b;
    word-break: break-word;
}

.compact {
    padding-top: 16px;
    border-top: 1px solid #dedbd1;
}

.delete-profile {
    margin-top: 18px;
}

.empty-state {
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 16px;
}

@media (max-width: 760px) {
    .identity-shell,
    .admin-shell,
    .empty-state {
        padding: 18px;
    }

    .brand-row,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .concierge,
    .metrics,
    .admin-grid,
    .editor-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .qr-preview,
    .admin-list-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .action-card {
        min-height: 112px;
    }

    .intro h1,
    .admin-header h1,
    .empty-state h1 {
        font-size: 42px;
    }
}

/* NXTLY OS admin interface */
body:has(.admin-os) {
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 255, 255, 0.9), transparent 26%),
        linear-gradient(135deg, #eef1ef 0%, #d8dddc 100%);
    color: #101712;
}

.admin-os {
    width: min(100% - 48px, 1720px);
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    margin: 40px auto;
    padding: 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 28px 80px rgba(15, 23, 19, 0.14);
}

.os-sidebar,
.os-topbar,
.os-card,
.editor-section,
.qr-preview {
    border: 0;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 46px rgba(18, 26, 22, 0.06);
}

.os-sidebar {
    min-height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 34px 24px;
    border-radius: 24px;
}

.os-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #101712;
    font-size: 26px;
    font-weight: 900;
    text-decoration: none;
}

.os-logo,
.os-mini-logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 4px solid #168557;
    border-radius: 50%;
    color: #168557;
    font-size: 24px;
    font-weight: 950;
}

.os-nav {
    display: grid;
    gap: 8px;
    margin-top: 66px;
}

.os-nav-label {
    margin: 26px 0 8px;
    color: #98a39d;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.os-nav a,
.os-nav button {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    background: transparent;
    color: #90a09a;
    font: inherit;
    font-size: 19px;
    font-weight: 750;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.os-nav a span,
.os-nav button span {
    width: 28px;
    color: #81928c;
    font-size: 22px;
}

.os-nav a.active {
    position: relative;
    background: #eef7f2;
    color: #101712;
}

.os-nav a.active::before {
    content: "";
    position: absolute;
    left: -24px;
    width: 10px;
    height: 48px;
    border-radius: 0 999px 999px 0;
    background: #168557;
}

.os-nav a.active span {
    color: #168557;
}

.os-nav form {
    min-width: 0;
}

.os-download-card {
    margin-top: auto;
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 20%, rgba(45, 163, 96, 0.35), transparent 34%),
        repeating-radial-gradient(circle at 110% 110%, rgba(71, 148, 104, 0.35) 0 2px, transparent 2px 16px),
        #07130d;
    color: #f9fffb;
}

.os-download-card .os-mini-logo {
    width: 28px;
    height: 28px;
    margin-bottom: 18px;
    border-width: 2px;
    border-color: #e9fff3;
    color: #e9fff3;
    font-size: 11px;
}

.os-download-card strong,
.os-download-card small {
    display: block;
}

.os-download-card small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
}

.os-workspace {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
}

.os-topbar {
    min-width: 0;
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 24px;
}

.os-search {
    width: min(520px, 100%);
    height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
}

.os-search span {
    font-size: 30px;
    line-height: 1;
}

.os-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 17px;
}

.os-search kbd {
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: #e9ecea;
    color: #5f6965;
    font: inherit;
    font-weight: 800;
}

.os-userbar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.os-icon-button,
.os-avatar {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #0c1710;
    font-weight: 900;
}

.os-avatar {
    background: #f1c1c1;
    color: #0f281a;
}

.os-userbar strong,
.os-userbar small {
    display: block;
}

.os-userbar small {
    margin-top: 4px;
    color: #89938f;
}

.os-content {
    min-width: 0;
    padding: 10px 0 0;
}

.os-page-head {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0 26px;
}

.os-page-head h1 {
    margin: 6px 0 8px;
    color: #050706;
    font-size: 48px;
    line-height: 1;
}

.os-page-head .panel-copy {
    margin: 0;
    font-size: 17px;
}

.primary-link,
.lead-form button,
.stack-form button,
.save-button {
    border-radius: 999px;
    background: linear-gradient(135deg, #0f5a38, #218a59);
    box-shadow: 0 10px 24px rgba(16, 100, 61, 0.18);
}

.secondary-link,
.secondary-button {
    border-radius: 999px;
    border-color: #185238;
    color: #103d2b;
}

.os-metrics {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.os-metrics article {
    min-height: 182px;
    display: grid;
    align-content: space-between;
    padding: 28px 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 46px rgba(18, 26, 22, 0.06);
}

.os-metrics article.featured {
    background:
        radial-gradient(circle at 85% 30%, rgba(56, 181, 105, 0.46), transparent 35%),
        linear-gradient(135deg, #0d3b24, #188754);
    color: #ecfff3;
}

.os-metrics span {
    font-size: 21px;
    font-weight: 800;
}

.os-metrics strong {
    font-size: 64px;
    line-height: 0.95;
}

.os-metrics small {
    color: #43855f;
}

.os-metrics .featured small {
    color: #a6f0ae;
}

.os-dashboard-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.os-card {
    min-width: 0;
    padding: 24px;
    border-radius: 22px;
}

.os-card h2 {
    margin: 0 0 20px;
    font-size: 23px;
}

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

.bar-chart {
    height: 172px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 18px;
    padding: 10px 0 0;
}

.bar-chart span {
    height: var(--h);
    min-height: 56px;
    border-radius: 999px;
    background: #26875a;
}

.bar-chart .dark {
    background: #0b4b30;
}

.bar-chart .striped {
    background: repeating-linear-gradient(-45deg, #9aacaa 0 4px, transparent 4px 10px);
}

.chart-days,
.progress-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #84918b;
}

.reminder-card strong,
.reminder-card small {
    display: block;
}

.reminder-card strong {
    color: #0a4e32;
    font-size: 27px;
    line-height: 1.08;
}

.reminder-card small {
    margin: 12px 0 28px;
    color: #8a9590;
}

.progress-card {
    grid-row: span 2;
}

.progress-ring {
    width: min(100%, 270px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 10px auto 22px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 46%, transparent 47%),
        conic-gradient(#218a59 0 148deg, #0b4b30 148deg 204deg, transparent 204deg 360deg),
        repeating-conic-gradient(from 8deg, #8fa09a 0 5deg, transparent 5deg 10deg);
}

.progress-ring strong,
.progress-ring span {
    display: block;
    text-align: center;
}

.progress-ring strong {
    font-size: 54px;
}

.progress-ring span {
    color: #33815b;
}

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

.activity-list span {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f6f8f6;
}

.activity-list strong,
.activity-list small {
    display: block;
}

.activity-list small {
    margin-top: 5px;
    color: #7f8c86;
}

.table a,
.table-row,
.admin-list-row,
.module-editor {
    background: #f6f8f6;
    border-radius: 16px;
}

.table a,
.table-row {
    min-width: 0;
}

.table a span,
.table-row span,
.table small,
.table-row small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.editor-grid {
    align-items: start;
}

.editor-section {
    border-radius: 22px;
}

.qr-preview {
    border-radius: 22px;
}

.notice {
    border-radius: 16px;
}

@media (max-width: 1180px) {
    .admin-os {
        grid-template-columns: 1fr;
    }

    .os-sidebar {
        min-height: auto;
    }

    .os-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 24px;
    }

    .os-nav-label,
    .os-download-card {
        display: none;
    }

    .os-metrics,
    .os-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

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

/* Marketing site */
body:has(.marketing-page),
body:has(.saas-auth) {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.96), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(23, 133, 87, 0.18), transparent 32%),
        linear-gradient(135deg, #eef2f0 0%, #d9dfdd 100%);
}

.marketing-page {
    width: min(100% - 40px, 1080px);
    margin: 0 auto;
    color: #0b120e;
}

.marketing-nav {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.marketing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0b120e;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
}

.marketing-brand span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 3px solid #168557;
    border-radius: 50%;
    color: #168557;
}

.marketing-nav div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.marketing-nav a {
    color: #52605a;
    font-weight: 800;
    text-decoration: none;
}

.marketing-nav .marketing-cta {
    color: #fff;
}

.marketing-cta,
.marketing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 900;
    text-decoration: none;
}

.marketing-cta {
    background: linear-gradient(135deg, #0d4c30, #218a59);
    color: #fff;
    box-shadow: 0 18px 40px rgba(17, 105, 64, 0.2);
}

.marketing-cta.small {
    min-height: 40px;
}

.marketing-secondary {
    border: 1px solid #185238;
    color: #103d2b;
}

.marketing-hero {
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 34px;
    padding: 32px 0 62px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 13px;
    background: #eaf6ef;
    color: #146943;
    font-size: 13px;
    font-weight: 900;
}

.hero-copy h1 {
    margin: 18px 0;
    font-size: clamp(44px, 6vw, 72px);
    line-height: 0.93;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 680px;
    color: #53615b;
    font-size: 18px;
    line-height: 1.55;
}

.hero-actions,
.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.trust-row span {
    color: #65736d;
    font-weight: 800;
}

.hero-product {
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 30px 80px rgba(12, 19, 15, 0.15);
}

.product-top {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 20px;
    background: #f7f8f7;
}

.product-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cfd7d3;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.product-card,
.phone-preview,
.module-stack {
    padding: 20px;
    border-radius: 20px;
    background: #fff;
}

.product-card.dark {
    background:
        radial-gradient(circle at 90% 10%, rgba(46, 190, 104, 0.4), transparent 42%),
        linear-gradient(135deg, #0c3923, #168557);
    color: #fff;
}

.product-card small,
.product-card span,
.phone-preview small {
    color: #7e8c86;
}

.product-card.dark small,
.product-card.dark span {
    color: #baf3c4;
}

.product-card strong {
    display: block;
    margin: 18px 0 8px;
    font-size: 38px;
}

.phone-preview {
    grid-row: span 2;
    display: grid;
    gap: 12px;
    align-content: start;
    background: #101712;
    color: #fff;
}

.phone-preview strong {
    font-size: 23px;
    line-height: 1.1;
}

.phone-preview span,
.module-stack span {
    display: block;
    padding: 13px 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.module-stack {
    display: grid;
    gap: 10px;
}

.module-stack span {
    background: #eef7f2;
    color: #164b33;
    font-weight: 900;
}

.logo-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
}

.logo-strip span {
    min-height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    color: #6c7873;
    font-weight: 900;
}

.feature-section,
.platform-section,
.marketing-final {
    margin: 62px 0;
    padding: 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 70px rgba(12, 19, 15, 0.1);
}

.section-heading {
    max-width: 760px;
}

.section-heading h2,
.platform-section h2,
.marketing-final h2 {
    margin: 16px 0;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.feature-grid article {
    min-height: 190px;
    padding: 22px;
    border-radius: 20px;
    background: #fff;
}

.feature-grid article span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eaf6ef;
    color: #168557;
    font-size: 24px;
}

.feature-grid h3 {
    margin: 22px 0 10px;
    font-size: 21px;
}

.feature-grid p,
.platform-section p,
.marketing-final p {
    color: #5d6a64;
    line-height: 1.6;
}

.platform-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 28px;
    align-items: center;
}

.platform-list {
    display: grid;
    gap: 12px;
}

.platform-list span {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    color: #123d2b;
    font-weight: 900;
}

.marketing-final {
    text-align: center;
}

.saas-auth .auth-panel {
    border: 0;
    border-radius: 28px;
}

.wide-auth {
    width: min(100%, 720px);
}

.auth-switch {
    color: #5f6f68;
}

.auth-switch a {
    color: #0f6f45;
    font-weight: 900;
}

@media (max-width: 940px) {
    .marketing-nav,
    .marketing-nav div {
        align-items: flex-start;
        flex-direction: column;
    }

    .marketing-hero,
    .platform-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .marketing-page {
        width: min(100% - 24px, 1500px);
    }

    .hero-copy h1 {
        font-size: 54px;
    }

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

    .feature-section,
    .platform-section,
    .marketing-final {
        padding: 24px;
        border-radius: 24px;
    }
}

@media (max-width: 760px) {
    .admin-os {
        width: min(100% - 20px, 1720px);
        grid-template-columns: minmax(0, 1fr);
        margin: 10px auto;
        padding: 12px;
        border-radius: 22px;
    }

    .os-sidebar,
    .os-topbar,
    .os-card {
        border-radius: 18px;
    }

    .os-sidebar {
        padding: 22px 16px;
    }

    .os-topbar,
    .os-page-head {
        flex-direction: column;
    }

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

    .os-nav a,
    .os-nav button {
        gap: 8px;
        padding: 0 10px;
        font-size: 15px;
    }

    .os-nav a span,
    .os-nav button span {
        width: 20px;
        font-size: 18px;
    }

    .os-userbar {
        width: 100%;
        flex-wrap: wrap;
    }

    .os-page-head h1 {
        font-size: 40px;
    }

    .os-metrics,
    .os-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .analytics-card {
        grid-column: auto;
    }
}
