/* ==========================================================================
   Content Peddler — marketing site
   Retro-editorial system (cream paper, ink rules, window chrome, hard shadows)
   Geometry matched to a 1980px-wide reference render.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */
:root {
  /* paper */
  --pc-plastic-1: #f7f4ef;
  --pc-plastic-2: #eae5de;
  --pc-plastic-3: #e4ddd2;
  --pc-plastic-4: #d9d0c2;
  --static-white: #ffffff;
  --light-cream-2: #fbf8f1;

  /* ink */
  --terminal-black: #140206;
  --hardware-gray-9: #28292a;
  --hardware-gray-8: #484748;
  --muted: #4e4c47;

  /* accents */
  --bubbletech-1: #ffb4c5;
  --bubbletech-4: #ff6183;
  --neon-field-2: #38f261;
  --atomic-glow-1: #ffb835;
  --keyboard-tan-1: #f6c1a8;
  --floppy-fog-1: #e4e0f2;

  /* semantic */
  --text: var(--hardware-gray-9);
  --border: var(--terminal-black);

  /* type */
  --font-primary: "Inter Tight", "Suisse Intl", Arial, sans-serif;
  --font-secondary: "Instrument Serif", Perfectlynineties, Georgia, serif;

  /* metrics */
  --frame: 18px;
  --container: 1280px;
  --feature-frame: 1088px;
  --bw: 1px;
  --shadow-hard: 5px 5px 0 0 var(--border);
  --shadow-hard-lg: 8px 8px 0 0 var(--border);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100%;
  margin: 0;
  border: var(--frame) solid var(--pc-plastic-1);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--pc-plastic-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

/* --- primitives --------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.display {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: clamp(46px, 4.65vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.012em;
  color: var(--terminal-black);
}

/* hero + feature scale */
.display--lg {
  font-size: clamp(42px, 4.85vw, 96px);
  line-height: 0.917;
}

.display--md {
  font-size: clamp(38px, 3.85vw, 76px);
  line-height: 0.92;
}

.display--sm {
  font-size: clamp(32px, 3.85vw, 76px);
  line-height: 1;
}

.display--xs {
  font-size: clamp(28px, 2.12vw, 42px);
  line-height: 1.05;
}

.display--cta {
  font-size: clamp(28px, 2.35vw, 46px);
  line-height: 1.02;
}

.mono {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lede {
  font-family: var(--font-secondary);
  font-size: clamp(19px, 1.57vw, 31px);
  line-height: 1.03;
  color: var(--terminal-black);
}

.body-copy {
  font-size: 19px;
  line-height: 1.26;
  color: var(--hardware-gray-9);
}

.section-head { text-align: center; }
.section-head .body-copy { max-width: 470px; margin: 21px auto 0; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 18px;
  border: var(--bw) solid var(--border);
  background: var(--pc-plastic-2);
  color: var(--terminal-black);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  box-shadow: var(--shadow-hard);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 0 var(--border); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 0 var(--border); }
.btn--lg { height: 50px; padding: 0 26px; font-size: 14px; }
.btn--primary { background: var(--bubbletech-4); }
.btn--green { background: var(--neon-field-2); }
.btn--amber { background: var(--atomic-glow-1); }
.btn--white { background: var(--static-white); }

/* --- window chrome ------------------------------------------------------ */
.win {
  border: var(--bw) solid var(--border);
  background: var(--pc-plastic-1);
}

.win__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding-inline: 8px;
  border-bottom: var(--bw) solid var(--border);
  background: var(--light-cream-2);
}

.win__dot { width: 9px; height: 9px; flex: none; background: var(--neon-field-2); }
.win__dot--pink { background: var(--bubbletech-4); }
.win__dot--amber { background: var(--atomic-glow-1); }

.win__label {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--terminal-black);
  white-space: nowrap;
}

.win__rule {
  flex: 1;
  height: 9px;
  background: repeating-linear-gradient(to bottom, var(--terminal-black) 0 1px, transparent 1px 3px);
  opacity: 0.8;
}

.win__btn { width: 13px; height: 13px; flex: none; border: var(--bw) solid var(--border); background: var(--pc-plastic-2); }

.win__body { padding: 8px; }
.win__body img { width: 100%; border: var(--bw) solid var(--border); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: absolute;
  inset: 11px 38px auto;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.nav__group {
  display: flex;
  align-items: stretch;
  border: var(--bw) solid var(--border);
  background: var(--pc-plastic-1);
  box-shadow: 4px 4px 0 0 var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 48px;
  background: var(--terminal-black);
  color: var(--pc-plastic-1);
  border-right: var(--bw) solid var(--border);
}

.nav__brand-mark {
  width: 16px;
  height: 16px;
  background: var(--pc-plastic-1);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 62%, 62% 100%, 0 100%);
}

.nav__brand-text { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 22px;
  border-right: var(--bw) solid var(--border);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__link:last-child { border-right: 0; }
.nav__link:hover { background: var(--pc-plastic-2); }

.nav__sq { width: 8px; height: 8px; flex: none; background: var(--terminal-black); }

.nav__cta {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-right: var(--bw) solid var(--border);
}
.nav__cta:last-child { border-right: 0; }
.nav__cta--primary { background: var(--bubbletech-4); }

/* ==========================================================================
   Hero  (ref: 18 → 1037)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 1019px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* cream scrim so ink type stays legible over the art, right side left untouched */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(247, 244, 239, 0.9) 0%,
    rgba(247, 244, 239, 0.72) 24%,
    rgba(247, 244, 239, 0.2) 44%,
    rgba(247, 244, 239, 0) 58%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr);
  gap: 0px;
  align-items: center;
  padding-top: 96px;
}

.hero__copy { max-width: 560px; }
.hero__title { margin-bottom: 62px; }
.hero__lede { max-width: 400px; }

.hero__media { position: relative; height: 500px; }

.hero__win { position: absolute; box-shadow: var(--shadow-hard); }
.hero__win--main { width: 546px; right: 0; top: 0; z-index: 2; }
.hero__win--alt { width: 447px; left: 0; top: 235px; z-index: 1; }
.hero__win--alt .win__body img { aspect-ratio: 2 / 1; object-fit: cover; }

.hero__win-cta {
  position: absolute;
  left: 22%;
  bottom: 32px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero__win-cta .btn { box-shadow: none; height: 34px; padding: 0 16px; font-size: 12px; }
.hero__win-cta .btn--icon { padding: 0 10px; }

/* --- logo strip (ref: label top 1075) ----------------------------------- */
.logos {
  display: grid;
  grid-template-columns: 540px minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  padding-top: 19px;
}

.logos__label {
  font-family: var(--font-secondary);
  font-size: 29px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

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

.logos__item {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pc-plastic-4);
  white-space: nowrap;
}

/* ==========================================================================
   Use cases (ref: heading top 1277, frame 1556 → 2094, dots 2277)
   ========================================================================== */
.use-cases { padding-top: 124px; padding-bottom: 126px; }

.carousel { position: relative; margin-top: 59px; }
.carousel__viewport { overflow: hidden; padding-bottom: 90px; }

.carousel__track {
  display: flex;
  align-items: flex-start;
  gap: 82px;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide {
  flex: 0 0 auto;
  width: 932px;
  opacity: 0.28;
  transition: opacity 320ms ease;
}
.carousel__slide.is-active { opacity: 1; }

.carousel__frame { box-shadow: var(--shadow-hard); }
.carousel__figure { position: relative; }
.carousel__figure > img { aspect-ratio: 916 / 492; object-fit: cover; }

.carousel__caption {
  position: absolute;
  left: 50%;
  bottom: -76px;
  transform: translateX(-50%);
  width: 396px;
  border: var(--bw) solid var(--border);
  background: var(--static-white);
  box-shadow: var(--shadow-hard);
}

.carousel__slide:not(.is-active) .carousel__caption { visibility: hidden; }

.carousel__caption h3 {
  padding: 9px 12px;
  border-bottom: var(--bw) solid var(--border);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.carousel__caption p {
  padding: 11px 16px 13px;
  font-size: 15px;
  line-height: 1.42;
  text-align: center;
}

.carousel__nav {
  position: absolute;
  top: 268px;
  z-index: 5;
  width: 63px;
  height: 63px;
  display: grid;
  place-items: center;
  font-size: 22px;
  border: var(--bw) solid var(--border);
  background: var(--neon-field-2);
  box-shadow: var(--shadow-hard);
}
.carousel__nav:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 0 var(--border); }
.carousel__nav--prev { left: 387px; }
.carousel__nav--next { right: 387px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 89px;
}

.carousel__dot {
  width: 15px;
  height: 15px;
  border: var(--bw) solid var(--border);
  border-radius: 50%;
  background: transparent;
  opacity: 0.4;
}
.carousel__dot.is-active { background: var(--terminal-black); opacity: 1; }

/* ==========================================================================
   Tinted block: products → feature → manifesto → models (ref 2411 → 5989)
   ========================================================================== */
.tint { background: var(--pc-plastic-2); padding-top: 87px; padding-bottom: 103px; }

.products {
  display: grid;
  grid-template-columns: repeat(3, 388px);
  justify-content: space-between;
  gap: 55px;
  margin-top: 41px;
}

.products__head .body-copy { max-width: 620px; margin-top: 35px; }

.product { display: flex; flex-direction: column; }

.product__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 8px;
  padding: 20px 18px 22px;
  border: var(--bw) solid var(--border);
}

.product__title {
  font-family: var(--font-secondary);
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin-bottom: 16px;
}

.product__text { font-size: 16.5px; line-height: 1.42; margin-bottom: 30px; }
.product__cta { margin-top: auto; align-self: flex-start; }

/* --- feature ------------------------------------------------------------ */
.feature { padding-top: 375px; text-align: center; }

.feature__title {
  max-width: 950px;
  margin-inline: auto;
  font-size: clamp(40px, 3.75vw, 74px);
  line-height: 0.96;
}
.feature__title em { font-style: italic; }

.feature__stage { position: relative; margin-top: 102px; }

/* Two arm cut-outs, each aligned to its own side of the framed picture. Fixed
   height keeps the arm's scale constant at any viewport; object-position pins the
   end that meets the frame, so the junction never drifts. */
.feature__arms {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 605px;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.feature__arm {
  position: absolute;
  width: max(90px, calc((100vw - var(--feature-frame)) / 2 - 18px));
  object-fit: cover;
  border: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 87%, transparent 100%);
}

/* second mask channel fades the outer end, which also clears the vignette speckle
   the chroma key leaves behind at the very edge of the source art */
.feature__arm--l {
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 15%);
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 15%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  left: 18px;
  top: 72px;
  height: 604px;
  object-position: 100% 50%;
}

.feature__arm--r {
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to left, transparent 0, #000 18%);
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to left, transparent 0, #000 18%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  right: 18px;
  top: -72px;
  height: 605px;
  object-position: 0% 50%;
}

.feature__frame {
  position: relative;
  z-index: 1;
  width: 1088px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: var(--shadow-hard);
}

.feature__frame .win__body img { aspect-ratio: 1074 / 563; object-fit: cover; }

.manifesto { max-width: 700px; margin: 70px auto 0; text-align: center; }
.manifesto h2 { margin-bottom: 30px; }
.manifesto .body-copy { margin-bottom: 91px; line-height: 1.34; }

/* --- models (ref panel 4969 → 5886, width 1280) ------------------------- */
.models { margin-top: 233px; box-shadow: var(--shadow-hard-lg); }

.models__top {
  display: grid;
  grid-template-columns: 429px minmax(0, 1fr);
  border-bottom: var(--bw) solid var(--border);
}

.models__intro {
  padding: 26px 26px 30px;
  background: var(--bubbletech-1);
  border-right: var(--bw) solid var(--border);
}

.models__glyph {
  width: 106px;
  height: 92px;
  margin-bottom: 26px;
  background:
    linear-gradient(to right, var(--terminal-black) 0 44%, transparent 44% 100%),
    repeating-conic-gradient(var(--terminal-black) 0 25%, transparent 0 50%) 0 0 / 4px 4px;
}

.models__intro h2 {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 98px;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.models__intro p { font-size: 16px; line-height: 1.44; margin-bottom: 30px; }

.models__image { position: relative; }
.models__image img { width: 100%; height: 100%; object-fit: cover; }

.models__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--bubbletech-1);
}

.models__cell { border-right: var(--bw) solid var(--border); }
.models__cell:last-child { border-right: 0; }

.models__kicker {
  padding: 13px 16px;
  border-bottom: var(--bw) solid var(--border);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.models__body { padding: 22px 18px 67px; }

.models__body h3 {
  font-family: var(--font-secondary);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.012em;
  margin-bottom: 18px;
}

.models__body p { font-size: 16px; line-height: 1.44; }

/* ==========================================================================
   Build with us (ref image 5997 → 6963, left half full-bleed)
   ========================================================================== */
.build {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  padding-top: 8px;
}

.build__media { height: 966px; }
.build__media img { width: 100%; height: 100%; object-fit: cover; }

.build__copy { padding: 32px 60px 0 98px; max-width: 660px; }
.build__copy h2 { margin-bottom: 30px; }
.build__copy .body-copy { margin-bottom: 42px; font-size: 23px; line-height: 1.2; }

/* ==========================================================================
   CTA split (ref 6963 → 7419)
   ========================================================================== */
.cta-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cta-panel { padding: 132px 40px 98px; text-align: center; }
.cta-panel--peach { background: var(--keyboard-tan-1); }
.cta-panel--lilac { background: var(--floppy-fog-1); }
.cta-panel .mono { margin-bottom: 46px; color: var(--terminal-black); }
.cta-panel h2 { margin-bottom: 34px; }

/* ==========================================================================
   Footer (full-bleed: cols 7567 → 7806, band 7811 → 8062)
   ========================================================================== */
.site-footer { padding-top: 148px; }

.footer__wrap { width: 100%; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: var(--bw) solid var(--border);
  background: var(--pc-plastic-1);
}

.footer__col { padding-bottom: 49px; border-right: var(--bw) solid var(--border); }
.footer__col:last-child { border-right: 0; }

.footer__head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 22px 9px;
  padding: 6px 11px;
  border: var(--bw) solid var(--border);
  background: var(--static-white);
  font-size: 11.5px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.footer__head span { width: 10px; height: 10px; background: var(--terminal-black); }

.footer__col li { padding: 0 16px; margin-bottom: 7px; line-height: 1.5; }
.footer__col a { font-size: 15px; }
.footer__col a:hover { text-decoration: underline; }

.footer__band {
  position: relative;
  height: 251px;
  margin-top: 5px;
  border: var(--bw) solid var(--border);
  background: var(--bubbletech-4);
  display: flex;
  align-items: flex-end;
  padding: 0 0 26px 26px;
}

.footer__wordmark { display: flex; align-items: center; gap: 14px; color: var(--bubbletech-1); }

.footer__wordmark span {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
  text-transform: uppercase;
}

.footer__mark {
  width: 40px;
  height: 40px;
  background: var(--bubbletech-1);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 62%, 62% 100%, 0 100%);
}

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 55px 8px 56px;
  font-size: 12.5px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.footer__legal-mid { margin-inline: auto; }

.footer__ai { display: inline-flex; align-items: center; gap: 6px; }
.footer__ai-btn {
  width: 17px;
  height: 17px;
  border: var(--bw) solid var(--border);
  background: var(--pc-plastic-1);
}

/* ==========================================================================
   Subpages — shared components
   ========================================================================== */

/* --- page head (the subpage counterpart of the hero) --------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  border-bottom: var(--bw) solid var(--border);
  padding: 210px 0 72px;
}

.page-head__bg { position: absolute; inset: 0; z-index: 0; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }

.page-head__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(247, 244, 239, 0.93) 0%,
    rgba(247, 244, 239, 0.8) 36%,
    rgba(247, 244, 239, 0.42) 60%,
    rgba(247, 244, 239, 0.12) 100%
  );
}

.page-head__inner { position: relative; z-index: 1; }
.page-head .mono { display: block; margin-bottom: 26px; color: var(--terminal-black); }
.page-head h1 { max-width: 900px; }
.page-head .lede { max-width: 620px; margin-top: 28px; }

/* --- editorial reading column ------------------------------------------- */
.prose {
  max-width: 720px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--hardware-gray-9);
}

.prose > * + * { margin-top: 22px; }

.prose h2 {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--terminal-black);
  margin-top: 62px;
}

.prose h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--terminal-black);
  margin-top: 42px;
}

.prose h2 + p, .prose h3 + p { margin-top: 14px; }
.prose strong { font-weight: 600; color: var(--terminal-black); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { background: var(--atomic-glow-1); }

.prose ul, .prose ol { padding-left: 24px; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 10px; }

.prose hr { height: 0; border: 0; border-top: var(--bw) solid var(--border); margin: 52px 0; }

.prose blockquote {
  margin: 46px 0;
  padding: 26px 28px;
  border: var(--bw) solid var(--border);
  background: var(--atomic-glow-5);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-secondary);
  font-size: 27px;
  line-height: 1.25;
  color: var(--terminal-black);
}

.prose code {
  padding: 2px 6px;
  border: var(--bw) solid var(--border);
  background: var(--pc-plastic-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}

.prose pre {
  margin-top: 22px;
  padding: 18px 20px;
  border: var(--bw) solid var(--border);
  background: var(--pc-plastic-2);
  box-shadow: var(--shadow-hard);
  overflow-x: auto;
}

.prose pre code { padding: 0; border: 0; background: none; font-size: 14.5px; line-height: 1.6; }

.prose table { width: 100%; border-collapse: collapse; border: var(--bw) solid var(--border); }
.prose th, .prose td { padding: 12px 14px; border: var(--bw) solid var(--border); text-align: left; font-size: 16px; }
.prose th { background: var(--pc-plastic-2); font-weight: 600; }

/* --- document layout: sticky rail + framed column ------------------------ */
.doc { padding-block: 96px 120px; }

.doc__grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.doc__rail { position: sticky; top: 40px; }

.doc__rail-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: var(--bw) solid var(--border);
  background: var(--static-white);
  font-size: 11.5px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.doc__rail-head span { width: 10px; height: 10px; background: var(--terminal-black); }

.doc__rail a {
  display: block;
  padding: 8px 12px;
  border-left: var(--bw) solid var(--border);
  font-size: 15px;
  color: var(--hardware-gray-9);
}

.doc__rail a:hover { background: var(--pc-plastic-2); color: var(--terminal-black); }

.doc__body { box-shadow: var(--shadow-hard); }
.doc__body .win__body { padding: 44px 52px 56px; }
.doc__body .prose { max-width: 780px; }
.doc__body .prose > :first-child { margin-top: 0; }

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: var(--bw) solid var(--border);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- numbered steps ------------------------------------------------------ */
.steps { margin-top: 64px; }

.step {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-top: var(--bw) solid var(--border);
}

.step:last-child { border-bottom: var(--bw) solid var(--border); }

.step__no {
  font-family: var(--font-secondary);
  font-size: 76px;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--terminal-black);
}

.step__title {
  font-family: var(--font-secondary);
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--terminal-black);
  margin-bottom: 14px;
}

.step__text { font-size: 17px; line-height: 1.5; }
.step__media { box-shadow: var(--shadow-hard); }
.step__media img { aspect-ratio: 16 / 9; object-fit: cover; }

/* --- changelog ----------------------------------------------------------- */
.log { box-shadow: var(--shadow-hard); }
.log .win__body { padding: 0; }

.log__entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding: 34px 40px;
  border-bottom: var(--bw) solid var(--border);
}

.log__entry:last-child { border-bottom: 0; }
.log__meta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.log__date { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

.log__title {
  font-family: var(--font-secondary);
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--terminal-black);
  margin-bottom: 12px;
}

.log__text { font-size: 17px; line-height: 1.5; }

/* --- tag chip (square, ink-bordered) ------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: var(--bw) solid var(--border);
  background: var(--pc-plastic-2);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--new { background: var(--neon-field-2); }
.tag--improved { background: var(--atomic-glow-1); }
.tag--fixed { background: var(--bubbletech-1); }

/* --- status -------------------------------------------------------------- */
.status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 30px;
  margin-bottom: 40px;
  border: var(--bw) solid var(--border);
  background: var(--neon-field-2);
  box-shadow: var(--shadow-hard);
}

.status-banner__dot { width: 16px; height: 16px; background: var(--terminal-black); }

.status-banner__text {
  font-family: var(--font-secondary);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--terminal-black);
}

.status-list { box-shadow: var(--shadow-hard); }
.status-list .win__body { padding: 0; }

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 30px;
  border-bottom: var(--bw) solid var(--border);
}

.status-row:last-child { border-bottom: 0; }
.status-row__name { font-size: 17px; color: var(--terminal-black); }
.status-row__meta { display: flex; align-items: center; gap: 16px; }
.status-row__uptime { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

/* --- forms --------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--terminal-black);
}

.field .req { color: var(--bubbletech-4); }

.input, .select, .textarea {
  width: 100%;
  padding: 13px 14px;
  border: var(--bw) solid var(--border);
  border-radius: 0;
  background: var(--static-white);
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--terminal-black);
}

.textarea { min-height: 168px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 0; box-shadow: var(--shadow-hard); }
.input::placeholder, .textarea::placeholder { color: var(--pc-plastic-4); }

.form-foot { display: flex; align-items: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--muted); }

.form-ok {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px 18px;
  border: var(--bw) solid var(--border);
  background: var(--neon-field-2);
  font-size: 15px;
}

.form-ok.is-on { display: flex; }

/* --- contact channels ---------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.channel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: var(--bw) solid var(--border);
}

.channel:last-child { border-bottom: 0; }
.channel__name { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.channel__value { font-size: 17px; color: var(--terminal-black); }
.channel__value:hover { background: var(--atomic-glow-1); }

/* --- generic subpage rhythm ---------------------------------------------- */
.section-pad { padding-block: 108px; }
.section-pad--tight { padding-block: 72px; }
.lead-in { max-width: 720px; }
.lead-in .display { margin-bottom: 26px; }

/* --- subpage responsive -------------------------------------------------- */
@media (max-width: 1024px) {
  .page-head { padding: 150px 0 56px; }
  .doc__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc__rail { position: static; }
  .doc__body .win__body { padding: 28px 24px 36px; }
  .step { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
  .step__media { grid-column: 1 / -1; }
  .step__no { font-size: 52px; }
  .log__entry { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px 22px; }
  .log__meta { flex-direction: row; align-items: center; gap: 14px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .status-row { padding: 16px 20px; }
  .section-pad { padding-block: 64px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1360px) {
  .hero__inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 48px; }
  .hero__win--main { width: 78%; }
  .hero__win--alt { width: 64%; top: 34%; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .carousel__slide { width: min(72vw, 932px); }
  .carousel__nav--prev { left: 4vw; }
  .carousel__nav--next { right: 4vw; }
  .models__top { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); }
  .build__copy { padding-left: 56px; }
  .build__media { height: auto; aspect-ratio: 1 / 1; }
}

@media (max-width: 1024px) {
  .nav { inset: 10px 20px auto; }
  .nav__group--links .nav__link { display: none; }
  .hero { min-height: 760px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 120px; }
  .hero__media { height: 380px; }
  .hero__copy, .hero__lede { max-width: 100%; }
  .logos { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .use-cases { padding-top: 72px; }
  .carousel__slide { width: 86vw; }
  .carousel__nav { display: none; }
  .carousel__dots { margin-top: 120px; }
  .tint { padding-top: 64px; padding-bottom: 72px; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .feature { padding-top: 120px; }
  .feature__frame { margin-top: 64px; }
  .models__top { grid-template-columns: minmax(0, 1fr); }
  .models__intro { border-right: 0; border-bottom: var(--bw) solid var(--border); }
  .models__grid { grid-template-columns: minmax(0, 1fr); }
  .models__cell { border-right: 0; border-bottom: var(--bw) solid var(--border); }
  .build { grid-template-columns: minmax(0, 1fr); }
  .build__copy { padding: 48px 24px 72px; }
  .cta-split { grid-template-columns: minmax(0, 1fr); }
  .cta-panel { padding: 72px 24px 64px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col { border-bottom: var(--bw) solid var(--border); }
  .site-footer { padding-top: 88px; }
  .footer__legal { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
