/* ============================================================
   Protoramp — design system
   Ink + bone + precision orange. Industrial, restrained.
   ============================================================ */

:root {
  --ink: #121a1a;
  --ink-2: #1b2726;
  --ink-3: #2a3937;
  --paper: #f6f7f4;
  --paper-2: #eff2ed;
  --white: #ffffff;
  --line: #e2e5df;
  --line-strong: #c9cec7;
  --muted: #5e6b68;
  --muted-2: #8e9995;
  --accent: #0e6b5b;
  --accent-2: #0a5447;
  --accent-soft: #e6f1ed;
  --deep: #0b3e37;
  --warn: #d9531e;
  --warn-soft: #fdece5;
  --ok: #1f7a4d;

  --container: 1240px;
  --radius: 2px;
  --shadow: 0 18px 50px -24px rgba(11, 13, 15, 0.35);

  /* Microsoft.com uses Segoe UI Variable. Windows gets it natively;
     macOS/iOS fall back to the system UI font (SF Pro), which matches the same rhythm. */
  --font-sans: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI",
    -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial,
    "PingFang SC", sans-serif;
  --font-mono: "SF Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.section--tight {
  padding: 72px 0;
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
  border-top: none;
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 650;
  margin-top: 18px;
}

.section-head p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
}

.section--dark .section-head p {
  color: #a8afb6;
}

/* ---------- build banner ---------- */

.build-banner {
  background: var(--accent-soft);
  color: #2c4b44;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(14, 107, 91, 0.14);
}

.build-banner .container {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  flex-wrap: wrap;
}

.build-banner strong {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 11px;
  text-transform: uppercase;
}

.build-banner a {
  margin-left: auto;
  color: var(--accent-2);
  border-bottom: 1px solid rgba(14, 107, 91, 0.35);
  padding-bottom: 1px;
}

.build-banner a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
}

.brand__mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 12px;
}

.nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #383d42;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 9px 11px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 3.5px 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

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

.btn--accent {
  background: var(--accent);
  color: var(--white);
}

.btn--accent:hover {
  background: var(--accent-2);
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

.btn--ink:hover {
  background: var(--ink-3);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

.btn__arrow {
  transition: transform 0.18s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(18, 26, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 26, 26, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 78% 28%, #000 0%, transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -14%;
  top: -40%;
  width: 58%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(14, 107, 91, 0.13) 0%, transparent 64%);
  filter: blur(14px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
  padding: 92px 0 84px;
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 640;
  margin-top: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero__meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__meta strong {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.hero__meta span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero__visual {
  position: relative;
}

/* ---------- trust bar ---------- */

.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-bar ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  font-size: 13.5px;
  font-weight: 550;
  border-left: 1px solid var(--line);
}

.trust-bar li:first-child {
  border-left: none;
  padding-left: 0;
}

.trust-bar svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

/* ---------- asset slots ---------- */

.asset-slot {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asset-slot__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 320px;
  padding: 22px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(217, 83, 30, 0.035) 0 10px,
      transparent 10px 20px
    ),
    var(--white);
  border: 1px dashed var(--warn);
  overflow: hidden;
}

.asset-slot__frame::before,
.asset-slot__frame::after {
  content: "";
  position: absolute;
  background: var(--warn);
  opacity: 0.5;
}

.asset-slot__frame::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.asset-slot__frame::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.asset-slot__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  background: var(--warn);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
}

.asset-slot__title {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.asset-slot__spec {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.asset-slot figcaption {
  font-size: 12.5px;
  color: var(--muted);
}

.asset-slot--dark .asset-slot__frame {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03) 0 10px,
      transparent 10px 20px
    ),
    var(--ink-2);
  border-color: rgba(226, 75, 31, 0.75);
}

.asset-slot--dark .asset-slot__title {
  color: var(--white);
}

.asset-slot--dark .asset-slot__spec {
  color: #8d959d;
}

.asset-slot--wide .asset-slot__frame {
  min-height: 420px;
}

/* ---------- process cards ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.process-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.process-card__media {
  min-height: 240px;
  border-bottom: 1px solid var(--line);
}

.process-card__media .asset-slot__frame {
  min-height: 240px;
  border: none;
  border-bottom: 1px dashed rgba(217, 83, 30, 0.5);
}

.process-card__body {
  padding: 30px 32px 34px;
}

.process-card h3 {
  font-size: 25px;
  letter-spacing: -0.02em;
  font-weight: 640;
}

.process-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.process-card ul {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

.process-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #3c4247;
}

.process-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

.process-card__link {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.process-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.process-card:hover .process-card__link svg {
  transform: translateX(4px);
}

/* ---------- spec table ---------- */

.spec-wrap {
  border: 1px solid var(--line);
  background: var(--white);
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
  background: #fbfaf8;
}

.spec-table td {
  color: #444a50;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.tbc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid rgba(217, 83, 30, 0.28);
  padding: 2px 7px;
  max-width: 100%;
  white-space: normal;
}

.spec-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- callout ---------- */

.callout {
  border-left: 3px solid var(--warn);
  background: var(--warn-soft);
  padding: 24px 26px;
}

.callout strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warn);
  margin-bottom: 8px;
}

.callout p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #5b4a44;
}

.callout--info {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.callout--info strong {
  color: var(--accent-2);
}

.callout--info p {
  color: #2f4a44;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 34px 26px 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: none;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.step h3 {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 100%;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.card__icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.card h3 {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.card__link {
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ---------- materials ---------- */

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.material {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: transparent;
  transition: background 0.18s ease;
}

.material:hover {
  background: var(--white);
}

.material strong {
  font-size: 17px;
  font-weight: 600;
}

.material span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- case placeholders ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.case-card__media .asset-slot__frame {
  min-height: 210px;
  border: none;
  border-bottom: 1px dashed rgba(217, 83, 30, 0.45);
}

.case-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-card__tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}

.case-card h3 {
  font-size: 17px;
  font-weight: 620;
  line-height: 1.35;
}

.case-card p {
  font-size: 13.5px;
  color: var(--muted);
}

.case-card__body .status-pill {
  align-self: flex-start;
}

/* ---------- feature list ---------- */

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.feature__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 4px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 620;
}

.feature p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.18s ease;
}

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

.faq-item p {
  padding: 0 0 26px;
  max-width: 820px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -60%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 66%);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 76px 0;
}

.cta-band h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 640;
  max-width: 640px;
}

.cta-band p {
  margin-top: 16px;
  color: #bcd3cd;
  font-size: 16px;
  max-width: 560px;
}

.cta-band__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* On the deep teal band, invert the hierarchy: white primary, outline secondary. */
.cta-band .btn--accent {
  background: var(--white);
  color: var(--ink);
}

.cta-band .btn--accent:hover {
  background: #e8efec;
}

.cta-band .btn--light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
}

.cta-band .btn--light:hover {
  border-color: var(--white);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--paper-2);
  color: var(--muted);
  padding: 64px 0 32px;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
}

.footer-brand .brand {
  color: var(--ink);
}

.footer-brand p {
  margin-top: 18px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 650;
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------- page hero (inner) ---------- */

.page-hero {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 76px 0 68px;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(18, 26, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 26, 26, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 82% 26%, #000 0%, transparent 72%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.breadcrumb {
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

.page-hero h1 {
  margin-top: 20px;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 640;
}

.page-hero p {
  margin-top: 22px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

.page-hero__actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-hero .asset-slot__frame {
  min-height: 300px;
}

/* ---------- content prose ---------- */

.prose {
  max-width: 800px;
}

.prose h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 630;
  margin-top: 56px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 19px;
  font-weight: 620;
  margin-top: 32px;
}

.prose p {
  margin-top: 16px;
  color: #40464c;
  font-size: 16px;
  line-height: 1.78;
}

.prose ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.prose li {
  position: relative;
  padding-left: 20px;
  color: #40464c;
  line-height: 1.7;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 1.5px;
  background: var(--accent);
}

/* ---------- form ---------- */

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3a4046;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line-strong);
  background: #fcfbf9;
  padding: 12px 14px;
  font-size: 14.5px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.dropzone {
  border: 1px dashed var(--line-strong);
  background: #fbfaf8;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.dropzone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone strong {
  display: block;
  font-size: 15px;
}

.dropzone span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.form-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.side-panel {
  border-top: 3px solid var(--accent);
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 32px;
}

.side-panel h3 {
  font-size: 17px;
  font-weight: 620;
}

.side-panel ul {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.side-panel li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 13.5px;
  color: #454b51;
  line-height: 1.6;
}

.side-panel svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  margin-top: 3px;
}

/* ---------- build notes ---------- */

.notes-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
}

.notes-table th,
.notes-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.notes-table th {
  background: #fbfaf8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.notes-table code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--warn-soft);
  color: var(--warn);
  padding: 2px 6px;
}

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
}

.status-pill--todo {
  color: var(--warn);
  border-color: rgba(217, 83, 30, 0.4);
  background: var(--warn-soft);
}

/* ---------- RFQ checker ---------- */

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 36px;
  align-items: start;
}

.check-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
}

.check-block {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.check-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.check-block h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.check-block p.hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: #fcfbf9;
  font-size: 13.5px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option:hover {
  border-color: var(--ink);
}

.option input {
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: none;
}

.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.field-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.field-inline label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3a4046;
}

.field-inline input,
.field-inline select {
  border: 1px solid var(--line-strong);
  background: #fcfbf9;
  padding: 11px 13px;
  font-size: 14px;
  border-radius: var(--radius);
  outline: none;
}

.field-inline input:focus,
.field-inline select:focus {
  border-color: var(--ink);
  background: var(--white);
}

.tool-result {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 30px;
}

.tool-result__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 650;
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}

.score-line strong {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 680;
  color: var(--ink);
}

.score-line span {
  font-size: 14px;
  color: var(--muted);
}

.score-bar {
  height: 6px;
  background: var(--paper-2);
  margin-top: 16px;
  overflow: hidden;
}

.score-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.35s ease, background 0.35s ease;
}

.score-status {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.check-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
}

.check-list__icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.check-list__icon--ok {
  color: var(--accent);
}

.check-list__icon--miss {
  color: var(--warn);
}

.check-list strong {
  display: block;
  font-weight: 620;
}

.check-list span {
  color: var(--muted);
}

.tool-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.tool-actions .btn {
  width: 100%;
}

.tool-note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-2);
}

@media (max-width: 980px) {
  .tool-shell {
    grid-template-columns: 1fr;
  }
  .tool-result {
    position: static;
  }
}

@media (max-width: 620px) {
  .option-grid,
  .field-inline {
    grid-template-columns: 1fr;
  }
  .check-card,
  .tool-result {
    padding: 22px;
  }
}

/* ---------- reveal ---------- */

.js [data-reveal] {
  transform: translateY(10px);
  transition: transform 0.5s ease;
}

.js [data-reveal].is-visible {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal] {
    transform: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero__inner,
  .page-hero__inner,
  .feature-split,
  .quote-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 26px;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle {
    display: block;
  }
  .header-phone {
    display: none;
  }
  .site-header__actions .btn {
    display: none;
  }
  .process-grid,
  .case-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }
  .trust-bar ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-bar li:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 68px 0;
  }
  .hero__inner {
    padding: 60px 0 56px;
  }
  .card-grid,
  .form-row,
  .footer-grid,
  .trust-bar ul {
    grid-template-columns: 1fr;
  }
  .trust-bar li {
    border-left: none;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px;
  }
  .build-banner .container {
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .build-banner a {
    margin-left: 0;
  }
  .hero h1 {
    font-size: clamp(30px, 8.4vw, 42px);
  }
  .page-hero h1 {
    font-size: clamp(27px, 7.6vw, 38px);
  }
  .section-head h2 {
    font-size: clamp(25px, 7vw, 34px);
  }
  .spec-table th,
  .spec-table td {
    padding: 13px 14px;
    font-size: 13.5px;
  }
  .spec-table th {
    width: 40%;
  }
  .hero__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
  }
}
