:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #111;
  --band: #080808;
  --text: #efefef;
  --muted: #b5b5b5;
  --subtle: #929292;
  --accent: #d6d6d6;
  --cyan: var(--accent);
  --line: #303030;
  --strong: #555;
  --hover: #202020;
  --action: #f0f0f0;
  --action-hover: #d6d6d6;
  --action-text: #111;
  --header: rgb(0 0 0 / 80%);
  --grid-line: rgb(255 255 255 / 3%);
  --shadow: rgb(0 0 0 / 28%);
  --focus: rgb(255 255 255 / 24%);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --panel: #fff;
  --band: #f0f0f0;
  --text: #181818;
  --muted: #555;
  --subtle: #686868;
  --accent: #373737;
  --line: #d6d6d6;
  --strong: #aaa;
  --hover: #e8e8e8;
  --action: #191919;
  --action-hover: #383838;
  --action-text: #fff;
  --header: rgb(250 250 250 / 85%);
  --grid-line: rgb(0 0 0 / 3%);
  --shadow: rgb(0 0 0 / 12%);
  --focus: rgb(0 0 0 / 15%);
}

html { scrollbar-color: var(--strong) var(--bg); }
body { background: var(--bg); color: var(--text); }
*, *::before, *::after { letter-spacing: 0 !important; }
::selection { background: var(--action); color: var(--action-text); }
:is(button, a, summary):focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
  box-shadow: 0 0 0 5px var(--focus);
}

.header { background: var(--header); border-color: var(--line); }
.nav { gap: 24px; }
.nav-actions { gap: 20px; }
.nav nav { gap: 24px; }
.brand img[data-tradrr-logo] { width: 190px; }
.pricing-grid .plan-wordmark { width: var(--plan-wordmark-width); height: auto; flex-shrink: 0; filter: brightness(0) invert(1); }
[data-theme="light"] .pricing-grid .plan-wordmark { filter: brightness(0); }
[data-theme="light"] img[data-tradrr-logo] { filter: brightness(0); }
.nav nav a, .login, .platforms, .hero-description, .hero-bottom > a,
.review-features, .plan-description, .price > span, .footer-links,
.trial-note, .tradrr-brand-download-link { color: var(--muted); }
.nav nav a:hover, .login:hover, .tradrr-brand-download-link:hover { color: var(--text); }
.mobile-nav { background: var(--panel); border-color: var(--line); }
.menu { color: var(--text); }

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}
.theme-toggle:hover { color: var(--text); }
.theme-icon {
  width: 19px;
  height: 19px;
  background: currentColor;
  mask: url('/assets/theme-sun.svg') center / contain no-repeat;
  -webkit-mask: url('/assets/theme-sun.svg') center / contain no-repeat;
}
[data-theme="light"] .theme-icon {
  mask-image: url('/assets/theme-moon.svg');
  -webkit-mask-image: url('/assets/theme-moon.svg');
}
.theme-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 11px;
  line-height: 1.5;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}
.theme-toggle:is(:hover, :focus-visible) .theme-tooltip { visibility: visible; opacity: 1; }

.button { background: var(--action); color: var(--action-text); border: 1px solid transparent; }
.button:hover { background: var(--action-hover); color: var(--action-text); }
.button.outline { border-color: var(--strong); color: var(--text); background: transparent; }
.button.outline:hover { border-color: var(--text); background: var(--hover); }
.text-link, .text-link.cyan { color: var(--text); border-color: var(--strong); }
.text-link:hover { color: var(--text); border-color: var(--text); }
.eyebrow, .stage, .feature-number, .icon-letter,
.review-features b, .cancel-note > span { color: var(--accent); }
.dot, .status-dot { background: var(--accent); box-shadow: none; }
.mono, .fine, .footer-top > span, .footer-bottom { color: var(--subtle); }

.hero { height: auto; min-height: 0; background: var(--bg); }
.hero-content { padding-top: 128px; padding-bottom: 94px; }
.hero h1 { font-size: 96px; line-height: .94; margin: 22px 0; }
.hero h1 span { color: var(--text); text-shadow: none; }
.hero-lead { font-size: 20px; line-height: 1.5; }
.hero-description { font-size: 14px; line-height: 1.7; margin-top: 12px; }
.hero-buttons { margin: 24px 0 10px; }
.hero-buttons .button { min-height: 52px; }
.hero-trial-note { max-width: 450px; font-size: 11px; line-height: 1.8; }
.hero-trial-note a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.platforms { margin-top: 21px; }
.platforms span + span::before { color: var(--subtle); }
.hero-shade {
  background: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 96%) 20%, rgb(0 0 0 / 58%) 46%, transparent 78%),
    linear-gradient(0deg, #000 0%, transparent 36%, rgb(0 0 0 / 12%) 76%, rgb(0 0 0 / 76%) 100%);
}
.hero-grid {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
}
.workspace-plane { border-color: #333; box-shadow: 0 30px 80px var(--shadow); opacity: .82; }
[data-theme="light"] .workspace-plane { opacity: .93; }
[data-theme="light"] .hero-shade {
  background: linear-gradient(90deg, #fafafa 0%, rgb(250 250 250 / 98%) 22%, rgb(250 250 250 / 84%) 38%, rgb(250 250 250 / 10%) 67%, transparent 85%),
    linear-gradient(0deg, #fafafa 0%, transparent 34%, transparent 76%, rgb(250 250 250 / 50%) 100%);
}
.workflow > a:hover { background: var(--band); }
.section h2, .closing h2 { font-size: 64px; }
.section h2 span { color: var(--subtle); }
.story-copy h3 { font-size: 54px; }
.story-copy > p.story-note { color: var(--subtle); }
.prepare-outro strong, .price b { color: var(--text); }

.execute, .access, .zone-showcase { background: var(--band); border-color: var(--line); }
.zone-showcase::before { content: none; }
.zone-showcase h2 { font-size: 64px; }
.zone-showcase h2 span { color: var(--text); text-shadow: none; }
.zone-copy > p.zone-lead { font-size: 26px; }
.zone-benefits li { border-color: var(--strong); }
.zone-copy > p.zone-access { color: var(--muted); border-color: var(--strong); background: transparent; }
.zone-copy > p.zone-disclosure { color: var(--subtle); }
.zone-actions { flex-wrap: wrap; gap: 12px 24px; }
.zone-figure { filter: none; }
.access-options { color: var(--text); }
.mobile-device { background: #242424; border-color: #484848; box-shadow: 0 24px 60px var(--shadow); }
.mobile-screen { background: #080808; }
.product { background: #111; border-color: var(--line); box-shadow: 0 20px 60px var(--shadow); }
.product figcaption, .product figcaption > span:last-child { color: #b5b5b5; }
figcaption, figcaption > span:last-child, .story-figure figcaption { color: var(--subtle); }
.story-figure figcaption button { color: var(--text); }
.share-thumb .image-button { border-color: var(--line); }
.zoom-mark { background: #171717; color: #eee; border-color: #555; }
.image-button:hover .zoom-mark { background: #eee; color: #111; }

.pricing-grid { --plan-wordmark-width: 142px; --plan-padding-top: 40px; --plan-heading-height: 40px; }
.tradrr-plan { padding-top: var(--plan-padding-top); background: var(--panel); border: 1px solid var(--strong); border-top: 3px solid var(--text); box-shadow: 0 16px 50px var(--shadow); }
.plan-top { min-height: var(--plan-heading-height); }
.extras .inside-plan { padding-top: 0; }
/* Match the card's inset so both wordmarks share the same heading row. */
.inside-plan > .eyebrow { min-height: calc(var(--plan-padding-top) + 3px); padding-bottom: 10px; }
.extras .inside-wordmark { display: flex; align-items: center; gap: 5px; min-height: var(--plan-heading-height); margin: 0 0 20px; font: 600 40px/1 var(--body); white-space: nowrap; }
.tag { color: var(--text); border-color: var(--strong); }
.tradrr-plan .tag { background: var(--hover); }
.included li::before { color: var(--text); }
.questions summary::after { color: var(--text); }
.questions summary:hover { color: var(--muted); }
.closing { border-top: 1px solid var(--line); }
.footer-bottom { line-height: 1.7; }
footer > .fine { white-space: normal; }

dialog { background: var(--panel); color: var(--text); border-color: var(--strong); box-shadow: 0 40px 100px var(--shadow); }
.viewer-close { background: var(--panel); border-color: var(--strong); color: var(--text); }
dialog::backdrop { background: rgb(0 0 0 / 78%); }
.tradrr-brand-menu { background: var(--panel); color: var(--text); border-color: var(--line); border-radius: 6px; }
.tradrr-brand-menu__label { color: var(--subtle); }
.tradrr-brand-menu__colors { border-color: var(--line); }
.tradrr-brand-menu [role="menuitem"]:hover,
.tradrr-brand-menu [role="menuitemradio"]:hover,
.tradrr-brand-menu [aria-checked="true"] { background: var(--hover); }

@media (min-width: 1800px) and (min-height: 1000px) {
  .hero-content { padding-top: 160px; }
  .hero h1 { font-size: 112px; }
}
@media (max-width: 1200px) {
  .nav nav { gap: 18px; }
  .nav, .nav-actions { gap: 16px; }
  .brand img[data-tradrr-logo] { width: 174px; }
  .login { display: none; }
  .zone-showcase h2 { font-size: 52px; }
}
@media (max-width: 1100px) {
  .pricing-grid { --plan-padding-top: 30px; }
}
@media (max-width: 900px) {
  .nav nav { display: none; }
  .menu { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; }
  .mobile-nav { top: 86px; }
  .hero h1 { font-size: 90px; }
  .section h2, .closing h2 { font-size: 56px; }
  .zone-showcase h2 { font-size: 46px; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav > .brand { flex: 0 1 142px; min-width: 100px; }
  .nav .nav-actions { gap: 8px; }
  .nav .brand img[data-tradrr-logo] { width: 100%; }
  .nav .button.small { min-height: 40px; padding: 7px 10px; }
  .brand-nav-label-long { display: none; }
  .brand-nav-label-short { display: inline; }
  .theme-toggle { width: 40px; height: 40px; }
  .menu { width: 32px; height: 40px; font-size: 20px; }
  .mobile-nav { top: 74px; }
  .hero-content { padding-top: 112px; padding-bottom: 78px; }
  .hero h1 { font-size: 72px; margin: 20px 0; line-height: .95; }
  .hero-lead { font-size: 19px; }
  .hero-description { max-width: 360px; font-size: 14px; }
  .hero-buttons { gap: 12px 18px; margin-top: 23px; }
  .hero-buttons .button { min-height: 50px; padding-inline: 17px; }
  .hero-trial-note { max-width: 350px; font-size: 10px; }
  .hero-trial-note a { margin-left: 4px; }
  .platforms { gap: 10px; font-size: 10px; margin-top: 18px; }
  .platforms span + span::before { margin-right: 10px; }
  .hero-art { opacity: .65; }
  .hero-shade { background: linear-gradient(90deg, rgb(0 0 0 / 96%), rgb(0 0 0 / 77%) 75%, rgb(0 0 0 / 40%)), linear-gradient(0deg, #000, transparent 65%, rgb(0 0 0 / 50%)); }
  [data-theme="light"] .hero-art { opacity: .35; }
  [data-theme="light"] .hero-shade { background: linear-gradient(90deg, rgb(250 250 250 / 98%), rgb(250 250 250 / 73%) 75%, rgb(250 250 250 / 45%)), linear-gradient(0deg, #fafafa, transparent 65%, rgb(250 250 250 / 60%)); }
  .hero-bottom { bottom: 24px; }
  .section h2, .closing h2 { font-size: 48px; }
  .story-copy h3 { font-size: 42px; }
  .zone-showcase h2 { font-size: 44px; }
  .zone-copy > p.zone-lead { font-size: 23px; }
  .zone-actions .text-link { white-space: normal; }
  .plan-top { flex-wrap: wrap; gap: 18px; }
  .pricing-grid { --plan-wordmark-width: 132px; --plan-padding-top: 26px; }
  .inside-plan > .eyebrow { min-height: 0; padding-bottom: 14px; }
  .extras .inside-wordmark { font-size: 36px; }
  .tradrr-plan .button { font-size: 13px; gap: 16px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .nav { gap: 8px; }
  .nav .nav-actions { gap: 5px; }
  .nav > .brand { min-width: 88px; }
  .nav .button.small { padding-inline: 8px; gap: 4px; }
  .theme-toggle { flex-basis: 36px; width: 36px; }
  .menu { width: 28px; }
  .hero h1 { font-size: 64px; }
  .hero-buttons { align-items: flex-start; flex-direction: column; gap: 7px; }
  .hero-buttons .text-link { min-height: 36px; }
  .section h2 { font-size: 42px; }
  .zone-showcase h2 { font-size: 38px; }
  .footer-top > span { font-size: 9px; }
}
