@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Manrope:wght@400;500;700&display=swap");

:root {
    --bg: #edf3f6;
    --text: #112634;
    --muted: #4f6674;
    --line: #d1dee6;
    --card: #ffffff;
    --brand-1: #1b6f8a;
    --brand-2: #173b4a;
    --panel-soft: #f8fcfe;
    --shadow-soft: 0 14px 34px rgba(9, 33, 44, 0.08);
    --shadow-strong: 0 20px 46px rgba(9, 33, 44, 0.1);
}

:root[data-theme="dark"] {
    --bg: #10191f;
    --text: #eef7fa;
    --muted: #a8c0ca;
    --line: #314650;
    --card: #17242c;
    --brand-1: #5db8d2;
    --brand-2: #c8edf5;
    --panel-soft: #122028;
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.28);
    --shadow-strong: 0 20px 46px rgba(0, 0, 0, 0.36);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% -10%, #cfe8f2 0%, transparent 38%),
        radial-gradient(circle at 92% 8%, #d7efe3 0%, transparent 36%),
        var(--bg);
}

:root[data-theme="dark"] body,
:root.theme-dark body {
    background:
        radial-gradient(circle at 10% -10%, rgba(69, 151, 177, 0.18) 0%, transparent 38%),
        radial-gradient(circle at 92% 8%, rgba(64, 137, 120, 0.16) 0%, transparent 36%),
        var(--bg);
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(17, 38, 52, 0.1);
    background: rgba(245, 250, 252, 0.9);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 84px;
    min-height: 82px;
    padding: 12px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    width: 150px;
    height: 150px;
    display: block;
    object-fit: contain;
}

.brand-text {
    font-family: "Fraunces", serif;
    font-size: 1.25rem;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid #bad4de;
    border-radius: 999px;
    background: #e7f1f5;
    color: var(--brand-2);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 9px 12px;
    cursor: pointer;
}

.mobile-nav-icon {
    display: grid;
    gap: 4px;
    width: 18px;
}

.mobile-nav-icon span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-cluster {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 24px;
}

.nav-stack {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.portal-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 380px;
    min-width: 380px;
    max-width: 380px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid #d2e1ea;
    background: #f8fcfe;
    flex-shrink: 0;
    transition: none;
}

.portal-link {
    text-decoration: none;
    color: #2a5a6b;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    padding: 8px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 36px;
    width: 100%;
    white-space: nowrap;
    transition: none;
}

.portal-link:hover {
    color: #163f4d;
    background: #ecf6fb;
    transform: none;
}

.portal-link.is-active {
    color: #fff;
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
    transform: none;
}

.portal-switch .portal-link:first-child {
    grid-column: 1;
}

.portal-switch .portal-link:last-child {
    grid-column: 2;
}

.main-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 11px 14px;
    border-radius: 10px;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.main-nav a:hover {
    color: var(--brand-2);
    background: #e4f4f9;
    transform: translateY(-1px);
}

.main-nav a.is-active {
    color: #fff;
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.nav-logout-form {
    margin: 0;
}

.nav-btn {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 10px 14px;
    border-radius: 10px;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.nav-btn-login {
    color: var(--brand-2);
    background: #e7f1f5;
    border: 1px solid #bad4de;
}

.nav-btn-login.is-active {
    background: #d3e7ee;
}

.nav-btn-register {
    color: #fff;
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
    box-shadow: 0 8px 16px rgba(15, 47, 58, 0.22);
}

.nav-btn-register.is-active {
    box-shadow: 0 0 0 2px rgba(10, 108, 134, 0.24), 0 8px 16px rgba(15, 47, 58, 0.22);
}

.nav-btn-logout {
    color: #fff;
    background: #315866;
}

.nav-btn-logout:hover {
    box-shadow: 0 8px 16px rgba(29, 55, 65, 0.2);
}

.theme-toggle {
    border: 1px solid #bad4de;
    background: #e7f1f5;
    color: var(--brand-2);
    border-radius: 999px;
    padding: 5px 10px 5px 5px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    min-width: 132px;
    height: 40px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

.theme-toggle-track {
    position: relative;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: #d2e4eb;
    box-shadow: inset 0 0 0 1px #b7d0da;
    flex-shrink: 0;
}

.theme-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(15, 47, 58, 0.25);
    transition: transform 160ms ease, background-color 160ms ease;
}

.theme-toggle-text {
    display: grid;
    grid-template-areas: "label";
    align-items: center;
    min-width: 48px;
    color: #315866;
}

.theme-toggle-light,
.theme-toggle-dark {
    grid-area: label;
    transition: opacity 120ms ease;
}

:root:not([data-theme="dark"]) .theme-toggle-dark,
:root[data-theme="dark"] .theme-toggle-light {
    opacity: 0;
}

:root:not([data-theme="dark"]) .theme-toggle-light,
:root[data-theme="dark"] .theme-toggle-dark {
    opacity: 1;
}

.language-switcher {
    margin-top: 14px;
    display: inline-grid;
    grid-template-columns: auto minmax(116px, 1fr);
    align-items: center;
    gap: 8px;
    max-width: 240px;
    padding: 5px 5px 5px 12px;
    border: 1px solid #bad4de;
    border-radius: 999px;
    background: #e7f1f5;
}

.language-switcher label {
    color: #315866;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.language-switcher select {
    width: 100%;
    min-height: 30px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #173b4a;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 28px 5px 10px;
    box-shadow: 0 3px 8px rgba(15, 47, 58, 0.12);
    cursor: pointer;
}

.language-switcher select:focus {
    outline: 2px solid rgba(27, 111, 138, 0.28);
    outline-offset: 2px;
}

.footer-theme-toggle {
    margin-top: 16px;
}

:root[data-theme="dark"] .theme-toggle {
    border-color: #38525d;
    background: #13232b;
}

:root[data-theme="dark"] .language-switcher {
    border-color: #38525d;
    background: #13232b;
}

:root[data-theme="dark"] .language-switcher select {
    background: #20343e;
    color: #d8f7ff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .theme-toggle-track {
    background: #285465;
    box-shadow: inset 0 0 0 1px #467083;
}

:root[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(22px);
    background: #d8f7ff;
}

:root[data-theme="dark"] .theme-toggle-text {
    color: #a8c0ca;
}

.content-shell {
    padding-top: 46px;
    padding-bottom: 64px;
}

.content-shell > section + section {
    margin-top: 34px;
}

.flash-stack {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.flash-message {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #c8dae0;
    background: #f4fbff;
    color: #1f4250;
    font-weight: 600;
}

.flash-success {
    border-color: #b8dfc6;
    background: #f1fff6;
    color: #1f5a36;
}

.flash-error {
    border-color: #ecc0c0;
    background: #fff5f5;
    color: #7c2a2a;
}

.flash-warning {
    border-color: #edd5ad;
    background: #fffaf0;
    color: #6c4f1d;
}

.auth-panel {
    max-width: 1100px;
    margin: 0 auto 22px;
}

.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.form-card-narrow {
    max-width: 620px;
}

.form-section-title {
    margin: 0 0 16px;
    font-family: "Fraunces", serif;
    font-size: 1.12rem;
    letter-spacing: 0.01em;
    color: #143643;
}

.form-section-block {
    margin-top: 18px;
    padding: 18px 18px 16px;
    border: 1px solid #d8e5eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #fdfefe 0%, var(--panel-soft) 100%);
}

.form-section-block:first-of-type {
    margin-top: 0;
}

.form-grid {
    display: grid;
    gap: 16px;
    align-items: start;
    justify-items: center;
}

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

.address-grid {
    grid-template-columns: 2fr 1fr;
}

.phone-grid {
    grid-template-columns: minmax(96px, 126px) minmax(0, 1fr);
    width: min(100%, 420px);
    margin: 0 auto;
    justify-items: stretch;
    gap: 8px;
}

.form-field {
    display: grid;
    gap: 8px;
    width: min(100%, 420px);
    text-align: left;
}

.form-field.small-field {
    width: min(100%, 220px);
}

.login-password-field {
    margin-top: 10px;
}

.login-main-form .form-field {
    margin-left: auto;
    margin-right: auto;
}

.login-main-form .form-actions {
    justify-items: center;
    text-align: center;
}

.phone-grid .form-field,
.phone-grid .form-field.small-field {
    width: 100%;
}

.phone-grid #id_phone_country_code {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.password-grid .form-field > label {
    min-height: 1.45rem;
    display: flex;
    align-items: center;
}

.form-field.full-width {
    grid-column: 1 / -1;
    width: min(100%, 420px);
}

.form-field label {
    width: 100%;
    text-align: left;
}

.field-hint {
    font-size: 0.82rem;
    color: #4b6a77;
    line-height: 1.5;
    margin-top: 2px;
}

.form-control {
    width: 100%;
    border: 1px solid #c7d8e2;
    border-radius: 12px;
    padding: 11px 13px;
    min-height: 46px;
    font: inherit;
    color: #103645;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.form-control:focus {
    outline: none;
    border-color: #5a93a8;
    box-shadow: 0 0 0 3px rgba(27, 111, 138, 0.16);
}

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

select[multiple].form-control {
    min-height: 156px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.form-field ul.errorlist,
.form-errors ul.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #7c2a2a;
    font-size: 0.9rem;
}

.form-errors {
    margin-bottom: 12px;
    border: 1px solid #ecc0c0;
    background: #fff5f5;
    border-radius: 10px;
    padding: 10px 12px;
}

.password-meter {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #dce8ed;
    overflow: hidden;
}

.password-meter-fill {
    height: 100%;
    width: 0;
    background: #8ca3ad;
    transition: width 180ms ease, background-color 180ms ease;
}

.password-meter-fill.weak {
    background: #d14e4e;
}

.password-meter-fill.medium {
    background: #d49c35;
}

.password-meter-fill.strong {
    background: #2f8c5d;
}

.password-meter-label {
    margin-top: 4px;
    font-size: 0.86rem;
    color: #436371;
}

.form-actions {
    margin-top: 22px;
    display: grid;
    gap: 12px;
    padding-top: 10px;
}

.form-actions .cta-link {
    width: fit-content;
    margin-top: 0;
}

.upload-mode-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.upload-wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.upload-wizard-step-badge {
    border: 1px solid #c7dae3;
    background: #f3f9fc;
    color: #174456;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.upload-wizard-step {
    margin-top: 14px;
}

#wizard-contacts-field {
    width: min(100%, 520px);
    margin-left: auto;
    margin-right: auto;
    justify-items: stretch;
    text-align: left;
}

#wizard-contacts-field .field-hint {
    display: block;
    width: 100%;
    text-align: left;
    margin-top: 4px;
}

#asset-upload-form[data-wizard-ready="1"] .upload-wizard-step {
    display: none;
}

#asset-upload-form[data-wizard-ready="1"] .upload-wizard-step.is-visible {
    display: block;
}

.wizard-choice-btn.is-active {
    border-color: #1b6f8a;
    box-shadow: 0 0 0 3px rgba(27, 111, 138, 0.14);
}

.user-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.user-card {
    background: var(--card);
    border: 1px solid #d2e0e8;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(10, 34, 44, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.user-card h2 {
    margin: 0 0 8px;
    font-family: "Fraunces", serif;
    font-size: 1.2rem;
}

.user-card p {
    margin-bottom: 12px;
    flex: 1;
}

.user-card-link {
    margin-top: auto;
    align-self: flex-start;
}

.user-content-card {
    max-width: 1100px;
}

.home-hero-panel {
    border-color: #c5dbe5;
    background:
        radial-gradient(circle at 100% -30%, rgba(27, 111, 138, 0.14), rgba(27, 111, 138, 0) 42%),
        radial-gradient(circle at 0% 0%, rgba(18, 83, 103, 0.08), rgba(18, 83, 103, 0) 36%),
        #fcfeff;
}

.linked-health-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.linked-health-card {
    border: 1px solid #c9dde6;
    border-radius: 13px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.92);
}

.linked-health-card.tone-total {
    border-color: #cadbe4;
    background: #f6fbfe;
}

.linked-health-card.tone-ready {
    border-color: #b8dfc6;
    background: #effaf3;
}

.linked-health-card.tone-review {
    border-color: #ead3aa;
    background: #fff9ef;
}

.linked-health-card.tone-open {
    border-color: #c7dbe7;
    background: #eef7fc;
}

.linked-health-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #335b6a;
}

.linked-health-value {
    margin: 6px 0 0;
    font-size: 1.5rem;
    line-height: 1.05;
    font-weight: 800;
    color: #143946;
}

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

.settings-meta-item {
    border: 1px solid #d5e4ea;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fcfeff;
    display: grid;
    gap: 4px;
}

.settings-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #365a68;
    font-weight: 700;
}

.settings-note {
    margin: 6px 0 12px;
    color: #365564;
}

.totp-uri {
    display: block;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #c7dce5;
    border-radius: 8px;
    background: #f8fcfe;
    color: #234655;
    font-size: 0.82rem;
    white-space: normal;
    word-break: break-all;
}

.totp-code-field {
    margin-top: 8px;
}

.form-section-block h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #153f4e;
}

.personal-assets-section {
    margin-top: 28px;
}

.linked-accounts-section {
    margin-top: 28px;
}

.linked-accounts-dashboard {
    border-color: #bed4df;
    background:
        radial-gradient(circle at 96% -40%, rgba(27, 111, 138, 0.1), rgba(27, 111, 138, 0) 44%),
        #fcfeff;
}

.linked-section-head {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #d2e3ea;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.linked-section-head p {
    margin-top: 6px;
}

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

.linked-account-card {
    border: 1px solid #ccdde5;
    border-radius: 14px;
    padding: 15px 16px;
    background: #f9fdff;
    box-shadow: 0 8px 20px rgba(10, 34, 44, 0.06);
    display: grid;
    gap: 8px;
}

.linked-account-card.tone-ready {
    border-color: #b8dfc6;
    background: linear-gradient(180deg, #f7fdf9 0%, #effaf3 100%);
}

.linked-account-card.tone-review {
    border-color: #ead3aa;
    background: linear-gradient(180deg, #fffdf8 0%, #fff9ef 100%);
}

.linked-account-card.tone-verified {
    border-color: #c0ddd0;
    background: linear-gradient(180deg, #fbfffc 0%, #f1fbf4 100%);
}

.linked-account-card.tone-accepted,
.linked-account-card.tone-pending {
    border-color: #c8dae4;
    background: linear-gradient(180deg, #fcfeff 0%, #f2f8fc 100%);
}

.linked-account-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.linked-account-head h3 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: 1.08rem;
    color: #143844;
}

.linked-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #c7dbe4;
    background: #edf6fb;
    color: #1f5061;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 800;
    white-space: nowrap;
}

.linked-status-pill.tone-ready {
    border-color: #b8dfc6;
    background: #eaf9ef;
    color: #216844;
}

.linked-status-pill.tone-review {
    border-color: #ead3aa;
    background: #fff8eb;
    color: #6d4f16;
}

.linked-status-pill.tone-verified {
    border-color: #c2ddd0;
    background: #effaf4;
    color: #1f6641;
}

.linked-status-pill.tone-accepted,
.linked-status-pill.tone-pending {
    border-color: #c3dbe6;
    background: #ebf7fc;
    color: #1d5669;
}

.linked-account-mail {
    margin: 0;
    color: #1e4e60;
    font-weight: 700;
    word-break: break-word;
}

.linked-account-detail {
    margin: 0;
    color: #2f4f5e;
}

.linked-account-substatus {
    margin: 0;
    font-size: 0.84rem;
    color: #456776;
}

.linked-account-release {
    border: 1px solid #c2dce6;
    border-radius: 10px;
    padding: 8px 10px;
    background: #f0f8fc;
    font-size: 0.9rem;
    color: #1f4f61;
}

.linked-account-empty {
    border: 1px dashed #bfd4de;
    border-radius: 14px;
    padding: 18px;
    background: #f8fcfe;
    display: grid;
    gap: 8px;
}

.linked-account-empty p {
    margin: 0;
}

.user-item-list {
    margin: 0;
    padding-left: 18px;
    color: #274252;
    display: grid;
    gap: 8px;
}

.help-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.help-guide-card {
    border: 1px solid #cfe1e9;
    border-radius: 15px;
    padding: 16px 16px 14px;
    background:
        radial-gradient(circle at 100% -40%, rgba(27, 111, 138, 0.08), rgba(27, 111, 138, 0) 44%),
        #fbfeff;
    box-shadow: 0 8px 20px rgba(10, 34, 44, 0.06);
}

.help-guide-card .form-section-title {
    margin-bottom: 6px;
}

.help-guide-card p {
    margin-bottom: 10px;
}

.faq-sections {
    display: grid;
    gap: 18px;
}

.faq-quick-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.faq-quick-link {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #9cbfd0;
    background: linear-gradient(135deg, #fafdff 0%, #e4f3fa 55%, #d9ecf5 100%);
    border-radius: 16px;
    padding: 16px 18px;
    display: grid;
    gap: 6px;
    box-shadow: 0 12px 24px rgba(14, 48, 60, 0.1);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.faq-quick-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.faq-quick-link:hover {
    transform: translateY(-2px);
    border-color: #7fa8bc;
    box-shadow: 0 16px 28px rgba(14, 48, 60, 0.16);
    background: linear-gradient(135deg, #ffffff 0%, #dff0f8 56%, #d3e7f1 100%);
}

.faq-quick-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 111, 138, 0.2), 0 16px 28px rgba(14, 48, 60, 0.16);
    border-color: #6b9db3;
}

.faq-quick-link:active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(14, 48, 60, 0.12);
}

.faq-quick-title {
    color: #123e4d;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.faq-quick-count {
    color: #1e576b;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #bdd9e6;
    background: rgba(255, 255, 255, 0.72);
}

.faq-section {
    border: 1px solid #d3e3ea;
    border-radius: 14px;
    padding: 16px 16px 14px;
    background: linear-gradient(180deg, #fcfeff 0%, #f7fbfd 100%);
}

.faq-section-header {
    margin-bottom: 10px;
}

.faq-section-kicker {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #315f72;
    font-size: 0.72rem;
    font-weight: 700;
}

.faq-section .form-section-title {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e4f2f8;
    font-size: 0.95rem;
}

.faq-section-meta {
    margin: 0;
    color: #4c6d7c;
    font-size: 0.82rem;
}

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

.faq-list-internal {
    margin-top: 2px;
}

.faq-item {
    border: 1px solid #cddfe8;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
}

.faq-accordion-item {
    padding: 0;
    overflow: hidden;
}

.faq-question {
    margin: 0 0 6px;
    color: #123b4b;
    font-family: "Fraunces", serif;
    font-size: 1rem;
}

.faq-accordion-item > .faq-question {
    margin: 0;
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-accordion-item > .faq-question::-webkit-details-marker {
    display: none;
}

.faq-accordion-item > .faq-question::after {
    content: "+";
    font-weight: 700;
    color: #2b6075;
    margin-left: 12px;
}

.faq-accordion-item[open] > .faq-question::after {
    content: "−";
}

.faq-accordion-item .faq-answer {
    padding: 0 14px 18px;
    border-top: 1px solid #e4eef3;
    margin-top: 14px;
    padding-top: 18px;
}

.faq-answer {
    margin: 0;
    color: #355564;
    line-height: 1.55;
}

.contact-public-form {
    margin-top: 10px;
}

.checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: #2f4b58;
}

.checkbox-field input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
}

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

.contact-create-card {
    border-color: #b9d4de;
    background:
        radial-gradient(circle at 100% -20%, rgba(67, 132, 155, 0.12) 0%, rgba(67, 132, 155, 0) 40%),
        linear-gradient(180deg, #fcfeff 0%, #f5fbfd 100%);
}

.contact-create-header {
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid #d3e3e9;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
}

.contact-create-kicker {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2d647a;
}

.contact-create-lead {
    margin: 0;
    max-width: 72ch;
    color: #2f4f5e;
}

.contact-limit-info {
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #245668;
}

.contact-create-steps {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-create-steps span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #c2d8e1;
    background: #f0f8fb;
    color: #1f4e61;
    font-size: 0.84rem;
    font-weight: 600;
}

.contact-create-form {
    padding: 18px 20px 20px;
    border: 1px solid #d3e3e9;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
}

.contact-create-form .form-grid {
    justify-items: stretch;
}

.contact-create-form .form-field,
.contact-create-form .form-field.full-width {
    width: 100%;
    max-width: 100%;
}

.contact-create-form .form-actions {
    margin-top: 14px;
}

.contact-edit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.invitation-card {
    border: 1px solid #d5e4ea;
    border-radius: 14px;
    padding: 18px;
    background: #fcfeff;
    box-shadow: 0 8px 20px rgba(10, 34, 44, 0.07);
}

.invitation-card h3 {
    margin: 0 0 8px;
    font-family: "Fraunces", serif;
    font-size: 1.1rem;
}

.invitation-card p {
    margin-bottom: 10px;
}

.invitation-card .form-actions {
    margin-top: 10px;
}

.farewell-section {
    border-color: #c7d9e3;
    background:
        radial-gradient(circle at 100% -30%, rgba(27, 111, 138, 0.1), rgba(27, 111, 138, 0) 45%),
        radial-gradient(circle at -5% 0%, rgba(20, 89, 112, 0.08), rgba(20, 89, 112, 0) 42%),
        #fbfeff;
}

.farewell-list {
    gap: 20px;
    grid-template-columns: 1fr;
    justify-items: center;
}

.farewell-card {
    border-color: #c9dce6;
    border-radius: 16px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    width: min(100%, 860px);
}

.farewell-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.farewell-owner {
    margin: 0;
}

.farewell-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid #c7dbe4;
    background: #edf6fb;
    color: #1f5061;
    white-space: nowrap;
}

.farewell-status-badge.status-pending {
    border-color: #d6dee4;
    background: #f3f6f9;
    color: #48616f;
}

.farewell-status-badge.status-accepted {
    border-color: #c3dbe6;
    background: #ebf7fc;
    color: #1d5669;
}

.farewell-status-badge.status-verified {
    border-color: #b8dfc6;
    background: #eaf9ef;
    color: #216844;
}

.farewell-status-badge.status-review_required {
    border-color: #ead3aa;
    background: #fff8eb;
    color: #6d4f16;
}

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

.farewell-meta-item {
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #d8e7ed;
    border-radius: 11px;
    background: #fafdff;
    color: #274b5b;
}

.farewell-release-panel {
    margin-top: 16px;
    border-radius: 14px;
    padding: 15px 16px;
}

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

.farewell-asset-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #c8dde7;
    border-radius: 11px;
    background: #f8fcff;
}

.farewell-asset-link {
    text-decoration: none;
    border: 1px solid #bcd5e0;
    border-radius: 9px;
    background: #edf6fb;
    color: #1c5164;
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 700;
}

.farewell-asset-link:hover {
    background: #e4f0f6;
}

.farewell-verify-form {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed #d1e2ea;
}

.contact-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-action-link,
.contact-action-delete {
    border: 1px solid #bed5de;
    background: #f3f9fb;
    color: #19495c;
    border-radius: 9px;
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.contact-action-delete {
    border-color: #e0bdbd;
    background: #fff5f5;
    color: #7c2a2a;
}

.contact-actions form {
    margin: 0;
}

.asset-actions {
    margin-top: 12px;
}

.asset-actions form {
    margin: 0;
}

.danger-zone-card {
    border-color: #e8c2c2;
    background: linear-gradient(180deg, #fff9f9 0%, #fff4f4 100%);
}

.release-password-card {
    border-color: #bed6e1;
    background:
        radial-gradient(circle at 100% -40%, rgba(27, 111, 138, 0.12), rgba(27, 111, 138, 0) 44%),
        linear-gradient(180deg, #fcfeff 0%, #f2f9fc 100%);
}

.release-password-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.release-password-head .form-section-title {
    margin-bottom: 0;
}

.release-password-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #b7d4e0;
    background: rgba(255, 255, 255, 0.86);
    color: #1a4b5d;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.release-password-lead {
    margin-top: 10px;
}

.release-password-status {
    margin: 8px 0 0;
    color: #2a5668;
    font-size: 0.9rem;
    font-weight: 700;
}

.password-form-grid {
    margin-top: 14px;
    border: 1px solid #cde0e9;
    border-radius: 14px;
    padding: 16px 16px 14px;
    background: rgba(255, 255, 255, 0.9);
}

.password-stack-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.password-stack-grid .form-field,
.password-stack-grid .form-field.full-width {
    width: min(100%, 520px);
    max-width: 100%;
    grid-column: auto;
}

.password-form-grid .form-actions {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #d8e7ee;
}

.asset-download-form {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.asset-download-form .form-control {
    width: min(100%, 320px);
    min-width: 220px;
}

.asset-download-form .unlock-date-input {
    width: min(100%, 210px);
    min-width: 180px;
}

.release-box {
    margin-top: 14px;
    border: 1px solid #b8dfc6;
    background: #f2fbf5;
    border-radius: 12px;
    padding: 13px 14px;
}

.release-box-warning {
    border-color: #e5d4a2;
    background: #fffaf0;
}

.release-box ul {
    margin-top: 8px;
}

.release-box a {
    margin-left: 8px;
    font-weight: 700;
}

.landing-stack {
    display: grid;
    gap: 24px;
}

.hero,
.page-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px;
    box-shadow: var(--shadow-strong);
    animation: panel-in 420ms ease both;
}

.legal-page {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.legal-updated {
    margin-top: -6px;
    margin-bottom: 10px;
    color: #486271;
    font-size: 0.94rem;
}

.legal-page h2 {
    margin: 18px 0 4px;
    font-family: "Fraunces", serif;
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
    color: #153745;
}

.legal-page ul {
    margin: 2px 0 4px;
    padding-left: 20px;
    color: #304854;
    display: grid;
    gap: 6px;
}

.legal-page a {
    color: #135973;
    font-weight: 700;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.12em;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-1);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1 {
    margin: 0 0 14px;
    font-family: "Fraunces", serif;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    line-height: 1.15;
}

p {
    margin: 0;
    line-height: 1.62;
    color: #314652;
}

.cta-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    background: var(--brand-2);
    color: #fff;
    font-weight: 700;
    padding: 11px 16px;
    border-radius: 11px;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.cta-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 47, 58, 0.2);
}

.cta-link[disabled],
.cta-link:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.hero-aida {
    padding: 40px;
}

.hero-premium {
    border-color: #c0d8e2;
    background:
        radial-gradient(circle at 8% -12%, rgba(27, 111, 138, 0.16), rgba(27, 111, 138, 0) 38%),
        radial-gradient(circle at 100% 8%, rgba(23, 59, 74, 0.14), rgba(23, 59, 74, 0) 42%),
        linear-gradient(180deg, #fdfefe 0%, #f4fbff 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.hero-main {
    display: grid;
    align-content: center;
}

.hero-subline {
    max-width: 56ch;
}

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

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid #b9d4df;
    background: rgba(255, 255, 255, 0.88);
    color: #184151;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-sidecard {
    border: 1px solid #c8dce6;
    border-radius: 16px;
    padding: 18px 18px 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 22px rgba(10, 34, 44, 0.08);
    display: grid;
    align-content: start;
    gap: 10px;
}

.hero-side-kicker {
    margin: 0;
    color: #2f5b6d;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.hero-sidecard h2 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: 1.16rem;
    color: #133947;
}

.hero-side-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #274755;
}

.cta-primary {
    background: var(--brand-2);
    color: #fff;
}

.cta-secondary {
    background: transparent;
    color: var(--brand-2);
    border: 1px solid #7ea3b0;
}

.cta-secondary:hover {
    box-shadow: none;
    background: #e8f1f4;
}

.cta-danger {
    border: 1px solid #b65b5b;
    background: #b93434;
    color: #fff;
}

.cta-danger:hover {
    box-shadow: 0 10px 20px rgba(123, 32, 32, 0.18);
    background: #9d2c2c;
}

.section-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 34px;
    box-shadow: var(--shadow-soft);
}

.section-panel h2 {
    margin: 0 0 10px;
    font-family: "Fraunces", serif;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    color: #142f3a;
}

.section-intro {
    margin-bottom: 10px;
    max-width: 76ch;
}

.highlight-panel {
    border-color: #c7dce5;
    background:
        linear-gradient(180deg, #fcfeff 0%, #f4fbff 100%);
}

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

.highlight-card {
    border: 1px solid #c8dce6;
    border-radius: 14px;
    padding: 14px 14px 12px;
    background: #ffffff;
}

.highlight-value {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: 1.32rem;
    color: #133d4c;
    line-height: 1.25;
}

.highlight-label {
    margin: 4px 0 0;
    color: #395968;
    font-size: 0.9rem;
}

.icon-grid {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.icon-grid li {
    border: 1px solid #d7e5eb;
    border-radius: 12px;
    background: #fafdff;
    min-height: 94px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 6px;
    padding: 10px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.icon-grid li:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(9, 36, 47, 0.1);
}

.icon-grid span {
    font-size: 1.4rem;
}

.step-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.step-card {
    border: 1px solid #d7e5eb;
    border-radius: 12px;
    padding: 14px 14px 13px;
    background: linear-gradient(180deg, #fbfeff 0%, #f2f8fc 100%);
    box-shadow: 0 8px 18px rgba(7, 34, 44, 0.06);
}

.step-no {
    width: 32px;
    height: 32px;
    margin: 0 0 9px;
    border-radius: 999px;
    background: #d9eff7;
    color: #12495c;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.step-icon {
    margin: 0 0 7px;
    font-size: 1.05rem;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.step-card p {
    font-size: 0.95rem;
}

.trust-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
}

.trust-list li {
    padding: 10px 12px;
    background: linear-gradient(180deg, #fbfeff 0%, #f1f8fc 100%);
    border: 1px solid #ccdfe8;
    border-radius: 10px;
}

.trust-note {
    margin-top: 14px;
    color: #1f4f5f;
    font-weight: 700;
}

.audience-section {
    background:
        radial-gradient(circle at 15% -15%, rgba(10, 108, 134, 0.16), transparent 42%),
        radial-gradient(circle at 88% 5%, rgba(11, 92, 116, 0.14), transparent 46%),
        var(--card);
}

.audience-grid {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.audience-card {
    min-height: 188px;
    border: 1px solid #b7d7e2;
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(160deg, #f2f9fc 0%, #dceff6 100%);
    box-shadow: 0 8px 20px rgba(7, 34, 44, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.audience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(7, 34, 44, 0.13);
}

.audience-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 1.18rem;
    background: rgba(255, 255, 255, 0.9);
}

.audience-card strong {
    font-size: 0.97rem;
    color: #16323c;
}

.audience-card small {
    font-size: 0.83rem;
    line-height: 1.45;
    color: #274252;
}

.final-cta {
    background: linear-gradient(135deg, #103645, #0b5c74);
    color: #fff;
    border-radius: 20px;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.final-cta p {
    margin: 0;
    color: #ecf8fb;
    font-family: "Fraunces", serif;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    line-height: 1.25;
}

.final-cta .cta-primary {
    background: #fff;
    color: #103645;
}

.pricing-panel {
    margin-bottom: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pricing-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(10, 34, 44, 0.07);
}

.pricing-card h2 {
    margin: 0 0 8px;
    font-family: "Fraunces", serif;
}

.pricing-description {
    margin-bottom: 12px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 14px 0;
}

.pricing-price strong {
    color: #103645;
    font-size: 1.6rem;
}

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

.pricing-features {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--text);
}

.pricing-card-featured {
    border-color: #7ab7c7;
    box-shadow: 0 14px 34px rgba(10, 34, 44, 0.12);
}

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

.pricing-table th,
.pricing-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #d9e6eb;
}

.pricing-table th {
    color: #1a4352;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pricing-table td:last-child {
    font-weight: 700;
    color: #103645;
}

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

.settings-pricing-table td:last-child {
    font-weight: 500;
    color: inherit;
}

.settings-plan-btn {
    width: 100%;
    min-width: 96px;
    justify-content: center;
    padding: 8px 10px;
}

.settings-plan-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #a5ccd8;
    background: #e8f4f8;
    color: #0d4456;
    font-weight: 700;
    font-size: 0.85rem;
}

.storage-usage-panel {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #d7e5eb;
    border-radius: 12px;
    background: #f7fbfc;
}

.reactivation-card {
    border-color: #b6d7e3;
    background: #f4fbfd;
}

.billing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.billing-actions .settings-inline-form,
.billing-actions .cta-link {
    margin-top: 0;
}

.storage-usage-head,
.storage-usage-details {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.storage-usage-head {
    align-items: center;
}

.storage-usage-head strong,
.storage-usage-head span {
    color: #103645;
}

.storage-usage-head span {
    font-weight: 800;
}

.storage-progress {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid #c7dce4;
    background: #e5f0f4;
}

.storage-progress-fill {
    display: block;
    width: var(--storage-usage, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f7d95, #73bfd1);
}

.storage-usage-details {
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.95rem;
}

.pricing-note {
    margin-top: 14px;
    background: #ecf4f6;
    border: 1px solid #d7e5eb;
    border-radius: 12px;
    padding: 12px 16px;
}

.site-footer {
    border-top: 1px solid rgba(16, 32, 40, 0.12);
    background: #ecf4f6;
    padding: 48px 0 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    width: 104px;
    height: 104px;
    display: block;
    object-fit: contain;
}

.trust-line {
    margin-top: 14px;
    max-width: 26ch;
    color: #274252;
}

.footer-col h2 {
    margin: 0 0 10px;
    font-size: 0.96rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #16323c;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-col a,
.footer-col li {
    color: #3c5a67;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--brand-1);
}

.reveal-a,
.reveal-b,
.reveal-c,
.reveal-d {
    opacity: 0;
    animation: fade-rise 480ms ease forwards;
}

.reveal-b {
    animation-delay: 70ms;
}

.reveal-c {
    animation-delay: 130ms;
}

.reveal-d {
    animation-delay: 190ms;
}

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

@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 940px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }

    .nav-cluster {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-stack {
        width: 100%;
    }

    .main-nav {
        width: 100%;
    }

    .nav-auth {
        width: 100%;
    }

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

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

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

    .help-guide-grid {
        grid-template-columns: 1fr;
    }

    .settings-meta-grid {
        grid-template-columns: 1fr;
    }

    .invitation-list {
        grid-template-columns: 1fr;
    }

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

    .linked-account-grid {
        grid-template-columns: 1fr;
    }

    .farewell-meta-grid {
        grid-template-columns: 1fr;
    }

    .contact-create-header,
    .contact-create-form {
        padding: 14px;
    }

    .two-cols,
    .address-grid,
    .phone-grid {
        grid-template-columns: 1fr;
    }

    .form-field,
    .form-field.small-field {
        max-width: 100%;
    }

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

    .hero-layout {
        grid-template-columns: 1fr;
    }

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

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

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

    .faq-quick-nav {
        grid-template-columns: 1fr;
    }

    .final-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .site-header {
        position: sticky;
    }

    .header-inner {
        display: grid;
        grid-template-columns: auto auto;
        align-items: center;
        gap: 10px;
        min-height: 0;
        padding: 10px 0;
    }

    .mobile-nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .nav-cluster {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding: 10px 0 4px;
    }

    .nav-cluster.is-open {
        display: grid;
    }

    .nav-stack {
        gap: 10px;
    }

    .main-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .main-nav a,
    .nav-btn,
    .nav-logout-form,
    .nav-logout-form button {
        width: 100%;
    }

    .main-nav a,
    .nav-btn {
        text-align: center;
        justify-content: center;
    }

    .nav-auth {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .content-shell > section + section {
        margin-top: 22px;
    }

    .hero,
    .page-panel {
        padding: 22px;
    }

    .hero-aida {
        padding: 24px;
    }

    .hero-sidecard {
        padding: 14px 14px 12px;
    }

    .hero-pills {
        gap: 6px;
    }

    .hero-pill {
        font-size: 0.76rem;
    }

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

    .portal-switch {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .portal-switch .portal-link:first-child,
    .portal-switch .portal-link:last-child {
        grid-column: auto;
    }

    .portal-link {
        white-space: normal;
        border-radius: 12px;
    }

    .brand-logo {
        width: 92px;
        height: 92px;
    }

    .footer-logo {
        width: 78px;
        height: 78px;
    }

    .step-grid,
    .trust-list,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .user-overview-grid {
        grid-template-columns: 1fr;
    }

    .linked-health-grid {
        grid-template-columns: 1fr;
    }

    .faq-item {
        padding: 10px 12px;
    }

    .faq-accordion-item {
        padding: 0;
    }

    .pricing-card {
        padding: 16px;
    }

    .form-card {
        padding: 18px;
    }

    .form-section-block {
        padding: 14px 12px 12px;
    }
}

:root[data-theme="dark"] .site-header {
    border-bottom-color: rgba(190, 220, 230, 0.16);
    background: rgba(16, 25, 31, 0.92);
}

:root[data-theme="dark"] .main-nav a,
:root[data-theme="dark"] .portal-link,
:root[data-theme="dark"] p,
:root[data-theme="dark"] .trust-line,
:root[data-theme="dark"] .hero-subline,
:root[data-theme="dark"] .hero-side-kicker,
:root[data-theme="dark"] .hero-sidecard h2,
:root[data-theme="dark"] .hero-side-list,
:root[data-theme="dark"] .hero-pill,
:root[data-theme="dark"] .footer-col a,
:root[data-theme="dark"] .footer-col li,
:root[data-theme="dark"] .pricing-description,
:root[data-theme="dark"] .faq-answer,
:root[data-theme="dark"] .settings-note,
:root[data-theme="dark"] .field-hint,
:root[data-theme="dark"] .legal-page p,
:root[data-theme="dark"] .legal-page li,
:root[data-theme="dark"] .section-intro,
:root[data-theme="dark"] .highlight-label,
:root[data-theme="dark"] .step-card p,
:root[data-theme="dark"] .audience-card small,
:root[data-theme="dark"] .contact-create-lead,
:root[data-theme="dark"] .contact-limit-info,
:root[data-theme="dark"] .linked-section-head p,
:root[data-theme="dark"] .linked-account-detail,
:root[data-theme="dark"] .linked-account-substatus,
:root[data-theme="dark"] .linked-account-empty p,
:root[data-theme="dark"] .user-item-list,
:root[data-theme="dark"] .invitation-card p,
:root[data-theme="dark"] .farewell-meta-item,
:root[data-theme="dark"] .release-password-status,
:root[data-theme="dark"] .password-meter-label,
:root[data-theme="dark"] .checkbox-field label,
:root[data-theme="dark"] .faq-section-meta,
:root[data-theme="dark"] .faq-quick-count {
    color: var(--muted);
}

:root[data-theme="dark"] .main-nav a:hover,
:root[data-theme="dark"] .portal-link:hover {
    color: #eef7fa;
    background: #20343e;
}

:root[data-theme="dark"] .main-nav a.is-active,
:root[data-theme="dark"] .portal-link.is-active,
:root[data-theme="dark"] .nav-btn-register,
:root[data-theme="dark"] .cta-primary {
    color: #0b1a20;
    background: linear-gradient(120deg, #7fd4ea, #d8f7ff);
}

:root[data-theme="dark"] .portal-switch,
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .hero-premium,
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .page-panel,
:root[data-theme="dark"] .section-panel,
:root[data-theme="dark"] .pricing-card,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .faq-section,
:root[data-theme="dark"] .faq-quick-link,
:root[data-theme="dark"] .contact-public-card,
:root[data-theme="dark"] .contact-create-card,
:root[data-theme="dark"] .contact-create-header,
:root[data-theme="dark"] .contact-create-form,
:root[data-theme="dark"] .release-box,
:root[data-theme="dark"] .settings-meta-item,
:root[data-theme="dark"] .form-section-block,
:root[data-theme="dark"] .help-guide-card,
:root[data-theme="dark"] .highlight-card,
:root[data-theme="dark"] .home-hero-panel,
:root[data-theme="dark"] .linked-health-card,
:root[data-theme="dark"] .linked-accounts-dashboard,
:root[data-theme="dark"] .linked-section-head,
:root[data-theme="dark"] .linked-account-card,
:root[data-theme="dark"] .linked-account-release,
:root[data-theme="dark"] .linked-account-empty,
:root[data-theme="dark"] .invitation-card,
:root[data-theme="dark"] .farewell-section,
:root[data-theme="dark"] .farewell-card,
:root[data-theme="dark"] .farewell-meta-item,
:root[data-theme="dark"] .farewell-asset-item,
:root[data-theme="dark"] .release-password-card,
:root[data-theme="dark"] .password-form-grid,
:root[data-theme="dark"] .danger-zone-card,
:root[data-theme="dark"] .icon-grid li,
:root[data-theme="dark"] .step-card,
:root[data-theme="dark"] .highlight-panel {
    border-color: var(--line);
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

:root[data-theme="dark"] .hero-premium {
    background:
        radial-gradient(circle at 8% -12%, rgba(93, 184, 210, 0.16), rgba(93, 184, 210, 0) 38%),
        radial-gradient(circle at 100% 8%, rgba(80, 145, 166, 0.13), rgba(80, 145, 166, 0) 42%),
        linear-gradient(180deg, #17242c 0%, #122028 100%);
}

:root[data-theme="dark"] .highlight-panel {
    background: linear-gradient(180deg, #17242c 0%, #122028 100%);
}

:root[data-theme="dark"] .faq-quick-link {
    border-color: #44616d;
    background: linear-gradient(135deg, #17242c 0%, #20343e 58%, #1a2c35 100%);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .faq-quick-link::after {
    background: linear-gradient(120deg, rgba(216, 247, 255, 0.08), rgba(216, 247, 255, 0));
}

:root[data-theme="dark"] .faq-quick-link:hover,
:root[data-theme="dark"] .faq-quick-link:focus-visible {
    border-color: #6da6bb;
    background: linear-gradient(135deg, #1d3039 0%, #285064 58%, #20343e 100%);
    box-shadow: 0 0 0 3px rgba(127, 212, 234, 0.16), 0 16px 28px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .faq-quick-title {
    color: #eef7fa;
}

:root[data-theme="dark"] .faq-quick-count {
    border-color: #44616d;
    background: rgba(15, 26, 32, 0.72);
    color: #d8f7ff;
}

:root[data-theme="dark"] .faq-accordion-item > .faq-question::after {
    color: #d8f7ff;
}

:root[data-theme="dark"] .icon-grid strong,
:root[data-theme="dark"] .trust-list li {
    color: var(--text);
}

:root[data-theme="dark"] .trust-note {
    color: #d8f7ff;
}

:root[data-theme="dark"] .cta-secondary:hover {
    background: #20343e;
}

:root[data-theme="dark"] .nav-btn-login,
:root[data-theme="dark"] .nav-btn-logout,
:root[data-theme="dark"] .mobile-nav-toggle,
:root[data-theme="dark"] .cta-secondary,
:root[data-theme="dark"] .settings-plan-active {
    border-color: #38525d;
    color: #d8f7ff;
    background: #20343e;
}

:root[data-theme="dark"] .site-footer,
:root[data-theme="dark"] .pricing-note,
:root[data-theme="dark"] .storage-usage-panel,
:root[data-theme="dark"] .reactivation-card,
:root[data-theme="dark"] .flash-message {
    border-color: var(--line);
    background: #132129;
    color: var(--text);
}

:root[data-theme="dark"] .flash-success {
    border-color: #3d684c;
    background: #13291d;
    color: #b8f0c8;
}

:root[data-theme="dark"] .flash-error {
    border-color: #774444;
    background: #2d1818;
    color: #ffc9c9;
}

:root[data-theme="dark"] .flash-warning,
:root[data-theme="dark"] .release-box-warning {
    border-color: #806634;
    background: #2a2313;
    color: #ffe3a6;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .brand,
:root[data-theme="dark"] .pricing-price strong,
:root[data-theme="dark"] .faq-question,
:root[data-theme="dark"] .faq-quick-title,
:root[data-theme="dark"] .faq-section-kicker,
:root[data-theme="dark"] .form-section-title,
:root[data-theme="dark"] .form-section-block h3,
:root[data-theme="dark"] .pricing-card h2,
:root[data-theme="dark"] .footer-col h2,
:root[data-theme="dark"] .settings-label,
:root[data-theme="dark"] .audience-card strong,
:root[data-theme="dark"] .pricing-table th,
:root[data-theme="dark"] .highlight-value,
:root[data-theme="dark"] .step-no,
:root[data-theme="dark"] .linked-health-label,
:root[data-theme="dark"] .linked-health-value,
:root[data-theme="dark"] .linked-account-head h3,
:root[data-theme="dark"] .linked-account-mail,
:root[data-theme="dark"] .release-password-badge,
:root[data-theme="dark"] .legal-page h2 {
    color: var(--text);
}

:root[data-theme="dark"] .faq-section-icon,
:root[data-theme="dark"] .audience-icon,
:root[data-theme="dark"] .step-no,
:root[data-theme="dark"] .contact-create-steps span,
:root[data-theme="dark"] .linked-status-pill,
:root[data-theme="dark"] .farewell-status-badge,
:root[data-theme="dark"] .farewell-asset-link,
:root[data-theme="dark"] .contact-action-link {
    border-color: #38525d;
    background: #20343e;
    color: #d8f7ff;
}

:root[data-theme="dark"] .linked-status-pill.tone-ready,
:root[data-theme="dark"] .linked-status-pill.tone-verified,
:root[data-theme="dark"] .farewell-status-badge.status-verified {
    border-color: #3d684c;
    background: #13291d;
    color: #b8f0c8;
}

:root[data-theme="dark"] .linked-status-pill.tone-review,
:root[data-theme="dark"] .farewell-status-badge.status-review_required {
    border-color: #806634;
    background: #2a2313;
    color: #ffe3a6;
}

:root[data-theme="dark"] .contact-action-delete,
:root[data-theme="dark"] .form-errors,
:root[data-theme="dark"] .form-field ul.errorlist,
:root[data-theme="dark"] .form-errors ul.errorlist {
    border-color: #774444;
    background: #2d1818;
    color: #ffc9c9;
}

:root[data-theme="dark"] .storage-usage-head strong,
:root[data-theme="dark"] .storage-usage-head span {
    color: #eef7fa;
}

:root[data-theme="dark"] .storage-progress {
    border-color: #38525d;
    background: #20343e;
}

:root[data-theme="dark"] .storage-progress-fill {
    background: linear-gradient(90deg, #7fd4ea, #d8f7ff);
}

:root[data-theme="dark"] .pricing-table th,
:root[data-theme="dark"] .pricing-table td,
:root[data-theme="dark"] .faq-accordion-item .faq-answer {
    border-color: var(--line);
}

:root[data-theme="dark"] .pricing-table td:last-child {
    color: #d8f7ff;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    border-color: #38525d;
    background: #0f1a20;
    color: var(--text);
}

:root[data-theme="dark"] .language-switcher label {
    color: var(--muted);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
    color: #8098a3;
}

:root[data-theme="dark"] .registration-form input[type="date"]:invalid,
:root[data-theme="dark"] .registration-form select.form-control:not(.has-user-selection) {
    color: #8098a3;
}

:root[data-theme="dark"] .registration-form select.form-control.has-user-selection {
    color: var(--text);
}

:root[data-theme="dark"] .audience-section {
    background:
        radial-gradient(circle at 15% -15%, rgba(93, 184, 210, 0.16), transparent 42%),
        radial-gradient(circle at 88% 5%, rgba(62, 137, 120, 0.14), transparent 46%),
        var(--card);
}

:root[data-theme="dark"] .audience-card,
:root[data-theme="dark"] .trust-list li {
    border-color: var(--line);
    background: linear-gradient(160deg, #17242c 0%, #1d3039 100%);
}

:root[data-theme="dark"] .audience-icon {
    background: #0f1a20;
}

:root[data-theme="dark"] .hero-subline,
:root[data-theme="dark"] .hero-side-list {
    color: #eef7fa;
}

:root[data-theme="dark"] .hero-side-kicker {
    color: #c8edf5;
}

:root[data-theme="dark"] .hero-sidecard {
    border-color: #38525d;
    background: rgba(16, 25, 31, 0.92);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .hero-sidecard h2 {
    color: #eef7fa;
}

:root[data-theme="dark"] .hero-pill {
    border-color: #38525d;
    background: rgba(16, 25, 31, 0.92);
    color: #d8f7ff;
}

:root[data-theme="dark"] .final-cta {
    background: linear-gradient(135deg, #13242c, #204251);
}

:root[data-theme="dark"] .final-cta .cta-primary {
    color: #0b1a20;
    background: #d8f7ff;
}
