/* DX identity v3.3. Asset provenance and preview instructions: developer/www/README.md. */
@font-face { font-family: Lato; src: url('fonts/lato/Lato-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Lato; src: url('fonts/lato/Lato-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Lato; src: url('fonts/lato/Lato-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Lato; src: url('fonts/lato/Lato-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  color-scheme: light dark;
  --dx-lake: #071f29;
  --dx-porcelain: #f4f2ec;
  --dx-red: #dc162a;
  --page: var(--dx-porcelain);
  --surface: #fff;
  --surface-soft: #efeee8;
  --text: #203039;
  --muted: #526169;
  --border: #d7dcd9;
  --endorsement: #eae8df;
  --link: #176389;
  --action: #b51227;
  --action-hover: #951020;
  --on-action: #e8e6e3;
  --danger: #b51227;
  --success: #246c46;
  --focus: #176389;
  --shadow: 0 16px 45px #071f2908;
  --content-width: 1160px;
  font-family: Lato, Arial, sans-serif;
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #071f29;
    --surface: #102d37;
    --surface-soft: #15333d;
    --text: #e8e6e3;
    --muted: #e8e6e3;
    --border: #38515a;
    --endorsement: #0b252f;
    --link: #8dcce9;
    --action: #b51227;
    --action-hover: #951020;
    --danger: #ffa0ad;
    --success: #9addb5;
    --focus: #8dcce9;
    --shadow: 0 16px 45px #00000012;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.65 Lato, Arial, sans-serif; }
[hidden], [x-cloak] { display: none !important; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
p { margin: 0 0 1.25rem; }
h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: 0 0 1.25rem; }
h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
h4 { font-size: 1rem; margin: 1.5rem 0 .5rem; }
strong, b { font-weight: 700; }
ul, ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
li { padding-left: .2rem; margin-bottom: .45rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.no-wrap { white-space: nowrap; }
.skip-link { position: absolute; z-index: 100; top: -6rem; left: 1rem; padding: .65rem 1rem; background: var(--surface); color: var(--text); border: 2px solid var(--focus); }
.skip-link:focus { top: 1rem; }

/* Shared navigation, with an accessible menu on small screens. */
.navbar { background: var(--page); border-bottom: 1px solid var(--border); }
.navbar > .container { max-width: var(--content-width); margin: auto; padding: 1.25rem 2rem; display: flex; align-items: center; gap: 2rem; }
.brand-home { display: flex; align-items: center; gap: .85rem; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand-home:hover { text-decoration: none; }
.brand-home img { display: block; width: 48px; height: 48px; }
.brand-title { display: block; font-size: 1.18rem; font-weight: 700; line-height: 1.3; }
.brand-caption { display: block; color: var(--muted); font-size: .77rem; line-height: 1.6; }
.nav-menu { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: 1; }
.nav-links, .nav-account { display: flex; align-items: center; gap: 1.35rem; }
.nav-links { margin-left: auto; }
.nav-menu a { font-size: .9rem; font-weight: 700; }
.nav-links a, .nav-user { color: var(--text); text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--dx-red); }
.nav-account { padding-left: 1.35rem; border-left: 1px solid var(--border); }
.nav-user { display: inline-block; max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.nav-menu .nav-login, .nav-menu .nav-logout { display: inline-flex; justify-content: center; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 5px; color: var(--text); white-space: nowrap; text-decoration: none; }
.nav-menu .nav-login:hover, .nav-menu .nav-logout:hover { background: var(--surface-soft); border-color: var(--text); }
.nav-toggle { display: none; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text); font-weight: 700; }
body.login .topnav--login { display: none; }

/* Page introductions share a consistent, quiet hierarchy. */
#intro-wrapper { border-bottom: 1px solid var(--border); }
#intro { max-width: var(--content-width); margin: auto; padding: 3rem 2rem 3.2rem; }
.page-eyebrow, .eyebrow { margin: 0 0 1rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.page-eyebrow::before, .eyebrow::before { content: ''; display: inline-block; height: 2px; width: 24px; margin-right: .65rem; background: var(--dx-red); vertical-align: middle; }
#intro h1 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); max-width: 26ch; margin: 0; line-height: 1.16; }
#intro h2, #intro .intro-description { font-size: 1.05rem; font-weight: 400; line-height: 1.65; max-width: 65ch; margin: 1rem 0 0; color: var(--muted); text-wrap: pretty; }
sup.trade { display: none; }
.center-panel { display: flex; flex-direction: column; min-height: calc(100vh - 320px); }
.center-panel .main-content { width: calc(100% - 4rem); max-width: calc(var(--content-width) - 4rem); margin: 2.5rem auto 4rem; padding: clamp(1.5rem, 3.5vw, 3rem); border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); overflow-wrap: break-word; }
.main-content > :last-child { margin-bottom: 0; }
.main-content > p { max-width: 78ch; }
.main-content > h2:not(:first-child) { margin-top: 2rem; }
.main-content > ul { line-height: 1.9; }

/* Account forms, including the existing Alpine validation and status feedback. */
form { width: 100%; max-width: 620px; margin: 1.75rem 0; }
form > div, form div:has(> label[for]):has(> input) { margin-bottom: 1.15rem; }
label { display: inline-block; width: auto; margin-bottom: .4rem; font-size: .92rem; font-weight: 700; }
form div:has(> label[for]):has(> input) { display: grid; grid-template-columns: minmax(0, 1fr); }
.required { display: none; }
label:has(+ input[required])::after { content: ' *'; color: var(--danger); }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), textarea, select {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 46px; padding: .6rem .8rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 5px;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[readonly], input:disabled { background: var(--surface-soft); }
input:disabled { cursor: not-allowed; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--action); width: 1rem; height: 1rem; vertical-align: -.1em; margin-right: .4rem; }
input[type="file"]::file-selector-button { margin-right: 1rem; background: var(--surface-soft); color: var(--text); padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 3px; }
textarea { resize: vertical; }
form h2 { margin: 2rem 0 1rem; }
form h2 label { font-size: 1.15rem; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin: 1.75rem 0; min-height: 46px; }
.form-actions p { flex: 1; margin: 0; text-align: left; line-height: 1.5; font-size: .9rem; }
.form-actions .contents { display: contents; }
.status-message { overflow-wrap: anywhere; }
.status-message:empty { display: none; }
.btn, button.form-submit, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .65rem 1.25rem; border: 1px solid transparent; border-radius: 5px; background: var(--action); color: var(--on-action); font: 700 .95rem/1.35 Lato, Arial, sans-serif; text-decoration: none; cursor: pointer; vertical-align: middle; white-space: normal; text-align: center; }
.btn:hover, button.form-submit:hover, input[type="submit"]:hover { background: var(--action-hover); color: var(--on-action); text-decoration: none; }
.btn-secondary, .btn-blue, button.form-submit-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover, .btn-blue:hover, button.form-submit-secondary:hover { background: var(--surface-soft); color: var(--text); border-color: var(--text); }
.btn.disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
.error, .main-content .text-red-700 { color: var(--danger); }
.main-content .text-green-700 { color: var(--success); }
.main-content .bg-red-700 { background-color: var(--action); color: var(--on-action); }
.main-content .text-white { color: var(--on-action); }
.main-content .bg-white { background-color: var(--surface); color: var(--text); }
#confirmationDialog { z-index: 50; padding: 1rem; }
#confirmationDialog > div { width: min(100%, 28rem); border: 1px solid var(--border); border-radius: 8px; }
#confirmationDialog button { min-height: 44px; }
.login-panel { max-width: 620px; margin: auto; }
.login-panel form { margin-top: 0; }
.login-help { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .86rem; }
.login-help p { margin: 0; }
.login-help .signup-link { flex-basis: 100%; font-size: .95rem; margin-bottom: .5rem; }
body.page-login .main-content, body.page-forgot_password .main-content, body.page-no_confirmation .main-content, body.page-sign_up .main-content, body.page-activated .main-content, body.page-change_password .main-content, body.page-reset_password .main-content { max-width: 760px; }

/* Responsive tables retain all license and payment information. */
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 5px; }
.main-content table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.main-content th, .main-content td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.main-content th { background: var(--surface-soft); color: var(--text); font-size: .8rem; font-weight: 700; }
.main-content tr:last-child td { border-bottom: 0; }
.main-content .licenseList { margin: 0; min-width: 740px; }
.main-content .licenseList th, .main-content .licenseList td { border-left: 0; border-right: 0; }
.page-license .main-content table { margin: 1.5rem 0; }
.page-license .main-content table td:first-child { color: var(--muted); width: 38%; }
.page-license .main-content table td:last-child { overflow-wrap: anywhere; }
.download-links { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 2.5rem; }
.download-links li { margin: 0; padding: 0; }
.download-links a { display: block; height: 100%; padding: 1.5rem; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; background: var(--surface-soft); }
.download-links a:hover { border-color: var(--link); }
.download-links strong { display: block; color: var(--text); font-size: 1.2rem; margin-bottom: .5rem; }
.download-links small { display: block; margin: .5rem 0; color: var(--muted); }
.purchase-intro { max-width: 80ch; padding: 1.25rem 1.5rem; background: var(--surface-soft); border-left: 3px solid var(--dx-red); border-radius: 0 5px 5px 0; }
#purchase-form { max-width: 820px; }
#purchase-form h3 { font-size: 1.2rem; }
#purchase-form h3 a { font-size: .9rem; font-weight: 400; }
#purchase-form .product-choice { margin: 0; font-size: 1rem; text-align: left; }
#purchase-form .product-choice input { margin-right: .6rem; }
#purchase-form .product-table { min-width: 520px; }
.price-original { text-decoration: line-through; color: var(--muted); }
.purchase-footnotes { font-size: .82rem; color: var(--muted); }
.purchase-footnotes p { margin-bottom: .4rem; }
.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.billing-grid > div { min-width: 0; }
.billing-grid .field-wide { grid-column: 1 / -1; }
.field-hint { color: var(--muted); font-size: .8rem; margin-top: .4rem; }
.req-star::before { content: '* '; color: var(--danger); }

/* The account homepage keeps research tasks and sign-in close at hand. */
body.home #intro { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding-top: 4rem; padding-bottom: 3.75rem; }
body.home #intro h1 { font-size: clamp(2.5rem, 5vw, 4.35rem); max-width: 19ch; line-height: 1.08; }
body.home #intro .intro-description { font-size: 1.1rem; max-width: 50ch; }
.hero-signature { flex-shrink: 0; display: flex; align-items: center; gap: 1.15rem; padding-left: 2rem; border-left: 1px solid var(--border); }
.hero-signature img { display: block; width: 72px; height: 72px; }
.hero-signature strong { display: block; font-size: 1.1rem; }
.hero-signature span { display: block; font-size: .82rem; color: var(--muted); }
.center-panel .home-content { padding: 0; background: transparent; box-shadow: none; border: none; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.portal-welcome { padding: 1.5rem 0; }
.portal-welcome h2 { font-size: 2rem; max-width: 18ch; }
.portal-welcome > p { max-width: 47ch; color: var(--muted); }
.portal-steps { list-style: none; padding: 0; margin: 2rem 0; }
.portal-steps li { display: flex; align-items: flex-start; gap: 1rem; margin: 0; padding: 1rem 0; border-top: 1px solid var(--border); }
.step-number { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.portal-steps strong { display: block; font-size: 1rem; }
.portal-steps p { font-size: .9rem; margin: .2rem 0 0; color: var(--muted); }
.portal-login { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 2rem; box-shadow: var(--shadow); }
.portal-login h2 { margin-bottom: .6rem; }
.portal-login > p { font-size: .95rem; color: var(--muted); margin-bottom: 1.75rem; }
.portal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.portal-action { position: relative; display: block; padding: 2rem; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); text-decoration: none; }
.portal-action:hover { border-color: var(--link); text-decoration: none; }
.portal-action h3 { margin: .6rem 0; font-size: 1.35rem; }
.portal-action p { margin: 0; color: var(--muted); max-width: 38ch; font-size: .95rem; }
.portal-action .action-arrow { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--link); font-size: 1.2rem; }
.dashboard-heading { margin-bottom: 2rem; }
.dashboard-heading p { color: var(--muted); }

/* Product overview and support use the same visual language as account pages. */
.center-panel .feature-page { background: transparent; border: 0; box-shadow: none; padding: 0; }
.product-introduction { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.product-introduction h2 { font-size: 2rem; }
.product-introduction figure { margin: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--dx-lake); }
.product-introduction figure img { display: block; width: 100%; }
.studio-signature { position: relative; }
.studio-signature figcaption { position: absolute; left: 50%; right: 5%; top: 50%; transform: translateY(-50%); color: #e8e6e3; line-height: 1.3; }
.studio-signature figcaption strong { display: block; font-size: clamp(1.15rem, 1.8vw, 1.65rem); }
.studio-signature figcaption span { display: block; margin-top: .65rem; font-size: .82rem; line-height: 1.5; }
.product-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 3rem 0; border-top: 1px solid var(--border); }
.product-feature:nth-of-type(even) .feature-image { order: -1; }
.product-feature h2 { margin-bottom: 1rem; }
.product-feature p { color: var(--muted); }
.feature-image { display: flex; justify-content: center; align-items: center; min-height: 230px; margin: 0; padding: 2rem; background: #fff; border: 1px solid var(--border); border-radius: 7px; }
.feature-image img { max-height: 250px; object-fit: contain; }
.product-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; padding: 2rem; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.product-cta h2 { font-size: 1.4rem; margin: 0 0 .5rem; }
.product-cta p { margin: 0; }
.support-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }
.support-contact { padding: 1.5rem; background: var(--surface-soft); border-radius: 6px; border-top: 3px solid var(--dx-red); }
.support-contact h2 { font-size: 1.2rem; }
.support-contact a { overflow-wrap: anywhere; }
.support-contact p:last-child { margin: 0; }

/* Corporate endorsement uses the supplied light/dark signatures at approved sizes. */
.footer { margin-top: auto; padding: 2rem; background: var(--endorsement); border-top: 1px solid var(--border); }
.footer-inner { max-width: calc(var(--content-width) - 4rem); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.footer-signature { width: 220px; min-width: 220px; display: block; }
.footer-signature img { display: block; width: 220px; }
.footer-content { color: var(--muted); text-align: right; font-size: .78rem; }
.footer-links { display: flex; justify-content: flex-end; gap: 1.5rem; margin-bottom: .65rem; }
.footer-links a { color: var(--text); font-size: .85rem; }
.footer-content p { margin: 0; }

@media (max-width: 1000px) {
  .navbar > .container { gap: 1.25rem; }
  .nav-links, .nav-account { gap: .85rem; }
  .nav-user { max-width: 9rem; }
  .brand-title { font-size: 1rem; }
  .portal-grid { gap: 2rem; }
  .hero-signature { flex-direction: column; text-align: center; }
}
@media (max-width: 760px) {
  .navbar > .container { padding: 1rem 1.25rem; flex-wrap: wrap; justify-content: space-between; }
  .brand-title { font-size: 1.05rem; }
  .nav-toggle { display: inline-block; }
  .nav-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-top: .5rem; }
  .nav-menu.is-open { display: flex; }
  .nav-links, .nav-account { flex-direction: column; align-items: stretch; gap: .25rem; margin-left: 0; }
  .nav-links a { padding: .65rem 0; }
  .nav-account { border-left: 0; border-top: 1px solid var(--border); padding: 1rem 0 0; }
  .nav-user { max-width: 100%; }
  .nav-account > span:has(.nav-user) { display: block; padding-bottom: .75rem; }
  .nav-menu .nav-login, .nav-menu .nav-logout { width: 100%; }
  #intro { padding: 2.25rem 1.25rem; }
  #intro h1 { max-width: 100%; }
  .center-panel .main-content { width: calc(100% - 2.5rem); margin: 1.5rem auto 2.5rem; padding: 1.5rem; }
  .center-panel .home-content, .center-panel .feature-page { padding: 0; }
  body.home #intro { padding: 2.75rem 1.25rem; }
  .hero-signature { display: none; }
  .portal-grid, .portal-actions, .product-introduction, .product-feature, .support-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .portal-welcome { padding-top: 0; }
  .portal-login { padding: 1.5rem; grid-row: 1; }
  .portal-steps { margin-bottom: 0; }
  .portal-welcome h2 { max-width: 100%; }
  .product-feature { padding: 2rem 0; }
  .product-feature:nth-of-type(even) .feature-image { order: initial; }
  .product-introduction { margin-bottom: 2.5rem; }
  .product-cta { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .download-links { grid-template-columns: minmax(0, 1fr); }
  .billing-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions { flex-wrap: wrap; }
  .form-actions p { flex-basis: 100%; }
  .form-actions .btn { width: 100%; }
  .footer { padding: 2rem 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-content { text-align: left; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-links a, .nav-menu .nav-login, .nav-menu .nav-logout, .portal-action, .download-links a { transition: background-color .15s, border-color .15s, color .15s; }
}
@media print {
  :root { color-scheme: light; --page: #fff; --surface: #fff; --text: #203039; --muted: #526169; --border: #ccc; --link: #203039; }
  .navbar, .footer, .skip-link { display: none; }
  .center-panel .main-content { width: 100%; border: 0; box-shadow: none; margin: 1rem 0; }
  .table-scroll { overflow: visible; }
}
