/* Hallmark · custom: IdRa brand (BRAND.md) · genre: modern-minimal · signature: the console and the Okta-style API call that produces it, changing together · deal: custom */
/* Hallmark · critique: the first version decorated an idea, so every section now shows a real screen or a real response, and no two neighbours share a layout. */
/* IdRa marketing site. Tokens come from tokens.css (an unchanged copy of brand/tokens.css). */
@font-face {
  font-family: "Gloock";
  src: url("/gloock.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  src: url("/atkinson-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono Variable";
  src: url("/atkinson-mono.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* The one exception to BRAND.md's single family. Remove Gloock here to revert it. */
  --font-display: "Gloock", Georgia, serif;
  --field: var(--ink);
  --on-field: #fff;
  --on-field-muted: var(--ink-foreground);
  --on-field-line: var(--ink-line);
  --code-bg: #062226;
  --code-text: #e6eeed;
  --shadow-soft: rgb(6 34 38 / 0.35);
  --shadow-deep: rgb(6 34 38 / 0.45);
  --shadow-code: rgb(2 16 19 / 0.7);
  --code-string: #9fe0c4;
  --code-key: var(--intaglio-light);
  --code-comment: #8fb0b3;
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --header-height: 4rem;
  --gutter: max(calc((100vw - 88rem) / 2), clamp(1.25rem, 3vw, 3rem));
  --section: clamp(5rem, 11vw, 10rem);
  --head-xl: clamp(2.75rem, 7vw, 6.5rem);
  --head-l: clamp(2.25rem, 4.6vw, 4.25rem);
  --head-s: clamp(1.5rem, 2.2vw, 2rem);
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

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

fieldset {
  border: 0;
  min-width: 0;
}

ol,
ul {
  list-style: none;
}

h1,
h2 {
  min-width: 0;
  font: 400 var(--head-l) / 1.04 var(--font-display);
  letter-spacing: -0.012em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: var(--head-xl);
  line-height: 0.98;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100% - clamp(2.5rem, 6vw, 6rem), 88rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.wrap.section + .wrap.section {
  padding-top: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
}

.skip:focus {
  top: 0.75rem;
}

/* Buttons. inline-block keeps the spaces around the translate="no" span. */
.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--duration-press) var(--ease-out),
    background-color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out);
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button-on-ink,
.button-on-intaglio {
  background: var(--intaglio-light);
  color: var(--sidebar-primary-foreground);
}

.button-secondary {
  border-color: var(--input);
  color: var(--foreground);
}

.button-ghost {
  border-color: var(--on-field-muted);
  color: var(--on-field);
}

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover {
    background: color-mix(in srgb, var(--primary) 86%, var(--foreground));
  }
  .button-on-ink:hover,
  .button-on-intaglio:hover {
    background: var(--on-field);
  }
  .button-secondary:hover {
    background: var(--muted);
  }
  .button-ghost:hover {
    background: var(--ink-raised);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.more-link {
  margin-top: 1.5rem;
  font-weight: 600;
}

/* Header and menus */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--field);
  color: var(--on-field-muted);
  border-bottom: 1px solid var(--on-field-line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-height);
}

.logo {
  flex: none;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-desktop > a,
.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--on-field-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color var(--duration-ui) var(--ease-out),
    background-color var(--duration-ui) var(--ease-out);
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu > summary {
  list-style: none;
}

.menu[open] > summary {
  background: var(--ink-raised);
  color: var(--on-field);
}

.chev {
  width: 0.75rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform var(--duration-ui) var(--ease-out);
}

.menu[open] .chev {
  transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .nav-desktop > a:hover,
  .menu > summary:hover {
    color: var(--on-field);
  }
}

.site-header :focus-visible {
  outline-color: var(--intaglio-light);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  padding-block: 2rem 2.5rem;
  background: var(--popover);
  color: var(--foreground);
  box-shadow: 0 24px 48px -24px var(--shadow-soft);
  transform-origin: top;
  transition:
    opacity var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
  @starting-style {
    opacity: 0;
    transform: translateY(-0.375rem);
  }
}

.menu-mega,
.menu-small {
  padding-inline: max(clamp(1.25rem, 3vw, 3rem), calc((100% - 88rem) / 2));
}

.menu-mega {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
}

.menu-one {
  max-width: 44rem;
}

.menu-grid a {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius);
  color: var(--foreground);
  text-decoration: none;
  transition: background-color var(--duration-press) var(--ease-out);
}

.menu-grid a:focus-visible,
.menu-grid a:hover {
  background: var(--muted);
}

.menu-grid strong {
  display: block;
  font-weight: 650;
}

.menu-grid span {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.4;
}

.menu-all {
  display: inline-block;
  margin: 1rem 0 0 0.75rem;
  font-weight: 600;
}

.menu-preview img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-actions .button {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
}

.menu-mobile {
  display: none;
}

.menu-mobile summary {
  padding: 0.5rem;
}

.menu-mobile summary svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.mobile-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.125rem;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--popover);
}

.mobile-panel a {
  display: block;
  padding: 0.625rem 0;
  color: var(--foreground);
  font-weight: 550;
  text-decoration: none;
}

.mobile-panel ul {
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  margin-block: 0.25rem;
}

.mobile-panel ul a {
  font-weight: 400;
}

@media (max-width: 62rem) {
  .nav-desktop {
    display: none;
  }
  .menu-mobile {
    display: block;
  }
}

/* Heroes: Ink as a whole field, with the line-work once */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(3rem, 6vw, 5.5rem) 0;
  background: var(--field);
  color: var(--on-field-muted);
}

.hero h1 {
  color: var(--on-field);
}

.hero > .wrap {
  position: relative;
}

.rosette {
  position: absolute;
  top: -22rem;
  right: -18rem;
  width: 62rem;
  aspect-ratio: 1;
  color: var(--intaglio-light);
  opacity: 0.16;
  pointer-events: none;
}

.hero-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-side p {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.45;
}

/* Home: the head takes the full width, so the console and its API call reach the first screen. */
.hero-home .hero-lead {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
}

.hero-home .hero-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 3rem;
}

.hero-home .hero-side p {
  max-width: 40ch;
}

.hero-home .actions {
  margin-top: 0;
}

.hero-plain {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-plain .hero-lead {
  padding-bottom: 0;
}

.crumb {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.crumb a {
  color: inherit;
}

@media (max-width: 56rem) {
  .hero-lead {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Screens: real captures, in a slot with the theme's radius and an inset line */
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--border);
}

.shot img {
  width: 100%;
}

.shot-d {
  display: none;
}

html.dark .shot-l {
  display: none;
}

html.dark .shot-d {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html:not(.light) .shot-l {
    display: none;
  }
  html:not(.light) .shot-d {
    display: block;
  }
}

/* On a phone a whole console is unreadable, so show its top-left at reading size. */
@media (max-width: 48rem) {
  .shot-hero img,
  .shot-wide img {
    width: 175%;
    max-width: none;
  }
}

/* Narrower still: skip the sidebar, so the page's own content is what you read. */
@media (max-width: 40rem) {
  .shot-hero,
  .shot-wide {
    aspect-ratio: 1.1;
  }

  .shot-hero img,
  .shot-wide img {
    width: 230%;
    margin-left: -41%;
  }

  .hero .actions .button {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
}

.hero .shot {
  box-shadow: 0 0 0 1px var(--on-field-line);
}

.shot-hero {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

.shot-wide {
  box-shadow:
    0 0 0 1px var(--border),
    0 40px 80px -48px var(--shadow-deep);
}

/* Home: tabs over the console, with the API call lying on the screen */
.views-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.views-tabs button {
  flex: none;
  padding: 0.5rem 0.875rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-field-muted);
  font: 550 0.9375rem/1.25 var(--font-sans);
  cursor: pointer;
  transition:
    color var(--duration-ui) var(--ease-out),
    background-color var(--duration-ui) var(--ease-out),
    transform var(--duration-press) var(--ease-out);
}

.views-tabs button:active {
  transform: scale(0.97);
}

.views-tabs [aria-selected="true"] {
  background: var(--intaglio-light);
  color: var(--sidebar-primary-foreground);
}

.views-tabs button:focus-visible {
  outline-color: var(--intaglio-light);
}

.view {
  position: relative;
}

.view[hidden] {
  display: none;
}

.view .code {
  position: absolute;
  right: clamp(-1rem, -1vw, 0rem);
  top: clamp(4rem, 8vw, 7rem);
  width: min(32rem, 44%);
  box-shadow: 0 32px 64px -24px var(--shadow-code);
}

@media (max-width: 62rem) {
  .view {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .view .code {
    position: static;
    width: 100%;
  }
}

/* Code */
.code {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--on-field-line);
  border-radius: var(--radius-panel);
  background: var(--code-bg);
  color: var(--code-text);
}

.code figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--on-field-line);
  color: var(--on-field-muted);
  font: 500 0.8125rem/1.4 var(--font-mono);
  overflow-wrap: anywhere;
}

.code figcaption small {
  display: block;
  opacity: 0.75;
  font: inherit;
}

.code pre {
  overflow-x: auto;
  padding: 1rem;
  font: 400 0.8125rem/1.6 var(--font-mono);
  font-variant-ligatures: none;
}

.code pre code {
  font-size: inherit;
}

.code .k {
  color: var(--code-key);
}

.code .s {
  color: var(--code-string);
}

.code .c {
  color: var(--code-comment);
}

.code :focus-visible,
.code pre:focus-visible {
  outline-color: var(--intaglio-light);
  outline-offset: -2px;
}

.copy {
  flex: none;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--on-field-line);
  border-radius: var(--radius-stamp);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Ledger: figures under a rule, split by hairlines. Home and comparison. */
.ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ledger p {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2.5rem);
  border-left: 1px solid var(--border);
}

.ledger p:first-child {
  padding-left: 0;
  border-left: 0;
}

.ledger strong {
  display: block;
  font: 400 clamp(3rem, 5.5vw, 5rem) / 1 var(--font-display);
}

.ledger a {
  display: block;
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .ledger a:hover span {
    text-decoration: underline;
  }
}

.ledger small {
  color: var(--muted-foreground);
  font-size: 0.34em;
  white-space: nowrap;
}

.ledger p > span,
.ledger a > span {
  display: block;
  max-width: 19rem;
  margin-top: 0.875rem;
  color: var(--foreground);
  line-height: 1.4;
}

@media (max-width: 48rem) {
  .ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ledger p:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .ledger p:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

/* Segmented control: native radios. The access check and the comparison's filter. */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  padding: 0.1875rem;
  border-radius: var(--radius);
  background: var(--muted);
}

.seg label {
  position: relative;
  cursor: pointer;
}

.seg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg span {
  display: block;
  padding: 0.4375rem 0.75rem;
  border-radius: calc(var(--radius) - 0.1875rem);
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  transition:
    background-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out);
}

.seg input:checked + span {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 0 0 1px var(--border);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .seg label:hover span {
    color: var(--foreground);
  }
}

/* Home: the access check, as a trace */
.try {
  padding-block: var(--section);
}

.try-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-radius: var(--radius-panel);
  box-shadow: 0 0 0 1px var(--border);
  overflow: hidden;
  background: var(--card);
}

.situation {
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.situation-who {
  margin-bottom: 1rem;
  font: 400 var(--head-s) / 1.2 var(--font-display);
}

.situation-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  align-items: center;
  padding-block: 0.75rem;
  border-top: 1px solid var(--border);
}

.situation-row > span:first-child {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.situation-row .seg {
  justify-self: start;
}

.trace {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--field);
  color: var(--on-field-muted);
  color-scheme: dark;
}

.trace-steps li {
  position: relative;
  min-height: 4.25rem;
  padding-left: 2.5rem;
}

/* The line between checks stops where the check stopped. */
.trace-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.6875rem;
  top: 1.5rem;
  bottom: 0;
  width: 1px;
  background: var(--on-field-line);
}

.trace-steps li.is-pass:not(:last-child)::after {
  background: var(--intaglio-light);
}

.trace-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.4375rem;
  height: 1.4375rem;
  border: 1px solid var(--on-field-muted);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out);
}

.trace-steps .is-pass::before {
  content: "✓";
  border-color: var(--intaglio-light);
  background: var(--intaglio-light);
  color: var(--sidebar-primary-foreground);
}

.trace-steps .is-fail::before {
  content: "✕";
  border-color: var(--destructive);
  background: var(--destructive);
  color: var(--sidebar-primary-foreground);
}

.trace-steps .is-ask::before {
  content: "?";
  border-color: var(--warning);
  background: var(--warning);
  color: var(--sidebar-primary-foreground);
}

.trace-steps .is-skip {
  opacity: 0.72;
}

.trace-steps strong {
  display: block;
  color: var(--on-field);
  font-weight: 650;
  line-height: 1.4375rem;
}

.trace-steps span {
  display: block;
  padding-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.trace-result {
  padding-top: 1.25rem;
  border-top: 1px solid var(--on-field-line);
}

.trace-result strong {
  display: block;
  font: 400 clamp(2.5rem, 4.5vw, 3.75rem) / 1 var(--font-display);
}

.trace-result code {
  display: block;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.verdict-good {
  color: var(--success);
}

.verdict-warn {
  color: var(--warning);
}

.verdict-bad {
  color: var(--destructive);
}

.note {
  max-width: 68ch;
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

@media (max-width: 62rem) {
  .try-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .situation-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Illustrations: see site/illustrations.ts */
.il {
  --il-line: var(--input);
  --il-accent: var(--primary);
  --il-box: var(--card);
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  color: var(--foreground);
}

.il text {
  fill: currentColor;
  font: 500 14px var(--font-sans);
}

.il .il-muted {
  fill: var(--muted-foreground);
}

.il .il-bold {
  font-weight: 700;
  font-size: 16px;
}

.il .il-code {
  fill: var(--muted-foreground);
  font: 500 12px var(--font-mono);
}

.il .il-on-hatch {
  paint-order: stroke;
  stroke: var(--il-box);
  stroke-width: 5px;
  stroke-linejoin: round;
}

.il-line,
.il-accent,
.il-strong,
.il-box,
.il-plate {
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.il-line {
  fill: none;
  stroke: var(--il-line);
}

.il-dash {
  stroke-dasharray: 3 4;
}

.il-accent {
  fill: none;
  stroke: var(--il-accent);
}

.il-strong {
  fill: none;
  stroke: var(--il-accent);
  stroke-width: 3;
}

.il-box {
  fill: var(--il-box);
  stroke: var(--il-line);
}

.il-plate {
  fill: var(--il-box);
  stroke: var(--il-accent);
}

.il-mini {
  flex: none;
  width: clamp(2rem, 3.4vw, 3rem);
}

.story-art,
.feature-art {
  min-width: 0;
}

.story .ticks {
  margin-top: 1.25rem;
}

/* The bill: words in HTML so they stay readable; bars drawn to scale. */
.bill {
  --bill-bar: var(--input);
  --bill-rule: var(--primary);
  --bill-muted: var(--muted-foreground);
  max-width: 34rem;
  font-size: 0.9375rem;
}

.price-band .bill {
  --bill-bar: var(--on-field-muted);
  --bill-rule: var(--on-field);
  --bill-muted: var(--on-field-muted);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.bill figcaption {
  margin-bottom: 1rem;
  color: var(--bill-muted);
}

.bill ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bill li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.375rem 1rem;
  margin-top: 1rem;
  font-weight: 500;
}

.bill strong {
  font-weight: 500;
}

.bill svg {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 0.625rem;
  fill: var(--bill-bar);
}

.bill li:last-child {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bill-rule);
  font-weight: 700;
}

.bill li:last-child strong {
  font-weight: 700;
}

.bill li:last-child svg {
  display: none;
}

/* Home: overlapping sign-in and My Apps */
.door {
  overflow: clip;
  padding-block: var(--section);
  background: var(--muted);
}

.door-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.door-copy p {
  margin-top: 1.25rem;
}

.door-shots {
  position: relative;
  grid-column: 1 / -1;
  margin-top: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 7%;
}

.door-login {
  width: 76%;
}

.door-apps {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  box-shadow:
    0 0 0 1px var(--border),
    0 32px 64px -24px var(--shadow-deep);
}

.door-apps img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

@media (max-width: 56rem) {
  .door-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .door-login {
    width: 100%;
  }
  .door-apps {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
  }
  .door-shots {
    padding-bottom: 0;
  }
}

/* On a phone: the sign-in card and the first tiles at reading size. */
@media (max-width: 40rem) {
  .door-login {
    aspect-ratio: 1.1;
  }

  .door-login img {
    width: 190%;
    max-width: none;
    margin: -14% 0 0 -45%;
  }

  .door-apps {
    aspect-ratio: 16 / 9;
  }

  .door-apps img {
    width: 190%;
    max-width: none;
    aspect-ratio: auto;
  }
}

/* Ink bands */
.band-ink {
  padding-block: var(--section);
  background: var(--field);
  color: var(--on-field-muted);
}

.band-ink h2 {
  color: var(--on-field);
}

.band-ink a:not(.button) {
  color: var(--intaglio-light);
}

.api-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.api-grid p {
  margin-top: 1.5rem;
  max-width: 48ch;
}

.resources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

@media (max-width: 62rem) {
  .api-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Home: log, full width */
.record {
  padding-block: var(--section) 0;
}

.record-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

@media (max-width: 56rem) {
  .record-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Home: addresses as type */
.tenants {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: var(--section);
}

.tenants p {
  margin-top: 1.25rem;
}

.hosts {
  font: 400 clamp(1.25rem, 3vw, 2.75rem) / 1.25 var(--font-display);
}

.hosts li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
}

.hosts span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hosts i {
  flex: 1;
  min-width: 1rem;
  border-top: 1px solid var(--input);
}

@media (max-width: 56rem) {
  .tenants {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Home: the price, set huge */
.price-band {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--intaglio);
  color: var(--on-field);
}

.price-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.price-band h2 > span:first-child {
  display: block;
  font-size: clamp(7rem, 20vw, 17rem);
  line-height: 0.85;
}

.price-word {
  display: block;
  margin-top: 1.25rem;
  font-size: var(--head-s);
}

.price-band .button-ghost {
  border-color: var(--on-field);
}

.price-band a:focus-visible {
  outline-color: var(--on-field);
}

@media (max-width: 56rem) {
  .price-band-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Choice: two lists under one rule */
.choice {
  padding-block: var(--section);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 2rem;
  border-top: 2px solid var(--foreground);
}

.plain li,
.ticks li {
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--border);
}

.choice h3 {
  margin-bottom: 0.75rem;
}

.ticks li {
  position: relative;
  padding-left: 1.5rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 1.05em;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

@media (max-width: 48rem) {
  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.choice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: calc(var(--section) * -0.5);
  font-weight: 600;
}

/* Closing */
.closing {
  overflow: clip;
  padding-top: var(--section);
  background: var(--field);
  color: var(--on-field-muted);
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.closing-copy {
  padding-bottom: var(--section);
}

.closing h2 {
  max-width: 12ch;
  color: var(--on-field);
  font-size: var(--head-xl);
}

.closing p {
  max-width: 48ch;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.45;
}

.closing-card {
  justify-self: end;
  width: min(100%, 26rem);
  margin-bottom: -5rem;
  border-radius: var(--radius-panel);
  box-shadow: 0 32px 64px -24px var(--shadow-code);
}

.closing a:focus-visible {
  outline-color: var(--intaglio-light);
}

@media (max-width: 56rem) {
  .closing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .closing-copy {
    padding-bottom: 0;
  }
  .closing-card {
    justify-self: start;
    width: min(100%, 22rem);
  }
}

/* Inner pages */
.hero-product h1 {
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
}

/* Inner heroes: the console runs off the right edge instead of sitting framed. */
.shot-rise {
  margin-right: calc(var(--gutter) * -1);
  margin-bottom: -1px;
  border-start-end-radius: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head:only-child {
  padding-bottom: 0;
}

.band-ink .section-head code {
  color: var(--on-field);
}

.story {
  display: grid;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: var(--section);
  align-items: start;
}

.story p {
  margin-top: 1.25rem;
  max-width: 50ch;
}

.story h2,
.story-wide h2,
.limits h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.story-a {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.story-b {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.story-b > :first-child {
  order: 2;
}

.band,
/* A screen beside its words, touching the page edge. The side alternates from page to page. */
.story-wide {
  overflow: clip;
  padding-block: var(--section);
  background: var(--muted);
}

.story-wide-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}

.story-wide-grid p {
  margin-top: 1.25rem;
}

.story-wide-grid .ticks {
  margin-top: 1.25rem;
}

.shot-bleed {
  margin-right: calc(var(--gutter) * -1);
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.story-wide-b .story-wide-grid {
  grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
}

/* These screens are short, so trim the empty lower part of the console. */
@media (min-width: 56.01rem) {
  .shot-bleed img {
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    object-position: top left;
  }
}

.story-wide-b .shot-bleed {
  order: -1;
  margin-right: 0;
  margin-left: calc(var(--gutter) * -1);
  border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
}

.limits {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--field);
  color: var(--on-field-muted);
}

.limits h2 {
  color: var(--on-field);
}

.limits a {
  color: var(--intaglio-light);
}

.limits p {
  margin-top: 1rem;
}

.limits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem clamp(2rem, 5vw, 6rem);
}

.limits .plain li {
  border-color: var(--on-field-line);
}

.standards span {
  margin-right: 0.5rem;
  color: var(--on-field);
  font-weight: 650;
}

.next-link a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--foreground);
  text-decoration: none;
}

.next-link span {
  color: var(--muted-foreground);
}

.next-link strong {
  font: 400 var(--head-l) / 1.05 var(--font-display);
  transition: color var(--duration-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .next-link a:hover strong {
    color: var(--primary);
  }
}

.index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
}

.index .il {
  margin-bottom: 1.5rem;
}

.index a {
  display: block;
  padding-block: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--foreground);
  text-decoration: none;
}

.index h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  transition: color var(--duration-ui) var(--ease-out);
}

.index p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

@media (hover: hover) and (pointer: fine) {
  .index a:hover h2 {
    color: var(--primary);
  }
}

@media (max-width: 56rem) {
  .section-head,
  .story-a,
  .story-b,
  .story-wide-grid,
  .story-wide-b .story-wide-grid,
  .limits-grid,
  .index {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-b > :first-child {
    order: 0;
  }
  .standards {
    grid-column: auto;
  }
}

/* Comparison */
.tally {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  color-scheme: dark;
}

.tally .ledger p {
  border-color: var(--on-field-line);
  padding-block: 1.5rem 0;
}

.tally .ledger strong {
  color: var(--on-field);
}

.tally .ledger p > span {
  color: var(--on-field-muted);
}

.table-scroll {
  overflow-x: auto;
}

.matrix {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.matrix th,
.matrix td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.matrix thead th {
  color: var(--muted-foreground);
  font-weight: 500;
}

.matrix tbody th {
  font-weight: 600;
}

.matrix .col-us {
  padding-inline: 1rem;
  background: var(--card);
  font-weight: 600;
}

.matrix thead .col-us {
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  color: var(--foreground);
}

/* On a phone a table becomes a list, so nothing is hidden behind a sideways scroll. Each cell carries its column's name. */
@media (max-width: 40rem) {
  .table-scroll {
    overflow-x: visible;
  }

  .matrix,
  .matrix tbody,
  .matrix tr,
  .matrix th,
  .matrix td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .matrix thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .matrix tbody tr:not(.matrix-group) {
    padding-block: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .matrix td {
    margin-top: 0.375rem;
  }

  .matrix td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted-foreground);
    font-weight: 500;
  }

  .matrix-group th {
    padding-top: 2.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--foreground);
  }

  .matrix .col-us {
    padding-inline: 0;
    background: none;
  }

  .matrix-status tbody tr:not(.matrix-group) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1rem;
  }

  .matrix-status .cell-status {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    white-space: nowrap;
  }

  .matrix-status .cell-note {
    grid-column: 1 / -1;
    order: 1;
  }

  .matrix-status .cell-them {
    grid-column: 1 / -1;
    order: 2;
    color: var(--muted-foreground);
  }
}

/* The long matrix keeps its column names in view. Narrow screens keep the sideways scroll, which rules out sticky. */
@media (min-width: 62rem) {
  .matrix-area .table-scroll {
    overflow-x: visible;
  }

  .matrix-area .matrix thead th {
    position: sticky;
    top: var(--header-height);
    z-index: 1;
    background: var(--background);
    box-shadow: inset 0 -1px var(--border);
  }
}

.matrix-group th {
  padding-top: 2.5rem;
  border-bottom: 2px solid var(--foreground);
  font: 400 var(--head-s) / 1.2 var(--font-display);
}

.table-ink .matrix th,
.table-ink .matrix td {
  border-color: var(--on-field-line);
}

.table-ink .matrix thead th {
  color: var(--on-field-muted);
}

.table-ink .matrix tbody th {
  color: var(--on-field);
}

.band-ink .note {
  color: var(--on-field-muted);
}

.status {
  font-weight: 600;
  white-space: nowrap;
}

.status-good {
  color: var(--success);
}

.status-warn {
  color: var(--warning);
}

.status-plan {
  color: var(--info);
}

.status-muted {
  color: var(--muted-foreground);
}

.status-bad {
  color: var(--destructive);
}

/* Compatibility */
.hero-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

@media (max-width: 56rem) {
  .hero-code {
    grid-template-columns: minmax(0, 1fr);
  }
}

.standards-list > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
}

.standards-list dt {
  font-weight: 650;
}

.standards-list dt .status {
  display: block;
  font-size: 0.875rem;
}

.handover {
  position: relative;
  height: clamp(5rem, 9vw, 8rem);
  margin-bottom: 1.5rem;
}

.handover svg {
  display: block;
  width: 100%;
  height: 100%;
}

.handover-okta {
  fill: var(--secondary);
}

.handover-idra {
  fill: var(--primary);
}

.handover > span {
  position: absolute;
  font-weight: 650;
}

.handover-a {
  top: 12%;
  left: 0.75rem;
  color: var(--secondary-foreground);
}

.handover-b {
  right: 0.75rem;
  bottom: 12%;
  color: var(--primary-foreground);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  border-top: 2px solid var(--foreground);
}

.steps li {
  counter-increment: step;
  padding-top: 1.25rem;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.75rem;
  font: 400 clamp(2.5rem, 4vw, 3.5rem) / 1 var(--font-display);
}

.steps p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

@media (max-width: 62rem) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .standards-list > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.125rem;
  font-size: 1.125rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--primary);
  font-weight: 400;
  transition: transform var(--duration-ui) var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  max-width: 68ch;
  padding-bottom: 1.5rem;
}

.faq-groups {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

.faq-groups > section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
}

.faq-groups h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* Solutions, security, pricing, open source */
.feature-list {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  padding-block: clamp(3rem, 6vw, 6rem);
  scroll-margin-top: var(--header-height);
}

.feature + .feature {
  border-top: 1px solid var(--border);
}

.feature h2,
.two-up h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.feature p,
.two-up p {
  margin-top: 1.25rem;
  max-width: 54ch;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 6rem);
}

.two-up .ticks,
.two-up .plain {
  margin-top: 1.25rem;
}

.spec > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
}

.spec dt {
  font-weight: 650;
}

.legal {
  max-width: 48rem;
}

.legal h2 {
  margin-block: 2.5rem 1rem;
  font-size: 1.75rem;
}

.legal p,
.legal ul {
  margin-block: 0 1rem;
}

.legal ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal a {
  text-decoration: underline;
}

.legal-date {
  color: var(--muted-foreground);
}

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.price-grid {
  align-items: start;
}

.price-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
}

.price-plans .price-tag {
  font-size: 2.25rem;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 1.5rem;
  border-top: 2px solid var(--foreground);
}

.price h2 {
  font: 650 1.25rem/1.3 var(--font-sans);
  letter-spacing: 0;
}

.price-tag {
  margin-block: 1rem;
  font: 400 var(--head-l) / 1 var(--font-display);
}

.price-lead {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 0;
  border-radius: var(--radius-panel);
  background: var(--field);
  color: var(--on-field-muted);
}

.price:not(.price-lead) {
  padding-bottom: clamp(1.5rem, 4vw, 3.5rem);
}

.price-lead h2,
.price-lead .price-tag {
  color: var(--on-field);
}

.price-lead .price-tag {
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 0.9;
}

.price-lead a:focus-visible {
  outline-color: var(--intaglio-light);
}

.price .button {
  margin-top: auto;
}

.price > p:not(.price-tag) {
  margin-bottom: 1.5rem;
}

@media (max-width: 56rem) {
  .feature,
  .two-up,
  .spec > div,
  .price-grid,
  .faq-groups > section {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */
.site-footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--on-field-line);
  background: var(--field);
  color: var(--on-field-muted);
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.footer-brand p {
  max-width: 28ch;
  margin-top: 1.5rem;
  color: var(--on-field);
  font: 400 clamp(1.5rem, 2.4vw, 2.25rem) / 1.15 var(--font-display);
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: var(--on-field);
  font: 650 0.9375rem/1.4 var(--font-sans);
  letter-spacing: 0;
}

.site-footer li a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--on-field-muted);
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--on-field);
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: var(--intaglio-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-field-line);
  font-size: 0.875rem;
}

@media (max-width: 62rem) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

.theme-switcher[hidden] {
  display: none;
}

.theme-switcher {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.125rem;
  border: 1px solid var(--on-field-muted);
  border-radius: var(--radius);
}

.theme-switcher label {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: calc(var(--radius) - 0.125rem);
  cursor: pointer;
}

.theme-switcher label:hover {
  color: var(--on-field);
}

.theme-switcher label:has(:checked) {
  background: var(--intaglio-light);
  color: var(--sidebar-primary-foreground);
}

.theme-switcher label:has(:focus-visible) {
  outline: 2px solid var(--intaglio-light);
  outline-offset: 2px;
}

.theme-switcher input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.theme-switcher svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Comparisons */
.cite {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.versus {
  padding-block: clamp(2rem, 5vw, 4rem) 0;
}

.versus a {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.versus h2 {
  transition: color var(--duration-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .versus a:hover h2 {
    color: var(--primary);
  }
}

@media (max-width: 48rem) {
  .versus a {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 56rem) {
  .story-wide-b .shot-bleed {
    order: 0;
  }
}

/* Motion tied to scrolling, so it follows what the person does and stops when they stop.
   Each one says something: lines connect, the door's two screens meet, the sign-in card arrives. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .il path[pathLength] {
      stroke-dasharray: 1;
      animation: il-draw linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 45%;
    }

    .door-login,
    .door-apps,
    .closing-card,
    .record .shot-wide,
    .shot-bleed,
    .hosts i {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 35%;
    }

    .door-login {
      --from: -2rem, 1rem;
    }

    .door-apps {
      --from: 2.5rem, 3.5rem;
    }

    .closing-card {
      --from: 0, 4rem;
    }

    .record .shot-wide {
      --from: 0, 2.5rem;
    }

    .story-wide-a .shot-bleed {
      --from: 4rem, 0;
    }

    .story-wide-b .shot-bleed {
      --from: -4rem, 0;
    }

    .hosts i {
      transform-origin: left;
      animation-name: reach;
    }

    @keyframes il-draw {
      from {
        stroke-dashoffset: 1;
      }
      to {
        stroke-dashoffset: 0;
      }
    }

    @keyframes rise {
      from {
        transform: translate(var(--from, 0, 2rem));
      }
      to {
        transform: none;
      }
    }

    @keyframes reach {
      from {
        transform: scaleX(0);
      }
      to {
        transform: none;
      }
    }
  }
}
