:root {
  color-scheme: dark;
  --background: #110e13;
  --panel: #1b151e;
  --panel-up: #231a26;
  --line: #392d39;
  --line-gold: #6a4b3b;
  --ink: #fff4e9;
  --muted: #c7b9c4;
  --gold: #f3c582;
  --bright: #ffdda6;
  --green: #9ee0ba;
  --red: #ffb5b9;
  --shadow: 0 18px 45px #09070b73;
  --radius: 17px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol { margin: 0; }
img { max-width: 100%; }
svg { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; left: 8px; top: -110px; z-index: 10; background: var(--bright); color: #241823; padding: 12px; }
.skip:focus { top: 8px; }
.header { background: #161017; border-bottom: 1px solid #322733; }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 1.12rem; font-weight: 750; letter-spacing: .12em; white-space: nowrap; }
.brand img { border-radius: 10px; border: 1px solid #5c3c35; object-fit: cover; }
.brand b, .footer-brand b { color: var(--gold); font-weight: inherit; }
.main-nav, .header-account { display: flex; align-items: center; gap: 27px; }
.main-nav a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; font-size: .94rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"], .text-link:hover { color: var(--bright); }
.header-account { justify-content: end; gap: 10px; }
.environment { color: #e2c9bb; background: #271924; border-bottom: 1px solid #493342; font-size: .875rem; }
.environment-inner { min-height: 41px; display: flex; gap: 13px; align-items: center; }
.environment-label { color: var(--gold); font-weight: 650; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.environment-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 9px #e6a35272; }
.main { flex: 1; padding-top: 34px; padding-bottom: 65px; min-height: 535px; }
.loading { color: var(--muted); }
.hero { position: relative; min-height: 348px; overflow: hidden; isolation: isolate; display: flex; align-items: center; border-radius: 23px; border: 1px solid #5b3d43; background: radial-gradient(ellipse at 70% 47%, #3c2424 0%, transparent 55%), linear-gradient(112deg, #291a2a, #21151e 64%, #1f161d); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#ffc7840b 1px, transparent 1px), linear-gradient(90deg, #ffc7840b 1px, transparent 1px); background-size: 39px 39px; mask-image: linear-gradient(90deg, transparent 40%, #000 72%); }
.hero-copy { position: relative; z-index: 1; padding: 38px 0 43px 48px; max-width: 59%; }
.hero h1 { font-size: clamp(2.55rem, 4.45vw, 4.65rem); font-weight: 720; line-height: 1.04; letter-spacing: -.069em; text-wrap: balance; }
.hero h1 b { color: var(--gold); font-weight: inherit; }
.hero-copy p { max-width: 425px; color: #e2d2db; margin-top: 17px; margin-bottom: 24px; }
.hero-art { position: absolute; width: 53%; height: 113%; right: 1%; top: -7%; object-fit: contain; pointer-events: none; mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 65%, transparent 97%); }
.actions { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; }
.button { border: 1px solid #edbe80; border-radius: 9px; color: #261621; background: linear-gradient(115deg, #f8d49a, #eab46a); min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 19px; text-align: center; font-size: .95rem; font-weight: 690; transition: background .16s, border-color .16s; }
.button:hover:not(:disabled) { background: #ffdda6; border-color: #ffdda6; }
.button.secondary { background: #261c28; border-color: #554157; color: var(--ink); }
.button.secondary:hover:not(:disabled) { background: #3a2838; border-color: #8c665e; }
.button.small { min-height: 40px; padding: 7px 12px; font-size: .9rem; }
.button.danger { background: transparent; border-color: #65454e; color: var(--red); }
.button.danger:hover:not(:disabled) { background: #4b2c39; border-color: #b1717d; }
.section { margin-top: 40px; }
.section-title { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
h1.page-title { font-size: clamp(2rem, 4.25vw, 3.15rem); font-weight: 700; line-height: 1.13; letter-spacing: -.05em; }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.92rem); line-height: 1.22; letter-spacing: -.035em; font-weight: 690; }
h3 { font-size: 1.12rem; line-height: 1.3; }
.muted { color: var(--muted); }
.subhead { margin-top: 9px; color: var(--muted); }
.plan-grid, .summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.plan-period + .plan-period { margin-top: 24px; }
.plan-period > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.plan-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 23px; }
.plan-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title icon" "price icon" "desc desc" "button button"; gap: 10px 12px; }
.plan-card.premium { border-color: var(--line-gold); background: radial-gradient(ellipse at 98% 0%, #47283a75, transparent 59%), var(--panel); }
.plan-card h3 { grid-area: title; }
.plan-card .icon-tile { grid-area: icon; justify-self: end; }
.icon-tile { width: 43px; height: 43px; border-radius: 11px; display: grid; place-items: center; border: 1px solid #5d4342; color: var(--gold); background: #32242d; }
.price { grid-area: price; color: var(--ink); font-size: 2.23rem; line-height: 1.1; font-weight: 700; letter-spacing: -.045em; }
.price span { color: var(--muted); font-size: .875rem; font-weight: 450; letter-spacing: 0; white-space: nowrap; }
.plan-card p { grid-area: desc; color: var(--muted); margin-bottom: 6px; }
.plan-card .button { grid-area: button; justify-self: start; }
.plan-card small { grid-area: button; color: var(--muted); font-size: .9rem; align-self: center; }
.page { max-width: 960px; margin-inline: auto; }
.narrow { max-width: 520px; margin-inline: auto; }
.auth-panel { padding: clamp(23px, 5vw, 36px); box-shadow: var(--shadow); }
.form { display: grid; gap: 15px; margin-top: 23px; }
.label { display: grid; gap: 7px; color: var(--ink); font-weight: 570; }
.label small { font-weight: 400; font-size: .875rem; color: var(--muted); }
input, select { width: 100%; min-height: 45px; padding: 9px 12px; color: var(--ink); background: #151019; border: 1px solid #604e60; border-radius: 8px; }
input::placeholder { color: #b3a1b1; }
.form .button { justify-self: stretch; }
.form-footer { margin-top: 19px; color: var(--muted); }
.text-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.text-action { border: none; background: transparent; color: var(--muted); padding: 9px; min-height: 40px; white-space: nowrap; font-size: .9rem; }
.text-action:hover { color: var(--bright); }
.back { display: inline-block; margin-bottom: 15px; color: var(--gold); }
.summary-grid { margin-block: 24px; }
.summary-grid .panel { display: grid; gap: 12px; align-content: start; min-height: 167px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head h2 { font-size: 1.14rem; letter-spacing: -.013em; }
.pill { border: 1px solid #5a4659; color: #ead4e5; background: #2d222f; padding: 3px 8px; border-radius: 20px; font-size: .875rem; white-space: nowrap; }
.pill.on { color: var(--green); border-color: #416753; background: #202e29; }
.pill.wait { color: var(--bright); border-color: #725544; background: #342825; }
.pill.off { color: var(--red); border-color: #754c5b; background: #34232c; }
.summary-value { font-size: 1.43rem; font-weight: 670; line-height: 1.2; letter-spacing: -.025em; }
.summary-grid .actions { margin-top: 4px; }
.notice { border: 1px solid var(--line-gold); border-radius: 11px; padding: 13px 15px; background: #302127; color: #f0d4c6; }
.notice.error { border-color: #875964; color: var(--red); }
.notice.good { border-color: #416753; color: var(--green); background: #1c2a24; }
.order-summary { display: grid; gap: 13px; border-block: 1px solid var(--line); padding-block: 17px; margin-block: 19px; }
.order-summary strong { font-size: 1.75rem; }
.order-summary p { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; }
.checkout-actions { display: grid; gap: 10px; margin-top: 18px; }
.receipt { display: grid; gap: 14px; }
.receipt .icon-tile { width: 52px; height: 52px; }
.receipt .icon-tile.good { color: var(--green); background: #202e29; border-color: #416753; }
.device-list, .order-list { display: grid; gap: 10px; }
.device, .order { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #19131b; }
.device .row-info, .order .row-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-info p { font-size: .875rem; color: var(--muted); }
.device .actions { justify-content: end; }
.device-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 13px; }
.guide-copy { display: grid; gap: 14px; margin-top: 20px; }
.guide-copy ol { padding-left: 22px; color: var(--muted); }
.guide-copy li + li { margin-top: 8px; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.download-card h3 { margin-bottom: 12px; }
.download-card ol { padding-left: 22px; color: var(--muted); margin: 15px 0 0; }
.download-card li + li { margin-top: 8px; }
.empty { color: var(--muted); }
.toast { position: fixed; bottom: 21px; right: 24px; max-width: min(470px, calc(100% - 48px)); padding: 13px 17px; border-radius: 10px; border: 1px solid #84645c; background: #2a202c; box-shadow: var(--shadow); color: var(--ink); z-index: 3; }
.toast.error { border-color: #a26576; color: var(--red); }
.footer { border-top: 1px solid var(--line); background: #151017; color: var(--muted); }
.footer-inner { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .875rem; }
.footer-brand { letter-spacing: .13em; font-weight: 720; color: var(--ink); }
@media (max-width: 870px) {
  .wrap { width: calc(100% - 48px); }
  .main-nav { gap: 17px; }
  .hero-copy { padding-left: 34px; }
  .hero-art { width: 54%; right: -1%; }
  .device { flex-wrap: wrap; }
  .device .actions { justify-content: start; width: 100%; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 0; grid-template-columns: 1fr auto; gap: 0 8px; }
  .brand { min-height: 65px; gap: 7px; font-size: .96rem; }
  .brand img { width: 36px; height: 36px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); }
  .main-nav a { padding-inline: 3px; }
  .environment-inner { min-height: 49px; gap: 7px; align-items: start; flex-direction: column; justify-content: center; padding-block: 6px; line-height: 1.25; }
  .main { padding-top: 20px; padding-bottom: 38px; }
  .hero { min-height: 0; align-items: end; }
  .hero-art { top: -10px; right: -9%; width: 82%; height: 235px; object-position: right top; opacity: .86; }
  .hero-copy { padding: 159px 19px 23px; max-width: 100%; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.8rem); text-wrap: initial; }
  .hero-copy p { margin-block: 12px 17px; }
  .section { margin-top: 28px; }
  .plan-grid, .summary-grid, .device-form, .download-grid { grid-template-columns: 1fr; }
  .summary-grid { margin-block: 19px; }
  .plan-card, .panel { padding: 17px; }
  .section-title { align-items: start; flex-direction: column; }
  .order { align-items: start; flex-wrap: wrap; }
  .order .row-info { min-width: 130px; }
  .toast { bottom: 14px; right: 16px; max-width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.device-list { margin-top: 14px; }

/* Customer details and separate, unchecked acknowledgements. */
.consent-fields { border: 1px solid var(--line); border-radius: 10px; padding: 16px; min-width: 0; margin: 0; display: grid; gap: 16px; }
.consent-fields legend { padding-inline: 6px; color: var(--gold); }
.consent-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.6; cursor: pointer; }
.consent-check input { flex: none; width: 20px; height: 20px; min-height: 20px; margin: 3px 0 0; padding: 0; accent-color: var(--gold); }
.consent-check a { overflow-wrap: anywhere; }
.consent-fields > p { font-size: .875rem; }
.profile-edit { margin-top: 20px; }
.profile-edit summary { cursor: pointer; color: var(--gold); }
.legal-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 24px; font-size: .875rem; color: var(--muted); }
.legal-links a { text-decoration: underline; text-underline-offset: 3px; }
.legal-document { max-width: 900px; padding-block: 36px; line-height: 1.75; }
.legal-document h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.2; margin-block: 28px 16px; overflow-wrap: anywhere; }
.legal-document h2 { margin-block: 28px 12px; }
.legal-document p { margin-top: 12px; overflow-wrap: anywhere; }
.legal-document a { color: var(--gold); text-decoration: underline; }
@media (max-width: 600px) { .consent-fields { padding: 12px; } }

/* Subscription-owned devices and explicit recurring-payment controls. */
.device-policy { margin-bottom: 16px; }
.device button:disabled:not([data-action]) { cursor: not-allowed; }
.device-limit { margin-block: 14px; }
.device-lock-note, .profile-reissue-note { margin-top: 7px; }
.device .row-info .profile-reissue-note { color: var(--gold); }
.renewal-panel { margin-top: 20px; }
.renewal-panel p + p { margin-top: 10px; }
.renewal-panel .actions { margin-top: 16px; }
.renewal-choice { margin-top: 18px; }
.renewal-choice .consent-check { color: var(--ink); }
.renewal-choice .muted { font-size: .875rem; margin-top: 12px; }
