/*
  Standard site view: html[data-view='standard'] (set by js/view.js and the inline script in each page head).
  A quiet drafting-sheet look: warm paper, ink, one drafting blue and one red-pencil mark.
  The site itself stays neutral; each product's stage carries that product's own colours.
  This file also holds the view switch (both views) and the px-only / std-only helpers.
*/

/* Which view shows what */
html:not([data-view='standard']) .std-only,
html[data-view='standard'] .px-only {
  display: none !important;
}

/* ---------- View switch (top right of the header, both views) ---------- */
.view-switch {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 2px solid var(--frame-outer);
  border-radius: var(--radius-window);
  background: var(--surface-sunken);
}
.view-switch button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.view-switch button[aria-pressed='true'] {
  background: var(--primary);
  color: var(--on-primary);
}
.view-switch button[aria-pressed='false']:hover {
  background: var(--primary-tint);
}
.std-mark {
  display: none;
}
/* When the pixel header no longer fits on one row, the switch stays top right on the logo row
   and the tabs take the next row */
@media (max-width: 940px) {
  .view-switch {
    order: 1;
  }
  .nav {
    order: 2;
    flex-basis: 100%;
  }
}
@media (max-width: 640px) {
  .view-switch button {
    min-height: 36px;
    font-size: 12px;
    padding: 0 8px;
  }
  html:not([data-view='standard']) .vs-long {
    display: none;
  }
  .brand {
    gap: 8px;
  }
  .brand .px {
    width: 32px;
    height: 16px;
  }
  .brand-name {
    font-size: 17px;
  }
}
@media (max-width: 359px) {
  .brand-name {
    font-size: 13px;
  }
  .view-switch button {
    padding: 0 6px;
  }
}

/* ---------- Standard tokens ---------- */
html[data-view='standard'] .ds {
  --s-bg: #f6f5f1;
  --s-surface: #ffffff;
  --s-sunken: #eeede7;
  --s-ink: #15171c;
  --s-ink-2: #4b505b;
  --s-ink-3: #62676f;
  --s-line: #e2e0d8;
  --s-line-2: #cbc8bd;
  --s-blue: #1f46b5;
  --s-mark: #b4400f;
  --s-grid: rgba(31, 70, 181, 0.06);
  --s-grid-major: rgba(31, 70, 181, 0.1);
  --s-solid-hover: #2b2f38;
  --s-sw-a: #5b4ce6;
  --s-sw-b: #0e7490;
  --s-stm: #b45309;
  --s-ok: #15803d;
  --s-wait: #b7791f;

  /* Map the shared tokens so About and the tool overviews follow the standard look */
  --surface: var(--s-bg);
  --surface-raised: var(--s-surface);
  --surface-sunken: var(--s-sunken);
  --ink: var(--s-ink);
  --ink-muted: var(--s-ink-2);
  --line: var(--s-line);
  --frame: var(--s-line);
  --frame-outer: transparent;
  --primary: var(--s-ink);
  --on-primary: var(--s-bg);
  --primary-tint: var(--s-sunken);
  --accent: var(--s-blue);
  --on-accent: #ffffff;
  --font-pixel: var(--font-sans);
  --radius-window: 12px;
  --shadow-window: none;
  --shadow-press: none;
  color-scheme: light;
}
html[data-view='standard'] .ds.th-night {
  --s-bg: #0f1114;
  --s-surface: #16191e;
  --s-sunken: #1c2027;
  --s-ink: #ecebe6;
  --s-ink-2: #b0b4bc;
  --s-ink-3: #8f949d;
  --s-line: #262a31;
  --s-line-2: #383d46;
  --s-blue: #8ea9ff;
  --s-mark: #ff9466;
  --s-grid: rgba(142, 169, 255, 0.05);
  --s-grid-major: rgba(142, 169, 255, 0.09);
  --s-solid-hover: #d6d5cf;
  --s-sw-a: #a5b4fc;
  --s-sw-b: #22d3ee;
  --s-stm: #fbbf24;
  --s-ok: #4ade80;
  --s-wait: #f2c94c;
  --on-accent: #0f1114;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-view='standard'] .ds.th-auto {
    --s-bg: #0f1114;
    --s-surface: #16191e;
    --s-sunken: #1c2027;
    --s-ink: #ecebe6;
    --s-ink-2: #b0b4bc;
    --s-ink-3: #8f949d;
    --s-line: #262a31;
    --s-line-2: #383d46;
    --s-blue: #8ea9ff;
    --s-mark: #ff9466;
    --s-grid: rgba(142, 169, 255, 0.05);
    --s-grid-major: rgba(142, 169, 255, 0.09);
    --s-solid-hover: #d6d5cf;
    --s-sw-a: #a5b4fc;
    --s-sw-b: #22d3ee;
    --s-stm: #fbbf24;
    --s-ok: #4ade80;
    --s-wait: #f2c94c;
    --on-accent: #0f1114;
    color-scheme: dark;
  }
}

html[data-view='standard'] body {
  -webkit-font-smoothing: antialiased;
}
html[data-view='standard'] .ds {
  line-height: 1.6;
}
html[data-view='standard'] .ds a {
  color: var(--s-ink);
  text-underline-offset: 3px;
}
html[data-view='standard'] .ds a:hover {
  color: var(--s-blue);
}
html[data-view='standard'] .ds button:focus-visible,
html[data-view='standard'] .ds a:focus-visible {
  outline: 2px solid var(--s-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Header ---------- */
html[data-view='standard'] .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--s-bg);
  border-bottom: 1px solid var(--s-line);
  box-shadow: none;
}
html[data-view='standard'] .site-header-inner {
  max-width: 1200px;
  min-height: 64px;
  padding: 0 24px;
  gap: 8px 24px;
}
html[data-view='standard'] .brand {
  min-height: 64px;
  gap: 10px;
  color: var(--s-ink);
}
html[data-view='standard'] .std-mark {
  display: block;
  color: var(--s-blue);
}
html[data-view='standard'] .brand-name {
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.std-nav {
  display: flex;
  gap: 2px;
}
html[data-view='standard'] .ds .std-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--s-ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}
html[data-view='standard'] .ds .std-nav-link:hover,
html[data-view='standard'] .ds .std-nav-link[aria-current] {
  color: var(--s-ink);
  background: var(--s-sunken);
}
html[data-view='standard'] .view-switch {
  border: 1px solid var(--s-line);
  border-radius: 10px;
  padding: 3px;
  background: var(--s-sunken);
}
html[data-view='standard'] .view-switch button {
  min-height: 38px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--s-ink-2);
  transition:
    color 150ms ease,
    background-color 150ms ease;
}
html[data-view='standard'] .view-switch button[aria-pressed='true'] {
  background: var(--s-surface);
  color: var(--s-ink);
  box-shadow:
    0 0 0 1px var(--s-line-2),
    0 1px 2px rgba(20, 22, 28, 0.06);
}
html[data-view='standard'] .view-switch button[aria-pressed='false']:hover {
  background: transparent;
  color: var(--s-ink);
}
@media (max-width: 640px) {
  html[data-view='standard'] .site-header-inner {
    padding: 0 16px;
    gap: 0 8px;
  }
  html[data-view='standard'] .brand-name {
    display: none;
  }
  html[data-view='standard'] .view-switch {
    margin: 0 0 0 auto;
  }
  html[data-view='standard'] .ds .std-nav-link {
    padding: 0 8px;
  }
}
@media (max-width: 420px) {
  html[data-view='standard'] .vs-long {
    display: none;
  }
  html[data-view='standard'] .view-switch button {
    padding: 0 10px;
  }
}

/* ---------- Shared bits ---------- */
/* Keeps compound terms such as strut-and-tie from breaking at a hyphen */
.nowrap {
  white-space: nowrap;
}
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--s-ink-3);
}
/* A dimension tick in front of every eyebrow */
.eyebrow::before {
  content: '';
  width: 18px;
  height: 9px;
  border-left: 1px solid var(--s-blue);
  border-right: 1px solid var(--s-blue);
  background: linear-gradient(var(--s-blue), var(--s-blue)) center / 100% 1px no-repeat;
}
.sbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}
html[data-view='standard'] .ds a.sbtn-solid,
html[data-view='standard'] .ds a.sbtn-solid:hover {
  background: var(--s-ink);
  color: var(--s-bg);
}
html[data-view='standard'] .ds a.sbtn-solid:hover {
  background: var(--s-solid-hover);
}
html[data-view='standard'] .ds a.sbtn-quiet {
  border: 1px solid var(--s-line-2);
  background: var(--s-surface);
  color: var(--s-ink);
}
html[data-view='standard'] .ds a.sbtn-quiet:hover {
  border-color: var(--s-ink-3);
  color: var(--s-ink);
}

/* ---------- Home ---------- */
.home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  padding: 80px 0 96px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-title {
  margin: 20px 0 0;
  max-width: 17ch;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-sub {
  margin: 18px 0 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--s-ink);
  text-wrap: pretty;
}
.hero-lead {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--s-ink-2);
  text-wrap: pretty;
}
.hero-by {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--s-ink-3);
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* The drawing sheet: grid paper, line drawings, title block */
.sheet {
  margin: 0;
  padding: 18px 20px 14px;
  border: 1px solid var(--s-line);
  border-radius: 14px;
  background-color: var(--s-surface);
  background-image:
    linear-gradient(var(--s-grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--s-grid-major) 1px, transparent 1px),
    linear-gradient(var(--s-grid) 1px, transparent 1px), linear-gradient(90deg, var(--s-grid) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
  background-position: -1px -1px;
}
.sheet-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.sheet-svg text {
  font-family: var(--font-mono);
}
.dwg-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  fill: var(--s-ink-3);
}
.dwg-load,
.dwg-head {
  stroke: var(--s-ink-2);
  stroke-width: 1.1;
}
.dwg-note {
  font-size: 12px;
  font-style: italic;
  fill: var(--s-ink-2);
}
.dwg-member {
  fill: var(--s-surface);
  stroke: var(--s-ink);
  stroke-width: 1.6;
}
.dwg-support {
  fill: var(--s-surface);
  stroke: var(--s-ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.dwg-ground {
  stroke: var(--s-ink-3);
  stroke-width: 1;
}
.dwg-defl {
  stroke: var(--s-mark);
  stroke-width: 1.6;
  stroke-dasharray: 6 5;
}
.dwg-q {
  font-size: 12.5px;
  fill: var(--s-mark);
}
.dwg-dim {
  stroke: var(--s-ink-3);
  stroke-width: 0.8;
}
.dwg-tick {
  stroke: var(--s-ink);
  stroke-width: 1.2;
}
.dwg-dimtext {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-anchor: middle;
  fill: var(--s-ink-2);
}
.dwg-outline {
  stroke: var(--s-line-2);
  stroke-width: 1.3;
}
.dwg-break {
  stroke: var(--s-line-2);
  stroke-width: 1.1;
}
.dwg-strut {
  stroke: var(--s-ink);
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
}
.dwg-tie {
  stroke: var(--s-blue);
  stroke-width: 2.2;
}
.dwg-zero {
  stroke: var(--s-line-2);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.dwg-nodes circle {
  fill: var(--s-surface);
  stroke: var(--s-ink);
  stroke-width: 1.3;
}
.dwg-legend {
  font-size: 10px;
  letter-spacing: 0.08em;
  fill: var(--s-ink-2);
}
.dwg-block path {
  stroke: var(--s-line-2);
  stroke-width: 1;
}
.dwg-block text {
  font-size: 9.5px;
  letter-spacing: 0.07em;
  fill: var(--s-ink-3);
}
/* Drawings arrive in the order you would draft them: girder, deflected shape, cap, truss */
@media (prefers-reduced-motion: no-preference) {
  .dwg {
    animation: dwg-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .dwg-2 {
    animation-delay: 260ms;
  }
  .dwg-3 {
    animation-delay: 420ms;
  }
  .dwg-4 {
    animation-delay: 620ms;
  }
}
@keyframes dwg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------- Software catalog ---------- */
.catalog {
  padding-bottom: 88px;
  border-top: 1px solid var(--s-line);
  scroll-margin-top: 64px;
}
.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 64px 0 16px;
}
.sec-title {
  margin: 14px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.catalog-note {
  margin: 0;
  max-width: 48ch;
  font-size: 15px;
  color: var(--s-ink-2);
  text-wrap: pretty;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}
.product + .product {
  border-top: 1px solid var(--s-line);
}
.product-flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.product-flip .product-info {
  order: 2;
}
.product-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-ink-3);
}
.std-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--s-line-2);
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.06em;
  color: var(--s-ink-2);
}
.std-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s-wait);
}
.std-badge-ok::before {
  background: var(--s-ok);
}
.std-badge-soon::before {
  display: none;
}
.product-name {
  margin: 16px 0 0;
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.sw-word em {
  font-style: normal;
  background: linear-gradient(90deg, var(--s-sw-a), var(--s-sw-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stm-word b {
  font-weight: 600;
  color: var(--s-stm);
}
.product-pitch {
  margin: 14px 0 0;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 500;
  text-wrap: balance;
}
.product-desc {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--s-ink-2);
  text-wrap: pretty;
}
.spec {
  margin: 24px 0 28px;
  border-bottom: 1px solid var(--s-line);
}
.spec div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--s-line);
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--s-ink-3);
}
.spec dd {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Product stage: the app's own colours, whatever the site theme */
.product-sw {
  --p-bg: #0b1022;
  --p-bar: #10172d;
  --p-line: rgba(129, 140, 248, 0.2);
  --p-ink: #e8eaf7;
  --p-ink-2: #a3abcc;
  --p-edge: linear-gradient(90deg, #6366f1, #22d3ee);
  --p-on: rgba(129, 140, 248, 0.16);
}
.product-stm {
  --p-bg: #06101d;
  --p-bar: #0c1828;
  --p-line: rgba(251, 191, 36, 0.18);
  --p-ink: #eef1f6;
  --p-ink-2: #a5b0c2;
  --p-edge: linear-gradient(90deg, #f59e0b, #fbbf24);
  --p-on: rgba(251, 191, 36, 0.14);
}
.stage {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--p-bg);
  color: var(--p-ink);
  box-shadow:
    0 0 0 1px var(--p-line),
    0 18px 40px -24px rgba(8, 12, 24, 0.55);
}
.stage::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--p-edge);
}
.stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 10px 8px 16px;
  background: var(--p-bar);
  border-bottom: 1px solid var(--p-line);
}
.stage-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--p-ink);
}
.stage-name span {
  color: var(--p-ink-2);
}
.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.stage-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--p-ink-2);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}
.stage-tabs button:hover {
  color: var(--p-ink);
}
.stage-tabs button[aria-pressed='true'] {
  color: var(--p-ink);
  background: var(--p-on);
  border-color: var(--p-line);
}
html[data-view='standard'] .ds .stage-tabs button:focus-visible {
  outline-color: var(--p-ink);
}
.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 10px;
  background: var(--p-bg);
}
.shot figcaption {
  padding: 11px 16px 13px;
  border-top: 1px solid var(--p-line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--p-ink-2);
}

.soon {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border: 1px dashed var(--s-line-2);
  border-radius: 14px;
}
.soon-dwg {
  flex: none;
  width: 72px;
  stroke: var(--s-ink-3);
  stroke-width: 1.4;
}
.soon-name {
  margin: 8px 0 2px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.soon-desc {
  margin: 0;
  font-size: 15px;
  color: var(--s-ink-2);
}

/* ---------- Why these exist ---------- */
.note-block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  padding: 72px 0 88px;
  border-top: 1px solid var(--s-line);
}
.note-quote blockquote {
  margin: 20px 0 22px;
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.note-quote blockquote::before {
  content: '\201C';
  display: block;
  height: 30px;
  margin-bottom: 4px;
  font-size: 56px;
  line-height: 1;
  color: var(--s-blue);
}
.note-by {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.note-by span {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--s-ink-3);
}
.note-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 34px;
}
.note-text p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--s-ink-2);
  text-wrap: pretty;
}
.ds .note-text .note-terms {
  padding: 14px 16px;
  border-left: 2px solid var(--s-blue);
  background: var(--s-sunken);
  font-size: 14px;
  line-height: 1.6;
}

.home-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--s-line);
  font-size: 13.5px;
  color: var(--s-ink-3);
}

@media (max-width: 960px) {
  .hero,
  .product,
  .product-flip,
  .note-block {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    gap: 48px;
    padding: 56px 0 72px;
  }
  .product {
    gap: 32px;
  }
  .product-flip .product-info {
    order: 0;
  }
  .note-block {
    gap: 8px;
  }
  .note-text {
    padding-top: 0;
  }
}
@media (max-width: 560px) {
  .home {
    padding: 0 16px;
  }
  .hero {
    padding: 40px 0 56px;
  }
  .catalog-head {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 48px;
  }
  .sheet {
    padding: 12px 10px 8px;
  }
  .spec div {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }
  .stage-bar {
    padding-left: 12px;
  }
  .soon {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- About and tool overviews in the standard view ---------- */
html[data-view='standard'] .page {
  max-width: 920px;
  padding: 56px 24px 72px;
}
html[data-view='standard'] .intro {
  align-items: flex-start;
  text-align: left;
  margin-bottom: 32px;
}
html[data-view='standard'] .title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
html[data-view='standard'] .intro .lead {
  color: var(--s-ink-2);
}
html[data-view='standard'] .h2,
html[data-view='standard'] .h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}
html[data-view='standard'] .h2 {
  font-size: 26px;
  line-height: 1.2;
}
html[data-view='standard'] .h3 {
  font-size: 19px;
  line-height: 1.3;
}
html[data-view='standard'] .window {
  border: 1px solid var(--s-line);
  border-radius: 14px;
  box-shadow: none;
}
html[data-view='standard'] .about-sec {
  padding: 28px;
}
html[data-view='standard'] .about-me {
  grid-template-columns: minmax(0, 1fr);
}
html[data-view='standard'] .about-photo {
  display: none;
}
html[data-view='standard'] .pill {
  border: 1px solid var(--s-line-2);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 14px;
  background: transparent;
}
html[data-view='standard'] .about-tool {
  border-left-width: 2px;
  border-left-color: var(--s-stm);
}
html[data-view='standard'] .about-tool[data-tool='spanwise'] {
  border-left-color: var(--s-sw-a);
}
html[data-view='standard'] .btn {
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color 150ms ease;
}
html[data-view='standard'] .btn:hover {
  filter: none;
}
html[data-view='standard'] .btn:active {
  transform: none;
}
html[data-view='standard'] .ds a.btn-primary,
html[data-view='standard'] .ds a.btn-primary:hover {
  color: var(--on-primary);
}
html[data-view='standard'] .ds a.btn-accent,
html[data-view='standard'] .ds a.btn-accent:hover {
  color: var(--on-accent);
}
html[data-view='standard'] .ds a.btn-primary:hover {
  background: var(--s-solid-hover);
}
html[data-view='standard'] .btn .glyph,
html[data-view='standard'] .btn [aria-hidden='true'] {
  display: none;
}
html[data-view='standard'] .badge-ph,
html[data-view='standard'] .badge-ok {
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 9px;
}
html[data-view='standard'] .ph-main {
  align-items: flex-start;
  padding-top: 56px;
}
html[data-view='standard'] .ph-head {
  position: relative;
  padding: 28px 28px 24px;
  border-bottom: 0;
}
html[data-view='standard'] .ph-head h1 {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
}
/* Tool overviews open on the product's own colours, like its stage on the home page */
html[data-view='standard'] .ph-head[data-tool='spanwise'] {
  background: #0b1022;
  color: #e8eaf7;
}
html[data-view='standard'] .ph-head[data-tool='stm'] {
  background: #06101d;
  color: #eef1f6;
}
html[data-view='standard'] .ph-head::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
html[data-view='standard'] .ph-head[data-tool='spanwise']::after {
  background: linear-gradient(90deg, #6366f1, #22d3ee);
}
html[data-view='standard'] .ph-head .badge-ph {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #d8dce8;
}
html[data-view='standard'] .ph-body {
  padding: 28px;
  gap: 24px;
}
html[data-view='standard'] .ph-body .h2 {
  font-size: 13px;
  line-height: 18px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--s-ink-3);
}
html[data-view='standard'] .ph-list {
  color: var(--s-ink-2);
}
html[data-view='standard'] .ph-video {
  border: 1px solid var(--s-line);
  border-radius: 10px;
  background: #06101d;
}
