/* Shared material, typography and controls for Trade's public and account pages. */
:root {
  color-scheme: dark;
  --midnight: #171416;
  --cream: #f7f3ed;
  --champagne: #d8bc8b;
  --smoke: #b9b0a9;
  --muted: #b9b0a9;
  --line: #3c3539;
  --surface: #211c20;
  --display: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
body {
  margin: 0;
  background: var(--midnight);
  color: var(--cream);
  font:
    400 15px/1.65 Inter,
    system-ui,
    sans-serif;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--champagne);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 4px;
}
h1,
h2,
h3,
.brand-name {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
h1 {
  font-size: 64px;
  line-height: 1.1;
  margin: 16px 0 24px;
  text-wrap: balance;
}
h2 {
  font-size: 36px;
  line-height: 1.2;
  margin: 12px 0 20px;
  text-wrap: balance;
}
h3 {
  font-size: 26px;
  line-height: 1.25;
  margin: 12px 0;
}
p {
  color: var(--muted);
  max-width: 65ch;
  margin: 0 0 20px;
}
.page-shell {
  width: min(1240px, calc(100% - 80px));
  margin: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: #171416fa;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
}
.brand-mark {
  width: 30px;
  height: 42px;
  flex: 0 0 30px;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-name {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}
.brand-subtitle {
  display: none;
}
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
}
.nav-actions .trade-login-link {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cream);
}
.hero {
  padding: 72px 0 48px;
}
.hero-copy {
  max-width: 820px;
}
.hero-copy > p {
  font-size: 18px;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}
.primary-action,
.secondary-action,
.ghost-action,
.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.primary-action,
.form-button {
  background: var(--cream);
  color: var(--midnight);
  border-color: var(--cream);
}
.primary-action:hover,
.form-button:hover {
  background: #e7dbcd;
  color: var(--midnight);
}
.secondary-action,
.ghost-action {
  padding-inline: 0;
  border-bottom-color: var(--line);
  border-radius: 0;
}
.eyebrow,
.product-label,
.workflow-label {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}
.workspace-preview {
  margin: 48px 0 0;
}
.workspace-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1px solid var(--line);
}
.workspace-preview figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.demo-panel {
  padding: 48px 0 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.demo-panel h2 {
  max-width: 680px;
}
.workflow-list,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.workflow-card,
.feature-card {
  min-width: 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.workflow-card p {
  margin: 12px 0 0;
  font-size: 14px;
}
.feature-card p {
  font-size: 15px;
}
.platform-section,
.demo-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}
.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
}
.demo-form,
.login-card {
  display: grid;
  gap: 20px;
}
.form-card {
  min-width: 0;
  padding: 0;
}
.form-card h2 {
  font-size: 28px;
}
.demo-form > h2,
.demo-form > p {
  display: none;
}
.field {
  display: grid;
  gap: 8px;
}
.field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid #53464e;
  border-radius: 4px;
  background: #1c181b;
  color: var(--cream);
  font-size: 16px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--champagne);
}
textarea {
  min-height: 140px;
  resize: vertical;
}
.form-status {
  font-size: 13px;
  color: var(--champagne);
}
.form-status:empty {
  display: none;
}
.login-page {
  display: grid;
  max-width: 540px;
  margin: auto;
  gap: 20px;
  padding: 48px 0;
}
.login-copy h1 {
  font-size: 36px;
}
.login-card {
  padding-top: 0;
  border:0;
}
.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.login-card-top strong {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.login-card .secondary-action {
  justify-self: start;
}
.workspace-gate {
  display: grid;
  min-height: 70svh;
  padding: 64px 0;
  place-items: center;
}
.workspace-gate-card {
  max-width: 640px;
  text-align: center;
}
.workspace-gate-card h1 {
  font-size: 44px;
}
.workspace-gate-card .hero-actions {
  justify-content: center;
}
.workspace-loader {
  width: 28px;
  height: 28px;
  margin: 24px auto;
  border: 2px solid var(--line);
  border-top-color: var(--champagne);
  border-radius: 50%;
  animation: workspace-spin 950ms linear infinite;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.canadian-owned-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
}
.canada-maple-leaf {
  width: 10px;
  height: 10px;
  object-fit: contain;
}
.legal-page {
  width: min(780px, calc(100% - 40px));
  margin: auto;
  padding: 64px 0;
}
.legal-page h1 {
  font-size: 44px;
}
.legal-page h2 {
  font-size: 26px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.85;
}
.legal-page a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal-page form {
  display: grid;
  gap: 20px;
}
.legal-page label {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.legal-page button {
  min-height: 48px;
  border: 1px solid var(--cream);
  border-radius: 4px;
  background: var(--cream);
  color: var(--midnight);
  font-weight: 600;
}
.canadian-owned-badge--standalone {
  display: flex;
  margin: 0 auto 32px;
}
.handoff-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #171416fa;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.handoff-overlay.is-visible,
body.is-transitioning .handoff-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.handoff-card {
  max-width: 320px;
  padding: 24px;
  text-align: center;
}
.handoff-mark {
  display: block;
  width: 30px;
  height: 42px;
  margin: 0 auto 20px;
}
.handoff-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes workspace-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 980px) {
  .page-shell {
    width: calc(100% - 48px);
  }
  .hero {
    padding-top: 56px;
  }
  h1 {
    font-size: 54px;
  }
  .demo-section {
    gap: 40px;
  }
  .workflow-list,
  .feature-grid {
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .page-shell {
    width: calc(100% - 40px);
  }
  .topbar {
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0 0;
  }
  .brand-name {
    font-size: 21px;
  }
  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
  }
  .nav-link {
    font-size: 12px;
  }
  .nav-actions .trade-login-link {
    padding-inline: 12px;
  }
  .hero {
    padding-top: 40px;
  }
  h1 {
    font-size: 44px;
  }
  h2 {
    font-size: 30px;
  }
  .hero-copy > p {
    font-size: 16px;
  }
  .workflow-list,
  .feature-grid,
  .demo-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .platform-section,
  .demo-section {
    padding: 48px 0;
  }
  .demo-form {
    gap: 20px;
  }
  .demo-panel {
    padding-top: 32px;
  }
  .login-page {
    padding: 36px 0;
  }
  .login-copy h1,
  .workspace-gate-card h1 {
    font-size: 36px;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (forced-colors: active) {
  .topbar {
    background: Canvas;
  }
  :where(a, button, input, textarea, select, summary):focus-visible {
    outline-color: Highlight;
  }
}
