
.profile-page { background: #f7f7fb; }
.profile-hero { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0 70px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fbfbff 0%,#f0f0ff 100%); }
.profile-grid-bg { position:absolute; inset:0; z-index:-1; opacity:.45; background-image:linear-gradient(rgba(69,70,120,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(69,70,120,.06) 1px,transparent 1px); background-size:48px 48px; mask-image:linear-gradient(to bottom,black,transparent 100%); }
.profile-hero-inner { display:grid; grid-template-columns:minmax(0,1fr) 370px; align-items:end; gap:70px; }
.profile-hero h1 { max-width:780px; margin:14px 0 0; font-size:clamp(56px,7vw,92px); line-height:.94; letter-spacing:-.065em; }
.profile-hero p { max-width:740px; margin:25px 0 0; color:var(--ink-soft); font-size:20px; line-height:1.65; }
.profile-hero .profile-time-note { margin-top:10px; color:#65677a; font-size:14px; font-weight:750; line-height:1.5; }
.profile-promise { display:grid; grid-template-columns:auto 1fr; gap:14px 16px; padding:24px; border:1px solid #d9daee; border-radius:20px; background:rgba(255,255,255,.82); box-shadow:0 18px 48px rgba(25,27,80,.08); }
.promise-number { width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background:var(--blue); color:#fff; font-size:12px; font-weight:850; }
.profile-promise b,.profile-promise small { display:block; }
.profile-promise b { margin-top:1px; font-size:16px; line-height:1.3; }
.profile-promise small { margin-top:5px; color:#6f7186; font-size:13px; line-height:1.5; }
.profile-section { padding:55px 0 100px; }
.profile-layout { display:grid; grid-template-columns:300px minmax(0,1fr); gap:30px; align-items:start; }
.profile-sidebar { position:sticky; top:105px; }
.sidebar-card { padding:25px; border:1px solid #dedfeb; border-radius:20px; background:#fff; box-shadow:0 12px 35px rgba(20,22,68,.04); }
.sidebar-label { display:block; margin-bottom:17px; color:var(--blue); font-size:11px; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.sidebar-card ul { display:grid; gap:11px; margin:0; padding:0; list-style:none; }
.sidebar-card li { display:flex; gap:10px; color:#404258; font-size:14px; line-height:1.4; font-weight:700; }
.sidebar-card li span { color:var(--blue); }
.sidebar-card p { margin:22px 0 0; padding-top:20px; border-top:1px solid #ececf4; color:#6f7186; font-size:13px; line-height:1.6; }
.profile-form { display:grid; gap:18px; }
.onboarding-plan-summary { padding:22px 24px; border:1px solid #babbff; border-radius:18px; background:#f1f1ff; box-shadow:0 10px 28px rgba(31,32,91,.05); }
.onboarding-plan-summary > span { display:block; margin-bottom:9px; color:#65677a; font-size:11px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.onboarding-plan-summary > div { display:flex; align-items:center; justify-content:space-between; gap:22px; }
.onboarding-plan-summary strong { font-size:20px; letter-spacing:-.025em; }
.onboarding-plan-summary a { color:var(--blue); font-size:12px; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.onboarding-plan-summary a:focus-visible { outline:3px solid rgba(88,90,255,.28); outline-offset:4px; }
.onboarding-plan-summary p { margin:9px 0 0; color:#51536b; font-size:13px; line-height:1.6; }
.form-section { padding:32px; border:1px solid #ddddeb; border-radius:22px; background:#fff; box-shadow:0 12px 35px rgba(20,22,68,.04); }
.form-section-heading { display:flex; gap:16px; align-items:flex-start; margin-bottom:26px; }
.form-section-heading > span { flex:0 0 40px; width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:#eeeeff; color:var(--blue); font-size:12px; font-weight:850; }
.form-section-heading h2 { margin:0; font-size:30px; line-height:1.08; letter-spacing:-.04em; }
.form-section-heading p { margin:8px 0 0; color:#686a80; font-size:14px; line-height:1.55; }
.field-grid { display:grid; gap:16px; }
.two-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
.field-wide { grid-column:1/-1; }
.field { display:grid; gap:8px; }
.field[hidden] { display:none!important; }
.field > span,.field-group legend { color:#44465c; font-size:13px; font-weight:800; letter-spacing:.025em; }
.field > span small { color:#999bad; font-weight:600; }
.field input,.field select { width:100%; min-height:56px; border:1px solid #d9daea; border-radius:12px; background:#fbfbfe; padding:0 16px; color:var(--ink); outline:none; font-size:15px; }
.field input:focus,.field select:focus { border-color:#9d9eff; box-shadow:0 0 0 4px rgba(88,90,255,.09); background:#fff; }
.field > small { margin-top:-1px; color:#85879a; font-size:12px; line-height:1.5; }
.nationwide-choice { display:flex; align-items:center; gap:12px; margin-bottom:18px; padding:15px 17px; border:1px solid #cfd0ff; border-radius:13px; background:#f1f1ff; cursor:pointer; }
.nationwide-choice input,.choice-card input,.choice-chip input,.radio-row input,.consent-row input { accent-color:var(--blue); }
.nationwide-choice b,.nationwide-choice small { display:block; }
.nationwide-choice b { font-size:15px; }
.nationwide-choice small { margin-top:4px; color:#6f7186; font-size:12px; line-height:1.45; }
.state-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; max-height:430px; overflow:auto; padding-right:4px; }
.choice-chip { position:relative; display:block; cursor:pointer; }
.choice-chip input { position:absolute; opacity:0; pointer-events:none; }
.choice-chip > span { min-height:52px; display:flex; align-items:center; justify-content:center; gap:8px; padding:11px 12px; border:1px solid #dedfeb; border-radius:10px; background:#fbfbfe; color:#505267; font-size:13px; font-weight:750; text-align:center; transition:.18s ease; }
.state-chip > span { justify-content:flex-start; }
.state-chip b,.state-chip small { display:block; }
.state-chip b { min-width:26px; color:var(--ink); font-size:13px; }
.state-chip small { overflow:hidden; color:#77798d; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.choice-chip input:checked + span { border-color:var(--blue); background:var(--blue); color:#fff; box-shadow:0 9px 18px rgba(0,0,255,.13); }
.choice-chip input:focus-visible + span,.choice-card input:focus-visible + span { outline:3px solid rgba(88,90,255,.28); outline-offset:3px; }
.choice-chip input:checked + span b,.choice-chip input:checked + span small { color:#fff; }
.state-grid.disabled { opacity:.38; pointer-events:none; }
.choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.choice-card { position:relative; cursor:pointer; }
.choice-card input { position:absolute; top:15px; left:15px; }
.choice-card > span { min-height:112px; display:block; padding:18px 18px 18px 47px; border:1px solid #dedfeb; border-radius:14px; background:#fbfbfe; transition:.18s ease; }
.choice-card b,.choice-card small { display:block; }
.choice-card b { font-size:15px; line-height:1.35; }
.choice-card small { margin-top:6px; color:#77798d; font-size:12px; line-height:1.5; }
.choice-card input:checked + span { border-color:#8c8eff; background:#f1f1ff; box-shadow:0 0 0 3px rgba(88,90,255,.07); }
.warning-choice input:checked + span { border-color:#e7aa42; background:#fff9ed; box-shadow:0 0 0 3px rgba(231,170,66,.08); }
.compact-grid .choice-card > span { min-height:102px; }
.certification-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.certification-grid .choice-chip > span { min-height:54px; }
.preference-grid { align-items:start; }
.field-group { min-width:0; margin:0; padding:0; border:0; }
.field-group legend { margin-bottom:10px; }
.radio-row { display:flex; gap:10px; align-items:flex-start; padding:13px 14px; border:1px solid #dedfeb; background:#fbfbfe; cursor:pointer; }
.radio-row:first-of-type { border-radius:12px 12px 0 0; }
.radio-row:last-of-type { margin-top:-1px; border-radius:0 0 12px 12px; }
.radio-row b,.radio-row small { display:block; }
.radio-row b { font-size:14px; }
.radio-row small { margin-top:4px; color:#77798d; font-size:12px; line-height:1.45; }
.field-stack { display:grid; gap:16px; }
.final-section { text-align:center; }
.consent-row { display:flex; align-items:flex-start; justify-content:center; gap:11px; max-width:700px; margin:0 auto; color:#55576d; font-size:13px; line-height:1.6; text-align:left; cursor:pointer; }
.consent-row input { margin-top:2px; }
.light-turnstile { max-width:420px; margin:22px auto 0; }
.profile-submit { width:min(100%,420px); margin-top:18px; }
.profile-submit:disabled { opacity:.55; cursor:wait; transform:none; }
.profile-status { display:none; max-width:650px; margin:16px auto 0; padding:14px 16px; border-radius:10px; font-size:14px; line-height:1.5; }
.profile-status.visible { display:block; }
.profile-status.error { background:#fff0f2; color:#a51c35; }
.profile-status.success { background:#eaf9f3; color:#087d51; }
.form-footnote { display:block; max-width:700px; margin:15px auto 0; color:#85879a; font-size:12px; line-height:1.6; }
@media(max-width:980px){.profile-hero-inner{grid-template-columns:1fr}.profile-promise{max-width:520px}.profile-layout{grid-template-columns:1fr}.profile-sidebar{position:static}.sidebar-card{display:none}.state-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.profile-hero{padding:120px 0 48px}.profile-grid-bg{background-size:32px 32px}.profile-hero h1{font-size:clamp(47px,14vw,68px)}.profile-hero p{font-size:17px}.profile-hero .profile-time-note{font-size:13px}.profile-section{padding:30px 0 60px}.onboarding-plan-summary{padding:19px}.onboarding-plan-summary>div{align-items:flex-start;flex-direction:column;gap:7px}.form-section{padding:24px 19px;border-radius:17px}.form-section-heading h2{font-size:27px}.form-section-heading p{font-size:14px}.two-columns,.choice-grid{grid-template-columns:1fr}.state-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:390px}.certification-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-promise{padding:19px}.field-wide{grid-column:auto}.choice-chip>span{font-size:12px}.state-chip small{font-size:11px}}


/* Profile overview */
.profile-overview-page{background:#f7f7fb}.profile-overview-hero{padding-bottom:64px}.profile-status-card{display:grid;gap:1px;overflow:hidden;border:1px solid #d9daee;border-radius:20px;background:#d9daee;box-shadow:0 18px 48px rgba(25,27,80,.08)}.profile-status-card[hidden],.profile-state-card[hidden],#profile-content[hidden]{display:none!important}.profile-status-card>div{min-width:300px;padding:17px 20px;background:rgba(255,255,255,.92)}.profile-status-card span,.profile-status-card b{display:block}.profile-status-card span{margin-bottom:6px;color:#85879a;font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.profile-status-card b{font-size:15px}.profile-status-card b i{display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:#19b878;box-shadow:0 0 0 4px rgba(25,184,120,.12)}
.profile-overview-section{padding:56px 0 100px}.profile-state-card{padding:70px 35px;border:1px solid #ddddeb;border-radius:24px;background:#fff;text-align:center;box-shadow:0 16px 45px rgba(20,22,68,.05)}.profile-state-card h2{margin:18px 0 0;font-size:34px;letter-spacing:-.04em}.profile-state-card p{max-width:600px;margin:12px auto 25px;color:#6b6d82;font-size:16px;line-height:1.65}.profile-loader{width:34px;height:34px;margin:0 auto;border:3px solid #e1e1f4;border-top-color:var(--blue);border-radius:50%;animation:profileSpin .8s linear infinite}@keyframes profileSpin{to{transform:rotate(360deg)}}
.profile-overview-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;margin-bottom:28px}.overview-kicker{display:block;margin-bottom:9px;color:var(--blue);font-size:11px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.profile-overview-toolbar h2{margin:0;font-size:42px;line-height:1;letter-spacing:-.05em}.profile-overview-toolbar p{max-width:680px;margin:12px 0 0;color:#6b6d82;font-size:15px;line-height:1.6}.profile-actions{display:flex;gap:10px;flex:0 0 auto}.button-secondary{border:1px solid #cfd0e7;background:#fff;color:var(--ink);box-shadow:none}.button-secondary:hover{border-color:#aeb0d1;background:#f8f8fc}
.profile-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.overview-card{padding:30px;border:1px solid #ddddeb;border-radius:22px;background:#fff;box-shadow:0 12px 35px rgba(20,22,68,.04)}.overview-card-wide{grid-column:1/-1}.overview-card-heading{display:flex;align-items:flex-start;gap:15px;margin-bottom:24px}.overview-card-heading>span{flex:0 0 39px;width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#eeeeff;color:var(--blue);font-size:11px;font-weight:850}.overview-card-heading h3{margin:0;font-size:25px;line-height:1.1;letter-spacing:-.035em}.overview-card-heading p{margin:7px 0 0;color:#77798d;font-size:13px;line-height:1.5}.overview-details{display:grid;margin:0}.company-details{grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;overflow:hidden;border:1px solid #e0e1ee;border-radius:14px;background:#e0e1ee}.overview-details>div{min-width:0;padding:17px 18px;background:#fbfbfe}.overview-details dt{margin-bottom:8px;color:#85879a;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.overview-details dd{overflow-wrap:anywhere;margin:0;color:#24263d;font-size:15px;font-weight:750;line-height:1.45}.overview-details a{color:var(--blue);text-decoration:none}.preference-details{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.preference-details>div{border:1px solid #e0e1ee;border-radius:13px}.profile-chip-list{display:flex;flex-wrap:wrap;gap:9px}.profile-summary-chip{display:inline-flex;align-items:center;min-height:40px;padding:9px 13px;border:1px solid #d9daed;border-radius:999px;background:#f8f8fd;color:#45475d;font-size:13px;font-weight:750}.warning-chips .profile-summary-chip{border-color:#ecd6aa;background:#fff9ed;color:#79571a}.overview-note{margin:17px 0 0;padding:15px 17px;border-radius:12px;background:#f0f0ff;color:#62647b;font-size:13px;line-height:1.6}.profile-bottom-actions{display:flex;align-items:center;justify-content:space-between;gap:35px;margin-top:28px;padding:35px 38px;border-radius:22px;background:var(--ink);color:#fff;box-shadow:0 20px 55px rgba(16,17,39,.14)}.profile-bottom-actions h2{margin:0;font-size:32px;letter-spacing:-.04em}.profile-bottom-actions p{margin:8px 0 0;color:rgba(255,255,255,.65);font-size:14px}.profile-bottom-actions .button{flex:0 0 auto}
@media(max-width:900px){.profile-overview-toolbar,.profile-bottom-actions{align-items:flex-start;flex-direction:column}.profile-actions{width:100%}.profile-actions .button{flex:1}.company-details,.preference-details{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-status-card{max-width:520px}}
@media(max-width:700px){.profile-overview-section{padding:35px 0 65px}.profile-overview-grid{grid-template-columns:1fr}.overview-card-wide{grid-column:auto}.overview-card{padding:24px 20px}.profile-overview-toolbar h2{font-size:35px}.profile-actions{flex-direction:column}.profile-actions .button{width:100%}.company-details,.preference-details{grid-template-columns:1fr}.profile-bottom-actions{padding:30px 23px}.profile-bottom-actions .button{width:100%}.profile-status-card>div{min-width:0}.profile-summary-chip{font-size:12px}}


/* Manual test digest */
.digest-test-card{background:linear-gradient(135deg,#ffffff 0%,#f8f8ff 100%)}
.digest-test-layout{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:24px;border:1px solid #dedfee;border-radius:16px;background:#ffffff}
.digest-test-copy{min-width:0}.digest-test-label{display:block;margin-bottom:7px;color:#85879a;font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}.digest-test-copy strong{display:block;overflow-wrap:anywhere;color:#24263d;font-size:18px;line-height:1.35}.digest-test-copy p{max-width:670px;margin:9px 0 0;color:#696b80;font-size:14px;line-height:1.6}.digest-test-layout .button{flex:0 0 auto;border:0;cursor:pointer}.digest-test-layout .button:disabled{opacity:.58;cursor:wait;transform:none}.digest-test-status{margin-top:14px;padding:14px 16px;border-radius:12px;font-size:14px;font-weight:700;line-height:1.5}.digest-test-status[hidden]{display:none!important}.digest-test-status.sending{background:#eeeeff;color:#4244b8}.digest-test-status.success{background:#eaf9f3;color:#087d51}.digest-test-status.error{background:#fff0f2;color:#a51c35}.digest-test-note{margin-top:14px}
@media(max-width:700px){.digest-test-layout{align-items:flex-start;flex-direction:column;padding:20px}.digest-test-layout .button{width:100%}.digest-test-copy strong{font-size:16px}}


/* Email delivery settings */
.delivery-settings-card{background:linear-gradient(135deg,#ffffff 0%,#fafaff 100%)}
.delivery-settings-panel{overflow:hidden;border:1px solid #dedfee;border-radius:16px;background:#fff}
.delivery-status-row{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:24px;border-bottom:1px solid #e5e5f0}
.delivery-status-copy{min-width:0}
.delivery-settings-label{display:block;margin-bottom:8px;color:#85879a;font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.delivery-status-value{display:flex;align-items:center;gap:10px;color:#24263d;font-size:20px;line-height:1.25}
.delivery-status-value i{width:10px;height:10px;border-radius:50%;background:#19b878;box-shadow:0 0 0 5px rgba(25,184,120,.12)}
.delivery-status-value.paused i{background:#a8a9b7;box-shadow:0 0 0 5px rgba(127,129,149,.11)}
.delivery-status-copy p{margin:8px 0 0;color:#696b80;font-size:14px;line-height:1.6}
.delivery-toggle-button{flex:0 0 auto;border:1px solid #d3d4e7;cursor:pointer}
.delivery-resume-button{border:0;background:var(--blue);color:#fff}
.delivery-frequency-fieldset{min-width:0;margin:0;padding:24px;border:0}
.delivery-frequency-fieldset legend{padding:0;color:#44465c;font-size:13px;font-weight:800;letter-spacing:.025em}
.delivery-frequency-fieldset:disabled{opacity:.58}
.delivery-frequency-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}
.delivery-frequency-option{position:relative;display:block;cursor:pointer}
.delivery-frequency-option input{position:absolute;top:18px;left:18px;accent-color:var(--blue)}
.delivery-frequency-option>span{min-height:112px;display:block;padding:18px 18px 18px 50px;border:1px solid #dedfeb;border-radius:14px;background:#fbfbfe;transition:.18s ease}
.delivery-frequency-option b,.delivery-frequency-option small{display:block}
.delivery-frequency-option b{color:#24263d;font-size:16px;line-height:1.35}
.delivery-frequency-option small{margin-top:7px;color:#77798d;font-size:12px;line-height:1.55}
.delivery-frequency-option input:checked+span{border-color:#8c8eff;background:#f1f1ff;box-shadow:0 0 0 3px rgba(88,90,255,.07)}
.delivery-settings-actions{display:flex;align-items:center;gap:22px;padding:0 24px 24px}
.delivery-settings-actions .button{flex:0 0 auto;border:0;cursor:pointer}
.delivery-settings-actions .button:disabled,.delivery-toggle-button:disabled{opacity:.58;cursor:wait;transform:none}
.delivery-settings-actions p{max-width:760px;margin:0;color:#696b80;font-size:13px;line-height:1.6}
.delivery-settings-status{margin-top:14px;padding:14px 16px;border-radius:12px;font-size:14px;font-weight:700;line-height:1.5}
.delivery-settings-status[hidden]{display:none!important}
.delivery-settings-status.saving{background:#eeeeff;color:#4244b8}
.delivery-settings-status.success{background:#eaf9f3;color:#087d51}
.delivery-settings-status.error{background:#fff0f2;color:#a51c35}
@media(max-width:700px){.delivery-status-row{align-items:flex-start;flex-direction:column;padding:20px}.delivery-toggle-button{width:100%}.delivery-frequency-fieldset{padding:20px}.delivery-frequency-options{grid-template-columns:1fr}.delivery-settings-actions{align-items:stretch;flex-direction:column;padding:0 20px 20px}.delivery-settings-actions .button{width:100%}.delivery-frequency-option>span{min-height:0}}


/* Paddle subscription status */
.billing-status-card{background:linear-gradient(135deg,#ffffff 0%,#f7f7ff 100%)}
.billing-status-panel{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:24px;border:1px solid #dedfee;border-radius:16px;background:#fff}
.billing-status-copy{min-width:0}.billing-settings-label{display:block;margin-bottom:8px;color:#85879a;font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.billing-status-value{display:flex;align-items:center;gap:10px;color:#24263d;font-size:20px;line-height:1.25}
.billing-status-value i{width:10px;height:10px;border-radius:50%;background:#a8a9b7;box-shadow:0 0 0 5px rgba(127,129,149,.11)}
.billing-status-value[data-state="active"] i{background:#19b878;box-shadow:0 0 0 5px rgba(25,184,120,.12)}
.billing-status-value[data-state="warning"] i{background:#e7a52b;box-shadow:0 0 0 5px rgba(231,165,43,.13)}
.billing-status-value[data-state="inactive"] i{background:#c45d70;box-shadow:0 0 0 5px rgba(196,93,112,.12)}
.billing-status-copy p{margin:8px 0 0;color:#696b80;font-size:14px;line-height:1.6}.billing-status-panel .button{flex:0 0 auto}
.billing-status-note{margin-top:14px;padding:14px 16px;border-radius:12px;background:#fff7e7;color:#725215;font-size:14px;font-weight:700;line-height:1.5}.billing-status-note[hidden]{display:none!important}
@media(max-width:700px){.billing-status-panel{align-items:flex-start;flex-direction:column;padding:20px}.billing-status-panel .button{width:100%}}

/* Batch 1 functional-label contrast */
.profile-promise small,.sidebar-card p,.field>small,.nationwide-choice small,
.state-chip small,.choice-card small,.radio-row small,.form-footnote,
.overview-card-heading p,.overview-details dt,.digest-test-label,
.delivery-settings-label,.billing-settings-label { color:#65677a; }
.overview-details dt,.digest-test-label,.delivery-settings-label,.billing-settings-label { font-size:11px; }
