:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef6ff;
    --surface-tint: #f9fbff;
    --text: #142033;
    --muted: #617088;
    --line: #d7e0eb;
    --line-strong: #bfcedd;
    --primary: #0f86d6;
    --primary-dark: #0b67a6;
    --primary-soft: #e4f3ff;
    --accent: #4f46e5;
    --accent-soft: #eef2ff;
    --success: #0f8a54;
    --success-soft: #eafaf1;
    --warning: #d97706;
    --warning-soft: #fff7e6;
    --danger: #c93445;
    --danger-soft: #fff1f3;
    --shadow: 0 18px 45px rgba(20, 40, 70, 0.10);
    --shadow-soft: 0 8px 22px rgba(20, 40, 70, 0.07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% -10%, rgba(15, 134, 214, 0.13), transparent 28%),
        radial-gradient(circle at 86% 0%, rgba(79, 70, 229, 0.10), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 300px);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

main.shell {
    flex: 1 0 auto;
    padding-bottom: 72px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

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

.site-header {
    background: rgba(248, 251, 255, 0.86);
    border-bottom: 1px solid rgba(215, 224, 235, 0.82);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header .account-nav {
    width: min(1180px, calc(100% - 40px));
}

.top-nav {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 850;
    font-size: 20px;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(15, 134, 214, 0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu-toggle,
.account-menu-toggle,
.mobile-nav-actions {
    display: none;
}

.nav-links a,
.nav-logout button,
.account-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    padding: 9px 12px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nav-links a.active,
.nav-links a:hover,
.nav-logout button:hover,
.account-nav a.active,
.account-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-color: #cae5fb;
    box-shadow: var(--shadow-soft);
}

.nav-links a:hover,
.nav-logout button:hover,
.account-nav a:hover {
    transform: translateY(-1px);
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: currentColor;
    flex: 0 0 auto;
}

.nav-icon svg,
.feature-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.nav-logout {
    margin: 0;
}

.account-nav {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 0 10px;
    position: relative;
}

.account-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.mobile-menu-heading,
.account-menu-profile {
    display: none;
}

.account-nav::before {
    content: "";
    position: absolute;
    inset: 0 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(90deg, #edf7ff, #f1f3ff 50%, #edf8f3);
    border-top: 1px solid #d7eaff;
    border-bottom: 1px solid #d4e3f5;
    z-index: 0;
}

.account-nav a {
    border-color: rgba(197, 221, 244, 0.9);
    background: #ffffff;
    color: #36536f;
    font-size: 14px;
    font-weight: 650;
    padding: 8px 14px;
    position: relative;
    z-index: 1;
    box-shadow: 0 3px 10px rgba(15, 80, 130, 0.07);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 56px 0 42px;
}

.hero-copy {
    min-width: 0;
}

.hero h1,
.page-heading h1,
.form-copy h1,
.narrow-page h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero p,
.page-heading p,
.form-copy p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.lead {
    max-width: 680px;
}

.hero-highlights {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hero-highlights span {
    border: 1px solid #cfe4fb;
    border-radius: 999px;
    background: #ffffff;
    color: #24516f;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 11px;
    box-shadow: 0 1px 2px rgba(15, 80, 130, 0.06);
}

.hero-product-shot {
    margin: 0;
    position: relative;
}

.hero-product-shot::before {
    content: none;
}

.hero-product-shot img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: 0 28px 75px rgba(20, 40, 70, 0.20);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 16px;
    box-shadow: 0 1px 2px rgba(20, 40, 70, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.button.primary {
    background: linear-gradient(180deg, #1394ea, var(--primary));
    border-color: #0c7fcc;
    color: #fff;
}

.button.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.button.secondary {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    color: var(--text);
}

.button.secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.button.wide {
    width: 100%;
}

.button.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.button:disabled,
.button.is-loading {
    cursor: wait;
    opacity: 0.78;
    pointer-events: none;
}

.button-spinner {
    display: none;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 999px;
    animation: spin 0.75s linear infinite;
}

.button.is-loading .button-spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.card {
    background: linear-gradient(180deg, var(--surface), var(--surface-tint));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.console-preview {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
        radial-gradient(circle at 20% 0%, rgba(15, 134, 214, 0.16), transparent 35%);
    border: 1px solid rgba(191, 206, 221, 0.9);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(20, 40, 70, 0.16);
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.console-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 4px solid rgba(15, 134, 214, 0.72);
    pointer-events: none;
}

.preview-tabs,
.preview-toolbar {
    display: flex;
    gap: 8px;
}

.preview-tabs span,
.preview-toolbar span {
    height: 34px;
    min-width: 74px;
    border-radius: 10px;
    background: #edf4fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.preview-toolbar {
    justify-content: flex-start;
    margin-bottom: 10px;
}

.preview-tabs .active,
.preview-toolbar .active {
    background: linear-gradient(180deg, #1598ed, var(--primary));
    color: #fff;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.cue {
    min-height: 92px;
    border: 1px solid #d8e1ec;
    border-radius: 12px;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 14px;
    color: #344054;
}

.cue.audio {
    border-top: 4px solid #0f86d6;
    background: linear-gradient(180deg, #f9fdff, #eef7ff);
}

.cue.video {
    border-top: 4px solid var(--accent);
    background: linear-gradient(180deg, #fbfbff, #f1f0ff);
}

.cue.image {
    border-top: 4px solid #16a34a;
    background: linear-gradient(180deg, #fbfffd, #eefaf4);
}

.cue.active-cue {
    background: linear-gradient(180deg, #1598ed, var(--primary));
    border-color: var(--primary);
    color: #fff;
}

.preview-tile {
    aspect-ratio: 1 / 0.78;
    border-radius: 8px;
    border: 1px solid #d8e1ec;
    background: linear-gradient(135deg, #ffffff, #eaf4ff);
    position: relative;
    overflow: hidden;
}

.preview-tile::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 9px;
    border-radius: 999px;
    background: rgba(15, 134, 214, 0.38);
}

.preview-player {
    height: 44px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 48px 1fr 90px;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
}

.preview-player span:first-child {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(180deg, #1598ed, var(--primary));
}

.play-dot {
    box-shadow: inset 0 0 0 9px var(--primary), inset 0 0 0 15px #fff;
}

.preview-player span:nth-child(2) {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary) 45%, #d8dee8 45%);
}

.preview-player .timeline {
    height: 6px;
    border-radius: 999px;
    background: #d8dee8;
    overflow: hidden;
}

.preview-player .timeline i {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.preview-player span:last-child {
    color: var(--muted);
    font-size: 12px;
}

.section {
    padding: 38px 0;
}

.section h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
}

.section p {
    color: var(--muted);
    line-height: 1.65;
}

.upgrade-hero {
    max-width: 760px;
    padding-bottom: 6px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: 28px;
}

.feature-strip,
.feature-grid,
.pricing-grid,
.checkout-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 28px 0;
}

.feature-strip .card,
.feature-grid article,
.plan-card,
.limits-card,
.entitlements-card,
.account-card {
    padding: 22px;
}

.feature-grid article {
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.feature-grid article:hover {
    border-color: #c7def3;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-grid h3 {
    margin: 14px 0 8px;
}

.feature-grid p {
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(180deg, var(--primary-soft), #d9eeff);
    color: var(--primary);
    font-weight: 850;
    padding: 10px;
    box-shadow: inset 0 0 0 1px rgba(15, 134, 214, 0.12);
}

.feature-icon.green {
    background: linear-gradient(180deg, var(--success-soft), #d9f7e7);
    color: var(--success);
}

.feature-icon.indigo {
    background: linear-gradient(180deg, var(--accent-soft), #e1e7ff);
    color: var(--accent);
}

.feature-icon.amber {
    background: linear-gradient(180deg, var(--warning-soft), #ffedbf);
    color: var(--warning);
}

.split-media-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: 34px;
    align-items: center;
}

.split-media-section.reverse {
    grid-template-columns: minmax(320px, 1.15fr) minmax(0, 0.85fr);
}

.context-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(191, 206, 221, 0.9);
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(20, 40, 70, 0.16);
}

.mini-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.mini-feature-list span {
    border: 1px solid #cfe4fb;
    border-radius: 999px;
    background: #fff;
    color: #24516f;
    font-size: 13px;
    font-weight: 750;
    padding: 8px 12px;
    box-shadow: var(--shadow-soft);
}

.surface-band {
    position: relative;
    margin: 16px 0;
    padding: 42px 0;
}

.surface-band::before {
    content: "";
    position: absolute;
    inset: 0 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(90deg, rgba(237, 247, 255, 0.9), rgba(241, 243, 255, 0.75), rgba(237, 248, 243, 0.82));
    border-top: 1px solid rgba(215, 234, 255, 0.85);
    border-bottom: 1px solid rgba(212, 227, 245, 0.85);
    z-index: -1;
}

.use-case-grid,
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.use-case-grid article,
.workflow-grid article {
    background: linear-gradient(180deg, #fff, #f9fbff);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 20px;
}

.use-case-grid h3,
.workflow-grid h3 {
    margin: 14px 0 8px;
}

.use-case-grid p,
.workflow-grid p {
    margin: 0;
}

.workflow-section {
    padding-top: 48px;
}

.workflow-grid article {
    position: relative;
    overflow: hidden;
}

.workflow-grid article::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
}

.workflow-grid strong {
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.plan-teaser {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: 28px;
    align-items: center;
}

.plan-teaser-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.plan-teaser-cards span {
    min-height: 118px;
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: var(--shadow-soft);
    color: var(--muted);
    padding: 18px;
}

.plan-teaser-cards b {
    color: var(--text);
}

.final-cta {
    margin: 18px 0 24px;
    border: 1px solid rgba(15, 134, 214, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 15% 0%, rgba(15, 134, 214, 0.16), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(15, 138, 84, 0.14), transparent 32%),
        linear-gradient(180deg, #ffffff, #f4f9ff);
    box-shadow: var(--shadow);
    padding: 34px;
}

.final-cta p {
    max-width: 760px;
}

.feature-strip h2,
.plan-card h2,
.limits-card h2,
.entitlements-card h2,
.form-card h2 {
    margin: 0 0 10px;
}

.card-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.card-title-row span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.feature-strip p,
.plan-card p,
.muted {
    color: var(--muted);
}

.page-heading {
    padding: 40px 0 18px;
}

.page-heading.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.form-page {
    min-height: calc(100vh - 160px);
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 48px;
    align-items: center;
    padding: 34px 0;
}

.form-page.compact {
    grid-template-columns: 1fr 380px;
}

.form-card {
    padding: 28px;
}

.form-card label,
.admin-user-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: #344054;
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd7e5;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    padding: 10px 13px;
    box-shadow: 0 1px 2px rgba(20, 40, 70, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #667085 50%),
        linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 18px,
        calc(100% - 13px) 18px;
    background-repeat: no-repeat;
    background-size: 5px 5px;
    padding-right: 36px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 134, 214, 0.13), 0 1px 2px rgba(20, 40, 70, 0.04);
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.billing-field-hidden {
    display: none !important;
}

.benefit-grid {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.benefit-grid div {
    background: linear-gradient(180deg, #fff, #f9fbff);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.benefit-grid span {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.center {
    text-align: center;
}

.alert {
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 13px 15px;
    font-weight: 650;
}

.alert.error {
    background: var(--danger-soft);
    border: 1px solid #ffc7d0;
    color: var(--danger);
}

.alert.success {
    background: var(--success-soft);
    border: 1px solid #b8e7c7;
    color: var(--success);
}

.alert.info {
    background: var(--primary-soft);
    border: 1px solid #b7dcff;
    color: var(--primary-dark);
}

.pricing-grid > .alert {
    grid-column: 1 / -1;
}

.narrow-page {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
}

.success-card,
.empty-state {
    max-width: 560px;
    padding: 34px;
    text-align: center;
}

.success-card .actions,
.empty-state .actions {
    justify-content: center;
}

.status-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--success);
}

.pricing-grid {
    align-items: stretch;
}

.plan-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.plan {
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.plan::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
}

.plan:hover {
    border-color: #c4daf0;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.plan.featured {
    border-color: rgba(15, 134, 214, 0.45);
    box-shadow: 0 18px 50px rgba(15, 134, 214, 0.16);
}

.plan-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary-soft), #dbeeff);
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
    padding: 5px 10px;
}

.plan-price {
    margin: 0;
    font-size: 30px;
    font-weight: 850;
    color: var(--text);
}

.plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.plan-features li {
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding-top: 10px;
}

.plan-features li::before {
    content: "";
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--success-soft);
    box-shadow: inset 0 0 0 1px rgba(15, 138, 84, 0.18);
    flex: 0 0 auto;
    margin-top: 1px;
}

.price {
    font-size: 36px;
    font-weight: 850;
}

.price small {
    color: var(--muted);
    font-size: 14px;
}

.checkout-grid {
    align-items: start;
    grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr);
}

.checkout-summary {
    display: grid;
    gap: 22px;
    padding: 28px;
}

.checkout-summary-main {
    display: grid;
    gap: 16px;
}

.checkout-summary-main p:not(.plan-price) {
    color: #475467;
    line-height: 1.6;
    margin: 0;
}

.checkout-summary .plan-features {
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 6px;
}

.checkout-summary .plan-features li {
    border-top: 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.5;
    padding: 12px 0;
}

.checkout-summary .plan-features li:last-child {
    border-bottom: 0;
}

.payment-note {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(15, 134, 214, 0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--primary-soft), #f3f9ff);
    padding: 16px 18px;
}

.payment-note span {
    color: var(--muted);
}

.settings-note {
    display: grid;
    gap: 4px;
    border: 1px solid #b7dcff;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 14px 16px;
}

.settings-note span {
    color: #475467;
}

.settings-note.warning {
    background: #fff7e8;
    border-color: #ffd89b;
    color: #92400e;
}

.paypal-settings-form {
    max-width: 920px;
}

.copy-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 8px;
}

.copy-field input[readonly] {
    background: #fff;
    color: #344054;
}

.form-grid {
    display: grid;
    gap: 14px;
}

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

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

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

.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

@media (max-width: 860px) {
    .checkout-grid,
    .form-grid.two,
    .form-grid.three {
        grid-template-columns: 1fr;
    }
}

.clean-list li {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

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

.account-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 850;
    overflow: hidden;
}

.avatar.large {
    width: 72px;
    height: 72px;
    font-size: 28px;
}

.avatar.xl {
    width: 112px;
    height: 112px;
    font-size: 42px;
}

.avatar-button {
    border: 1px solid #b8ddfc;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: visible;
}

.avatar-button:hover {
    box-shadow: 0 0 0 4px rgba(15, 134, 214, 0.14);
}

.avatar-button img,
.avatar-button > span:not(.avatar-camera-badge) {
    border-radius: inherit;
    overflow: hidden;
}

.avatar-camera-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
    color: #fff;
}

.avatar.xl .avatar-camera-badge {
    width: 30px;
    height: 30px;
}

.avatar-camera-badge svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.avatar.xl .avatar-camera-badge svg {
    width: 17px;
    height: 17px;
}

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

.avatar img + span {
    display: none;
}

.profile-card {
    max-width: 940px;
    margin-bottom: 48px;
    padding: 30px 28px 28px;
    gap: 22px;
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2px;
}

.profile-avatar-row h2 {
    margin: 0 0 6px;
}

.profile-form {
    display: grid;
    gap: 20px;
}

.profile-form .form-grid {
    gap: 18px;
}

.profile-form label {
    margin-bottom: 0;
}

.profile-form .settings-note {
    margin: -2px 0 0;
}

.profile-form .actions {
    margin-top: -2px;
}

.avatar-crop-dialog {
    width: min(560px, calc(100vw - 32px));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.avatar-crop-dialog::backdrop {
    background: rgba(15, 23, 42, 0.35);
}

.avatar-crop-shell {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.avatar-crop-stage {
    width: min(420px, 100%);
    aspect-ratio: 1;
    border-radius: 16px;
    background: #eef5fb;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    touch-action: none;
    cursor: grab;
}

.avatar-crop-stage:active {
    cursor: grabbing;
}

.avatar-crop-stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.avatar-crop-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.avatar-crop-mask::before,
.avatar-crop-mask::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.avatar-crop-mask::before {
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.56);
}

.avatar-crop-mask::after {
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 134, 214, 0.55);
}

.avatar-zoom {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 700;
}

.avatar-crop-error {
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff5f5;
    color: #b42318;
    font-weight: 700;
    padding: 11px 13px;
}

.billing-profile-form {
    max-width: 940px;
    margin-bottom: 48px;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: #eef3f8;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 11px;
    box-shadow: inset 0 0 0 1px rgba(52, 64, 84, 0.06);
}

.badge.blue {
    background: linear-gradient(180deg, #1598ed, var(--primary));
    color: #fff;
}

.button.compact {
    min-height: 34px;
    padding: 8px 12px;
}

.button.danger {
    background: linear-gradient(180deg, #fffafa, #fff1f3);
    border-color: #fecaca;
    color: #b42318;
}

.block {
    display: block;
}

.limit-row {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.limit-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #344054;
}

.limit-track {
    height: 10px;
    border-radius: 999px;
    background: #e4eaf1;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(20, 40, 70, 0.08);
}

.limit-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #3aa7ee);
}

.search-form {
    display: flex;
    min-width: min(420px, 100%);
    gap: 10px;
}

.table-card {
    padding: 20px;
}

.cloud-storage-summary {
    display: grid;
    gap: 8px;
    margin: 16px 0 18px;
}

.table-header,
.pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 0 16px;
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-top: 1px solid var(--line);
    padding: 13px 12px;
    text-align: left;
    white-space: nowrap;
}

.admin-table th {
    background: #f6f9fc;
    color: #52657a;
    font-size: 12px;
    text-transform: uppercase;
}

.admin-table tbody tr:first-child td {
    border-top: 1px solid var(--line);
}

.admin-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.click-row {
    cursor: pointer;
}

.click-row:hover {
    background: #eef7ff;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.row-actions form {
    margin: 0;
}

.status {
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.status.ok {
    background: #e8f8ee;
    color: var(--success);
}

.status.off {
    background: #fff0f2;
    color: var(--danger);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.event-stack {
    display: grid;
    gap: 8px;
    min-width: 260px;
}

.event-stack div {
    display: grid;
    gap: 2px;
}

.event-stack span,
.admin-table td > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.billing-table .billing-details {
    min-width: 300px;
    max-width: 420px;
    white-space: normal;
}

.billing-details span {
    overflow-wrap: anywhere;
}

.amount-cell {
    font-weight: 800;
}

.invoice-number-input {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
    font: inherit;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.inline-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.invoice-date {
    color: var(--muted);
    font-size: 12px;
}

.invoice-status-link {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.invoice-status-link.pending {
    color: var(--danger);
}

.invoice-status-link.invoiced {
    color: var(--success);
}

.invoice-dialog {
    width: min(430px, calc(100vw - 32px));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.22);
}

.invoice-dialog::backdrop {
    background: rgba(15, 23, 42, 0.28);
}

.invoice-dialog-form {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.invoice-dialog-form label:not(.inline-check) {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.dialog-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.dialog-title-row strong {
    display: block;
    font-size: 20px;
}

.dialog-title-row span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.dialog-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.subscription-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.subscription-summary div {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbff;
    padding: 13px;
}

.subscription-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.subscription-summary strong {
    overflow-wrap: anywhere;
}

.admin-user-form {
    padding: 26px;
    margin-bottom: 40px;
}

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

.storage-limit-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
}

.admin-user-form span.storage-limit-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.admin-user-form span.storage-limit-input input,
.admin-user-form span.storage-limit-input select {
    margin: 0;
}

.check-line {
    align-content: center;
    grid-template-columns: 20px 1fr !important;
}

.check-line input {
    min-height: auto;
}

.storage-plan-check {
    align-self: end;
    min-height: 42px;
    margin-bottom: 16px;
}

.limits-editor {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 20px;
}

.usage-editor {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 20px;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.usage-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    padding: 22px 0 28px;
    flex: 0 0 auto;
}

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

.footer-links {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
}

.footer-links button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--primary-dark);
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.22);
    opacity: 0;
    transition: opacity 0.16s ease;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent.visible {
    opacity: 1;
}

.cookie-consent-card {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
    padding: 24px;
    transform: translateY(16px);
    transition: transform 0.16s ease;
}

.cookie-consent.visible .cookie-consent-card {
    transform: translateY(0);
}

.cookie-consent-copy h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.cookie-consent-copy p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 10px;
}

.cookie-options {
    display: grid;
    gap: 10px;
}

.cookie-option {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbff;
    padding: 13px;
}

.cookie-option input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.cookie-option strong,
.cookie-option small {
    display: block;
}

.cookie-option small {
    color: var(--muted);
    line-height: 1.45;
    margin-top: 3px;
}

.cookie-option.locked {
    background: var(--primary-soft);
}

.cookie-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-hero {
    max-width: 820px;
}

.legal-page {
    max-width: 860px;
    margin-bottom: 48px;
    padding: 30px;
}

.download-panel {
    max-width: 760px;
    margin-bottom: 48px;
    padding: 28px;
}

.download-panel h2 {
    margin-top: 0;
}

.download-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.release-flags {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 100%;
}

.legal-page h2 {
    margin: 26px 0 8px;
    font-size: 20px;
}

.legal-page h2:first-child {
    margin-top: 0;
}

.legal-page p {
    color: var(--muted);
    line-height: 1.7;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 18px 0 8px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.legal-table th,
.legal-table td {
    border-top: 1px solid var(--line);
    padding: 13px 12px;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.legal-table td {
    color: var(--muted);
    line-height: 1.55;
}

.legal-table code {
    color: var(--text);
    font-size: 13px;
}

.legal-note {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 18px;
    font-size: 14px;
}

@media (max-width: 820px) {
    main.shell {
        padding-bottom: 52px;
    }

    .hero,
    .form-page,
    .form-page.compact,
    .dashboard-grid,
    .feature-strip,
    .feature-grid,
    .pricing-grid,
    .usage-grid,
    .form-grid.two,
    .split-media-section,
    .split-media-section.reverse,
    .use-case-grid,
    .workflow-grid,
    .plan-teaser,
    .plan-teaser-cards {
        grid-template-columns: 1fr;
    }

    .context-image {
        border-radius: 16px;
    }

    .surface-band {
        padding: 30px 0;
    }

    .final-cta {
        padding: 24px;
    }

    .page-heading.split {
        align-items: stretch;
        flex-direction: column;
    }

    .top-nav {
        height: 66px;
        padding: 16px 0;
        align-items: center;
        flex-direction: row;
        position: relative;
        gap: 12px;
    }

    .brand {
        font-size: 18px;
    }

    .brand img {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .nav-menu-toggle,
    .account-menu-toggle {
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid #c6d7e8;
        border-radius: 13px;
        background: #ffffff;
        color: var(--text);
        cursor: pointer;
        box-shadow: var(--shadow-soft);
    }

    .mobile-nav-actions {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    .nav-menu-toggle {
        padding: 0;
    }

    .nav-menu-toggle svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2.2;
    }

    .nav-menu-toggle[aria-expanded="true"],
    .account-menu-toggle[aria-expanded="true"] {
        background: var(--primary-soft);
        border-color: #a6d8fb;
        color: var(--primary-dark);
    }

    .nav-links,
    .account-nav-links {
        display: grid;
        align-content: start;
        gap: 6px;
        position: fixed;
        top: 0;
        right: 0;
        width: min(216px, calc(100vw - 18px));
        height: 100dvh;
        padding: 12px 8px 14px;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        border-left: 1px solid #d2e0ee;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -18px 0 45px rgba(20, 40, 70, 0.14);
        backdrop-filter: blur(14px);
        opacity: 0;
        pointer-events: none;
        transform: translateX(100%);
        transition: transform 0.22s ease, opacity 0.22s ease;
        z-index: 40;
    }

    body.mobile-menu-open {
        overflow: hidden;
        touch-action: none;
    }

    .mobile-menu-heading {
        display: block;
        margin: 0 4px 8px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 850;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .account-menu-profile {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 8px;
        padding: 9px;
        border: 1px solid #cfe4fb;
        border-radius: 12px;
        background: var(--primary-soft);
    }

    .account-menu-profile .avatar {
        width: 36px;
        height: 36px;
        border: 1px solid #a7d6fa;
        background: #ffffff;
        flex: 0 0 auto;
    }

    .account-menu-profile strong,
    .account-menu-profile span {
        display: block;
    }

    .account-menu-profile strong {
        color: var(--text);
        font-size: 14px;
        line-height: 1.2;
    }

    .account-menu-profile div > span {
        margin-top: 3px;
        color: var(--primary-dark);
        font-size: 12px;
        font-weight: 750;
    }

    .nav-links.is-open,
    .account-nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .nav-links a,
    .nav-logout button,
    .account-nav a {
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        border-color: transparent;
        border-radius: 10px;
        padding: 10px 10px;
        box-shadow: 0 5px 16px rgba(20, 40, 70, 0.06);
    }

    .nav-logout {
        width: 100%;
    }

    .account-nav {
        min-height: 0;
        height: 0;
        justify-content: flex-end;
        padding: 0;
        position: relative;
    }

    .account-nav::before {
        display: none;
    }

    .account-menu-toggle {
        position: relative;
        z-index: 25;
        width: 46px;
        height: 46px;
        padding: 3px;
        border-radius: 50%;
    }

    .account-menu-toggle .avatar {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .cookie-consent {
        padding: 14px;
    }

    .cookie-consent-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .cookie-actions {
        justify-content: stretch;
    }

    .cookie-actions .button {
        flex: 1 1 160px;
    }
}
