/*
Copyright (C) 2026 Alex Lama.
Copyright (C) 2026 Joseph Lama.
All rights reserved.
*/

:root {
  --ink: #17202a;
  --muted: #607184;
  --bg: #eef2f5;
  --panel: #ffffff;
  --soft: #f7f9fb;
  --line: #d6dee7;
  --line-strong: #b9c6d3;
  --nav: #101820;
  --teal: #0f6a6e;
  --blue: #2f6495;
  --gold: #d79a35;
  --danger: #a74444;
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.06), 0 18px 44px rgba(16, 24, 32, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-header {
  height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 34px;
  background: rgba(238, 242, 245, 0.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 820;
}

.brand span {
  width: 34px;
  height: 34px;
  display: block;
  flex: 0 0 auto;
  background: url("/oryxquant-mark.png") center / contain no-repeat;
  font-size: 0;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: #405061;
  text-decoration: none;
  font-weight: 760;
  font-size: 14px;
}

nav a.active-page {
  color: var(--teal);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 28px 70px;
}

.hero {
  min-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.product-shot,
.section {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding: 52px;
  background: var(--nav);
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: #e4aa4b;
  font-weight: 830;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
}

.eyebrow.dark {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 70px;
  line-height: 0.96;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

h3 {
  margin: 0;
  font-size: 18px;
}

.lead {
  max-width: 560px;
  margin: 20px 0 0;
  color: #d8e3ed;
  font-size: 20px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary,
.secondary,
.platform-grid button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 12px 17px;
  cursor: pointer;
  font: inherit;
  font-weight: 820;
  text-decoration: none;
}

.primary {
  background: var(--teal);
  color: white;
}

.primary:hover,
.platform-grid button.active {
  background: #0b5559;
}

.secondary,
.platform-grid button {
  background: #e8eef4;
  color: #1b2a38;
}

.secondary:hover,
.platform-grid button:hover {
  background: #dbe5ef;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 42px 0 0;
}

.hero-facts div {
  padding: 14px;
  border: 1px solid #344656;
  border-radius: 8px;
  background: #0d151d;
}

.hero-facts dt {
  color: #8da0b0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: #f7fbff;
  font-weight: 760;
}

.product-shot {
  min-height: 620px;
  padding: 18px;
  background: #dce4ec;
}

.app-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #c7d1db;
  border-radius: 8px 8px 0 0;
  background: #f8fbfd;
}

.app-topbar span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  font-weight: 900;
}

.app-topbar em {
  margin-left: auto;
  color: var(--teal);
  font-style: normal;
  font-size: 12px;
  font-weight: 840;
}

.app-shell {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 534px;
  border: 1px solid #c7d1db;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: #f8fbfd;
}

.app-shell aside {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px 12px;
  background: #101820;
}

.app-shell aside span {
  padding: 10px 11px;
  border-radius: 8px;
  color: #cbd8e5;
  font-size: 13px;
  font-weight: 760;
}

.app-shell aside .active {
  background: var(--gold);
  color: #101820;
}

.app-shell section {
  padding: 18px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.result-header small,
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 830;
  text-transform: uppercase;
}

.result-header button {
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  padding: 10px 16px;
  font-weight: 820;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.metric-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.metric-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.equity-chart {
  height: 228px;
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
}

.equity-chart i {
  flex: 1;
  min-width: 0;
  border-radius: 5px 5px 0 0;
  background: var(--teal);
}

.equity-chart i:nth-child(1) { height: 32%; }
.equity-chart i:nth-child(2) { height: 44%; background: var(--blue); }
.equity-chart i:nth-child(3) { height: 39%; }
.equity-chart i:nth-child(4) { height: 58%; background: var(--gold); }
.equity-chart i:nth-child(5) { height: 73%; background: var(--blue); }
.equity-chart i:nth-child(6) { height: 86%; }

.product-shot table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  background: white;
}

.product-shot td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.product-shot td:not(:first-child) {
  text-align: right;
}

.section {
  margin-top: 22px;
  padding: 30px;
  background: var(--panel);
}

.section-heading {
  max-width: 760px;
}

.section p,
li {
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid,
.plan-grid {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.real-product-shot {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--nav);
}

.real-product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

article span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 860;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 26px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.download-panel,
.license-form,
.code-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.output-box,
pre {
  min-height: 88px;
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #111820;
  color: #d9e9f4;
  overflow: auto;
  font-family: Consolas, ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.output-box.error {
  color: #ffd9d9;
  border: 1px solid var(--danger);
}

.download-link {
  display: inline-flex;
  margin-top: 12px;
  text-decoration: none;
}

.download-link[hidden] {
  display: none;
}

.admin-main {
  max-width: 1420px;
}

.admin-section h1 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(260px, 520px) max-content;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}

.admin-operations {
  align-items: start;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-form-grid .wide {
  grid-column: 1 / -1;
}

.admin-filter {
  width: min(360px, 100%);
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.admin-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
}

.admin-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 830;
  text-transform: uppercase;
}

.admin-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.admin-toolbar label {
  width: min(360px, 100%);
}

.admin-table-wrap {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.admin-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  background: white;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.admin-table code {
  font-family: Consolas, ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 12px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 820;
}

.admin-status.good {
  background: #e3f2ed;
  color: #176145;
}

.admin-status.bad {
  background: #f8e8e8;
  color: #8a3232;
}

.admin-status.pending {
  background: #fff1cc;
  color: #73550b;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-actions button {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #eef3f7;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.copy-key {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

dialog {
  width: min(620px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  background: white;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(9, 18, 25, 0.58);
}

.dialog-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 44px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #10202a;
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#toast.visible {
  opacity: 1;
  transform: translateY(0);
}

#toast.error {
  background: var(--danger);
}

.license-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #39495a;
  font-weight: 760;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid #c7d1dc;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.password-input {
  position: relative;
  min-width: 0;
}

.password-input input {
  width: 100%;
  padding-right: 62px;
}

.password-input button {
  position: absolute;
  top: 50%;
  right: 6px;
  min-width: 48px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  transform: translateY(-50%);
}

.password-input button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.activation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  margin-top: 22px;
  align-items: start;
}

.code-box span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.code-box pre {
  margin-top: 10px;
}

ol {
  margin: 0;
  padding-left: 22px;
}

ol li + li {
  margin-top: 10px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer span:first-child {
  font-weight: 840;
  color: var(--ink);
}

@media (max-width: 1040px) {
  .hero,
  .split,
  .activation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy,
  .product-shot {
    min-height: auto;
  }

  .hero > *,
  .split > *,
  .activation-grid > * {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .site-header,
  footer {
    padding-inline: 20px;
  }

  nav {
    display: none;
  }

  main {
    padding: 18px 16px 54px;
  }

  .hero-copy,
  .section {
    padding: 24px;
    min-width: 0;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 25px;
  }

  .hero-facts,
  .feature-grid,
  .plan-grid,
  .metric-grid,
  .platform-grid,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .admin-login,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid .wide {
    grid-column: auto;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer {
    display: grid;
  }
}

/* Concise public site and customer account */
.home-main {
  max-width: none;
  padding: 0 0 64px;
}

.home-header {
  background: rgba(245, 248, 250, 0.96);
}

.account-nav {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.home-hero {
  position: relative;
  min-height: 650px;
  height: calc(100svh - 150px);
  max-height: 680px;
  display: grid;
  grid-template-columns: minmax(500px, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  background-color: #101820;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 44px clamp(42px, 5vw, 76px);
  color: white;
}

.home-hero h1 {
  max-width: 620px;
  font-size: 62px;
  line-height: 1.02;
}

.home-hero .lead {
  max-width: 540px;
  font-size: 21px;
}

.home-highlights {
  width: min(540px, 100%);
  display: grid;
  counter-reset: home-highlight;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
}

.home-highlights li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #f0f5f9;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
  counter-increment: home-highlight;
}

.home-highlights li::before {
  color: var(--gold);
  content: "0" counter(home-highlight);
  font-size: 11px;
  font-weight: 880;
  letter-spacing: 0.08em;
}

.home-hero-media {
  min-width: 0;
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  overflow: hidden;
  border-left: 1px solid #31414f;
  background: #eef2f5;
}

.home-hero-static {
  grid-template-columns: minmax(0, 1fr);
}

.home-hero-static > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.product-tour-nav {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 6px;
  padding: 18px 12px;
  background: #101820;
}

.product-tour-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: white;
}

.product-tour-brand span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--gold);
  color: #101820;
  font-size: 11px;
  font-weight: 900;
}

.product-tour-brand small {
  color: #9fb0bf;
  font-size: 10px;
  font-weight: 800;
}

.product-tour-nav button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: transparent;
  color: #c8d4df;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 780;
  text-align: left;
}

.product-tour-nav button:hover,
.product-tour-nav button:focus-visible {
  background: #1c2a35;
  color: white;
  outline: 2px solid #6e8ba0;
  outline-offset: -2px;
}

.product-tour-nav button.active {
  background: #273744;
  color: white;
}

.product-tour-stage {
  aspect-ratio: 1168 / 900;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: #eef2f5;
}

.product-tour-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.home-section {
  width: min(1184px, calc(100% - 40px));
  margin: 48px auto 0;
  padding: 32px 0;
}

.home-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 24px;
}

.home-section-heading .eyebrow {
  margin-bottom: 8px;
}

.compact-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.compact-features article {
  min-width: 0;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.compact-features article + article {
  border-left: 1px solid var(--line);
}

.compact-features strong {
  font-size: 20px;
}

.compact-features p,
.price-item p,
.release-band p,
.auth-intro p,
.account-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-band {
  padding-top: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.price-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: white;
}

.price-item.featured {
  border-color: var(--teal);
  box-shadow: inset 4px 0 0 var(--teal);
}

.price-item span,
.price-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-item strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.release-band,
.account-band,
.account-heading,
.password-section {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.release-band {
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.release-band h2 span {
  color: var(--teal);
}

.release-band p {
  max-width: 760px;
  overflow-wrap: anywhere;
  font-family: Consolas, ui-monospace, monospace;
  font-size: 12px;
}

.release-action {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: max-content;
}

.release-action span {
  color: var(--muted);
  font-size: 12px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

.terms-check {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.terms-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.terms-check a {
  color: var(--teal);
}

.account-main {
  max-width: 1184px;
  padding-top: 54px;
}

.subpage-main {
  max-width: 1184px;
  min-height: calc(100vh - 190px);
  padding-top: 72px;
}

.subpage-heading {
  max-width: 850px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line-strong);
}

.subpage-heading h1 {
  max-width: 820px;
  font-size: 56px;
  line-height: 1.04;
}

.subpage-heading > p:last-child {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.subpage-main .home-section {
  width: 100%;
  margin-top: 40px;
}

.legal-main {
  max-width: 920px;
}

.legal-copy {
  padding: 38px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.legal-copy h2 {
  margin-top: 30px;
  font-size: 23px;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.demo-tour {
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #eef2f5;
  box-shadow: var(--shadow);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.product-detail-grid article {
  min-width: 0;
  background: white;
}

.product-detail-grid article > span,
.download-facts span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-detail-grid h2 {
  margin-top: 8px;
  font-size: 23px;
}

.product-detail-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.pricing-note strong {
  color: var(--ink);
}

.download-release {
  margin-top: 46px;
}

.download-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-facts div {
  min-width: 0;
  padding: 22px;
}

.download-facts div + div {
  border-left: 1px solid var(--line);
}

.download-facts strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.auth-view {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 70px;
  align-items: center;
}

.auth-intro h1,
.account-heading h1 {
  font-size: 52px;
  line-height: 1;
}

.auth-tool {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.auth-tabs,
.plan-switch,
.pricing-cycle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.auth-tabs button,
.plan-switch button,
.pricing-cycle button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-tabs button.active,
.plan-switch button.active,
.pricing-cycle button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(16, 24, 32, 0.12);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.text-action {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.text-action:hover { text-decoration: underline; }

.email-preview {
  width: min(440px, 70vw);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.5 Consolas, monospace;
}

.form-price {
  margin: -4px 0 0;
  color: var(--teal);
  font-size: 18px;
  font-weight: 850;
}

.pricing-cycle {
  width: min(420px, 100%);
  margin: 0 auto 24px;
}

.pricing-cycle button span {
  display: block;
  margin-top: 2px;
  color: var(--teal);
  font-size: 10px;
}

.account-heading {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-action {
  min-height: 40px;
  border: 1px solid var(--danger);
  border-radius: 7px;
  padding: 8px 12px;
  background: white;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.account-summary article {
  min-width: 0;
  padding: 20px;
  background: white;
}

.account-summary span,
.account-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-summary strong {
  display: block;
  margin: 7px 0;
  font-size: 25px;
}

.account-band,
.account-section {
  margin-top: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.license-band code {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.plan-switch {
  width: min(360px, 100%);
}

.subscription-controls {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subscription-controls > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.password-section form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) max-content;
  gap: 12px;
  align-items: end;
}

@media (max-width: 900px) {
  .home-hero { height: auto; max-height: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto min(480px, 62.5vw); }
  .home-hero-content { padding: 44px 28px; }
  .compact-features, .pricing-grid, .account-summary { grid-template-columns: 1fr; }
  .compact-features article + article { border-left: 0; border-top: 1px solid var(--line); }
  .price-item { grid-template-columns: minmax(0, 1fr) max-content; }
  .price-item p { grid-column: 1 / -1; grid-row: 2; }
  .auth-view { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-grid, .download-facts { grid-template-columns: 1fr; }
  .download-facts div + div { border-top: 1px solid var(--line); border-left: 0; }
  .password-section, .password-section form { display: grid; grid-template-columns: 1fr; }
  .subscription-controls { grid-template-columns: 1fr; }
  .demo-tour { grid-template-columns: 132px minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .home-header nav a:not(.account-nav) { display: none; }
  .home-hero { min-height: 0; grid-template-rows: auto 62.5vw; }
  .home-hero-content { padding: 44px 24px; }
  .home-hero h1 { font-size: 48px; }
  .home-hero .lead { font-size: 18px; }
  .home-hero-media { border-top: 1px solid #31414f; border-left: 0; }
  .home-hero-media { grid-template-columns: 100px minmax(0, 1fr); }
  .home-hero-static { grid-template-columns: minmax(0, 1fr); }
  .product-tour-nav { gap: 2px; padding: 8px 6px; }
  .product-tour-brand { gap: 4px; margin-bottom: 2px; }
  .product-tour-brand span { width: 24px; height: 24px; font-size: 9px; }
  .product-tour-brand small { font-size: 8px; }
  .product-tour-nav button { min-height: 26px; padding: 4px 6px; font-size: 9px; }
  .home-section { width: calc(100% - 32px); margin-top: 32px; padding: 22px 0; }
  .home-section-heading, .release-band, .account-band, .account-heading { display: grid; align-items: start; }
  .price-item { grid-template-columns: 1fr; }
  .price-item p { grid-column: auto; grid-row: auto; }
  .release-action { justify-items: start; min-width: 0; }
  .account-main { padding: 30px 16px 60px; }
  .subpage-main { padding: 42px 16px 54px; }
  .subpage-heading h1 { font-size: 42px; }
  .subpage-heading > p:last-child { font-size: 17px; }
  .demo-tour { grid-template-columns: 96px minmax(0, 1fr); margin-top: 28px; }
  .auth-view { min-height: auto; }
  .auth-intro h1, .account-heading h1 { font-size: 40px; }
  .auth-tool { padding: 18px; }
  .license-band code { font-size: 16px; }
}
