:root {
  color-scheme: light;
  --cream: #f0e8dc;
  --cream-2: #e6dccd;
  --paper: #fff8ef;
  --ink: #111111;
  --ink-2: #2a2a27;
  --muted: #6b6860;
  --line: rgba(17, 17, 17, 0.14);
  --line-soft: rgba(17, 17, 17, 0.08);
  --blue: #1f5f86;
  --blue-soft: #dcecf2;
  --green: #6f8f61;
  --gold: #b68a41;
  --red: #a9574e;
  --shadow: 0 20px 56px rgba(42, 35, 26, 0.12);
  --radius: 8px;
  --header-h: 78px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
}

img,
svg {
  display: block;
}

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

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

button {
  cursor: pointer;
}

.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--cream);
  animation: introFade 580ms ease 1420ms forwards;
  pointer-events: none;
}

.rt-logo-lockup {
  display: grid;
  justify-items: center;
  gap: 22px;
  color: var(--ink);
  text-transform: uppercase;
}

.intro-logo {
  width: min(720px, 86vw);
  filter: drop-shadow(0 24px 54px rgba(17, 17, 17, 0.06));
  animation: logoFlight 1350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-logo .rt-logo-mark {
  width: min(360px, 50vw);
}

.intro-logo span {
  white-space: nowrap;
  font-size: clamp(1.7rem, 2.8vw, 2.55rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
}

.rt-logo-mark {
  overflow: visible;
  color: currentColor;
}

.rt-fill {
  fill: currentColor;
}

@keyframes logoFlight {
  0% {
    opacity: 1;
    transform: translateY(42px) scale(0.94);
    filter: blur(0);
  }

  58% {
    opacity: 1;
    transform: translateY(-8px) scale(1.02);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes introFade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(240, 232, 220, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 46px;
  height: 36px;
  flex: 0 0 auto;
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.main-nav a {
  padding: 10px 11px;
  border-radius: 6px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.main-nav a:hover {
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(760px, calc(100vh - var(--header-h)), 980px);
  display: block;
  padding: clamp(76px, 8vw, 118px) clamp(18px, 5vw, 72px) clamp(62px, 7vw, 90px);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(10, 10, 8, 0.82) 0%, rgba(10, 10, 8, 0.58) 43%, rgba(10, 10, 8, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 10, 8, 0.18) 0%, rgba(10, 10, 8, 0.62) 100%),
    url("assets/media/hero-background.jpeg") center / cover no-repeat;
}

.hero-inner {
  max-width: 1280px;
  min-width: 0;
}

.hero-note {
  margin: 28px 0 0;
  max-width: 980px;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid rgba(255, 248, 239, 0.28);
  border-radius: var(--radius);
  background: rgba(13, 13, 12, 0.52);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.hero-note span {
  display: block;
  margin-bottom: 12px;
  color: #d9b36b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-note p {
  margin: 0;
  max-width: 880px;
  color: rgba(255, 248, 239, 0.9);
  font-size: clamp(1.08rem, 1.35vw, 1.34rem);
  line-height: 1.58;
  text-wrap: auto;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d9b36b;
}

.hero .button.primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.hero .button.ghost {
  color: var(--paper);
  background: rgba(255, 248, 239, 0.12);
  border-color: rgba(255, 248, 239, 0.34);
}

#mca {
  order: 1;
}

#handelingskader {
  order: 2;
}

#setbehoud {
  order: 3;
}

#montage {
  order: 4;
}

#werkboeken {
  order: 5;
}

#aanbod {
  order: 6;
}

#makers {
  order: 7;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 1180px;
  font-size: clamp(4.2rem, 5.7vw, 6.8rem);
  font-weight: 950;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateX(-34px);
  animation: titleSlideIn 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title span:nth-child(2) {
  animation-delay: 120ms;
}

.hero-title span:nth-child(3) {
  animation-delay: 240ms;
}

.hero-title em {
  color: #d9b36b;
  font-style: normal;
}

@keyframes titleSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

h2 {
  font-size: clamp(2.1rem, 4.8vw, 5rem);
  font-weight: 950;
}

h3 {
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255, 248, 239, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button svg,
.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button.primary:hover {
  background: var(--blue);
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 250, 242, 0.7);
}

.button.ghost:hover {
  background: var(--paper);
}

.section {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.visual-step {
  position: relative;
  isolation: isolate;
  min-height: 820px;
  overflow: hidden;
  display: grid;
  align-content: center;
  background-color: var(--cream);
  --step-image: none;
  --step-bg: var(--cream);
  --step-position: center right;
  --step-size: cover;
}

.visual-step::before,
.visual-step::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.visual-step::before {
  background-color: var(--step-bg);
  background-image: var(--step-image);
  background-size: var(--step-size);
  background-position: var(--step-position);
  background-repeat: no-repeat;
}

.visual-step::after {
  background:
    linear-gradient(90deg, var(--cream) 0%, rgba(240, 232, 220, 0.94) 16%, rgba(240, 232, 220, 0.42) 42%, rgba(240, 232, 220, 0.03) 76%),
    linear-gradient(180deg, var(--cream) 0%, rgba(240, 232, 220, 0) 17%, rgba(240, 232, 220, 0) 78%, var(--cream) 100%);
}

.mca-visual {
  --step-bg: var(--cream-2);
  --step-image: url("assets/media/mca-visual.jpeg");
  --step-position: center right;
}

.demontage-visual {
  --step-image: url("assets/media/demontage-visual.jpeg");
  --step-position: center right;
}

.demontage-visual::after {
  background:
    linear-gradient(90deg, var(--cream) 0%, rgba(240, 232, 220, 0.98) 24%, rgba(240, 232, 220, 0.74) 42%, rgba(240, 232, 220, 0.28) 61%, rgba(240, 232, 220, 0.04) 82%),
    linear-gradient(180deg, var(--cream) 0%, rgba(240, 232, 220, 0.52) 10%, rgba(240, 232, 220, 0) 29%, rgba(240, 232, 220, 0) 75%, var(--cream) 100%);
}

.setbehoud-visual {
  --step-bg: var(--cream-2);
  --step-image: url("assets/media/setbehoud-visual.jpeg");
  --step-position: right 7% center;
  --step-size: min(760px, 41vw) auto;
}

.setbehoud-visual::before {
  background-color: transparent;
  opacity: 0.9;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, transparent 45%, rgba(0, 0, 0, 0.35) 53%, #000 66%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.38) 10%, #000 24%, #000 78%, rgba(0, 0, 0, 0.3) 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, transparent 45%, rgba(0, 0, 0, 0.35) 53%, #000 66%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.38) 10%, #000 24%, #000 78%, rgba(0, 0, 0, 0.3) 91%, transparent 100%);
  mask-composite: intersect;
}

.setbehoud-visual::after {
  background:
    linear-gradient(90deg, var(--cream-2) 0%, rgba(230, 220, 205, 0.98) 36%, rgba(230, 220, 205, 0.52) 56%, rgba(230, 220, 205, 0.14) 74%, var(--cream-2) 100%),
    linear-gradient(180deg, var(--cream-2) 0%, rgba(230, 220, 205, 0.74) 11%, rgba(230, 220, 205, 0.05) 34%, rgba(230, 220, 205, 0.1) 70%, rgba(230, 220, 205, 0.8) 91%, var(--cream-2) 100%);
}

.montage-visual {
  --step-image: url("assets/media/montage-visual.jpeg");
  --step-position: center right;
}

.mca-visual::after {
  background:
    linear-gradient(90deg, var(--cream-2) 0%, rgba(230, 220, 205, 0.92) 18%, rgba(230, 220, 205, 0.36) 48%, rgba(230, 220, 205, 0.02) 80%),
    linear-gradient(180deg, var(--cream-2) 0%, rgba(230, 220, 205, 0) 17%, rgba(230, 220, 205, 0) 78%, var(--cream-2) 100%);
}

.visual-step .section-head,
.visual-step .mca-layout,
.visual-step .plan-copy-grid {
  position: relative;
  z-index: 1;
}

.visual-step .section-head {
  max-width: 850px;
}

.visual-step .section-head p:last-child {
  color: rgba(17, 17, 17, 0.64);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
}

.visual-step .plan-copy-grid article,
.visual-step .scan-form,
.visual-step .result-panel {
  border-color: rgba(17, 17, 17, 0.08);
  background: rgba(255, 248, 239, 0.86);
  box-shadow: 0 24px 72px rgba(42, 35, 26, 0.11);
  backdrop-filter: blur(10px);
}

.visual-step .plan-copy-grid article {
  min-height: 220px;
}

.section-panel {
  background: var(--cream-2);
}

.section-quiet {
  background: var(--paper);
}

.workbook-section,
.plan-section,
.makers-section {
  background: var(--cream);
}

.frame-section {
  background: var(--cream-2);
}

.section-head {
  width: min(960px, 100%);
  margin-bottom: 34px;
}

.section-head.compact {
  margin-bottom: 26px;
}

.section-head p:last-child {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.07rem;
}

.workbook-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workbook-card {
  min-height: 430px;
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(42, 35, 26, 0.08);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.workbook-card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 95, 134, 0.36);
  box-shadow: var(--shadow);
}

.workbook-card > div:last-child {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 20px;
}

.workbook-card p {
  margin: 0;
  color: var(--muted);
}

.workbook-label {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workbook-visual {
  min-width: 0;
  height: 190px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: #f8f4ec;
}

.workbook-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.workbook-visual.contain img {
  object-fit: contain;
  padding: 12px;
}

.workbook-card:hover .workbook-visual img {
  transform: scale(1.035);
}

.mca-layout,
.frame-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.mca-aside {
  display: grid;
  gap: 20px;
}

.mca-aside .document-preview.small {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mca-aside .document-preview.small img {
  display: block;
  aspect-ratio: 16 / 9;
  max-height: none;
  object-fit: cover;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 24px 62px rgba(42, 35, 26, 0.13);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 4.5%, #000 95.5%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 4.5%, #000 95.5%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
}

.scan-form,
.result-panel,
.metric,
.inventory-card,
.document-preview,
.frame-image,
.plan-copy-grid article,
.spec-list article,
.maker-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(42, 35, 26, 0.06);
}

.scan-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.form-row {
  display: grid;
  gap: 14px;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  background: #fffdf8;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(17, 17, 17, 0.38);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 95, 134, 0.14);
  border-color: var(--blue);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.result-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.score-ring {
  --score: 0%;
  display: grid;
  place-items: center;
  width: 174px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 58%, transparent 59%),
    conic-gradient(var(--ring, var(--blue)) var(--score), rgba(17, 17, 17, 0.09) 0);
  box-shadow: inset 0 0 0 1px var(--line);
}

.score-ring span {
  font-size: 2.1rem;
  font-weight: 950;
}

.result-panel p {
  margin: 0;
  color: var(--muted);
}

.score-breakdown {
  width: 100%;
  display: grid;
  gap: 8px;
  text-align: left;
}

.break-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.88rem;
}

.break-row strong {
  color: var(--ink);
}

.empty-note,
.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 250, 242, 0.66);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric {
  min-height: 126px;
  padding: 18px;
  align-content: space-between;
  display: grid;
}

.metric span,
.metric small {
  color: var(--muted);
}

.metric strong {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--paper);
  font-weight: 900;
}

.filter-chip.active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.inventory-card {
  display: grid;
  gap: 16px;
  min-height: 350px;
  padding: 18px;
  background: #f8efe3;
  box-shadow: 0 18px 46px rgba(42, 35, 26, 0.08);
}

.card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meta-item {
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #ece2d4;
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.meta-item strong {
  display: block;
  margin-top: 4px;
  line-height: 1.16;
}

.route-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.route-line::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--blue);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.card-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delete-card {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #efe6d8;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.delete-card:hover {
  color: var(--ink);
  background: #e0d4c3;
  transform: scale(1.04);
}

.delete-card svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
}

.interest-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 230px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.empty-state span {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.empty-state strong {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.tag,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
  color: var(--ink);
  background: var(--blue-soft);
}

.status-badge {
  background: #dce9d6;
}

.status-badge.go-adjust {
  background: var(--blue-soft);
}

.status-badge.hold {
  background: #efe1bf;
}

.status-badge.nogo {
  background: #edd4cf;
}

.status-badge.empty {
  color: var(--muted);
  background: #f0e7db;
}

.action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-copy-grid.wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.plan-copy-grid article {
  min-height: 210px;
  padding: 24px;
  background: #fff8ef;
}

.plan-copy-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-copy-grid p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.03rem;
}

.document-preview,
.frame-image {
  overflow: hidden;
  margin: 0;
}

.document-preview img,
.frame-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--paper);
}

.document-preview.small img {
  max-height: 260px;
  object-fit: contain;
  padding: 10px;
}

.plan-section .document-preview img {
  max-height: min(760px, 78vh);
  padding: 12px;
}

.frame-image {
  align-self: stretch;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.frame-image img {
  padding: 16px;
}

.spec-list {
  display: grid;
  gap: 12px;
}

.spec-list article {
  padding: 17px;
}

.spec-list span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.spec-list strong {
  display: block;
  margin-top: 4px;
}

.makers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
}

.maker-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.maker-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 7px;
  background: #e4ddd1;
}

.maker-card span {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.interest-dialog {
  width: min(520px, calc(100vw - 30px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.interest-dialog::backdrop {
  background: rgba(17, 17, 17, 0.38);
}

.interest-dialog form {
  position: relative;
  display: grid;
  gap: 15px;
  padding: 24px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(17, 17, 17, 0.04);
}

.close-dialog {
  position: absolute;
  right: 14px;
  top: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 15px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }

  .hero,
  .mca-layout,
  .frame-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .app-header {
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .hero {
    min-height: auto;
    padding: 48px 18px 34px;
  }

  .hero-note {
    width: auto;
    max-width: 100%;
  }

  .hero-note p {
    max-width: 29ch;
  }

  h1 {
    max-width: 350px;
    font-size: clamp(2.45rem, 13vw, 3.35rem);
    line-height: 1.04;
  }

  .hero-copy {
    max-width: 342px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 342px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 54px 16px;
  }

  .workbook-grid,
  .metric-grid,
  .inventory-grid,
  .makers-grid,
  .form-row.two,
  .form-row.three,
  .card-meta {
    grid-template-columns: 1fr;
  }

  .workbook-card {
    min-height: 370px;
  }

  .form-actions,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button,
  .card-actions .button {
    width: 100%;
  }
}
