/*
  KFS / Tools
  Rebuilt 2026-07-10 from the approved KFS Tools mood boards.
  One visual system: paper, aluminium, graphite, calibration orange.
*/

:root {
  color-scheme: light;
  --paper: #ffffff;
  --warm-paper: #f7f5f0;
  --aluminium: #e8e6e1;
  --warm-grey: #cfc7bd;
  --graphite: #1d1d1f;
  --graphite-2: #29292b;
  --muted: #68676b;
  --orange: #f15a24;
  --orange-dark: #c94314;
  --line: rgba(29, 29, 31, 0.16);
  --line-strong: rgba(29, 29, 31, 0.32);
  --shadow: 0 20px 48px rgba(29, 29, 31, 0.10);
  --shadow-small: 0 8px 20px rgba(29, 29, 31, 0.08);
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  --page: min(100% - 64px, 1420px);
  --content: min(100% - 64px, 1220px);
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--warm-paper);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--warm-paper);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

::selection {
  background: var(--orange);
  color: var(--paper);
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ol,
ul,
fieldset {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

p {
  margin-bottom: 0;
}

code,
pre,
kbd {
  font-family: var(--mono);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 78px;
  padding: 12px max(32px, calc((100vw - 1420px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
  min-width: max-content;
}

.brand__mark {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand__mark i,
.slash,
.site-footer strong span {
  color: var(--orange);
  font-style: normal;
}

.brand__meta {
  display: grid;
  gap: 1px;
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
  line-height: 1.1;
}

.brand__meta strong,
.brand__meta small {
  display: block;
}

.brand__meta strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__meta small {
  color: var(--muted);
  font-size: 11px;
}

.site-header nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 54px;
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header nav a::after {
  position: absolute;
  right: 17px;
  bottom: 5px;
  left: 17px;
  height: 2px;
  background: var(--orange);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-header nav a:hover::after,
.site-header nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--content);
  margin: 0 auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer strong {
  margin-right: 12px;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  color: var(--graphite);
  font-weight: 600;
}

.site-footer a:hover,
.inline-links a:hover,
.product-access__panel a:not(.button):hover {
  color: var(--orange-dark);
}

/* Shared language */

.eyebrow,
.product-label,
.hero-principle,
.proof-topbar,
.tool-card small,
.product-facts dt,
.product-steps > li > span,
.checkout-panel__head,
.checkout-package__badge,
.checkout-summary > div > span,
.checkout-total small,
.filename-compare > div > span,
.workflow article > span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow,
.product-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.eyebrow::after,
.product-label::after {
  width: 22px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--orange);
  content: "";
}

.lede,
.product-lede,
.product-story > p:last-child,
.product-proof > div:first-child > p:last-child,
.checkout-copy > p:not(.product-label),
.product-access > div:first-child > p:last-child {
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
button.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--paper);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
button.button:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.button:active,
button.button:active {
  transform: translateY(1px);
}

.button--ghost,
button.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--graphite);
}

.button--ghost:hover,
button.button--ghost:hover {
  border-color: var(--graphite);
  background: var(--paper);
  color: var(--graphite);
}

.button:disabled,
button.button:disabled {
  border-color: var(--line);
  background: var(--aluminium);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.inline-links a,
.product-access__panel a:not(.button) {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 5px;
}

/* Tools shelf */

.tools-hero {
  display: grid;
  width: var(--page);
  min-height: 720px;
  margin: 0 auto;
  padding: 90px 0 84px;
  grid-template-columns: minmax(0, 0.9fr) minmax(580px, 1.1fr);
  gap: clamp(60px, 7vw, 120px);
  align-items: center;
}

.tools-hero__copy {
  max-width: 600px;
}

.tools-hero h1 {
  font-size: clamp(70px, 7.6vw, 126px);
  line-height: 0.86;
  white-space: nowrap;
}

.tools-hero h2 {
  max-width: 560px;
  margin-top: 38px;
  font-size: clamp(43px, 4vw, 68px);
  line-height: 0.98;
}

.tools-hero .lede {
  max-width: 620px;
  margin-top: 28px;
}

.tools-hero .actions {
  margin-top: 31px;
}

.hero-principle {
  max-width: 480px;
  margin-top: 28px;
  color: var(--muted);
  line-height: 1.5;
}

.tools-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.proof-topbar {
  display: grid;
  min-height: 55px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--warm-paper);
  grid-template-columns: 24px 34px 1fr auto;
  gap: 12px;
}

.proof-topbar span:nth-child(1) {
  height: 2px;
  background: var(--orange);
}

.proof-topbar span:nth-child(2),
.proof-topbar span:nth-child(3) {
  height: 1px;
  background: var(--line);
}

.tools-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  padding: 30px 31px 27px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 180ms ease, color 180ms ease;
}

.tool-card:nth-child(2n) {
  border-right: 0;
}

.tool-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.tool-card small {
  margin-bottom: 28px;
  color: var(--muted);
}

.tool-card strong {
  display: block;
  max-width: 280px;
  font-size: clamp(34px, 2.7vw, 48px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.tool-card p {
  max-width: 330px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.card-actions {
  display: flex;
  margin-top: auto;
  padding-top: 26px;
  color: var(--graphite);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-card--featured {
  box-shadow: inset 3px 0 0 var(--orange);
}

.tool-card:hover {
  background: var(--graphite);
  color: var(--paper);
}

.tool-card:hover small,
.tool-card:hover p,
.tool-card:hover .card-actions {
  color: var(--aluminium);
}

.workflow {
  width: 100%;
  padding: 84px 0 96px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.workflow > .eyebrow,
.workflow__grid {
  width: var(--content);
  margin-right: auto;
  margin-left: auto;
}

.workflow__grid {
  display: grid;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow article {
  min-height: 330px;
  padding: 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.workflow article > span {
  color: var(--orange-dark);
}

.workflow article h2 {
  margin-top: 74px;
  font-size: clamp(29px, 2.2vw, 38px);
}

.workflow article > p:not(.inline-links) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

.workflow article .inline-links {
  margin-top: 28px;
}

/* Product pages */

.product-hero {
  display: grid;
  width: var(--page);
  min-height: 700px;
  margin: 0 auto;
  padding: 76px 0 84px;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  gap: clamp(54px, 6.5vw, 110px);
  align-items: center;
}

.product-hero__copy {
  min-width: 0;
}

.product-hero h1 {
  max-width: 720px;
  font-size: clamp(58px, 5.7vw, 94px);
  line-height: 0.92;
}

.product-lede {
  max-width: 650px;
  margin-top: 30px;
}

.product-hero .actions {
  margin-top: 32px;
}

.product-hero__visual {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-hero__visual img {
  width: 100%;
  aspect-ratio: 11 / 7;
  object-fit: cover;
}

.product-hero__visual figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-facts {
  display: grid;
  max-width: 680px;
  margin: 44px 0 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-facts > div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.product-facts dt {
  margin-bottom: 8px;
  color: var(--muted);
}

.product-facts dd {
  margin-left: 0;
  font-size: 14px;
  line-height: 1.35;
}

.product-band {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.product-band--quiet {
  background: var(--warm-paper);
}

.product-band--flat {
  background: var(--aluminium);
}

.product-band--image {
  background: var(--graphite);
  color: var(--paper);
}

.product-band--image .product-label::after {
  background: var(--orange);
}

.product-band--image .product-list p,
.product-band--image .product-list strong {
  color: var(--paper);
}

.product-band--image .product-list p {
  border-color: rgba(255, 255, 255, 0.18);
}

.product-band--image .inline-links a {
  color: var(--paper);
}

.product-inner {
  width: var(--content);
  margin: 0 auto;
}

.product-story {
  max-width: 940px;
}

.product-story h2,
.product-proof > div:first-child h2,
.checkout-copy h2,
.product-access h2 {
  max-width: 930px;
  font-size: clamp(50px, 5vw, 82px);
}

.product-story > p:last-child,
.product-proof > div:first-child > p:last-child,
.checkout-copy > p:not(.product-label),
.product-access > div:first-child > p:last-child {
  max-width: 760px;
  margin-top: 28px;
}

.product-columns {
  display: grid;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-columns article {
  min-height: 320px;
  padding: 33px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.product-columns h3 {
  margin-top: 72px;
  font-size: clamp(33px, 2.8vw, 48px);
}

.product-columns article > p:last-child {
  max-width: 330px;
  margin-top: 20px;
  color: var(--muted);
}

.product-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(64px, 9vw, 150px);
}

.product-split h2,
.product-section-head h2 {
  max-width: 700px;
  font-size: clamp(50px, 4.6vw, 76px);
}

.product-list {
  border-top: 1px solid currentColor;
}

.product-list p {
  padding: 20px 0 20px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.product-list p::before {
  float: left;
  width: 12px;
  height: 2px;
  margin: 11px 0 0 -28px;
  background: var(--orange);
  content: "";
}

.product-list strong {
  color: var(--graphite);
}

.product-section-head {
  max-width: 980px;
  margin-bottom: 58px;
}

.product-steps {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  list-style: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-steps--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-steps li {
  min-height: 330px;
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.product-steps li > span {
  color: var(--orange-dark);
}

.product-steps h3 {
  margin-top: 74px;
  font-size: clamp(31px, 2.4vw, 42px);
}

.product-steps p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.product-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(60px, 8vw, 130px);
}

.product-proof__grid {
  display: grid;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-proof__grid article {
  min-height: 220px;
  padding: 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}

.product-proof__grid h3 {
  font-size: clamp(31px, 2.6vw, 43px);
}

.product-proof__grid p {
  margin-top: 20px;
  color: var(--muted);
}

.waveform-method {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.waveform-method article {
  display: grid;
  min-height: 145px;
  align-items: start;
  padding: 29px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 52px 1fr;
  gap: 18px;
}

.waveform-method article:last-child {
  border-bottom: 0;
}

.waveform-method article > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--orange);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.waveform-method strong {
  display: block;
  font-size: 17px;
}

.waveform-method p {
  margin-top: 8px;
  color: var(--muted);
}

/* Checkout */

.product-band--checkout {
  background: var(--aluminium);
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(600px, 1.25fr);
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
}

.checkout-assurance {
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.checkout-assurance li {
  padding: 17px 0 17px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.checkout-assurance li::before {
  float: left;
  width: 12px;
  height: 2px;
  margin: 10px 0 0 -28px;
  background: var(--orange);
  content: "";
}

.checkout-panel {
  padding: 27px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.checkout-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.checkout-panel__head h3 {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: clamp(36px, 3vw, 50px);
  text-transform: none;
}

.checkout-panel__head p {
  white-space: nowrap;
}

.checkout-billing {
  display: flex;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  border: 0;
}

.checkout-billing legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.checkout-billing label {
  position: relative;
  cursor: pointer;
}

.checkout-billing input,
.checkout-package > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-billing span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 650;
}

.checkout-billing input:checked + span {
  border-color: var(--graphite);
  background: var(--graphite);
  color: var(--paper);
}

.checkout-billing input:focus-visible + span,
.checkout-package > input:focus-visible ~ .checkout-package__head {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.checkout-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.waveform-sync-page .checkout-package-grid {
  grid-template-columns: 1fr;
}

.waveform-sync-page .checkout-package__head > strong {
  min-height: 0;
}

.waveform-sync-page .checkout-package__head b,
.waveform-sync-page .checkout-total span {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
}

.checkout-package {
  position: relative;
  display: block;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  cursor: pointer;
}

.checkout-package.is-selected {
  border-color: var(--orange-dark);
  box-shadow: inset 3px 0 0 var(--orange);
}

.checkout-package[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.64;
}

.checkout-package__badge {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--orange-dark);
}

.checkout-package__head,
.checkout-package__head > * {
  display: block;
}

.checkout-package__head > small {
  color: var(--muted);
}

.checkout-package__head > strong {
  min-height: 84px;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: clamp(30px, 2.45vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-transform: none;
}

.checkout-package__head > span {
  margin-top: 18px;
}

.checkout-package__head b {
  display: inline;
  font-family: var(--sans);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.checkout-package__head em {
  display: inline;
  margin-left: 8px;
  color: var(--muted);
  font-style: normal;
}

.checkout-feature-list {
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.checkout-feature-list li {
  position: relative;
  padding: 5px 0 5px 20px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-feature-list li::before {
  position: absolute;
  top: 13px;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.checkout-feature-list li[data-included="false"] {
  text-decoration: line-through;
  opacity: 0.55;
}

.checkout-summary {
  display: grid;
  align-items: end;
  margin-top: 14px;
  padding: 22px;
  background: var(--graphite);
  color: var(--paper);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
}

.checkout-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.checkout-summary p {
  max-width: 430px;
  margin-top: 7px;
  color: var(--aluminium);
  font-size: 13px;
}

.checkout-total {
  text-align: right;
}

.checkout-total span {
  display: block;
  font-size: clamp(34px, 3vw, 50px);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.checkout-total small {
  display: block;
  margin-top: 9px;
}

.checkout-submit {
  width: 100%;
  margin-top: 14px;
}

.checkout-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* Screenshot Clock and access surfaces */

.terminal-drawer {
  margin-top: 20px;
}

.terminal-drawer summary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  cursor: pointer;
}

.terminal-drawer summary::marker {
  color: var(--orange);
}

.terminal-card {
  position: relative;
  padding: 62px 25px 25px;
  border: 1px solid #414145;
  background: #141416;
  color: var(--paper);
  box-shadow: var(--shadow-small);
}

.terminal-drawer .terminal-card {
  margin-top: 10px;
}

.copy-button {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.terminal-command {
  overflow-x: auto;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-prompt {
  margin-right: 14px;
  color: var(--orange);
}

.terminal-tip,
.terminal-card > p {
  margin-top: 18px;
  color: #b9b7b3;
  font-size: 12px;
}

kbd {
  padding: 2px 5px;
  border: 1px solid #5b5b5f;
  border-radius: 3px;
  background: #242426;
  color: var(--paper);
}

.product-before-after {
  background: var(--aluminium);
}

.filename-compare {
  display: grid;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filename-compare > div {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}

.filename-compare code {
  display: block;
  overflow-x: auto;
  margin-top: 24px;
  padding: 20px;
  background: var(--graphite);
  color: var(--paper);
  font-size: 13px;
  white-space: nowrap;
}

.product-install,
.product-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.65fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: start;
}

.product-install h2 {
  font-size: clamp(50px, 4.5vw, 74px);
}

.product-install > div:first-child > p:not(.product-label),
.product-access > div:first-child > p:not(.product-label) {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

.product-access__panel {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.product-access__panel > * {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.product-access__panel .button {
  margin-bottom: 12px;
}

/* Account */

.account-shell {
  width: var(--content);
  min-height: calc(100vh - 220px);
  margin: 0 auto;
  padding: 82px 0 110px;
}

.account-hero {
  max-width: 980px;
}

.account-hero h1 {
  font-size: clamp(58px, 6vw, 92px);
}

.account-hero .lede {
  max-width: 720px;
  margin-top: 28px;
}

.account-notice {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  background: var(--paper);
}

.account-login {
  max-width: 720px;
  margin-top: 58px;
}

.account-login form,
.account-panel,
.account-toolbar {
  padding: 30px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.account-login form {
  display: grid;
  gap: 22px;
}

.account-login h2,
.account-panel h2,
.account-toolbar h2 {
  font-size: clamp(34px, 3vw, 48px);
}

.account-login label,
.account-product-select {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.account-login input,
.account-product-select select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--warm-paper);
  color: var(--graphite);
}

.account-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 50px;
}

.account-toolbar,
.account-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-summary-grid article {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  background: var(--paper);
}

.account-summary-grid article:last-child {
  border-right: 1px solid var(--line-strong);
}

.account-summary-grid span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.account-summary-grid strong {
  font-size: 44px;
  font-weight: 500;
}

.account-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.account-list > * {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--warm-paper);
}

.account-download-grid {
  display: grid;
  margin: 24px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-download-grid button {
  min-height: 54px;
  border: 1px solid var(--line-strong);
  background: var(--warm-paper);
  color: var(--graphite);
  cursor: pointer;
}

.account-download-grid button:hover {
  border-color: var(--orange-dark);
  color: var(--orange-dark);
}

/* Verified download portal */

.ms-portal-hero,
.ms-portal-downloads,
.ms-portal-notes {
  width: var(--content);
  margin: 0 auto;
}

.ms-portal-hero {
  display: grid;
  min-height: 660px;
  align-content: center;
  padding: 72px 0;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: 24px 90px;
}

.ms-portal-hero > div:first-child {
  grid-row: span 2;
}

.ms-portal-hero h1 {
  max-width: 700px;
  font-size: clamp(58px, 5.7vw, 90px);
}

.ms-portal-hero .lede {
  max-width: 680px;
  margin-top: 28px;
}

.ms-portal-status,
.ms-licence-key {
  padding: 25px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.ms-portal-status > span,
.ms-licence-key > span,
.ms-os-card > span,
.ms-os-card > small,
.ms-portal-notes article > span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ms-portal-status strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
}

.ms-portal-status p,
.ms-licence-key p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.ms-licence-key code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 12px;
  padding: 16px;
  background: var(--graphite);
  color: var(--paper);
  font-size: 13px;
}

.ms-portal-downloads {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.ms-section-head {
  max-width: 860px;
}

.ms-section-head h2 {
  font-size: clamp(48px, 4.6vw, 74px);
}

.ms-detected {
  margin-top: 22px;
  color: var(--muted);
}

.ms-os-grid {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ms-os-card {
  display: flex;
  min-width: 0;
  min-height: 310px;
  flex-direction: column;
  padding: 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
}

.ms-os-icon {
  display: none;
}

.ms-os-card h3 {
  margin-top: 58px;
  font-size: clamp(28px, 2.3vw, 38px);
}

.ms-os-card p {
  margin-top: 17px;
  color: var(--muted);
}

.ms-os-card small {
  margin-top: auto;
  padding-top: 25px;
}

.ms-os-card .button {
  margin-top: 16px;
}

.ms-portal-notes {
  display: grid;
  padding: 0 0 100px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ms-portal-notes article {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  background: var(--paper);
}

.ms-portal-notes article:last-child {
  border-right: 1px solid var(--line-strong);
}

.ms-portal-notes h2 {
  margin-top: 62px;
  font-size: clamp(35px, 3vw, 48px);
}

.ms-portal-notes p {
  margin-top: 18px;
  color: var(--muted);
}

/* Private software desk */

.admin-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(32px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--warm-paper);
}

.admin-header > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-header span {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.admin-header strong {
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-header button,
.admin-login button,
.admin-panel button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--graphite);
  background: var(--graphite);
  color: var(--paper);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.admin-shell {
  width: var(--content);
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 82px 0 110px;
}

.admin-login {
  max-width: 720px;
}

.admin-login form,
.admin-panel {
  padding: 30px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.admin-login h1 {
  font-size: clamp(50px, 5vw, 74px);
}

.admin-login label {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.admin-login input,
.admin-panel input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--warm-paper);
}

.admin-login button {
  margin-top: 14px;
}

.admin-notice {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  background: var(--paper);
}

.admin-dashboard {
  display: grid;
  gap: 20px;
}

.admin-summary,
.admin-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-summary > *,
.admin-list > * {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--warm-paper);
}

.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-panel h2 {
  font-size: clamp(36px, 3vw, 48px);
}

.admin-panel__head form,
.admin-inline-actions {
  display: flex;
  gap: 8px;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 24px;
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table-wrap th,
.admin-table-wrap td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table-wrap th {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

/* Readable source viewer */

.source-layout {
  width: var(--content);
  margin: 0 auto;
  padding: 76px 0 100px;
}

.source-intro {
  max-width: 900px;
}

.source-intro h1 {
  font-size: clamp(54px, 5.5vw, 82px);
}

.source-intro > p:not(.product-label) {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

.source-intro .actions {
  margin-top: 30px;
}

.source-shell {
  overflow: hidden;
  margin-top: 56px;
  border: 1px solid #414145;
  background: #141416;
  color: var(--paper);
  box-shadow: var(--shadow);
}

.source-shell__bar,
.source-shell__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid #414145;
  font-family: var(--mono);
  font-size: 11px;
}

.source-shell__bar span {
  width: 20px;
  height: 2px;
  background: var(--orange);
}

.source-shell__bar em {
  margin-left: auto;
  color: #a9a7a3;
  font-style: normal;
}

.source-shell__actions {
  justify-content: flex-end;
}

.source-shell__actions a,
.source-shell__actions button {
  padding: 7px 10px;
  border: 1px solid #5c5c60;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.source-code {
  max-height: 68vh;
  overflow: auto;
  margin: 0;
  padding: 18px 0;
  color: #e7e5df;
  font-size: 12px;
  line-height: 1.7;
  tab-size: 2;
}

.source-line {
  display: grid;
  min-width: max-content;
  grid-template-columns: 56px minmax(0, 1fr);
}

.source-line:hover {
  background: #202023;
}

.source-line__number {
  padding: 0 16px 0 10px;
  color: #6f6e71;
  text-align: right;
  user-select: none;
}

.source-line__code {
  padding-right: 24px;
  white-space: pre;
}

.syntax-comment {
  color: #858488;
}

.syntax-keyword,
.syntax-decorator {
  color: #ff8154;
}

.syntax-string {
  color: #c7d88a;
}

.syntax-number,
.syntax-constant {
  color: #b8a0e8;
}

.syntax-command,
.syntax-variable {
  color: #76bdc6;
}

.source-noscript {
  padding: 20px;
}

/* Generic article pages */

.article-page main,
.content-page main,
main.article-shell {
  width: var(--content);
  margin: 0 auto;
  padding: 80px 0 110px;
}

main > article {
  max-width: 880px;
}

main > article h1 {
  font-size: clamp(52px, 5.6vw, 84px);
}

main > article h2 {
  margin-top: 64px;
  font-size: clamp(36px, 3.6vw, 54px);
}

main > article h3 {
  margin-top: 42px;
  font-size: 30px;
}

main > article p,
main > article li {
  color: var(--muted);
  font-size: 18px;
}

main > article p {
  margin-top: 22px;
}

/* Responsive */

@media (max-width: 1180px) {
  :root {
    --page: min(100% - 48px, 1420px);
    --content: min(100% - 48px, 1220px);
  }

  .site-header {
    align-items: flex-start;
    padding: 14px 24px 0;
  }

  .site-header nav {
    max-width: 62vw;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 12px;
  }

  .tools-hero,
  .product-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    gap: 48px;
  }

  .tools-hero h1 {
    font-size: clamp(66px, 8vw, 96px);
  }

  .tool-card {
    min-height: 235px;
    padding: 25px;
  }

  .workflow__grid,
  .product-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow article,
  .product-steps li {
    min-height: 290px;
  }

  .checkout-shell {
    grid-template-columns: minmax(0, 0.7fr) minmax(530px, 1.3fr);
    gap: 48px;
  }
}

@media (max-width: 900px) {
  :root {
    --page: min(100% - 36px, 1420px);
    --content: min(100% - 36px, 1220px);
  }

  .site-header {
    position: relative;
    display: block;
    min-height: auto;
    padding: 18px 18px 0;
  }

  .site-header nav {
    max-width: none;
    margin-top: 15px;
    margin-right: -18px;
    margin-left: -18px;
    padding: 0 8px 10px;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .site-header nav a {
    min-height: 48px;
  }

  .brand__meta {
    display: none;
  }

  .tools-hero,
  .product-hero,
  .product-split,
  .product-proof,
  .checkout-shell,
  .product-install,
  .product-access {
    grid-template-columns: 1fr;
  }

  .tools-hero,
  .product-hero {
    min-height: 0;
    padding: 68px 0;
  }

  .tools-hero__copy,
  .product-hero__copy {
    max-width: 720px;
  }

  .tools-hero h1 {
    white-space: normal;
  }

  .tools-panel {
    margin-top: 12px;
  }

  .workflow__grid,
  .product-columns,
  .product-steps,
  .product-steps--three,
  .checkout-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-band {
    padding: 78px 0;
  }

  .product-proof__grid {
    min-width: 0;
  }

  .checkout-copy {
    max-width: 720px;
  }

  .checkout-panel {
    max-width: 740px;
  }

  .ms-portal-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .ms-portal-hero > div:first-child {
    grid-row: auto;
  }

  .ms-os-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --page: calc(100% - 28px);
    --content: calc(100% - 28px);
  }

  body {
    font-size: 15px;
  }

  .brand__mark {
    font-size: 24px;
  }

  .site-header nav a {
    padding: 0 11px;
    font-size: 10px;
  }

  .site-header nav a::after {
    right: 11px;
    left: 11px;
  }

  .site-header nav {
    display: grid;
    overflow: visible;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-header nav a {
    justify-content: center;
    padding: 0 6px;
    text-align: center;
    white-space: normal;
  }

  .site-header nav a::after {
    right: 6px;
    left: 6px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .tools-hero,
  .product-hero {
    padding: 54px 0 62px;
  }

  .tools-hero h1 {
    font-size: clamp(59px, 18vw, 82px);
  }

  .tools-hero h2 {
    margin-top: 28px;
    font-size: clamp(42px, 13vw, 61px);
  }

  .product-hero h1,
  .account-hero h1 {
    font-size: clamp(51px, 14.5vw, 72px);
  }

  .tools-panel__grid,
  .workflow__grid,
  .product-columns,
  .product-steps,
  .product-steps--three,
  .product-proof__grid,
  .checkout-package-grid,
  .filename-compare,
  .account-summary-grid,
  .account-download-grid {
    grid-template-columns: 1fr;
  }

  .tool-card,
  .workflow article,
  .product-columns article,
  .product-steps li,
  .product-proof__grid article {
    min-height: 0;
  }

  .tool-card,
  .tool-card:nth-child(2n),
  .tool-card:nth-last-child(-n + 2) {
    padding: 25px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tool-card:last-child {
    border-bottom: 0;
  }

  .tool-card strong {
    font-size: 40px;
  }

  .workflow article,
  .product-columns article,
  .product-steps li,
  .product-proof__grid article {
    padding: 26px;
  }

  .workflow article h2,
  .product-columns h3,
  .product-steps h3 {
    margin-top: 46px;
  }

  .product-band {
    padding: 66px 0;
  }

  .product-story h2,
  .product-proof > div:first-child h2,
  .checkout-copy h2,
  .product-access h2,
  .product-split h2,
  .product-section-head h2,
  .product-install h2 {
    font-size: clamp(43px, 12.5vw, 61px);
  }

  .product-facts {
    grid-template-columns: 1fr;
  }

  .product-facts > div {
    padding: 15px 18px;
  }

  .waveform-method article {
    padding: 23px;
    grid-template-columns: 45px 1fr;
  }

  .checkout-panel {
    padding: 18px;
  }

  .checkout-package__head > strong {
    min-height: 0;
  }

  .checkout-summary {
    grid-template-columns: 1fr;
  }

  .checkout-total {
    text-align: left;
  }

  .account-shell {
    padding: 58px 0 80px;
  }

  .account-toolbar,
  .account-panel__head,
  .admin-panel__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-summary-grid article,
  .account-summary-grid article:last-child {
    border-right: 1px solid var(--line-strong);
    border-bottom: 0;
  }

  .account-summary-grid article:last-child {
    border-bottom: 1px solid var(--line-strong);
  }

  .ms-os-grid,
  .ms-portal-notes,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .ms-portal-notes article,
  .ms-portal-notes article:last-child {
    border-right: 1px solid var(--line-strong);
    border-bottom: 0;
  }

  .ms-portal-notes article:last-child {
    border-bottom: 1px solid var(--line-strong);
  }

  .admin-header {
    padding: 14px;
  }

  .admin-header strong {
    display: none;
  }

  .admin-shell {
    padding: 54px 0 80px;
  }

  .admin-login form,
  .admin-panel {
    padding: 20px;
  }

  .admin-panel__head form,
  .admin-inline-actions {
    width: 100%;
    flex-direction: column;
  }

  .source-layout {
    padding: 54px 0 80px;
  }

  .source-shell__actions {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
