:root {
    --bg: #0F0E0D;
    --text: #EDE6DA;
    --btn-bg: #F2C230;
    --btn-text: #0F0E0D;
    --muted: #A39B8F;
    --cancel-bg: #8C8C8C;
    --cancel-text: #FFFFFF;
    --surface: #191817;
    --line: #3A3631;
    --radius: 6px;
    --page-width: 480px;
}

@font-face {
    font-family: "Work Sans";
    src: url("../fonts/truecrime/WorkSans-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Anton";
    src: url("../fonts/truecrime/Anton-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    background: var(--bg);
}

body {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "Work Sans", sans-serif;
}

button,
a {
    font: inherit;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--btn-bg);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--btn-bg);
    outline-offset: 3px;
}

.subscription-page {
    width: 100%;
    max-width: var(--page-width);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
}

.subscription-header {
    padding: 12px 16px 0;
}

.subscription-header img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.screen-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 18px 18px 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.screen-copy strong {
    font-weight: 700;
}

.screen-title {
    font-size: 14px;
    letter-spacing: 0.02em;
}

.screen-title--large {
    font-size: 16px;
    letter-spacing: normal;
}

.screen-muted {
    opacity: 0.8;
}

.screen-message {
    font-size: 14px;
    line-height: 1.45;
}

.action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px 0;
}

.action-row--single {
    grid-template-columns: minmax(0, 1fr);
}

.action-button {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.action-button--cancel {
    background: var(--cancel-bg);
    color: var(--cancel-text);
    font-size: 15px;
    font-weight: 600;
}

.action-button--primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.cancel-subscription-link {
    display: block;
    margin: 12px 18px 0;
    color: var(--text);
    font-size: 12px;
    text-align: center;
}

.legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px 28px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.legal p {
    margin: 0;
}

.legal strong {
    color: var(--text);
}

.status-copy {
    gap: 8px;
}

.status-copy .screen-title {
    margin-bottom: 2px;
}

.status-copy--success {
    align-items: center;
    gap: 3px;
    text-align: center;
}

.status-copy--success .screen-message,
.status-copy--success .screen-muted {
    display: block;
    width: 100%;
}

.success-cost,
.success-cancel-link {
    display: block;
    width: 100%;
    font-size: 11px;
    line-height: 1.4;
}

.success-cancel-link {
    color: var(--text);
}

.success-account-note {
    margin: 13px 18px 0;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.success-account-note a {
    color: var(--text);
}

.manage-subscription-link {
    display: block;
    margin: 12px 18px 0;
    color: var(--text);
    font-size: 12px;
    text-align: center;
}

.support-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 18px 18px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.support-contact a {
    color: var(--muted);
}

.error-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.error-brand {
    display: flex;
    height: 64px;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.error-brand img {
    display: block;
    width: 144px;
    height: auto;
}

.error-card {
    margin: 28px 20px 0;
    padding: 32px 20px 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.error-icon {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 19px;
    border: 2px solid var(--btn-bg);
    border-radius: 50%;
    color: var(--btn-bg);
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
}

.error-card-message {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

.error-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
    padding: 17px 16px 19px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.error-footer a {
    color: var(--muted);
    text-decoration: none;
}

/* Unsubscribe flow: compact layout matching the cancellation reference screens. */
.cancel-page {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "Work Sans", sans-serif;
}

.cancel-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0 auto;
    background: var(--bg);
}

.cancel-header {
    display: flex;
    height: 65px;
    flex: none;
    align-items: center;
    justify-content: center;
}

.cancel-header img {
    display: block;
    width: 150px;
    height: auto;
}

.cancel-content {
    flex: 1;
    padding: 47px 20px 30px;
    text-align: center;
}

.cancel-title {
    max-width: 360px;
    margin: 0 auto 30px;
    color: var(--text);
    font-family: "Anton", sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.cancel-title-line {
    display: block;
    transform: scaleX(0.84);
    transform-origin: center;
    white-space: nowrap;
}

.cancel-title-highlight {
    color: var(--btn-bg);
}

.cancel-form {
    margin: 0;
}

.cancel-button {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    background: var(--btn-bg);
    color: var(--btn-text);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.cancel-button:hover {
    color: var(--btn-text);
    filter: brightness(1.05);
}

.cancel-button:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

.cancel-support {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}

.cancel-support a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cancel-support a:hover {
    color: var(--btn-bg);
}

.cancel-footer {
    display: flex;
    min-height: 51px;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 481px) {
    .cancel-shell {
        max-width: var(--page-width);
    }
}

@media (max-width: 360px) {
    .cancel-title {
        font-size: 35px;
    }
}

/* Welcome: enlace a Termos e Condições centrado (06/11/26) */
.legal--center {
    text-align: center;
}