/* The page components, on the 3D Essentials design system.
 *
 * styles.css holds the tokens and the furniture; this holds the things only
 * these pages have — the case-study rows, the outcome cards, the rate card
 * and its running total, the buy cards, the routes on the home page.
 *
 * Rules are ordered as the pages read, so a section is found by scrolling to
 * roughly where it appears on screen. */

/* ---------- the prototype banner ---------- */

.proto {
  margin: 0; padding: 12px var(--s-5); text-align: center;
  font: 14px/1.5 system-ui, sans-serif; color: #6b4a06;
  background: #fff3d6; border-bottom: 1px solid #f0dfc0;
}

/* ---------- the claim ---------- */

.first h1 { max-width: 15ch; }
.first .lede { margin-top: var(--s-5); max-width: 46ch; }
.first .lede em { font-style: normal; color: var(--text); font-weight: 600; }

/* ---------- the work ----------

   Alternating rows so the eye zig-zags down the page rather than running
   along one rail and skipping the words. */

.case {
  display: grid; grid-template-columns: 1.05fr 1fr;
  align-items: center; gap: var(--s-7);
  padding: var(--s-5) 0;
}
.case:nth-of-type(even) .shot { order: 2; }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; gap: var(--s-4); }
  .case:nth-of-type(even) .shot { order: 0; }
}

/* THE IMAGES ARE DARK AND THE PAGE IS NOW LIGHT. The Red 1 logo is artwork
   on black and the QR display was photographed on a dark background, so each
   one sits on its own dark mount rather than floating on white with a hard
   edge — which is what "contain on a white card" would have looked like.
   The mount uses the ink token, so it is the same near-black the dark panels
   use on the other site.

   contain, not cover: cropping a photograph to fill a box is cosmetic;
   cropping a client's logo is publishing part of somebody's trademark. */
.shot {
  margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--ink); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.shot img, .shot picture { display: block; width: 100%; height: 100%; }
.shot img { object-fit: contain; }

.said h3 { font-size: 24px; line-height: 1.15; margin: var(--s-2) 0 var(--s-3); }
.said .eyebrow { margin-bottom: 6px; }
.meta { font: 12.5px var(--mono); color: var(--muted); margin: 0; }

.smallprint { margin-top: var(--s-6); background: var(--paper); }
.smallprint .sm { margin-bottom: var(--s-3); }
.smallprint b { color: var(--text); }

/* ---------- what we make ---------- */

.outcomes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (max-width: 680px) { .outcomes { grid-template-columns: 1fr; } }

.out {
  background: var(--ground); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.out:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.out.full { grid-column: 1 / -1; }
.out .ix { font: 12px/1 var(--mono); color: var(--accent-2); letter-spacing: .12em; }
.out h3 { margin: var(--s-3) 0 var(--s-2); font-size: 19px; line-height: 1.25; }
.out p { margin: 0; }

/* ---------- the routes, on the home page ---------- */

.routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-5); }
@media (max-width: 680px) { .routes { grid-template-columns: 1fr; } }

.route {
  display: block; padding: var(--s-5); text-decoration: none;
  background: var(--ground); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.route:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.route b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--text); margin-bottom: 6px; }
.route small { display: block; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.route.go { grid-column: 1 / -1; background: var(--grad-action); border-color: transparent; }
.route.go b, .route.go small { color: #fff; }
.route.go small { opacity: .92; }

/* ---------- the rate card ---------- */

.est { max-width: none; padding-bottom: 104px; }
.est fieldset { border: 0; margin: 0 0 var(--s-6); padding: 0; }
.est legend {
  font: 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); padding: 0 0 var(--s-3);
}

/* A <label> wrapping its own checkbox, so the whole row is the hit target
   and no for/id pair can drift apart. */
.pick {
  display: grid; grid-template-columns: 22px 1fr auto;
  align-items: start; gap: var(--s-4); margin: 0;
  padding: var(--s-4) var(--s-5); cursor: pointer;
  background: var(--ground); border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.pick + .pick { margin-top: var(--s-2); }
.pick:hover { border-color: var(--line-2); }
.pick:has(input:checked) { border-color: var(--accent); background: #f2f8fe; }
.pick:has(input:focus-visible) { outline: 3px solid rgba(46,144,229,.28); outline-offset: 2px; }

.pick input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); }
.pick span { display: block; }
.pick b { display: block; font-size: 16px; font-weight: 600; }
.pick small { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.pick em { font: 15px var(--mono); font-style: normal; white-space: nowrap; padding-top: 2px; color: var(--text); }

/* Sticky while the card is read: the point of the page is the number moving
   as boxes are ticked, and a number you have to scroll to is one you do not
   watch. Not sticky on a short viewport, where it would eat a third of it. */
.total {
  position: sticky; bottom: var(--s-4); z-index: 2;
  display: grid; gap: 3px;
  background: var(--ground); border: 1.5px solid var(--accent);
  border-radius: var(--r); padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-lg);
}
@media (max-height: 560px) { .total { position: static; } }

.tlabel { font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.total b { font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; }
.total small { font-size: 14px; color: var(--muted); }

/* ---------- the fixed-price things ---------- */

/* auto-fit rather than a fixed column count: there were three of these and
   there are now two, and a hard repeat(3) would have left a gap where the
   product shoot used to be. */
.buys {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4); margin: var(--s-5) 0 var(--s-2);
}

.buy {
  display: flex; flex-direction: column;
  background: var(--ground); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: var(--s-5); box-shadow: var(--shadow-sm);
}
.buy .k { font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.buy > b { display: block; font-family: var(--display); font-size: 34px; letter-spacing: -0.02em; margin: var(--s-3) 0 var(--s-2); }
.buy p { flex: 1; margin: 0 0 var(--s-2); }
.buy p b { display: inline; font-size: inherit; font-family: inherit; letter-spacing: 0; margin: 0; }

/* An <a>, not a <button>: it navigates to another site, so it should
   middle-click, open in a new tab and show its destination like any link. */
.buy .btn { display: block; margin-top: var(--s-4); text-align: center; text-decoration: none; }

/* A buy button that cannot currently buy. Not merely greyed — it stops
   looking like the primary action, because a disabled-looking button that
   still draws the eye is somebody waiting for something to happen. */
.btn.is-off {
  background: none; background-color: var(--paper); color: var(--muted);
  border: 1.5px dashed var(--line-2); box-shadow: none; cursor: not-allowed;
}
.btn.is-off:hover { transform: none; box-shadow: none; color: var(--muted); }

/* ---------- how it runs ---------- */

.steps { counter-reset: s; list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.steps li {
  position: relative; margin-left: 11px; padding: 0 0 var(--s-5) var(--s-6);
  font-size: 15.5px; color: var(--muted); border-left: 2px solid var(--line);
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: -11px; top: 0; width: 22px; height: 22px;
  font: 600 12px/22px var(--mono); text-align: center;
  color: #fff; background: var(--grad-action); border-radius: 50%;
}
.steps b { color: var(--text); font-weight: 600; }

/* ---------- the brief ---------- */

.picked {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5); margin-bottom: var(--s-3); background: var(--paper);
}
.picked ul { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
.picked li { font-size: 15px; color: var(--muted); padding: 3px 0 3px 18px; position: relative; }
.picked li::before { content: "\2022"; position: absolute; left: 4px; color: var(--accent); }
.picked li.sum {
  margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line);
  color: var(--text); font-family: var(--mono); font-size: 13.5px;
}
.picked li.sum::before { content: none; }

.ref {
  font: 13px var(--mono); color: var(--accent-ink);
  background: #eaf3fc; padding: 2px 7px; border-radius: 6px;
}

.onward { margin: var(--s-6) 0 0; }
.onward .btn { display: inline-flex; text-decoration: none; }

/* ---------- pointing at the other site ----------

   Used wherever this site says "not here" and has to say where instead. It
   reads as an answer rather than a refusal, which is the whole point: the
   two sites are one business, and a client who needs a sign as well as a
   video should not feel handed off. */
.elsewhere { background: var(--paper); margin-top: var(--s-5); }
.elsewhere h3 { margin-top: 0; }
.elsewhere ul { margin: var(--s-3) 0 var(--s-4); padding-left: var(--s-5); }
.elsewhere li { margin-bottom: 6px; }
