/* Cutwise launch site. Tokens are the app's own (docs/DESIGN.md), per docs/site/BRIEF.md. */
:root {
  --paper: #f4eee3;
  --surface: #fffbf4;
  --sunk: #e9e0d1;
  --ink: #1f1813;
  --ink-muted: #65574a;
  --rule: #d7cab6;
  --rule-strong: #b9a892;
  --oxblood: #7a1f2b;
  --oxblood-deep: #5f1520;
  --on-oxblood: #fffbf4;
  --tile: #2f5d50;
  --bone: #cfc2ae;
  --focus: #1f5fa8;
  --shadow: 32 20 12;
  --sa: 0.08;
  --sb: 0.18;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif-condensed, Impact, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pad: clamp(1.25rem, 4vw, 3rem);
  --rhythm: clamp(4.5rem, 10vw, 9rem);
  --radius: 1.5rem;
  --paper-shadow: 0 1px 2px rgb(var(--shadow) / var(--sa)), 0 8px 24px -8px rgb(var(--shadow) / var(--sb));
  --lift-shadow: 0 2px 4px rgb(var(--shadow) / var(--sa)), 0 16px 48px -8px rgb(var(--shadow) / var(--sb));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17120f;
    --surface: #221a16;
    --sunk: #2c231e;
    --ink: #f3eadd;
    --ink-muted: #bdae9c;
    --rule: #42362e;
    --rule-strong: #66574b;
    --oxblood: #e8949a;
    --oxblood-deep: #f1b0b4;
    --on-oxblood: #2a0b10;
    --tile: #8cc5b2;
    --bone: #5a4c40;
    --focus: #8cbcff;
    --shadow: 0 0 0;
    --sa: 0.35;
    --sb: 0.5;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
  font-weight: 700;
}
h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 20ch;
}
h3 {
  font-size: 1.5rem;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.wrap {
  max-width: calc(72rem + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section {
  padding-block: var(--rhythm) 0;
}
.label,
.mono-line {
  font: 500 0.75rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}
.mono-line {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 0;
  background: var(--oxblood);
  color: var(--on-oxblood);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgb(var(--shadow) / var(--sa));
  transition:
    background-color 160ms var(--ease),
    transform 120ms var(--ease);
}
.btn:hover {
  background: var(--oxblood-deep);
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.9375rem;
}
.btn-lg {
  min-height: 52px;
  padding: 0 1.75rem;
  font-size: 1.0625rem;
}
.btn-ghost {
  background: transparent;
  color: var(--oxblood);
  box-shadow: inset 0 0 0 1.5px var(--oxblood);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--oxblood-deep);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 600;
  color: var(--oxblood);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 160ms var(--ease);
}
.text-link:hover {
  color: var(--oxblood-deep);
  text-decoration-thickness: 2px;
}
.text-link:active {
  transform: translateY(1px);
}

/* 0. Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: border-color 200ms var(--ease);
}
.js .top:not(.scrolled) {
  border-bottom-color: transparent;
}
.top-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5rem;
  text-decoration: none;
  min-height: 44px;
  padding-block: 6px;
}
.wordmark {
  font: 800 1.5rem/0.8 var(--display);
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-bottom: 1px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a:not(.btn) {
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink-muted);
  padding-block: 0.6rem;
  transition: color 160ms var(--ease);
}
.nav a:not(.btn):hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.nav a:not(.btn):active {
  color: var(--oxblood);
}
@media (max-width: 719px) {
  .nav a:not(.btn) {
    display: none;
  }
}

/* 1. Hero */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 3rem;
  min-height: min(88vh, 54rem);
  padding-block: 3rem 2rem;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(3rem, 8vw + 1rem, 7.5rem);
}
.hero h1 em {
  font-style: normal;
  white-space: nowrap;
  color: var(--oxblood);
}
.sub {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 34ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}
.hero .mono-line {
  margin-top: 1.25rem;
}
.art-wrap {
  container-type: inline-size;
  min-width: 0;
}
.art {
  /* Drawn in em at 16px; shrinks with the column so nothing clips at 390px. */
  font-size: min(16px, calc(100cqi / 27.5));
  position: relative;
  width: 27.5em;
  height: 31em;
  margin-inline: auto;
  perspective: 900px;
  --s: 0;
  --px: 0;
  --py: 0;
}
.plane {
  position: absolute;
}
.js .plane {
  animation: rise 520ms var(--ease) both;
}
.p1 {
  left: 6em;
  top: 0.5em;
}
.p2 {
  left: 0.75em;
  top: 15.5em;
  animation-delay: 90ms !important;
}
.p3 {
  left: 11.6em;
  top: 12.6em;
  animation-delay: 180ms !important;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.drift {
  transform: translateY(calc(var(--s) * var(--k) * -1px)) rotate(calc(var(--s) / 400 * var(--r, 0) * 1deg));
}
.tilt {
  transform: rotateX(calc(var(--py) * -3deg * var(--t))) rotateY(calc(var(--px) * 3deg * var(--t)));
  transition: transform 500ms var(--ease);
}
.mini-sheet {
  width: 21.25em;
  height: 27.5em;
  padding: 1.6em 1.5em;
  background:
    repeating-linear-gradient(transparent 0 27px, var(--rule) 27px 28px) 0 4.4em / 100% 100% no-repeat,
    var(--surface);
  border-radius: 4px;
  box-shadow: var(--paper-shadow);
  transform: rotate(-3deg);
}
.mini-title {
  font: 800 1.45em/1 var(--display);
  letter-spacing: 0.02em;
  padding-bottom: 0.6em;
  border-bottom: 3px solid var(--oxblood);
}
.mini-rows {
  margin-top: 0.9em;
  font: 500 0.75em/1 var(--mono);
  font-variant-numeric: tabular-nums;
  mask-image: linear-gradient(#000 45%, transparent 92%);
  -webkit-mask-image: linear-gradient(#000 45%, transparent 92%);
}
.mini-rows p {
  display: flex;
  justify-content: space-between;
  gap: 0.75em;
  height: 3.111em;
  align-items: center;
}
.mini-rows b {
  flex: none;
  white-space: nowrap;
}
.mini-rows span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-rows .ghost span,
.mini-rows .ghost b {
  height: 0.6em;
  border-radius: 2px;
  background: var(--sunk);
}
.mini-rows .ghost span {
  width: 60%;
}
.mini-rows .ghost b {
  width: 16%;
}
.ticket {
  width: 13.75em;
  padding: 1.1em 0.85em 1.6em;
  background: var(--surface);
  font: 500 0.75em/1 var(--mono);
  font-size: 1em;
  box-shadow: var(--paper-shadow);
  transform: rotate(4deg);
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 0.75em 100%;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 0.75em 100%;
}
.ticket p,
.ticket hr {
  font-size: 0.6875em;
}
.t-head {
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 0.9em;
}
.lead-row {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lead-row i {
  flex: 1;
  min-width: 0.5em;
  border-bottom: 1.5px dotted var(--rule-strong);
  transform: translateY(-0.25em);
}
.ticket .lead-row {
  margin-block: 0.55em;
}
.ticket hr {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 0.8em 0;
}
.ticket .t-big {
  color: var(--oxblood);
}
.ticket .t-big b {
  font-size: 2.1818em;
  line-height: 1;
}
.ticket b {
  font-weight: 500;
}
.tag {
  position: relative;
  width: 4.5em;
  height: 4.5em;
  transform: rotate(-8deg);
  filter: drop-shadow(0 4px 6px rgb(var(--shadow) / calc(var(--sb) * 1.2)));
}
.string {
  position: absolute;
  width: 5em;
  height: 3.75em;
  left: -2.4em;
  top: -0.6em;
}

/* 2. The question */
.ox-rule {
  border: 0;
  height: 3px;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  background: var(--oxblood);
  transform-origin: left;
}
.js .ox-rule[data-reveal] {
  transform: scaleX(0);
  transition: transform 600ms var(--ease);
}
.js .ox-rule.in {
  transform: none;
}
.q-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem 1.5rem;
}
.q-h {
  grid-column: 1 / -1;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  max-width: 18ch;
}
.q-body {
  grid-column: 5 / -1;
  display: grid;
  gap: 1.1rem;
  max-width: 60ch;
}

/* Reveals */
.js [data-reveal]:not(.ox-rule):not(.paper):not(.watermark) {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms var(--ease) var(--d, 0ms),
    transform 520ms var(--ease) var(--d, 0ms);
}
.js [data-reveal].in:not(.ox-rule):not(.paper):not(.watermark) {
  opacity: 1;
  transform: none;
}

/* 3. How it works */
.steps {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.steps li {
  padding: 0.5rem clamp(1.25rem, 3vw, 2.5rem);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.steps li:first-child {
  padding-left: 0;
}
.steps li + li {
  border-left: 1px solid var(--rule);
}
.steps h3 {
  font-size: 1.875rem;
}
.steps p:not(.label) {
  max-width: 60ch;
}
.icon {
  fill: none;
  stroke: var(--oxblood);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.5rem;
}
.js .icon * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 700ms var(--ease) calc(var(--d, 0ms) + 150ms);
}
.js .in .icon * {
  stroke-dashoffset: 0;
}

/* 4. The numbers */
.panel {
  margin-inline: var(--pad);
  max-width: 76rem;
  background: var(--sunk);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4rem);
}
@media (min-width: 1360px) {
  .panel {
    margin-inline: auto;
  }
}
.panel .lead {
  margin-top: 1.25rem;
  max-width: 52ch;
  color: var(--ink-muted);
}
.trade {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-areas: "diag side" "list side";
  gap: 2rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.side {
  grid-area: side;
  position: sticky;
  top: 88px;
  display: grid;
  gap: 1.75rem;
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: var(--paper-shadow);
}
.diagram {
  grid-area: diag;
  margin: 0;
}
.list {
  grid-area: list;
  display: grid;
}
.bar-sticky {
  display: none;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.ctl {
  display: grid;
  gap: 1.1rem;
}
.weight {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.weight label {
  font-weight: 600;
}
.big-mono {
  font: 500 1.75rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--oxblood) var(--fill), var(--rule-strong) var(--fill));
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--oxblood) var(--fill), var(--rule-strong) var(--fill));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--oxblood);
  border: 3px solid var(--surface);
  box-shadow: 0 1px 4px rgb(var(--shadow) / 0.3);
  transition: transform 120ms var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--oxblood);
  border: 3px solid var(--surface);
  box-shadow: 0 1px 4px rgb(var(--shadow) / 0.3);
}
input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.08);
}
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(0.97);
  background: var(--oxblood-deep);
}
.seg legend,
.row legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.5rem;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pills label {
  position: relative;
  display: inline-flex;
}
.pills input {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.pills span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-size: 0.9375rem;
  line-height: 1.2;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 120ms var(--ease);
}
.pills label:hover span {
  box-shadow: inset 0 0 0 1.5px var(--ink-muted);
}
.pills label:active span {
  transform: scale(0.97);
}
.pills input:checked + span {
  background: var(--oxblood);
  color: var(--on-oxblood);
  box-shadow: none;
}
.pills input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.readout {
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.readout .lead-row {
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.readout .lead-row b {
  color: var(--ink);
  font-weight: 500;
}
.total-label {
  margin-top: 0.75rem;
}
.total-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.total {
  font: 800 clamp(3rem, 6vw, 5rem) / 0.9 var(--display);
  color: var(--oxblood);
  font-variant-numeric: tabular-nums;
}
.chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink);
  font: 500 0.875rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity 300ms var(--ease);
}
.chip[hidden] {
  display: none;
}
.chip.out {
  opacity: 0;
}
.pct {
  font: 500 0.875rem/1.4 var(--mono);
  color: var(--ink-muted);
}
.foot {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}
.readout .btn {
  justify-self: start;
  margin-top: 0.5rem;
}
.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}
.regions polygon {
  fill: var(--oxblood);
  fill-opacity: var(--o);
  stroke: var(--surface);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill-opacity 240ms var(--ease);
  cursor: pointer;
}
.regions polygon.on {
  stroke: var(--ink);
}
.names text {
  font: 500 11px var(--mono);
  letter-spacing: 0.08em;
  text-anchor: middle;
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 3px;
  paint-order: stroke;
  pointer-events: none;
}
.outline {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1.5;
  pointer-events: none;
}
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 1rem 0.75rem;
  margin-inline: -0.75rem;
  border-top: 1px solid var(--rule);
  border-radius: 0.5rem;
  transition: background-color 160ms var(--ease);
}
.row.on {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.row legend {
  float: left;
  width: 100%;
  grid-column: 1 / -1;
  font: 700 1.125rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.row .pills {
  grid-column: 1 / -1;
}
.bar {
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--rule-strong) 45%, transparent);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--oxblood);
  transform: scaleX(var(--w));
  transform-origin: left;
  transition: transform 240ms var(--ease);
}
.lb {
  font: 500 0.9375rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 5.5em;
}
@media (max-width: 959px) {
  .names text {
    font-size: 20px;
    stroke-width: 4px;
    letter-spacing: 0.04em;
  }
  /* The sirloin is 80 units wide: seven letters fit only set a touch smaller and tight. */
  .names .tight {
    font-size: 18px;
    letter-spacing: 0;
  }
  /* At the larger size, "SHORT LOIN" is wider than its region. */
  .names .long {
    display: none;
  }
  .trade {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    align-items: stretch;
  }
  .side {
    display: contents;
  }
  .ctl {
    order: 1;
  }
  .diagram {
    order: 2;
  }
  .readout {
    order: 3;
    background: var(--surface);
    border-radius: 1rem;
    border: 0;
    padding: 1.25rem;
    box-shadow: var(--paper-shadow);
  }
  .list {
    order: 4;
    padding-bottom: 64px;
  }
  .bar-sticky {
    order: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    bottom: 0;
    height: 64px;
    margin: -64px calc(-1 * clamp(1.25rem, 4vw, 4rem)) 0;
    padding: 0 clamp(1.25rem, 4vw, 4rem);
    background: var(--surface);
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -8px 24px -8px rgb(var(--shadow) / var(--sb));
  }
  .bar-fig {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .bar-total {
    font: 800 2rem/1 var(--display);
    color: var(--oxblood);
    font-variant-numeric: tabular-nums;
  }
}

/* 5. Features */
.features h2 {
  margin-left: auto;
  text-align: right;
}
.spec-list {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.spec-list li {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--rule);
}
.spec-list h3 {
  font-size: 1.625rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px dotted var(--rule-strong);
  justify-self: start;
}
.spec-list p:not(.label) {
  color: var(--ink-muted);
  max-width: 52ch;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tile);
  margin-right: 0.5rem;
  vertical-align: 1px;
}

/* 6. The sheet */
.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.sheet-copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.sheet-copy p {
  max-width: 40ch;
  color: var(--ink-muted);
}
.paper-wrap {
  min-width: 0;
}
.paper {
  position: relative;
  max-width: 30rem;
  margin-inline: auto;
  aspect-ratio: 1 / 1.33;
  padding: 2.25rem 2rem 1.75rem;
  background: #fffbf4;
  color: #1f1813;
  border-radius: 3px;
  box-shadow: var(--lift-shadow);
  transform: rotate(1.5deg);
  font-size: 0.8125rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}
.js .paper[data-reveal]:not(.in) {
  transform: translateY(40px);
  opacity: 0;
}
.js .paper[data-reveal] {
  transition:
    transform 700ms var(--ease),
    opacity 500ms var(--ease);
}
.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 80px;
  height: 24px;
  margin-left: -40px;
  background: color-mix(in srgb, #cfc2ae 70%, transparent);
  transform: rotate(-4deg);
  transition:
    transform 400ms var(--ease) 900ms,
    opacity 300ms var(--ease) 900ms;
}
.js .paper:not(.in) .tape {
  opacity: 0;
  transform: translateY(-10px) rotate(-4deg);
}
.paper h3 {
  font-size: 1.75rem;
  border-bottom: 3px solid #7a1f2b;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
.paper-meta {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  display: grid;
  gap: 0.1rem;
}
.paper table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.paper th {
  font: 500 0.625rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 0.35rem 0.4rem 0.35rem 0;
  border-bottom: 1.5px solid #1f1813;
}
.paper td {
  padding: 0.3rem 0.4rem 0.3rem 0;
  border-bottom: 1px solid #d7cab6;
  vertical-align: top;
}
.paper th:last-child,
.paper td:last-child {
  text-align: right;
  padding-right: 0;
  white-space: nowrap;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.paper-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #1f1813;
  font-size: 0.75rem;
  color: #65574a;
}

/* 7. The real app */
.app {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
.app h2 {
  max-width: none;
}
.app .lead {
  max-width: 46ch;
  color: var(--ink-muted);
}
.device {
  position: relative;
  width: 100%;
  max-width: calc(1080px + 28px);
  margin-top: 1.5rem;
  padding: 14px;
  background: var(--ink);
  border-radius: 28px;
  box-shadow: var(--lift-shadow);
}
.cam {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--ink-muted);
}
.device iframe {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 700;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
}
.app .mono-line {
  margin-top: 0.5rem;
}
@media (max-width: 959px) {
  .device {
    padding: 8px;
    border-radius: 20px;
  }
  .cam {
    display: none;
  }
  .device iframe {
    aspect-ratio: auto;
    height: 720px;
    border-radius: 12px;
  }
}

/* 8. Closing call to action */
.cta {
  margin-top: var(--rhythm);
  background: var(--oxblood);
  color: var(--on-oxblood);
  padding-block: clamp(5rem, 12vw, 10rem);
}
.cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.cta h2 {
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 6rem);
  max-width: 16ch;
}
.cta p {
  margin: 1.5rem 0 2.25rem;
  font-size: 1.25rem;
  opacity: 0.85;
}
.btn-inv {
  min-height: 56px;
  padding: 0 2rem;
  font-size: 1.0625rem;
  background: var(--on-oxblood);
  color: var(--oxblood);
}
.btn-inv:hover {
  background: color-mix(in srgb, var(--on-oxblood) 88%, var(--oxblood));
}
.btn-inv:focus-visible {
  outline-color: var(--on-oxblood);
  outline-offset: 3px;
}
.watermark {
  flex: none;
  opacity: 0.2;
  fill: none;
  stroke: var(--on-oxblood);
  stroke-width: 0.4;
  overflow: visible;
}
.watermark .score {
  stroke-dashoffset: 0;
}
.js .watermark.in .score {
  animation: score 1.6s ease-out both;
}
@keyframes score {
  from {
    stroke-dashoffset: 24;
  }
}
@media (max-width: 719px) {
  .watermark {
    display: none;
  }
}

/* 9. Footer */
.foot-bar {
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem;
}
.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 800 1.125rem/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.foot-bar a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--oxblood);
  text-underline-offset: 0.25em;
}
.foot-bar a:hover {
  color: var(--oxblood-deep);
}
.foot-bar a:active {
  transform: translateY(1px);
}

/* Phone and tablet layouts */
@media (max-width: 959px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 2.5rem;
  }
  .q-body {
    grid-column: 1 / -1;
  }
  .sheet {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 719px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li,
  .steps li:first-child {
    padding: 1.75rem 0;
  }
  .steps li + li {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .features h2 {
    margin-left: 0;
    text-align: left;
  }
  .spec-list {
    grid-template-columns: 1fr;
  }
  .paper,
  .js .paper[data-reveal].in {
    transform: none;
    aspect-ratio: auto;
    padding: 1.75rem 1.1rem 1.25rem;
  }
  .paper table,
  .paper-meta {
    font-size: 0.6875rem;
  }
  .cta-in {
    display: block;
  }
  .foot-in {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced motion: everything in its final state. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal],
  .js [data-reveal]:not(.in),
  .js .paper[data-reveal]:not(.in),
  .js .paper:not(.in) .tape {
    opacity: 1 !important;
  }
  .js [data-reveal]:not(.ox-rule):not(.paper):not(.watermark),
  .js .ox-rule[data-reveal] {
    transform: none !important;
  }
  .js .paper[data-reveal] {
    transform: rotate(1.5deg) !important;
  }
  .js .paper:not(.in) .tape {
    transform: rotate(-4deg) !important;
  }
  .js .icon * {
    stroke-dashoffset: 0;
  }
  .drift,
  .tilt {
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 719px) {
  .js .paper[data-reveal] {
    transform: none !important;
  }
}
