/* ============================================================
   BUSINESS BUILDER — "the blueprint"

   The division builds things, so the page is a drawing sheet:
   grid paper under everything, corner brackets on every panel,
   dimension ticks, and section headers set like sheet labels.
   Amber on graphite, because that's what a plotter pen looks
   like on a dark print.

   The assembly diagram is still the hero object, but it now sits
   ON the drawing rather than floating over a generic dark page —
   six components converging into one core, drawn to scale.
   ============================================================ */

/* ---------- the drawing sheet ---------- */

/* The page tint goes on <html>, never on <body>. The star canvas sits at
   z-index -2 behind the body, so a solid body background would bury it —
   body has to stay transparent on every page that shows the star. */
html { background: #070911; }

/* The blueprint grid rides ABOVE the star and below the content, so the
   star reads as depth behind the drawing rather than being hidden by it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 166, 59, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 166, 59, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(242, 166, 59, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 166, 59, 0.022) 1px, transparent 1px);
  background-size: 8rem 8rem, 8rem 8rem, 1.6rem 1.6rem, 1.6rem 1.6rem;
}

/* Sections keep a scrim so neither the star nor the grid fights the copy. */
main > section:not(.hero) { background: rgba(7, 9, 17, 0.91); }
.foot { background: rgba(7, 9, 17, 0.9); }

/* ---------- sheet labels ---------- */

.kick--accent b { border-radius: 0; }
.bl-sheet {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(242, 166, 59, 0.3);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.bl-sheet::before { content: ""; width: 1.4rem; height: 1px; background: var(--accent); }

/* Corner brackets — the detail that makes a box read as a drawn plate
   rather than a card. Drawn with a conic gradient so it's one element and
   no extra markup. */
.bl-plate {
  position: relative;
  border: 1px solid rgba(242, 166, 59, 0.16);
  background: rgba(9, 11, 20, 0.72);
}
.bl-plate::before,
.bl-plate::after {
  content: "";
  position: absolute;
  width: 0.9rem; height: 0.9rem;
  border: 1px solid var(--accent);
  pointer-events: none;
}
.bl-plate::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.bl-plate::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

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

.blhero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: auto;
  padding: clamp(7rem, 12vw, 9rem) var(--pad) clamp(4rem, 8vw, 6rem);
}
.blhero::before { display: none; }
.blhero__h1 { margin-top: 1.6rem; }
.blhero .hero__sub { margin-top: 1.6rem; }
.blhero .hero__note { border-top: 1px dashed rgba(242, 166, 59, 0.3); padding-top: 1.1rem; }

/* ---------- the assembly ---------- */

.assembly {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 30rem;
  margin: 0 auto;
}
.assembly__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.assembly__lines line { stroke: rgba(242, 166, 59, 0.35); stroke-width: 0.35; stroke-dasharray: 1.5 1.5; }
.aflow { fill: var(--accent); opacity: 0.95; }
.aflow--opt { fill: var(--dim); opacity: 0.55; }

.apiece {
  position: absolute;
  width: 6.6rem;
  padding: 0.7rem 0.5rem;
  text-align: center;
  border: 1px solid rgba(242, 166, 59, 0.4);
  background: #0a0d16;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
  transform: translate(calc(-50% + var(--ox)), calc(-50% + var(--oy)));
}
.apiece i { display: block; font-style: normal; color: var(--dim); font-size: 0.52rem; margin-top: 0.15rem; }
.apiece--opt { border-style: dashed; border-color: var(--dim); }

.apiece[data-piece="1"] { left: 50%; top: 10%; }
.apiece[data-piece="2"] { left: 84.6%; top: 30%; }
.apiece[data-piece="3"] { left: 84.6%; top: 70%; }
.apiece[data-piece="4"] { left: 50%; top: 90%; }
.apiece[data-piece="5"] { left: 15.4%; top: 70%; }
.apiece[data-piece="6"] { left: 15.4%; top: 30%; }

.assembly.is-in .apiece { opacity: 1; transform: translate(-50%, -50%); }
.assembly.is-in .apiece[data-piece="2"] { transition-delay: 0.08s; }
.assembly.is-in .apiece[data-piece="3"] { transition-delay: 0.16s; }
.assembly.is-in .apiece[data-piece="4"] { transition-delay: 0.24s; }
.assembly.is-in .apiece[data-piece="5"] { transition-delay: 0.32s; }
.assembly.is-in .apiece[data-piece="6"] { transition-delay: 0.4s; }

.acore {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 9.5rem; height: 9.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: radial-gradient(70% 70% at 50% 30%, rgba(242, 166, 59, 0.16), transparent 70%), #0a0d16;
  border: 1px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--white);
  opacity: 0;
  transition: transform 1.1s var(--ease) 0.5s, opacity 1.1s var(--ease) 0.5s;
}
.assembly.is-in .acore { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- component plates ---------- */

.cardgrid { border: 0; background: none; gap: 1rem; }
.card3 { background: rgba(9, 11, 20, 0.72); border: 1px solid rgba(242, 166, 59, 0.16); position: relative; }
.card3::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 0.8rem; height: 0.8rem;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.card3__n { border-bottom: 1px dashed rgba(242, 166, 59, 0.28); color: var(--accent); }
.card3--opt { background: rgba(242, 166, 59, 0.045); border-style: dashed; }
.card3--opt .card3__n { color: var(--dim); }

/* ---------- why bundled ---------- */

.why-bundle { padding: clamp(4rem, 9vw, 7rem) 0; }
.why-bundle .wrap { position: relative; padding-left: calc(var(--pad) + 1.6rem); }
.why-bundle .wrap::before {
  content: "";
  position: absolute;
  left: var(--pad); top: 0.4rem; bottom: 0.4rem;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px);
  opacity: 0.5;
}

/* ---------- pricing plate ---------- */

.blprice__panel {
  max-width: 40rem;
  margin: 3rem auto 0;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 0;
}
.blprice__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px dashed rgba(242, 166, 59, 0.18); font-size: 0.94rem; }
.blprice__row i { font-style: normal; font-family: var(--mono); font-size: 0.72rem; color: var(--dim); text-align: right; }
.blprice__row--opt span { color: var(--mute); }
.blprice__row--tier span { font-weight: 600; }
.blprice__row--tier i { color: var(--accent); font-size: 1rem; font-weight: 600; }
.blprice__row--ongoing i { color: var(--white); font-weight: 600; }
.blprice__tag {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-left: 0.3rem;
}
.blprice__panel .btn { margin-top: 1.6rem; }
.blprice__foot { margin-top: 1rem; text-align: center; color: var(--dim); font-size: 0.8rem; }

/* ---------- fit columns on the sheet ---------- */

.fitcol { background: rgba(9, 11, 20, 0.72); border-radius: 0; border-color: rgba(242, 166, 59, 0.16); }
.fitcol--yes { border-color: rgba(242, 166, 59, 0.34); }
.fitcol--yes .fitcol__head { color: var(--accent); }
.fitcol--yes .fitcol__mark { background: var(--accent); }
.fitcol--yes .crit__n { color: var(--accent); }

/* ---------- checkout on the sheet ---------- */

.ckpick, .cksum { border-radius: 0; }
.cksum { background: rgba(9, 11, 20, 0.82); }
.ckpick { background: rgba(9, 11, 20, 0.6); }

/* ---------- apply panel ---------- */

.apply__panel { border-radius: 0; border-color: rgba(242, 166, 59, 0.2); background: rgba(9, 11, 20, 0.8); }
.fld input, .fld select, .fld textarea { border-radius: 0; background: #070911; }

@media (max-width: 900px) {
  .blhero { grid-template-columns: 1fr; }
  .assembly { margin-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .apiece, .acore { transition: none; opacity: 1; transform: translate(-50%, -50%); }
  .aflow { display: none; }
}
