:root {
    color-scheme: dark;
    --background: #2c2721;
    --gold: #e4c343;
    --muted: #a09a90;
    --copper: #b7753b;
    --orange: #f4a650;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--gold);
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #ffe075; outline-offset: 5px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.landing { position: relative; isolation: isolate; min-height: max(100svh, 1280px); display: flex; flex-direction: column; overflow: clip; }
.hero { position: relative; width: 100%; height: min(60.174vw, 346px); flex-shrink: 0; }
.hero__crop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero__crop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #18140f20 0%, #211b1440 32%, #211b1480 65%, #211b14ba 100%); }
.brand { position: absolute; top: 36px; left: max(32px, calc(50% - 560px)); display: flex; align-items: center; gap: 14px; margin: 0; color: var(--gold); font-family: 'Times New Roman', Georgia, serif; font-size: 14px; font-weight: 700; line-height: 1.45; text-shadow: 0 2px 8px #000; }
.brand svg { width: 66px; height: 66px; flex-shrink: 0; filter: drop-shadow(0 2px 5px #0008); }

.subscription { position: relative; width: min(100% - 64px, 511px); margin: 0 auto; }
.benefits { padding: 15px 13px 17px; border: 2px solid #494138; border-radius: 24px; background: linear-gradient(125deg, #302b25e6, #2b2622e6); box-shadow: inset 0 0 0 3px #332d2666, 0 7px 12px #0005; display: grid; gap: 8px; }
.benefit { display: flex; align-items: center; min-height: 60px; padding: 7px 6px; gap: 13px; border: 1px solid #3f3931; border-radius: 16px; background: linear-gradient(#2e2923, #29251f); box-shadow: 0 5px 6px #0007, inset 0 1px 1px #4b423633; }
/* Reuse the exact three decorative glyphs from the supplied reference. */
.benefit__icon { --icon-scale: 1; width: 36px; height: 36px; flex: 0 0 36px; background-image: url('assets/subscription-reference.jpg'); background-repeat: no-repeat; background-size: calc(575px * var(--icon-scale)) calc(1280px * var(--icon-scale)); mix-blend-mode: lighten; }
.benefit__icon--sync { background-position: calc(-54px * var(--icon-scale)) calc(-372px * var(--icon-scale)); }
.benefit__icon--lock { background-position: calc(-54px * var(--icon-scale)) calc(-443px * var(--icon-scale)); }
.benefit__icon--bolt { background-position: calc(-54px * var(--icon-scale)) calc(-510px * var(--icon-scale)); }
.benefit p { margin: 0; font-size: 16.5px; line-height: 1.3; letter-spacing: .1px; }
.purchase { margin-top: 52px; position: relative; }
.purchase::before { content: ''; position: absolute; pointer-events: none; top: -32px; bottom: -16px; left: calc((511px - 100vw) / 2); width: 100vw; border: 1px solid #3b332c55; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan-option { min-width: 0; min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 11px 4px; color: var(--gold); border: 2px solid transparent; border-radius: 19px; background: linear-gradient(180deg, #312820 0%, #684326 100%); box-shadow: 0 5px 8px #0007; transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.plan-option[aria-checked="true"] { border-color: var(--orange); box-shadow: inset 0 0 0 2px #9b652e99, 0 5px 8px #0008, 0 0 0 1px #715139; background: linear-gradient(180deg, #30261f 0%, #714b2d 100%); }
.plan-option__price { font-family: 'Times New Roman', Georgia, serif; font-size: 32px; font-weight: 700; line-height: 1.06; white-space: nowrap; }
.plan-option__name { font-size: 18px; line-height: 1.2; }
.plan-option__period { font-size: 12px; line-height: 1.2; color: #cfb570; }
.periods { width: min(100%, 520px); margin: 20px auto 0; padding: 5px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; border: 1px solid #574638; border-radius: 14px; background: #211c17cc; }
.period-option { min-width: 0; min-height: 42px; padding: 7px 5px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #c8b99c; font-size: 13px; line-height: 1.2; }
.period-option[aria-checked="true"] { border-color: #b77b3e; background: #684326; color: #f0d36d; box-shadow: inset 0 0 0 1px #d1904b55; }
.pay-button { position: relative; width: 100%; min-height: 68px; margin-top: 31px; border: 2px solid var(--orange); border-radius: 17px; background: var(--copper); color: #30271c; font-weight: 700; font-size: 19px; box-shadow: inset 0 0 0 1px #d68c4699, 0 6px 10px #0006; transition: background 150ms ease, box-shadow 150ms ease; }
.pay-button:active { box-shadow: inset 0 3px 5px #0004; }
.payment-terms { position: relative; margin: 11px -4px 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.6; }
.payment-terms a { color: inherit; font-size: inherit; text-decoration: underline; font-weight: 700; }
.plan-availability { margin: 17px 0 -12px; color: #c8b99c; font-size: 13px; line-height: 1.5; text-align: center; }
.footer { width: 100%; margin-top: auto; padding: 35px 24px 45px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.65; }
.footer p { margin: 14px 0 0; }
.footer a { text-decoration: none; margin-left: 3px; }
.footer button { padding: 4px 8px; border: 0; background: none; color: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 14px; }
.footer__legal a { margin: 0; text-decoration: underline; text-underline-offset: 3px; }
.billing-dialog { position: fixed; width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 48px); padding: 30px; border: 1px solid #806343; border-radius: 22px; background: #2c2721; color: #ede5d6; box-shadow: 0 20px 90px #000a; }
.billing-dialog::backdrop { background: #100d0bc9; backdrop-filter: blur(5px); }
.billing-dialog[open] { animation: dialog-enter 160ms ease-out; }
.billing-dialog h2 { margin: 0 35px 22px 0; color: var(--gold); font: 700 26px/1.2 Georgia, serif; }
.billing-dialog h3 { font-size: 18px; margin: 18px 0 10px; }
.dialog-close { position: absolute; top: 12px; right: 13px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #3e352b; color: var(--gold); font-size: 27px; line-height: 1; }
.billing-card { font-size: 14px; line-height: 1.55; }
.billing-card label:not(.consent) { display: block; margin-top: 12px; margin-bottom: 5px; }
.billing-card input:not([type="checkbox"]) { width: 100%; min-height: 46px; border: 1px solid #76614a; border-radius: 8px; background: #211c17; color: #f6eedf; padding: 10px 12px; }
.billing-card button:not(.text-button) { width: 100%; min-height: 46px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--orange); border-radius: 10px; background: var(--copper); color: #22180f; font-weight: 700; }
.billing-card button.secondary-button { background: transparent; color: #e6c585; border-color: #84623d; }
.billing-card button:disabled { opacity: .45; cursor: not-allowed; }
.text-button { padding: 7px 0; border: 0; background: none; color: #e6c585; text-decoration: underline; text-underline-offset: 3px; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.account-heading p { overflow-wrap: anywhere; }
.form-hint, .support { color: #b9ad9d; font-size: 12px; line-height: 1.55; }
.consent { display: flex; align-items: start; gap: 10px; margin-top: 18px; font-size: 12px; line-height: 1.6; }
.consent input { margin: 3px 0 0; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--copper); }
.message:empty { display: none; }
.message[data-error="true"] { color: #ffbfab; }
.test-mode-banner { padding: 11px 13px; border: 1px solid #856331; border-radius: 9px; color: #e3c780; font-size: 12px; background: #3d3020; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) { .plan-option:hover, .period-option:hover { border-color: #c18b4b; } .pay-button:hover { background: #c18146; } .footer a:hover, .footer button:hover { color: var(--gold); } }
@media (max-width: 574px) {
    .brand { top: 24px; left: 5.565vw; gap: 10px; font-size: 11px; }
    .brand svg { width: 53px; height: 53px; }
    .landing { min-height: max(100svh, 222.609vw); }
    .subscription { width: calc(100% - 11.13vw); }
    .benefits { padding: 12px 10px 14px; border-radius: 20px; gap: 7px; }
    .benefit { min-height: 52px; gap: 10px; padding: 7px 8px; border-radius: 13px; }
    .benefit__icon { --icon-scale: .777778; width: 28px; height: 28px; flex-basis: 28px; }
    .benefit p { font-size: clamp(12px, 2.78vw, 16px); }
    .purchase { margin-top: 8.87vw; }
    .purchase::before { left: -5.565vw; top: -5.565vw; }
    .plans { gap: 12px; }
    .plan-option { min-height: 105px; border-radius: 15px; gap: 7px; }
    .plan-option__price { font-size: clamp(24px, 5.56vw, 32px); }
    .plan-option__name { font-size: clamp(13px, 3.13vw, 18px); }
    .plan-option__period { font-size: 10px; }
    .periods { margin-top: 14px; }
    .period-option { min-height: 40px; padding-inline: 3px; font-size: clamp(10px, 2.6vw, 13px); }
    .pay-button { min-height: 54px; margin-top: 5.39vw; font-size: 16px; border-radius: 13px; }
    .payment-terms { font-size: 9px; margin-top: 9px; }
    .footer { font-size: 9px; padding: 30px 20px; }
    .footer button { font-size: 10px; }
}
@media (min-width: 576px) and (max-width: 899px) {
    .hero { height: 410px; }
    .landing { min-height: max(100svh, 1240px); }
}
@media (min-width: 900px) {
    .landing { min-height: max(100svh, 980px); }
    .hero { height: 485px; }
    .subscription { width: min(1120px, calc(100% - 96px)); }
    .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px; gap: 14px; border-radius: 22px; }
    .benefit { min-height: 85px; gap: 12px; padding: 12px; }
    .benefit p { font-size: 15px; line-height: 1.45; }
    .purchase { width: min(760px, 100%); margin: 36px auto 0; }
    .purchase::before { display: none; }
    .plans { gap: 26px; }
    .plan-option { min-height: 124px; }
    .plan-option__price { font-size: 36px; }
    .plan-option__name { font-size: 19px; }
    .plan-option__period { font-size: 12px; }
    .pay-button { margin-top: 24px; min-height: 60px; }
    .payment-terms { font-size: 12px; }
    .footer { padding: 28px 24px 24px; font-size: 11px; }
    .footer p { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
