/* ============================================================
   MakeReady — custom mount design service
   Design system: "the page is a technical drawing"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Expanded:wght@500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* --- palette: CAD drawing sheet --- */
  --sheet:        #E7ECF0;  /* cool vellum paper */
  --sheet-2:      #DFE5EB;  /* recessed paper */
  --surface:      #F7F9FB;  /* card */
  --surface-hi:   #FFFFFF;
  --ink:          #131D27;  /* primary linework + text */
  --ink-2:        #4A5763;  /* secondary text */
  --ink-3:        #7C8893;  /* captions / dim text */
  --hair:         #C3CCD4;  /* hairline rules */
  --hair-2:       #D4DBE1;

  --blue:         #1656C9;  /* draft blue — structure / dimension lines / links */
  --blue-soft:    #E3EBFA;
  --green:        #11835A;  /* validation PASS */
  --green-soft:   #DCEFE7;
  --red:          #CE362B;  /* redline — flag / markup / CTA */
  --red-soft:     #F7E1DF;

  /* --- type --- */
  --display: 'Archivo Expanded', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* --- metrics --- */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 3px;            /* near-zero: this is a drawing, not a card UI */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--sheet);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* faint engineering grid */
  background-image:
    linear-gradient(var(--hair-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-2) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

::selection { background: var(--red); color: #fff; }

a { color: var(--blue); text-decoration: none; }

/* ---------- shared layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--red);
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }

h2.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 16ch;
  margin: .5rem 0 1.2rem;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 56ch; }

/* dimension-line divider: a measured rule between sections */
.dim-rule {
  display: flex; align-items: center; gap: 0;
  color: var(--blue);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
}
.dim-rule .tick { width: 1px; height: 11px; background: currentColor; }
.dim-rule .line { flex: 1; height: 1px; background: currentColor; position: relative; }
.dim-rule .line::before,
.dim-rule .line::after {
  content: ""; position: absolute; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor;
}
.dim-rule .line::before { left: 0; border-left: 1px solid currentColor; transform: rotate(45deg); transform-origin: left; }
.dim-rule .line::after  { right: 0; border-right: 1px solid currentColor; transform: rotate(-45deg); transform-origin: right; }
.dim-rule .val {
  padding: 0 .8em; white-space: nowrap; color: var(--ink-3);
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono); font-weight: 500; font-size: .82rem;
  letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.4em; border: 1px solid var(--ink);
  background: var(--ink); color: var(--surface-hi);
  border-radius: var(--radius); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--red); }
.btn--primary { background: var(--red); border-color: var(--red); }
.btn--primary:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { box-shadow: 4px 4px 0 var(--blue); }
.btn .arrow { transition: transform .12s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- titleblock header ---------- */
header.titleblock {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sheet) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.titleblock .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: baseline; gap: .6em; }
.brand .mark {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: .04em;
}
.brand .dwg {
  font-family: var(--mono); font-size: .66rem; color: var(--ink-3);
  letter-spacing: .12em; border-left: 1px solid var(--hair); padding-left: .6em;
}
nav.main { display: flex; align-items: center; gap: 1.6rem; }
nav.main a { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); letter-spacing: .03em; }
nav.main a:hover { color: var(--ink); }
.nav-cta { font-size: .76rem !important; padding: .6em 1em; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--red); }
.hero .lead { margin: 1.4rem 0 2rem; }
.lead-note { color: var(--ink-3); font-size: .92em; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.2rem; margin-top: 2.6rem;
  padding-top: 1.6rem; border-top: 1px solid var(--hair);
  flex-wrap: wrap;
}
.hero-stats .stat .n { font-family: var(--display); font-weight: 700; font-size: 1.7rem; }
.hero-stats .stat .l { font-family: var(--mono); font-size: .68rem; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }

/* drawing viewport */
.viewport {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  background:
    linear-gradient(var(--hair-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair-2) 1px, transparent 1px),
    var(--surface);
  background-size: 22px 22px, 22px 22px, auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}
.viewport .corner {
  position: absolute; width: 10px; height: 10px; border: 1px solid var(--ink-3);
}
.viewport .corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.viewport .corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.viewport .corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.viewport .corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.viewport .vp-label {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .62rem; color: var(--ink-3); letter-spacing: .14em;
}
.viewport svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* real render + aligned annotation overlay (img object-fit:contain and
   svg meet share the same box + aspect, so callouts land on real features) */
.viewport .drawing { position: absolute; inset: 0; }
.viewport .drawing .mount-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewport .drawing svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* animated stroke draw-on */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.animate-in .draw { animation: draw 1.1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fade { opacity: 0; }
.animate-in .fade { animation: fade .5s ease forwards; }
@keyframes fade { to { opacity: 1; } }

/* ---------- generic section ---------- */
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* ---------- problem / comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.compare .col { background: var(--surface); padding: clamp(1.6rem, 3vw, 2.4rem); }
.compare .col.them { background: var(--sheet-2); }
.compare .col h3 { font-size: 1.2rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6em; }
.compare .tag { font-family: var(--mono); font-size: .6rem; padding: .25em .6em; border-radius: 2px; letter-spacing: .08em; }
.compare .tag.bad { background: var(--red-soft); color: var(--red); }
.compare .tag.good { background: var(--green-soft); color: var(--green); }
.compare ul { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.compare li { display: flex; gap: .7em; font-size: .95rem; color: var(--ink-2); }
.compare li::before { font-family: var(--mono); flex-shrink: 0; }
.compare .them li::before { content: "✕"; color: var(--red); }
.compare .us li::before { content: "✓"; color: var(--green); }

/* ---------- value callouts ---------- */
.callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.callout { background: var(--surface); padding: clamp(1.5rem, 2.6vw, 2.1rem); position: relative; transition: background .15s; }
.callout:hover { background: var(--surface-hi); }
.callout .idx { font-family: var(--mono); font-size: .66rem; color: var(--ink-3); letter-spacing: .1em; }
.callout h3 { font-size: 1.18rem; margin: .9rem 0 .6rem; }
.callout p { font-size: .92rem; color: var(--ink-2); }
.callout .leader {
  position: absolute; top: 1.6rem; right: 1.5rem; width: 8px; height: 8px;
  border-radius: 50%; background: var(--blue);
}
.callout.flag .leader { background: var(--red); }
.callout.pass .leader { background: var(--green); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.step { position: relative; padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.step .num { font-family: var(--mono); font-size: .72rem; color: var(--red); letter-spacing: .1em; }
.step h3 { font-size: 1.15rem; margin: .7rem 0 .5rem; }
.step p { font-size: .9rem; color: var(--ink-2); }

/* ---------- validator ---------- */
.mech { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.mech-card { background: var(--surface); padding: clamp(1.5rem, 2.8vw, 2.2rem); position: relative; }
.mech-card .mech-dot { position: absolute; top: 1.7rem; right: 1.6rem; width: 9px; height: 9px; border-radius: 50%; }
.mech-card .mech-dot.blue { background: var(--blue); }
.mech-card .mech-dot.red { background: var(--red); }
.mech-card .idx { font-family: var(--mono); font-size: .64rem; color: var(--ink-3); letter-spacing: .12em; }
.mech-card h3 { font-size: 1.3rem; margin: .8rem 0 .6rem; }
.mech-card p { font-size: .95rem; color: var(--ink-2); max-width: 52ch; }
.mech-card .mech-tech { display: block; margin-top: 1rem; font-family: var(--mono); font-size: .68rem; color: var(--ink-3); letter-spacing: .04em; }

.ledger-wrap { border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ledger-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.1rem; background: var(--ink); color: #cdd6de; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }
.ledger-head .lh-id { color: #fff; }
.ledger-head .lh-frame { color: #8b98a3; }
.ledger-scroll { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .82rem; min-width: 540px; }
.ledger th { text-align: left; background: var(--sheet-2); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; font-weight: 500; padding: .8em 1.1em; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.ledger td { padding: .85em 1.1em; border-bottom: 1px solid var(--hair-2); color: var(--ink-2); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .r { text-align: right; }
.ledger td.num { color: var(--ink); }
.ledger .dim { color: var(--ink-3); }
.verdict { display: inline-block; white-space: nowrap; font-weight: 600; padding: .25em .7em; border-radius: 2px; font-size: .68rem; letter-spacing: .06em; }
.verdict.pass { background: var(--green-soft); color: var(--green); }
.verdict.fail { background: var(--red-soft); color: var(--red); }
.ledger-note { padding: 1.1rem 1.1rem 1.2rem; font-size: .9rem; color: var(--ink-2); max-width: 78ch; border-top: 1px solid var(--hair); }
.ledger-note em { font-style: normal; color: var(--ink); border-bottom: 2px solid var(--green); }
.ledger-note .ledger-src { display: block; margin-top: .7rem; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }

/* ---------- case study ---------- */
.case { background: var(--ink); color: var(--sheet); border-radius: var(--radius); overflow: hidden; }
.case-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.case .eyebrow { color: #9aa7b3; }
.case .eyebrow::before { background: var(--red); }
.case h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: .6rem 0 1.2rem; }
.case p { color: #b9c4cd; }
.case .find {
  margin-top: 1.6rem; border-left: 2px solid var(--red); padding: .2rem 0 .2rem 1.1rem;
}
.case .find .label { font-family: var(--mono); font-size: .64rem; color: var(--red); letter-spacing: .1em; text-transform: uppercase; }
.case .find .txt { color: #e6ebef; font-size: 1.02rem; margin-top: .35rem; }
.case-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #283643; border: 1px solid #283643; border-radius: var(--radius); }
.case-stats .s { background: var(--ink); padding: 1.4rem; }
.case-stats .s .n { font-family: var(--display); font-weight: 700; font-size: 2rem; color: #fff; }
.case-stats .s .l { font-family: var(--mono); font-size: .64rem; color: #8b98a3; letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; }
.case-stats .s .n .unit { font-size: .9rem; color: var(--red); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.tier { background: var(--surface); padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; }
.tier.feature { background: var(--surface-hi); outline: 2px solid var(--ink); outline-offset: -2px; position: relative; z-index: 1; }
.tier .tname { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tier .price { font-family: var(--display); font-weight: 700; font-size: 2rem; margin: .8rem 0 .1rem; }
.tier .price .from { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); display: block; letter-spacing: .08em; }
.tier .price .cur { font-size: 1rem; vertical-align: super; }
.tier .turn { font-family: var(--mono); font-size: .7rem; color: var(--blue); margin-bottom: 1.2rem; }
.tier .desc { font-size: .9rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.6rem; }
.tier li { font-size: .85rem; color: var(--ink-2); display: flex; gap: .6em; }
.tier li::before { content: "—"; color: var(--blue); flex-shrink: 0; }
.tier .btn { margin-top: auto; justify-content: center; }
.tier.feature .badge {
  position: absolute; top: 0; right: 1.4rem; transform: translateY(-50%);
  background: var(--red); color: #fff; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .1em; padding: .35em .8em; border-radius: 2px;
}
.addons { margin-top: 1.4rem; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.addons b { color: var(--ink-2); font-weight: 500; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.faq details { background: var(--surface); }
.faq summary { cursor: pointer; padding: 1.2rem 1.5rem; font-family: var(--display); font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--red); font-size: 1.3rem; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.5rem 1.4rem; color: var(--ink-2); font-size: .95rem; max-width: 70ch; }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; margin: 0 auto 1.4rem; }
.final .lead { margin: 0 auto 2rem; }

/* ---------- footer titleblock ---------- */
footer.titleblock-foot {
  border-top: 1px solid var(--hair); background: var(--surface);
  font-family: var(--mono); font-size: .72rem; color: var(--ink-3);
}
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.foot-cell { padding: 1.2rem 1.4rem; border-right: 1px solid var(--hair); }
.foot-cell:last-child { border-right: 0; }
.foot-cell .k { color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; font-size: .6rem; }
.foot-cell .v { color: var(--ink); margin-top: .35rem; }
.foot-bar { border-top: 1px solid var(--hair); padding: .9rem 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .viewport { max-width: 460px; margin-inline: auto; order: -1; }
  .callouts, .steps, .tiers { grid-template-columns: 1fr 1fr; }
  .case-inner { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav.main { display: none; }
  .compare, .callouts, .steps, .tiers, .mech { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-cell { border-right: 0; border-bottom: 1px solid var(--hair); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .draw { stroke-dashoffset: 0; }
  .fade { opacity: 1; }
}

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