:root {
  color-scheme: dark;
  --canvas: #070a0f;
  --surface: #111722;
  --surface-elevated: #182131;
  --accent-deep: #4568e8;
  --accent-soft: #18254b;
  --card-radius: 24px;
  --control-radius: 14px;
  --ink: #f5f7fb;
  --muted: #a1adbf;
  --accent: #7694ff;
  --line: #253043;
  --error: #ff7081;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(660px 520px at 84% 2%, #7694ff18, transparent 70%), var(--canvas); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; text-underline-offset: .25em; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: #30447b; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-180%); background: var(--ink); color: var(--canvas); padding: 12px 18px; border-radius: 8px; z-index: 5; }
.skip-link:focus { transform: none; }
.site-header, main, footer { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 48px; }
.site-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; width: 248px; min-height: 44px; min-width: 0; flex-shrink: 1; align-items: center; }
.brand img { width: 100%; height: auto; display: block; transform: translateX(-2.2369%); filter: url(#atlas-wordmark-brightness); }
.logo-rendering { position: absolute; overflow: hidden; pointer-events: none; }
.site-header nav { display: flex; align-items: center; gap: 28px; flex-shrink: 0; color: var(--muted); font-size: .875rem; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.site-header nav a:hover, footer a:hover, .back-link:hover { color: var(--ink); }
main { flex: 1; padding-block: 48px 72px; }
.intro { max-width: 760px; margin-bottom: 40px; }
h1 { font-size: clamp(2.2rem,4vw,3.3rem); line-height: 1.1; font-weight: 620; letter-spacing: -.045em; text-wrap: balance; }
.intro > p { margin-top: 20px; max-width: 55ch; color: var(--muted); font-size: 1rem; line-height: 1.7; }
h2 { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 12px; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
h4 { font-size: 1.25rem; font-weight: 550; letter-spacing: -.025em; }
.auth-art { display: none; }
/* Desktop sign-in: editorial introduction on the left, focused form on the right. */
.account-page.signed-out main { display: grid; grid-template-columns: minmax(0,1fr) 440px; column-gap: 96px; align-content: center; align-items: center; padding-block: 40px 56px; }
.account-page.signed-out .intro { margin: 0; max-width: 510px; }
.account-page.signed-out h1 { font-size: clamp(2.8rem,4.3vw,3.6rem); line-height: 1.08; }
.account-page.signed-out .intro > p { max-width: 39ch; font-size: 1.06rem; margin-top: 24px; }
.account-page.signed-out .auth-art { display: block; margin: 12px -16px 0; max-width: 510px; }
.auth-art img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse at center, #000 54%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 54%, transparent 75%); }
.signed-out #nav-sign-in { display: none; }
.signed-out .account-panel { display: block; margin: 0; padding: 0; border: 0; }
/* AtlasCard: app surface, continuous 24-point corner, white 8% keyline and soft shadow. */
.account-form { padding: 32px; background: #111722c2; border: 1px solid #ffffff14; border-radius: var(--card-radius); min-width: 0; box-shadow: 0 12px 24px #0000001f; -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
.signed-out .account-form { padding: 40px; }
.panel-heading { margin-bottom: 30px; }
.panel-heading h2, .panel-heading h3 { display: block; font-size: 1.65rem; letter-spacing: -.035em; font-weight: 600; }
.panel-heading p { color: var(--muted); font-size: .875rem; margin-top: 8px; overflow-wrap: anywhere; }
form label { display: block; color: #d7deec; font-size: .8125rem; font-weight: 500; margin: 20px 0 8px; }
form > label:first-child { margin-top: 0; }
input:not([type=radio]) { display: block; width: 100%; min-height: 56px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--surface-elevated); color: var(--ink); font-size: .9375rem; caret-color: var(--accent); transition: border-color .16s; }
input:not([type=radio]):hover { border-color: #506080; }
input::placeholder { color: var(--muted); }
input:disabled { opacity: .65; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field button { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 42px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); border-radius: 6px; }
.field-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field-label-row a { color: var(--accent); font-size: .75rem; padding-block: 12px 8px; }
.field-label-row a:hover { text-decoration: underline; }
.field-help { color: var(--muted); font-size: .75rem; line-height: 1.6; margin-top: 8px; }
.primary-button, .secondary-button { width: 100%; min-height: 52px; padding: 12px 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--control-radius); text-align: center; font-size: .875rem; font-weight: 600; transition: background .16s, border-color .16s; }
.primary-button { background: var(--accent); color: var(--canvas); border: 1px solid transparent; margin-top: 24px; font-weight: 650; }
.primary-button:hover:not(:disabled) { background: #8ba4ff; }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled) { transform: scale(.985); }
.secondary-button { background: var(--surface-elevated); color: var(--accent); border: 1px solid var(--line); margin-top: 12px; }
.secondary-button:hover:not(:disabled) { background: #1b263b; border-color: #55698e; }
.text-button { color: var(--accent); border: 0; background: transparent; padding: 8px 0; min-height: 44px; font-size: .8125rem; font-weight: 500; }
.text-button:hover:not(:disabled) { text-decoration: underline; }
.auth-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 5px; font-size: .8125rem; color: var(--muted); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-switch .text-button { min-height: 32px; }
.message { padding: 12px 14px; border-radius: 8px; margin-top: 14px; font-size: .8125rem; overflow-wrap: anywhere; }
.error { background: #2b1822; color: var(--error); border: 1px solid #57303e; }
.notice { padding: 16px 20px; margin-bottom: 28px; background: #121e35; color: #c0cdff; border: 1px solid #354b72; border-radius: 10px; font-size: .875rem; grid-column: 1/-1; }
/* Account and package pages share the same restrained card and type system. */
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading > span { font-size: .78rem; color: var(--muted); }
.step { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid #42516d; border-radius: 50%; font-size: .75rem; font-weight: 500; color: #aebddd; flex-shrink: 0; }
#packages, #account-panel { scroll-margin-top: 24px; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.package-option { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 26px; min-height: 194px; background: #111722c2; border: 1px solid #ffffff14; border-radius: var(--card-radius); box-shadow: 0 12px 24px #0000001f; cursor: pointer; transition: border-color .16s, background .16s; }
.package-option:hover { border-color: #6078bc; }
.package-option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.package-option input { appearance: none; width: 18px; height: 18px; border: 1px solid #718099; border-radius: 50%; background: #0c1220; margin: 0; position: absolute; top: 29px; right: 26px; }
.package-option input:checked { border: 5px solid var(--accent); }
.package-name { font-size: 1rem; font-weight: 600; padding-right: 26px; }
.package-price { font-size: 2.2rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.25; margin-top: 18px; }
.package-price small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: 0; font-weight: 400; margin-top: 5px; }
.package-description { color: var(--muted); font-size: .8rem; display: block; margin-top: 6px; }
.value-label { margin-top: 15px; color: #afbeef; font-size: .68rem; font-weight: 500; }
.package-note { color: var(--muted); font-size: .75rem; line-height: 1.7; margin-top: 14px; }
.package-note a { text-decoration: underline; }
.availability { margin-top: 16px; padding: 12px 14px; background: #252115; border: 1px solid #51472e; border-radius: 8px; color: #dfc792; font-size: .8125rem; }
.account-panel { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 64px; }
.section-description { color: var(--muted); font-size: .875rem; margin-top: 14px; max-width: 40ch; }
.checkout-summary { margin-top: 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.checkout-summary > span { font-size: .8rem; color: var(--muted); }
.checkout-summary > div { display: flex; justify-content: space-between; gap: 14px; margin: 10px 0 8px; font-size: 1.1rem; }
.checkout-summary strong { font-weight: 550; }
.checkout-summary p, .connection-note { color: var(--muted); font-size: .78rem; line-height: 1.7; }
.secure-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: .8rem; }
.secure-note svg { width: 16px; height: 16px; color: var(--muted); }
.connection-note { margin-top: 10px; max-width: 42ch; }
.member-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.member-heading > div { min-width: 0; }
.member-heading > .text-button { padding-top: 2px; min-height: 32px; font-size: .75rem; white-space: nowrap; }
.member-email { color: var(--muted); overflow-wrap: anywhere; font-size: .8rem; margin-top: 6px; }
.access-summary { margin-top: 25px; }
.access-summary h4 { margin-bottom: 8px; }
.access-summary > p { color: var(--muted); font-size: .8125rem; line-height: 1.7; margin-top: 7px; }
.checkout-caption { color: var(--muted); font-size: .72rem; line-height: 1.6; text-align: center; margin-top: 11px; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; }
.account-security-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #d2dcf8; font-size: .8125rem; }
.account-security-link:hover { color: var(--accent); }
.account-actions .text-button { font-size: .75rem; color: var(--muted); }
.unlimited-access .intro { margin-bottom: 42px; }
.unlimited-access .account-panel { margin-top: 0; padding-top: 36px; gap: 88px; }
.unlimited-details h2 { font-size: 1.25rem; margin-top: 12px; }
.section-kicker { color: var(--accent); font-size: .75rem; letter-spacing: .025em; }
.included-benefits { margin: 28px 0; }
.included-benefits > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.included-benefits dt { color: var(--muted); }
.included-benefits dd { margin: 0; text-align: right; font-weight: 550; }
.unlimited-details > p:last-child { color: var(--muted); font-size: .875rem; line-height: 1.7; max-width: 43ch; }
.orders-section { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 20px; }
.orders-section summary { font-size: .875rem; font-weight: 550; cursor: pointer; padding: 10px 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 12px; text-align: left; }
th, td { padding: 15px 18px 15px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
/* Separate security pages: a clear return path and a single-purpose form. */
.password-page main { max-width: 616px; padding-top: 32px; }
.password-page .back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; font-size: .8125rem; color: var(--muted); }
.password-page .intro { margin-bottom: 30px; }
.password-page h1 { font-size: 2.25rem; }
.password-page .intro > p { font-size: .9375rem; margin-top: 14px; }
.password-page .password-account-email { font-size: .8125rem; overflow-wrap: anywhere; color: var(--muted); margin-bottom: 26px; }
.password-page .password-note { color: var(--muted); font-size: .75rem; line-height: 1.7; margin-top: 16px; }
#password-feedback, #reset-feedback { margin-block: 16px; color: #becdff; font-size: .875rem; }
#password-loading { color: var(--muted); font-size: .875rem; }
.recovery-step { color: var(--accent); font-size: .75rem; font-weight: 500; margin-bottom: 22px; }
.recovery-email { color: #d8e2fc; font-size: .875rem; overflow-wrap: anywhere; margin-bottom: 24px; }
.recovery-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); color: #8d9bb1; font-size: .75rem; }
.footer-credit { margin-left: 10px; }
footer > div { display: flex; gap: 24px; }
footer a { display: inline-flex; min-height: 36px; align-items: center; }
@media (max-width: 1050px) {
  .site-header, main, footer { padding-inline: 32px; }
  .account-page.signed-out main { column-gap: 48px; grid-template-columns: minmax(0,1fr) 400px; }
  .signed-out .account-form { padding: 32px; }
  .account-panel, .unlimited-access .account-panel { gap: 40px; }
}
@media (max-width: 800px) {
  .site-header { min-height: 88px; }
  .brand { width: 218px; }
  .account-page.signed-out main { display: block; max-width: 504px; padding-block: 38px 64px; }
  .account-page.signed-out .intro { display: none; }
  .account-page.signed-out .account-panel { width: 100%; }
  .account-page.signed-out.pending-verification .intro { display: block; margin-bottom: 28px; }
  .account-page.signed-out.pending-verification h1 { font-size: 2rem; }
  .account-page.signed-out.pending-verification .auth-art { display: none; }
  .account-panel, .unlimited-access .account-panel { grid-template-columns: 1fr; gap: 32px; }
  .unlimited-details > p:last-child, .section-description, .connection-note { max-width: none; }
  .package-option { padding: 22px; }
  .package-option input { top: 25px; right: 22px; }
  .package-price { font-size: 1.9rem; }
}
@media (max-width: 580px) {
  .site-header, main, footer { padding-inline: 24px; }
  .site-header { min-height: 80px; gap: 20px; }
  .brand { width: 195px; }
  .site-header nav { gap: 14px; font-size: .75rem; }
  .unlimited-access .site-header .brand { width: 172px; }
  main { padding-block: 28px 48px; }
  h1 { font-size: 2.2rem; }
  .intro { margin-bottom: 30px; }
  .intro > p { font-size: .9375rem; margin-top: 16px; }
  .account-page.signed-out main { max-width: 488px; padding-top: 28px; }
  .account-page.signed-out .account-form { padding: 24px 16px; border-radius: var(--card-radius); }
  .panel-heading { margin-bottom: 32px; }
  .panel-heading h2, .panel-heading h3 { font-size: 1.85rem; }
  .panel-heading p { margin-top: 10px; }
  input:not([type=radio]) { font-size: 16px; min-height: 56px; }
  .primary-button, .secondary-button { min-height: 52px; }
  .field-label-row a { font-size: .75rem; }
  .auth-switch { margin-top: 28px; padding-top: 24px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading > span { padding-left: 37px; }
  fieldset { grid-template-columns: 1fr; gap: 12px; }
  .package-option { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 20px 20px 20px 50px; min-height: 106px; column-gap: 12px; }
  .package-option input { left: 18px; right: auto; top: calc(50% - 9px); }
  .package-name { padding: 0; font-size: .9375rem; }
  .package-price { font-size: 1.8rem; margin: 0; text-align: right; }
  .package-price small { font-size: .68rem; }
  .value-label { margin-top: 5px; }
  .package-description { font-size: .75rem; }
  .account-panel { margin-top: 30px; padding-top: 28px; }
  .account-form { padding: 24px; border-radius: var(--card-radius); }
  .unlimited-access .intro { margin-bottom: 30px; }
  .unlimited-access .account-panel { padding-top: 28px; }
  .included-benefits { margin-block: 20px; }
  .included-benefits > div { gap: 14px; padding-block: 15px; font-size: .8125rem; }
  .password-page main { max-width: 488px; padding-top: 8px; }
  .password-page .back-link { margin-bottom: 20px; }
  .password-page h1 { font-size: 1.9rem; }
  .password-page .intro { margin-bottom: 28px; }
  .password-page .account-form { padding: 24px 16px; }
  footer { font-size: .68rem; padding-block: 20px; }
  footer > div { gap: 18px; }
  .footer-credit { display: block; margin-left: 0; margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
