:root {
    --bg: #eef6ff;
    --surface: #ffffff;
    --surface-soft: #f7fbff;
    --ink: #10233f;
    --muted: #5b6d86;
    --line: #d9e5f2;
    --primary: #0b7fe8;
    --primary-dark: #0754a8;
    --teal: #13b7b0;
    --mint: #e7fbf8;
    --amber: #f5a524;
    --danger: #d83b42;
    --shadow: 0 20px 55px rgba(17, 54, 95, .14);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #f6fbff 0%, #eaf6ff 52%, #eefdfb 100%);
    letter-spacing: 0;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 251, 255, .92);
    border-bottom: 1px solid rgba(217, 229, 242, .85);
    backdrop-filter: blur(14px);
}

.nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle-button {
    display: none;
    width: 44px;
    height: 42px;
    margin: 0;
    border: 1px solid #cfe5fb;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 54, 95, .08);
    cursor: pointer;
    place-items: center;
    gap: 4px;
    padding: 9px;
}

.nav-toggle-button span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 99px;
    background: var(--primary-dark);
    transition: transform .18s ease, opacity .18s ease;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--primary-dark);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: 0 12px 28px rgba(11, 127, 232, .28);
}

.brand-tooth {
    width: 28px;
    height: 28px;
    display: block;
}

.brand-tooth path:first-child {
    fill: #ffffff;
}

.brand-tooth path:last-child {
    fill: none;
    stroke: #d8fbff;
    stroke-width: 2.2;
    stroke-linecap: round;
}

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

.nav-links a,
.button,
button.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius);
    padding: 10px 16px;
    font-weight: 750;
    font-size: 14px;
    cursor: pointer;
}

.nav-links a {
    color: #26425f;
}

.nav-links a:hover,
.nav-links a.active {
    background: #e7f2ff;
    color: var(--primary-dark);
}

.nav-links a.nav-cta {
    border: 1px solid transparent;
    box-shadow: 0 10px 22px rgba(11, 127, 232, .16);
}

.nav-links a.nav-cta-login {
    color: var(--primary-dark);
    background: #ffffff;
    border-color: #9fd3ff;
}

.nav-links a.nav-cta-login:hover {
    color: var(--primary-dark);
    background: #e7f2ff;
}

.nav-links a.nav-cta-register {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--teal));
}

.nav-links a.nav-cta-register:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-dark), #0c9f99);
}

.button {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: 0 12px 24px rgba(11, 127, 232, .2);
}

.button.secondary {
    color: var(--primary-dark);
    background: #eef7ff;
    box-shadow: none;
    border: 1px solid #cfe5fb;
}

.button.danger {
    background: var(--danger);
}

.hero,
.section,
.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 38px;
    align-items: center;
    padding: 64px 0 42px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: .98;
    color: #0a3160;
}

.hero-copy p,
.page-hero p,
.section-lead {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
}

.kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #08756f;
    background: var(--mint);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

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

.hero-panel,
.card,
.admin-card,
.contact-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(217, 229, 242, .95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 24px;
}

.screen {
    min-height: 430px;
    border: 1px solid #cce1f3;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f7fbff;
}

.screen-bar {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: #0b2b4d;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: #67e8f9;
}

.screen-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    min-height: 378px;
}

.screen-menu {
    padding: 16px 12px;
    background: #0e65b9;
}

.screen-menu span {
    display: block;
    height: 28px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .22);
}

.screen-content {
    padding: 18px;
}

.metric-row,
.cards-grid,
.plan-grid,
.feature-grid {
    display: grid;
    gap: 16px;
}

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

.mini-card,
.feature-card {
    padding: 16px;
    border: 1px solid #dce9f5;
    border-radius: var(--radius);
    background: white;
}

.mini-card b {
    display: block;
    font-size: 24px;
    color: var(--primary-dark);
}

.chart {
    height: 120px;
    margin-top: 18px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(19, 183, 176, .14), rgba(11, 127, 232, .12)),
        repeating-linear-gradient(90deg, transparent 0 52px, rgba(11, 127, 232, .08) 52px 53px);
}

.section {
    padding: 74px 0;
}

.section h2,
.admin-card h2,
.contact-card h2 {
    margin: 0 0 12px;
    color: #0b3568;
}

.cards-grid,
.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.preview-cards {
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
}

.soft-band {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, rgba(11, 127, 232, .08), rgba(19, 183, 176, .12));
    border-top: 1px solid rgba(217, 229, 242, .85);
    border-bottom: 1px solid rgba(217, 229, 242, .85);
}

.extras-section {
    padding-top: 18px;
}

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

.card,
.feature-card {
    padding: 24px;
}

.card h3,
.feature-card h3 {
    margin: 0 0 10px;
}

.card p,
.feature-card p,
.small-text {
    color: var(--muted);
    line-height: 1.5;
}

.page-hero {
    padding: 58px 0 26px;
}

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

.billing-toggle {
    width: fit-content;
    display: flex;
    gap: 4px;
    margin: 0 auto 24px;
    padding: 5px;
    border: 1px solid #cfe5fb;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(17, 54, 95, .08);
}

.billing-toggle a {
    min-width: 116px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--primary-dark);
    font-weight: 850;
    font-size: 14px;
}

.billing-toggle a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    box-shadow: 0 8px 18px rgba(11, 127, 232, .18);
}

.plan-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
}

.plan-card.highlighted {
    border-color: rgba(11, 127, 232, .38);
    box-shadow: 0 24px 58px rgba(11, 127, 232, .18);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-height: 42px;
    margin: 14px 0;
    color: var(--primary-dark);
    white-space: nowrap;
}

.plan-price strong {
    font-size: clamp(22px, 2.1vw, 29px);
    font-weight: 900;
    line-height: 1;
}

.plan-price span,
.plan-period {
    font-size: 13px;
    color: var(--muted);
    font-weight: 850;
    white-space: nowrap;
}

.plan-price-note {
    min-height: 20px;
    margin: -6px 0 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.plan-list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.plan-list li {
    padding: 8px 0;
    border-bottom: 1px solid #edf3f8;
    color: #26425f;
}

.plan-card .button {
    margin-top: auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.contact-card {
    padding: 24px;
}

.contact-points {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-points div {
    padding: 14px;
    border: 1px solid #dce9f5;
    border-radius: var(--radius);
    background: #f7fbff;
}

.contact-points b,
.contact-points span {
    display: block;
}

.contact-points span {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

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

.legal-updated {
    margin-top: 14px;
    font-size: 14px;
    color: #52708f;
}

.legal-layout {
    padding-top: 28px;
}

.legal-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.legal-card h2 {
    margin: 26px 0 8px;
    font-size: 21px;
    color: var(--primary-dark);
}

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

.legal-card p {
    margin: 0 0 14px;
    color: #304f70;
    line-height: 1.7;
}

.legal-card a {
    color: var(--primary);
    font-weight: 800;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background: #0b2b4d;
    color: #d9eaff;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 750;
    color: #17385d;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d5e2ef;
    border-radius: var(--radius);
    background: white;
    color: var(--ink);
    padding: 12px 13px;
    font: inherit;
}

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

.notice {
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 12px 0;
    border: 1px solid var(--line);
}

.notice.success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

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

.notice.info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.admin-body {
    background: #eef6ff;
}

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

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin: 8px 0 0;
    color: #0a3160;
}

.admin-actions,
.status-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
    gap: 18px;
    align-items: start;
}

.settings-layout-balanced {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.settings-card {
    box-shadow: 0 12px 32px rgba(17, 54, 95, .1);
}

.settings-main {
    display: grid;
    gap: 18px;
}

.settings-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 94px;
}

.settings-section-card {
    display: grid;
    gap: 14px;
}

.settings-section-card h2,
.settings-sidebar h2 {
    margin-top: 8px;
}

.settings-savebar {
    display: flex;
    justify-content: flex-end;
    padding: 14px;
    border: 1px solid rgba(217, 229, 242, .95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 20px rgba(17, 54, 95, .08);
}

.settings-mini-form {
    display: grid;
    gap: 12px;
}

.settings-details {
    border: 1px solid rgba(217, 229, 242, .95);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    background: rgba(247, 251, 255, .8);
}

.settings-details summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--primary);
}

.settings-details[open] {
    display: grid;
    gap: 12px;
}

.admin-card {
    padding: 22px;
}

.admin-card.compact {
    align-self: start;
}

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

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

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5edf5;
    text-align: left;
    vertical-align: top;
}

th {
    color: #325574;
    font-size: 12px;
    text-transform: uppercase;
}

.inline-form {
    display: inline;
}

.soft-divider {
    border: 0;
    border-top: 1px solid #e2edf7;
    margin: 18px 0;
}

.feature-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}

.feature-chip {
    border: 1px solid #cfe5fb;
    background: #eef7ff;
    color: #0754a8;
    border-radius: 999px;
    padding: 8px 11px;
    cursor: pointer;
    font-size: 13px;
}

.guide-list {
    margin: 16px 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.55;
}

.guide-list li {
    margin-bottom: 10px;
}

.guide-list b {
    color: var(--ink);
}

code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #edf6ff;
    color: #0754a8;
    font-size: .92em;
}

@media (max-width: 940px) {
    .nav {
        gap: 14px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero,
    .contact-layout,
    .admin-grid,
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-main {
        grid-row: auto;
    }

    .settings-sidebar {
        position: static;
    }

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

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

    .hero-panel {
        max-width: 680px;
        width: 100%;
    }

    .screen {
        min-height: 360px;
    }

    .screen-grid {
        min-height: 308px;
    }
}

@media (max-width: 640px) {
    body {
        background: #f6fbff;
    }

    .nav {
        width: min(100% - 24px, 1180px);
        min-height: 64px;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 10px 0;
        gap: 10px;
    }

    .brand {
        min-width: 0;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-tooth {
        width: 25px;
        height: 25px;
    }

    .nav-toggle-button {
        display: grid;
    }

    .nav-links {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        padding: 10px;
        border: 1px solid rgba(217, 229, 242, .95);
        border-radius: var(--radius);
        background: #ffffff;
        box-shadow: 0 16px 35px rgba(17, 54, 95, .14);
    }

    .nav-toggle:checked ~ .nav-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nav-toggle:checked + .nav-toggle-button span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-button span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-button span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-links a,
    .nav-links a.nav-cta {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        box-shadow: none;
    }

    .hero,
    .section,
    .page-hero,
    .footer-inner,
    .admin-shell {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        padding: 30px 0 28px;
        gap: 24px;
    }

    .hero-copy h1,
    .page-hero h1 {
        margin: 10px 0 14px;
        font-size: clamp(34px, 12vw, 46px);
        line-height: 1.04;
    }

    .hero-copy p,
    .page-hero p,
    .section-lead {
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .button,
    button.button {
        width: 100%;
        min-height: 46px;
        padding: 12px 16px;
    }

    .hero-panel {
        padding: 12px;
        box-shadow: 0 12px 28px rgba(17, 54, 95, .12);
    }

    .screen {
        min-height: auto;
    }

    .screen-bar {
        height: 42px;
    }

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

    .screen-menu {
        display: flex;
        gap: 8px;
        overflow: hidden;
        padding: 10px;
    }

    .screen-menu span {
        width: 44px;
        height: 10px;
        margin: 0;
        flex: 0 0 auto;
    }

    .screen-content {
        padding: 12px;
    }

    .mini-card,
    .feature-card,
    .card,
    .contact-card,
    .admin-card {
        padding: 18px;
    }

    .mini-card b {
        font-size: 21px;
    }

    .chart {
        height: 90px;
        margin-top: 12px;
    }

    .section {
        padding: 46px 0;
    }

    .soft-band {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-hero {
        padding: 36px 0 16px;
    }

    .billing-toggle {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 18px;
    }

    .billing-toggle a {
        min-width: 0;
        min-height: 42px;
        padding: 8px 10px;
        text-align: center;
    }

    .plan-card {
        padding: 19px;
    }

    .plan-price {
        flex-wrap: wrap;
        white-space: normal;
    }

    .plan-price strong {
        font-size: 27px;
    }

    .contact-layout {
        gap: 16px;
    }

    .footer-inner {
        display: grid;
        grid-template-columns: 1fr;
        padding: 28px 0;
    }

    .footer-inner .nav-links {
        display: grid;
        grid-template-columns: 1fr;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .cards-grid,
    .feature-grid,
    .extras-grid,
    .plan-grid,
    .metric-row {
        grid-template-columns: 1fr;
    }

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

    .admin-actions,
    .status-form {
        width: 100%;
    }

    .table-wrap {
        margin-left: -6px;
        margin-right: -6px;
    }
}

@media (max-width: 380px) {
    .hero-copy h1,
    .page-hero h1 {
        font-size: 32px;
    }

    .billing-toggle {
        grid-template-columns: 1fr;
    }

    .brand {
        font-size: 15px;
    }
}
