/* 10:30 · Intake: the label read as you scroll (intake.js). The markup is
   the end of the scene: the review screen, scrolled down to the prices. */

.intake .chapter-head { max-width: calc(760px + 2 * var(--gutter)); margin-inline: auto; text-align: center; }
.intake .chapter-head p { margin-inline: auto; }
.intake .scene { margin-top: 40px; }
.scene-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  min-height: 100vh; padding-block: 96px 24px;
}

/* The four steps, lit one at a time. */
.steps { display: grid; gap: 30px; }
/* Inactive steps stay readable (muted, not faded); the current one is ink,
   with its number in teal and a teal bar beside it. */
.steps li {
  position: relative;
  display: grid; grid-template-columns: 52px 1fr; column-gap: 8px;
  color: var(--muted);
}
.steps li::before {
  content: ""; position: absolute; left: -18px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px;
  background: var(--accent); transform: scaleY(0); transition: transform .35s var(--ease);
}
.steps li[aria-current]::before { transform: scaleY(1); }
.steps .num { grid-row: span 2; padding-top: .55em; font-family: var(--font-mono); font-size: 14px; color: var(--muted); transition: color .35s var(--ease); }
.steps .label { font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1.15; transition: color .35s var(--ease); }
.steps li[aria-current] .num { color: var(--accent); }
.steps li[aria-current] .label { color: var(--ink); }
.steps .hint { margin-top: 4px; font-size: 16px; color: var(--muted); max-width: 34ch; }

.intake .phone { --pw: 340; justify-self: center; }

/* ── the review screen ── */
.l-review { background: var(--ground); }
.l-review .scroller { position: absolute; left: 0; right: 0; top: 0; padding: 60px 16px 140px; transform: translateY(-404px); }
.l-review .banner {
  margin-top: 14px; display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: 12px;
  background: var(--warn-tint); font-size: 14px; font-weight: 500;
}
.l-review .banner .mono { margin-left: auto; font-size: 13px; color: var(--muted); }
.piece-card { position: relative; padding: 10px 10px 14px; }
.piece-card > .photo:first-child { aspect-ratio: 16 / 9; border-radius: 14px; }
.piece-card .label-thumb {
  position: absolute; right: 18px; top: 128px;
  width: 76px; aspect-ratio: 1; border-radius: 12px; border: 3px solid var(--surface);
  background-size: 60%;
}
.pc-no { margin-top: 12px; font-size: 13px; color: var(--muted); }
.pc-name { margin-top: 2px; font-size: 17px; font-weight: 600; }
.l-review .tabs { margin-top: 14px; display: flex; gap: 22px; padding: 0 6px; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--muted); }
.l-review .tabs span { padding-bottom: 10px; }
.l-review .tabs .on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.fields { padding: 4px 16px; }
.fields .field { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.fields .field:last-child { border-bottom: 0; }
.fields .k { font-size: 12px; color: var(--muted); }
.fields .v { font-size: 17px; font-weight: 500; }
.fields .chips { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.fields .chips span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.fields .chips .on { background: var(--accent-tint); color: var(--accent); border-color: transparent; font-weight: 600; }
.prices { padding: 14px 16px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf { display: flex; flex-direction: column; gap: 4px; }
.pf .k { font-size: 12px; color: var(--muted); }
.pf .v {
  position: relative; display: flex; align-items: center;
  height: 46px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--field);
  font-size: 17px; font-weight: 600; overflow: hidden;
}
.pf .cover {
  position: absolute; top: 2px; bottom: 2px; left: 10px; right: 2px;
  background: var(--surface); transform-origin: 100% 50%; transform: scaleX(0);
}
.pf .caret { position: absolute; left: 12px; top: 12px; width: 1.5px; height: 22px; opacity: 0; }
.pf .caret::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.prices .margin { margin-top: 10px; font-size: 14px; color: var(--good); }
.l-review .actions { margin-top: 14px; display: flex; gap: 6px; }

/* ── the camera ── */
.l-camera { background: #0B0F12; opacity: 0; visibility: hidden; }
.l-camera .photo { position: absolute; left: 34px; right: 34px; top: 150px; width: auto; border-radius: 10px; background-color: #DCDDDA; }
.l-camera .guides { position: absolute; left: 22px; right: 22px; top: 138px; height: 455px; border: 2px solid rgba(255,255,255,.6); border-radius: 18px; clip-path: polygon(0 0,18% 0,18% 2px,82% 2px,82% 0,100% 0,100% 18%,calc(100% - 2px) 18%,calc(100% - 2px) 82%,100% 82%,100% 100%,82% 100%,82% calc(100% - 2px),18% calc(100% - 2px),18% 100%,0 100%,0 82%,2px 82%,2px 18%,0 18%); }
.l-camera .cam-label {
  position: absolute; left: 50%; top: 92px; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 14px; font-weight: 600;
}
.l-camera .shutter { position: absolute; left: 50%; bottom: 128px; width: 74px; height: 74px; margin-left: -37px; border-radius: 50%; border: 4px solid #fff; box-shadow: inset 0 0 0 4px #0B0F12, inset 0 0 0 40px #fff; }
.l-camera .flash { position: absolute; inset: 0; background: #fff; opacity: 0; }

/* ── the care label ── */
.l-label { background: #4F5640; opacity: 0; visibility: hidden; display: grid; place-items: center; }
.woven {
  position: relative; width: 250px; padding: 34px 24px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: #EFEBE1; color: #2A2B2A; border-radius: 4px;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.6);
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px);
  transform: rotate(-2deg);
}
.woven span[data-w] { font-family: var(--font-sans); font-weight: 600; letter-spacing: .16em; text-align: center; }
.woven .w-brand { font-size: 19px; }
.woven .w-size { font-size: 34px; letter-spacing: 0; }
.woven .w-mat { font-size: 15px; }
.woven .w-care { display: flex; gap: 10px; margin-top: 6px; color: #2A2B2A; }
.woven .w-care svg { width: 22px; height: 22px; }
.woven .hl { position: absolute; left: 16px; right: 16px; border-radius: 6px; border: 1.5px solid #4FB3B1; background: rgba(79,179,177,.16); opacity: 0; }
.woven .hl-1 { top: 26px; height: 40px; }
.woven .hl-2 { top: 78px; height: 52px; }
.woven .hl-3 { top: 142px; height: 34px; }
.woven .scanline { position: absolute; left: -12px; right: -12px; top: 0; height: 2px; background: #4FB3B1; box-shadow: 0 0 14px 3px rgba(79,179,177,.6); opacity: 0; }

/* Words in flight from the label to the fields. */
.phone .fly { position: absolute; left: 0; top: 0; z-index: 15; font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; opacity: 0; visibility: hidden; }

@media (max-width: 1023px) {
  .intake .phone { --pw: 300; }
}
@media (max-width: 767px) {
  .scene-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 24px 0; gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .steps li { grid-template-columns: 1fr; }
  .steps .num { grid-row: auto; padding-top: 0; }
  .steps .label { font-size: 22px; }
  .steps .hint { font-size: 14px; }
  .intake .phone { --pw: 280; }
}
