:root {
    --ink: #10213c;
    --muted: #61708a;
    --line: #dce5ef;
    --surface: #ffffff;
    --surface-soft: #f4f8fc;
    --navy: #071b39;
    --blue: #0878d1;
    --blue-dark: #055a9f;
    --cyan: #16b5d2;
    --green: #65bd18;
    --lime: #a8df22;
    --warning: #b25c00;
    --warning-bg: #fff6e8;
    --danger: #bd2d3a;
    --danger-bg: #fff0f1;
    --success: #277a24;
    --success-bg: #eef9e9;
    --info-bg: #ebf6ff;
    --shadow-sm: 0 8px 24px rgba(13, 39, 72, .08);
    --shadow: 0 24px 70px rgba(13, 39, 72, .13);
    --radius-sm: .7rem;
    --radius: 1.05rem;
    --radius-lg: 1.6rem;
    --content: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--blue-dark);
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
[role="button"] {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(8, 120, 209, .32);
    outline-offset: 3px;
}

::selection {
    color: #fff;
    background: var(--blue);
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: .75rem;
    left: .75rem;
    padding: .75rem 1rem;
    border-radius: .5rem;
    color: #fff;
    background: var(--navy);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(var(--content), calc(100% - 2rem));
    margin-inline: auto;
}

.section {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-sm {
    padding: 3.5rem 0;
}

.section-soft {
    background: var(--surface-soft);
}

.section-dark {
    color: #fff;
    background: var(--navy);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .85rem;
    color: var(--blue-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 1.55rem;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    content: "";
}

.section-dark .eyebrow,
.hero .eyebrow {
    color: #a9e7ff;
}

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

h1,
h2,
h3,
h4 {
    color: inherit;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.45rem, 5vw, 4.65rem);
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.15rem);
}

h3 {
    font-size: 1.25rem;
}

.lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto clamp(2.2rem, 5vw, 3.6rem);
    text-align: center;
}

.section-heading p:last-child {
    margin-bottom: 0;
}

.text-muted {
    color: var(--muted);
}

.text-danger {
    color: var(--danger);
}

.text-small {
    font-size: .88rem;
}

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

.text-right {
    text-align: right;
}

.nowrap {
    white-space: nowrap;
}

.marketing-header {
    position: sticky;
    z-index: 90;
    top: 0;
    border-bottom: 1px solid rgba(220, 229, 239, .8);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

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

.brand-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    position: relative;
    display: block;
    width: 222px;
    height: 55px;
    overflow: hidden;
}

.brand-logo img {
    position: absolute;
    top: -105px;
    left: -23px;
    width: 267px;
    max-width: none;
    height: 267px;
}

.brand-logo.compact {
    width: 174px;
    height: 45px;
}

.brand-logo.compact img {
    top: -83px;
    left: -18px;
    width: 210px;
    height: 210px;
}

.brand-logo.inverse {
    border-radius: .55rem;
    background: rgba(255, 255, 255, .93);
}

.marketing-links,
.marketing-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.marketing-links a,
.link-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: .55rem .8rem;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: .91rem;
    font-weight: 700;
    text-decoration: none;
}

.marketing-links a:hover,
.link-button:hover {
    color: var(--blue);
}

.nav-toggle {
    display: none;
    width: 45px;
    height: 45px;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: var(--ink);
    content: "";
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .73rem 1.05rem;
    border: 1px solid transparent;
    border-radius: .72rem;
    font-size: .93rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #0063ad);
    box-shadow: 0 9px 22px rgba(8, 120, 209, .24);
}

.btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #0a84e5, var(--blue-dark));
}

.btn-accent {
    color: #152c10;
    background: linear-gradient(135deg, var(--lime), #80cc19);
    box-shadow: 0 9px 22px rgba(101, 189, 24, .24);
}

.btn-light {
    border-color: var(--line);
    color: var(--ink);
    background: #fff;
}

.btn-light:hover {
    border-color: #b7c8d8;
    color: var(--blue-dark);
    box-shadow: var(--shadow-sm);
}

.btn-dark {
    color: #fff;
    background: var(--navy);
}

.btn-danger {
    border-color: #efc1c6;
    color: var(--danger);
    background: var(--danger-bg);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.btn-sm {
    min-height: 38px;
    padding: .55rem .75rem;
    border-radius: .6rem;
    font-size: .82rem;
}

.btn-block {
    width: 100%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hero {
    position: relative;
    min-height: 750px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 86% 25%, rgba(130, 215, 21, .26), transparent 29%),
        radial-gradient(circle at 15% 80%, rgba(11, 160, 226, .24), transparent 31%),
        linear-gradient(135deg, #061a36 0%, #092c57 55%, #083b58 100%);
}

.hero::before,
.hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.hero::before {
    top: -200px;
    right: -160px;
    width: 580px;
    height: 580px;
}

.hero::after {
    bottom: -220px;
    left: -150px;
    width: 520px;
    height: 520px;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 674px;
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    padding: clamp(4.2rem, 9vw, 7rem) 0;
}

.hero-copy {
    max-width: 730px;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 1.3rem;
}

.hero h1 span {
    color: #a9e627;
}

.hero .lead {
    max-width: 690px;
    margin-bottom: 2rem;
    color: #cfdeed;
}

.hero .button-row {
    margin-bottom: 1.7rem;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.2rem;
    color: #c6d7e8;
    font-size: .88rem;
}

.hero-note span::before {
    margin-right: .4rem;
    color: var(--lime);
    content: "✓";
    font-weight: 900;
}

.hero-product {
    position: relative;
    margin: auto;
    perspective: 900px;
}

.product-window {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    color: var(--ink);
    transform: rotateY(-3deg) rotateX(1deg);
}

.window-top {
    display: flex;
    align-items: center;
    gap: .38rem;
    height: 42px;
    padding: 0 1rem;
    border-bottom: 1px solid var(--line);
    background: #f7fafc;
}

.window-top span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9d5e0;
}

.window-body {
    display: grid;
    gap: 1rem;
    grid-template-columns: 96px 1fr;
    padding: 1rem;
}

.mock-sidebar {
    min-height: 405px;
    padding: 1rem .7rem;
    border-radius: .8rem;
    background: var(--navy);
}

.mock-sidebar i {
    display: block;
    height: 8px;
    margin-bottom: 1rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, .17);
}

.mock-sidebar i:first-child {
    width: 75%;
    background: var(--green);
}

.mock-content {
    min-width: 0;
}

.mock-greeting {
    width: 52%;
    height: 14px;
    margin: .5rem 0 1.1rem;
    border-radius: 99px;
    background: #d5e1eb;
}

.mock-stats {
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(3, 1fr);
}

.mock-stat,
.mock-card {
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
}

.mock-stat {
    height: 73px;
    padding: .7rem;
}

.mock-stat::before,
.mock-stat::after {
    display: block;
    height: 7px;
    border-radius: 99px;
    background: #dbe6ee;
    content: "";
}

.mock-stat::before {
    width: 70%;
}

.mock-stat::after {
    width: 38%;
    height: 15px;
    margin-top: .7rem;
    background: var(--blue);
}

.mock-main {
    display: grid;
    gap: .8rem;
    grid-template-columns: 1.08fr .92fr;
    margin-top: .8rem;
}

.mock-post {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: .9rem;
    background:
        linear-gradient(135deg, rgba(6, 24, 51, .1), rgba(6, 24, 51, .65)),
        linear-gradient(140deg, #18afd7 0%, #1082ce 45%, #89d51c 100%);
}

.mock-post::before {
    position: absolute;
    top: 25%;
    left: 13%;
    width: 72%;
    height: 28%;
    border: 3px solid rgba(255, 255, 255, .82);
    border-radius: .6rem;
    content: "";
    transform: rotate(-4deg);
}

.mock-post::after {
    position: absolute;
    right: 12%;
    bottom: 13%;
    width: 47%;
    height: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 18px 0 rgba(255, 255, 255, .45);
    content: "";
}

.mock-detail {
    padding: .85rem;
}

.mock-line {
    height: 8px;
    margin: .55rem 0;
    border-radius: 99px;
    background: #dce6ee;
}

.mock-line.short {
    width: 60%;
}

.mock-detail .mock-line:nth-child(2) {
    width: 88%;
}

.mock-detail .mock-line:nth-child(4) {
    width: 72%;
    background: #cce8ba;
}

.floating-badge {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem .9rem;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: .85rem;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    font-size: .78rem;
    font-weight: 800;
}

.floating-badge::before {
    display: grid;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    content: "✓";
    place-items: center;
}

.floating-badge.one {
    top: -24px;
    right: 25px;
}

.floating-badge.two {
    bottom: -22px;
    left: -26px;
}

.trust-bar {
    position: relative;
    z-index: 3;
    margin-top: -1px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.trust-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, 1fr);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.55rem 1.2rem;
    border-right: 1px solid var(--line);
    font-size: .92rem;
    font-weight: 750;
}

.trust-item:last-child {
    border-right: 0;
}

.trust-icon,
.icon-box {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: .75rem;
    color: var(--blue-dark);
    background: var(--info-bg);
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 900;
    place-items: center;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 1.2rem;
}

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

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

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

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.card-pad {
    padding: clamp(1.1rem, 3vw, 1.55rem);
}

.feature-card {
    position: relative;
    min-height: 220px;
    padding: 1.55rem;
    overflow: hidden;
}

.feature-card::after {
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(8, 120, 209, .05);
    content: "";
}

.feature-card .icon-box {
    margin-bottom: 1.2rem;
}

.feature-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.steps {
    position: relative;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    counter-reset: step;
}

.step-card {
    position: relative;
    padding: 1.45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    counter-increment: step;
}

.step-card::before {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    content: counter(step, decimal-leading-zero);
    font-size: .72rem;
    font-weight: 900;
    place-items: center;
}

.step-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .93rem;
}

.pricing-grid {
    display: grid;
    align-items: stretch;
    gap: 1.1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.price-card.featured {
    border: 2px solid var(--blue);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
}

.price-card .popular {
    position: absolute;
    top: -14px;
    left: 50%;
    padding: .35rem .8rem;
    border-radius: 99px;
    color: #fff;
    background: var(--blue);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    transform: translateX(-50%);
    white-space: nowrap;
}

.price {
    margin: .75rem 0 1rem;
    color: var(--navy);
    font-size: 2.15rem;
    font-weight: 900;
    letter-spacing: -.05em;
}

.price small {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 0;
}

.check-list,
.plain-list,
.footer-links,
.sidebar-nav,
.timeline,
.activity-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list {
    flex: 1;
    margin: .35rem 0 1.25rem;
}

.check-list li {
    position: relative;
    margin: .58rem 0;
    padding-left: 1.45rem;
    color: #3d5069;
    font-size: .88rem;
}

.check-list li::before {
    position: absolute;
    top: .05rem;
    left: 0;
    color: var(--green);
    content: "✓";
    font-weight: 900;
}

.sector-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
}

.sector-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: #31445e;
    background: #fff;
    font-size: .9rem;
    font-weight: 750;
}

.sector-pill::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green));
    content: "";
}

.example-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.example-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.example-visual,
.content-preview-placeholder {
    position: relative;
    display: grid;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 25%, rgba(168, 223, 34, .8), transparent 25%),
        linear-gradient(140deg, #0a8bd5, #0a527f 63%, #0a294d);
    place-items: center;
}

.example-card:nth-child(2) .example-visual {
    background:
        radial-gradient(circle at 20% 20%, rgba(22, 181, 210, .78), transparent 27%),
        linear-gradient(140deg, #132846, #2d4665 65%, #70bb20);
}

.example-card:nth-child(3) .example-visual {
    background:
        radial-gradient(circle at 75% 75%, rgba(101, 189, 24, .8), transparent 24%),
        linear-gradient(140deg, #056eb4, #09a7c1 57%, #12304d);
}

.example-visual::before {
    width: 65%;
    height: 50%;
    border: 3px solid rgba(255, 255, 255, .65);
    border-radius: 1rem;
    content: "";
    transform: rotate(-4deg);
}

.example-visual strong {
    position: absolute;
    right: 12%;
    bottom: 12%;
    max-width: 72%;
    font-size: clamp(1.15rem, 2vw, 1.75rem);
    line-height: 1.05;
    text-align: right;
}

.example-body {
    padding: 1.1rem;
}

.faq-list {
    max-width: 850px;
    margin: auto;
}

.faq-item {
    margin: .75rem 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.faq-item summary {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    color: var(--blue);
    content: "+";
    font-size: 1.4rem;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--muted);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(2.1rem, 5vw, 3.3rem);
    border-radius: 1.7rem;
    color: #fff;
    background:
        radial-gradient(circle at 90% 30%, rgba(168, 223, 34, .28), transparent 28%),
        linear-gradient(135deg, #071c3b, #075184);
    box-shadow: var(--shadow);
}

.cta-band h2 {
    max-width: 690px;
}

.cta-band p {
    max-width: 680px;
    color: #c9deed;
}

.marketing-footer {
    padding: 4rem 0 1.5rem;
    color: #c8d5e2;
    background: #05152c;
}

.footer-grid {
    display: grid;
    gap: 2.6rem;
    grid-template-columns: 1.6fr 1fr 1fr 1.15fr;
}

.footer-brand p {
    max-width: 340px;
    font-size: .9rem;
}

.marketing-footer h3 {
    color: #fff;
    font-size: .93rem;
    letter-spacing: 0;
}

.footer-links li {
    margin: .55rem 0;
}

.footer-links a {
    color: #c8d5e2;
    font-size: .88rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .78rem;
}

.page-hero {
    padding: clamp(4.4rem, 8vw, 6.5rem) 0;
    color: #fff;
    background:
        radial-gradient(circle at 80% 30%, rgba(103, 190, 25, .23), transparent 27%),
        linear-gradient(135deg, #061b39, #074c79);
}

.page-hero-inner {
    max-width: 820px;
}

.page-hero .lead {
    color: #d1dfeb;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0 0 1.2rem;
    padding: 0;
    color: #c5d6e6;
    font-size: .82rem;
    list-style: none;
}

.breadcrumb li + li::before {
    margin-right: .45rem;
    content: "/";
    opacity: .55;
}

.breadcrumb a {
    color: #fff;
}

.prose {
    max-width: 820px;
    margin-inline: auto;
}

.prose h2,
.prose h3 {
    margin-top: 2.1rem;
}

.prose p,
.prose li {
    color: #3f536d;
}

.legal-notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--warning);
    border-radius: .45rem;
    color: #74420d;
    background: var(--warning-bg);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(320px, .8fr) minmax(480px, 1.2fr);
}

.auth-aside {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 80% 80%, rgba(135, 211, 27, .32), transparent 30%),
        linear-gradient(145deg, #051934, #075184);
}

.auth-aside::after {
    position: absolute;
    right: -160px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    content: "";
}

.auth-aside-copy {
    position: relative;
    z-index: 2;
    max-width: 470px;
}

.auth-aside-copy p {
    color: #cbdaea;
}

.auth-benefits {
    position: relative;
    z-index: 2;
}

.auth-benefits li {
    margin: .8rem 0;
    padding-left: 1.7rem;
    color: #e4eef6;
}

.auth-benefits li::before {
    color: var(--lime);
}

.auth-main {
    display: grid;
    min-height: 100vh;
    padding: 2rem;
    background: #f7fafc;
    place-items: center;
}

.auth-card {
    width: min(100%, 520px);
    padding: clamp(1.4rem, 5vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin-bottom: .55rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.auth-home-link {
    display: inline-flex;
    margin-bottom: 2rem;
}

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

.field {
    min-width: 0;
    margin-bottom: 1rem;
}

.field.full {
    grid-column: 1 / -1;
}

.field label,
.field-label {
    display: block;
    margin-bottom: .38rem;
    color: #263a54;
    font-size: .84rem;
    font-weight: 800;
}

.required::after {
    margin-left: .2rem;
    color: var(--danger);
    content: "*";
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 46px;
    padding: .72rem .82rem;
    border: 1px solid #cbd8e4;
    border-radius: .67rem;
    outline: 0;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.textarea {
    min-height: 115px;
    resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(8, 120, 209, .1);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

.field-hint {
    display: block;
    margin-top: .32rem;
    color: var(--muted);
    font-size: .76rem;
}

.field-error {
    display: block;
    margin-top: .32rem;
    color: var(--danger);
    font-size: .78rem;
    font-weight: 700;
}

.checkbox,
.radio {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: .55rem 0;
    color: #41536b;
    font-size: .86rem;
}

.checkbox input,
.radio input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: .16rem;
    accent-color: var(--blue);
}

.password-wrap {
    position: relative;
}

.password-wrap .input {
    padding-right: 4.4rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .45rem;
    min-height: 36px;
    padding: 0 .55rem;
    border: 0;
    color: var(--blue-dark);
    background: transparent;
    font-size: .76rem;
    font-weight: 800;
    transform: translateY(-50%);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.alert {
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border: 1px solid transparent;
    border-radius: .72rem;
    font-size: .88rem;
}

.alert-success {
    border-color: #c9e9ba;
    color: var(--success);
    background: var(--success-bg);
}

.alert-danger {
    border-color: #efc6ca;
    color: var(--danger);
    background: var(--danger-bg);
}

.alert-warning {
    border-color: #f1d5a6;
    color: #7d490f;
    background: var(--warning-bg);
}

.alert-info {
    border-color: #c3e0f5;
    color: #125d91;
    background: var(--info-bg);
}

.error-list {
    margin: .45rem 0 0;
    padding-left: 1.15rem;
}

.app-body {
    min-height: 100vh;
    background: #f3f7fb;
}

.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 272px minmax(0, 1fr);
}

.app-sidebar {
    position: fixed;
    z-index: 95;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 272px;
    flex-direction: column;
    overflow-y: auto;
    color: #cfdaea;
    background: #061a36;
    scrollbar-width: thin;
}

.sidebar-brand {
    display: flex;
    min-height: 77px;
    align-items: center;
    padding: .8rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.sidebar-context {
    margin: .85rem .85rem .45rem;
    padding: .8rem;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .055);
}

.sidebar-context small,
.sidebar-context strong {
    display: block;
}

.sidebar-context small {
    color: #91a8c0;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.sidebar-context strong {
    margin-top: .2rem;
    overflow: hidden;
    color: #fff;
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav {
    flex: 1;
    padding: .65rem .65rem 1rem;
}

.sidebar-label {
    display: block;
    padding: 1rem .65rem .42rem;
    color: #6f8da8;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sidebar-nav a {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: .78rem;
    margin: .18rem 0;
    padding: .65rem .75rem;
    border-radius: .65rem;
    color: #c9d6e5;
    font-size: .84rem;
    font-weight: 650;
    text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #fff;
    background: rgba(19, 153, 218, .17);
}

.sidebar-nav a.active {
    box-shadow: inset 3px 0 var(--lime);
}

.nav-icon {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border-radius: .4rem;
    color: #80c8ef;
    background: rgba(90, 185, 229, .09);
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
    place-items: center;
}

.sidebar-footer {
    padding: .8rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.sidebar-footer .btn {
    color: #e7eef6;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
}

.app-main {
    min-width: 0;
    grid-column: 2;
}

.app-topbar {
    position: sticky;
    z-index: 80;
    top: 0;
    display: flex;
    min-height: 77px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.app-mobile-toggle {
    display: none;
}

.topbar-title {
    min-width: 0;
}

.topbar-title strong,
.topbar-title small {
    display: block;
}

.topbar-title strong {
    overflow: hidden;
    font-size: .98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-title small {
    color: var(--muted);
    font-size: .72rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.notification-button {
    position: relative;
    display: grid;
    width: 43px;
    height: 43px;
    border: 1px solid var(--line);
    border-radius: .7rem;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
    place-items: center;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--danger);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .35rem .55rem .35rem .35rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
}

.avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: .65rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
    font-size: .76rem;
    font-weight: 900;
    place-items: center;
}

.user-chip span {
    display: block;
    max-width: 135px;
    overflow: hidden;
    font-size: .78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-content {
    padding: clamp(1rem, 3vw, 2rem);
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-head h1 {
    margin-bottom: .35rem;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.page-head p {
    margin-bottom: 0;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
    position: relative;
    min-height: 142px;
    padding: 1.15rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.stat-label {
    display: block;
    margin-bottom: .6rem;
    color: var(--muted);
    font-size: .77rem;
    font-weight: 750;
}

.stat-value {
    display: block;
    color: var(--navy);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.stat-meta {
    display: block;
    margin-top: .35rem;
    color: var(--muted);
    font-size: .72rem;
}

.stat-card .icon-box {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    font-size: .85rem;
}

.progress {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: #e8eef4;
}

.progress > span {
    display: block;
    width: var(--progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.dashboard-grid {
    display: grid;
    align-items: start;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .72fr);
    margin-top: 1rem;
}

.card-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

.card-body {
    padding: 1.2rem;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

.data-table th {
    padding: .75rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: .88rem .75rem;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #f8fbfd;
}

.table-title {
    display: block;
    color: var(--ink);
    font-weight: 800;
}

.table-subtitle {
    display: block;
    max-width: 260px;
    overflow: hidden;
    color: var(--muted);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-height: 26px;
    padding: .25rem .55rem;
    border-radius: 99px;
    color: #44566d;
    background: #eef2f6;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

.badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.badge-success {
    color: var(--success);
    background: var(--success-bg);
}

.badge-warning {
    color: #9a590d;
    background: var(--warning-bg);
}

.badge-danger {
    color: var(--danger);
    background: var(--danger-bg);
}

.badge-info {
    color: #116ba7;
    background: var(--info-bg);
}

.badge-neutral {
    color: #5b6777;
    background: #eef2f5;
}

.empty-state {
    padding: clamp(2.4rem, 6vw, 4rem) 1.3rem;
    text-align: center;
}

.empty-state .icon-box {
    margin: 0 auto 1rem;
}

.empty-state h3 {
    margin-bottom: .45rem;
}

.empty-state p {
    max-width: 470px;
    margin: 0 auto 1.2rem;
    color: var(--muted);
}

.activity-list li {
    position: relative;
    padding: .2rem 0 1.15rem 1.55rem;
    border-left: 1px solid var(--line);
}

.activity-list li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.activity-list li::before {
    position: absolute;
    top: .28rem;
    left: -5px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 1px var(--blue);
    content: "";
}

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

.activity-list strong {
    font-size: .83rem;
}

.activity-list small {
    margin-top: .18rem;
    color: var(--muted);
    font-size: .7rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.filter-bar .field {
    min-width: 170px;
    flex: 1;
    margin-bottom: 0;
}

.search-field {
    min-width: min(100%, 260px) !important;
    flex: 2 !important;
}

.content-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.content-card .content-preview-placeholder {
    aspect-ratio: 1.2 / 1;
}

.content-card-media {
    position: relative;
}

.content-card-media .badge {
    position: absolute;
    top: .8rem;
    right: .8rem;
}

.content-card-body {
    padding: 1.1rem;
}

.content-card-body h3 {
    margin-bottom: .35rem;
    font-size: 1rem;
}

.content-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .8rem;
    margin: .75rem 0;
    color: var(--muted);
    font-size: .72rem;
}

.content-card-actions {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 1rem;
}

.detail-grid {
    display: grid;
    align-items: start;
    gap: 1rem;
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
}

.preview-panel {
    position: sticky;
    top: 94px;
}

.preview-panel .content-preview-placeholder {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius) var(--radius) 0 0;
}

.content-preview-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius) var(--radius) 0 0;
    background: #eaf0f5;
    object-fit: contain;
}

.detail-section + .detail-section {
    margin-top: 1rem;
}

.copy-box {
    position: relative;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: #f8fafc;
}

.copy-box p:last-of-type {
    margin-bottom: 0;
}

.copy-box .btn {
    position: absolute;
    top: .55rem;
    right: .55rem;
}

.copy-box.with-button {
    padding-top: 3.3rem;
}

.key-value {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(2, 1fr);
}

.key-value div {
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: #fff;
}

.key-value dt {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 750;
}

.key-value dd {
    margin: .17rem 0 0;
    font-size: .86rem;
    font-weight: 800;
}

.dropzone {
    position: relative;
    display: grid;
    min-height: 155px;
    padding: 1.25rem;
    border: 2px dashed #b8cada;
    border-radius: var(--radius);
    color: var(--muted);
    background: #f8fbfd;
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
    place-items: center;
}

.dropzone.dragover {
    border-color: var(--blue);
    background: var(--info-bg);
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.dropzone strong {
    display: block;
    color: var(--ink);
}

.file-preview-list {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(4, 1fr);
    margin-top: .75rem;
}

.file-preview {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: #e9f0f5;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wizard-shell {
    display: grid;
    align-items: start;
    gap: 1.2rem;
    grid-template-columns: 245px minmax(0, 1fr);
}

.wizard-steps {
    position: sticky;
    top: 94px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.wizard-steps ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: wizard;
}

.wizard-steps li {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: .2rem 0;
    padding: .55rem;
    border-radius: .6rem;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 750;
    counter-increment: wizard;
}

.wizard-steps li::before {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border: 1px solid #c7d4df;
    border-radius: 50%;
    content: counter(wizard);
    font-size: .68rem;
    place-items: center;
}

.wizard-steps li.active {
    color: var(--blue-dark);
    background: var(--info-bg);
}

.wizard-steps li.active::before {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
}

.wizard-steps li.complete::before {
    border-color: var(--green);
    color: #fff;
    background: var(--green);
    content: "✓";
}

.wizard-card {
    padding: clamp(1.2rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.wizard-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.wizard-head h1 {
    margin-bottom: .3rem;
    font-size: 1.7rem;
}

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.color-row {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.color-field {
    display: flex;
    min-width: 170px;
    align-items: center;
    gap: .55rem;
    padding: .35rem .55rem;
    border: 1px solid #cbd8e4;
    border-radius: .67rem;
}

.color-field input[type="color"] {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: .45rem;
    background: transparent;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    min-width: 780px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-name,
.calendar-day {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.calendar-day-name {
    padding: .6rem;
    color: var(--muted);
    background: #f7fafc;
    font-size: .7rem;
    font-weight: 850;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 125px;
    padding: .45rem;
    background: #fff;
}

.calendar-day.muted {
    color: #a5b0bc;
    background: #fafcfd;
}

.calendar-date {
    display: block;
    margin-bottom: .35rem;
    font-size: .72rem;
    font-weight: 800;
}

.calendar-event {
    display: block;
    margin: .25rem 0;
    padding: .4rem;
    border-left: 3px solid var(--blue);
    border-radius: .35rem;
    color: #15567f;
    background: var(--info-bg);
    font-size: .65rem;
    font-weight: 750;
    text-decoration: none;
}

.calendar-event.approved {
    border-left-color: var(--green);
    color: var(--success);
    background: var(--success-bg);
}

.chat {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.message {
    max-width: 78%;
    padding: .85rem 1rem;
    border-radius: 1rem 1rem 1rem .2rem;
    background: #edf3f8;
}

.message.own {
    align-self: flex-end;
    border-radius: 1rem 1rem .2rem 1rem;
    color: #fff;
    background: var(--blue);
}

.message p {
    margin-bottom: .35rem;
}

.message small {
    font-size: .68rem;
    opacity: .72;
}

.qc-list {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qc-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .7rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.qc-item input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--green);
}

.tab-list {
    display: flex;
    gap: .3rem;
    margin-bottom: 1rem;
    padding: .35rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
}

.tab-list a,
.tab-list button {
    min-height: 38px;
    padding: .55rem .85rem;
    border: 0;
    border-radius: .55rem;
    color: var(--muted);
    background: transparent;
    font-size: .77rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.tab-list a.active,
.tab-list button.active {
    color: var(--blue-dark);
    background: var(--info-bg);
}

.pagination {
    display: flex;
    justify-content: flex-end;
    gap: .35rem;
    margin-top: 1rem;
}

.pagination a,
.pagination span {
    display: grid;
    min-width: 36px;
    height: 36px;
    padding: 0 .5rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
    color: var(--ink);
    background: #fff;
    font-size: .74rem;
    font-weight: 800;
    text-decoration: none;
    place-items: center;
}

.pagination .active {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
}

.toast-stack {
    position: fixed;
    z-index: 200;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: min(360px, calc(100% - 2rem));
    gap: .55rem;
}

.toast {
    padding: .9rem 1rem;
    border: 1px solid #c6e7b7;
    border-radius: .75rem;
    color: var(--success);
    background: #fff;
    box-shadow: var(--shadow);
    font-size: .84rem;
    font-weight: 750;
    animation: toast-in .22s ease both;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.modal {
    position: fixed;
    z-index: 180;
    inset: 0;
    display: none;
    padding: 1rem;
    background: rgba(2, 14, 29, .66);
    place-items: center;
}

.modal.open {
    display: grid;
}

.modal-card {
    width: min(100%, 590px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.modal-close {
    display: grid;
    width: 37px;
    height: 37px;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: #fff;
    place-items: center;
}

.modal-body {
    padding: 1.2rem;
}

.cookie-banner {
    position: fixed;
    z-index: 160;
    right: 1rem;
    bottom: 1rem;
    display: none;
    width: min(440px, calc(100% - 2rem));
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.cookie-banner.show {
    display: block;
}

.cookie-banner h2 {
    margin-bottom: .35rem;
    font-size: 1rem;
}

.cookie-banner p {
    color: var(--muted);
    font-size: .78rem;
}

.backdrop {
    position: fixed;
    z-index: 89;
    inset: 0;
    display: none;
    background: rgba(3, 17, 35, .58);
}

.backdrop.show {
    display: block;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1100px) {
    .marketing-links {
        gap: 0;
    }

    .marketing-links a {
        padding-inline: .55rem;
        font-size: .82rem;
    }

    .hero-grid {
        grid-template-columns: 1fr .84fr;
        gap: 2.5rem;
    }

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

    .price-card.featured {
        transform: none;
    }

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

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

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

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
    }

    .marketing-links,
    .marketing-actions .btn-light {
        display: none;
    }

    .marketing-links.open {
        position: fixed;
        z-index: 92;
        top: 76px;
        right: 0;
        bottom: 0;
        display: flex;
        width: min(360px, 88vw);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        overflow-y: auto;
        background: #fff;
        box-shadow: -20px 20px 50px rgba(5, 25, 52, .16);
    }

    .marketing-links.open a {
        min-height: 50px;
        padding: .75rem;
        border-bottom: 1px solid #edf2f6;
        font-size: .95rem;
    }

    .hero {
        min-height: 0;
    }

    .hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .hero-product {
        width: min(100%, 560px);
    }

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

    .trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

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

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

    .app-shell {
        display: block;
    }

    .app-sidebar {
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-main {
        display: block;
    }

    .app-mobile-toggle {
        display: grid;
        width: 43px;
        height: 43px;
        flex: 0 0 43px;
        border: 1px solid var(--line);
        border-radius: .65rem;
        background: #fff;
        place-items: center;
    }

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

    .preview-panel {
        position: static;
    }

    .wizard-shell {
        grid-template-columns: 1fr;
    }

    .wizard-steps {
        position: static;
        overflow-x: auto;
    }

    .wizard-steps ol {
        display: flex;
        min-width: max-content;
    }

    .wizard-steps li {
        min-width: 145px;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 1.25rem, var(--content));
    }

    .brand-logo {
        width: 175px;
        height: 45px;
    }

    .brand-logo img {
        top: -83px;
        left: -18px;
        width: 210px;
        height: 210px;
    }

    .marketing-actions .btn {
        display: none;
    }

    .hero-grid {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 12vw, 3.35rem);
    }

    .hero .button-row .btn {
        width: 100%;
    }

    .window-body {
        grid-template-columns: 65px 1fr;
    }

    .mock-sidebar {
        min-height: 330px;
    }

    .mock-main {
        grid-template-columns: 1fr;
    }

    .mock-detail {
        display: none;
    }

    .floating-badge {
        display: none;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .steps,
    .pricing-grid,
    .example-grid,
    .stats-grid,
    .content-cards,
    .form-grid,
    .qc-list {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom,
    .page-head,
    .calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-shell {
        display: block;
    }

    .auth-aside {
        min-height: auto;
        padding: 1.3rem;
    }

    .auth-aside-copy,
    .auth-benefits {
        display: none;
    }

    .auth-main {
        min-height: calc(100vh - 82px);
        padding: .8rem;
    }

    .auth-card {
        padding: 1.25rem;
        border-radius: 1rem;
        box-shadow: none;
    }

    .auth-home-link {
        margin-bottom: 1rem;
    }

    .form-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-actions .user-chip span {
        display: none;
    }

    .app-content {
        padding: .8rem;
    }

    .card-header,
    .card-body {
        padding: .9rem;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar .field {
        width: 100%;
    }

    .content-card-actions {
        grid-template-columns: 1fr;
    }

    .key-value {
        grid-template-columns: 1fr;
    }

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

    .wizard-card {
        padding: 1rem;
    }

    .wizard-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .wizard-actions .button-row {
        display: grid;
    }

    .message {
        max-width: 92%;
    }

    .copy-box.with-button {
        padding-top: 1rem;
    }

    .copy-box .btn {
        position: static;
        width: 100%;
        margin-bottom: .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .marketing-header,
    .marketing-footer,
    .app-sidebar,
    .app-topbar,
    .button-row,
    .btn,
    .filter-bar,
    .cookie-banner {
        display: none !important;
    }

    .app-main {
        display: block;
    }

    .app-content {
        padding: 0;
    }

    body {
        background: #fff;
    }

    .card,
    .stat-card {
        box-shadow: none;
    }
}
