/* ═══════════════════════════════════════════════════════════════
   MISC — "The Develop" utility-page layer
   Legal (single-column editorial), thank-you (print confirmed),
   feedback (darkroom notes), 404 (unexposed frame).
   Loads after /site.css (and /css/product.css or /css/editorial.css
   where those are present).
   ═══════════════════════════════════════════════════════════════ */

/* ── Legal: single-column editorial (no chapter rail) ──────── */
.ed-wrap--single { grid-template-columns: minmax(0, 46rem); justify-content: center; }

/* ── Thank-you: the print is confirmed ─────────────────────── */
.ty-hero {
  display: grid; justify-items: center; text-align: center;
  padding: clamp(8.5rem, 17vh, 12rem) var(--pad-x) clamp(3.5rem, 7vh, 5rem);
}
.ty-hero .eyebrow { color: var(--teal); margin-bottom: 1.1rem; }
.ty-title {
  font-family: var(--f-display); font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 500; font-variation-settings: 'opsz' 144;
  line-height: 1.02; letter-spacing: -0.015em; color: var(--highlight);
}
.ty-title em {
  font-style: italic; font-weight: 390;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  color: var(--amber);
}
.order-meta {
  color: var(--teal); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-top: 1.1rem;
}
.ty-sub { color: var(--silver); max-width: 34rem; margin: 1.3rem auto 2.2rem; }
.ty-sub strong { color: var(--highlight); font-weight: 600; }
.ty-filenote { color: var(--dim); font-size: 0.58rem; letter-spacing: 0.24em; margin-top: 1.2rem; }

.ty-h2 {
  font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 500; font-variation-settings: 'opsz' 80;
  color: var(--highlight); line-height: 1.1; letter-spacing: -0.01em;
}
.ty-h2 em {
  font-style: italic; font-weight: 390;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  color: var(--amber);
}

/* steps: 4-up variant of product.css .steps */
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1400px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .steps--4 { grid-template-columns: 1fr; } }
.step code, .faq-answer code, .ty-sub code {
  font-family: var(--f-mono); font-size: 0.84em;
  background: var(--carbon-2); border: 1px solid var(--line-soft);
  border-radius: 3px; padding: 0.1em 0.4em; color: var(--highlight);
}
.step strong { color: var(--silver); font-weight: 600; }
.step-guide-link { margin-top: 0.75rem; font-size: 0.82rem; }
.step-guide-link a { color: var(--amber); }
.step-guide-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* cross-sell: two more frames */
.ty-cross-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin-top: 2.6rem;
}
.ty-card {
  background: var(--carbon); padding: 2.1rem 2rem 1.9rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: background 0.35s;
}
.ty-card:hover { background: var(--carbon-2); }
.ty-card .tc-no { color: var(--dim); font-size: 0.58rem; letter-spacing: 0.26em; margin-bottom: 0.9rem; }
.ty-card h3 {
  font-family: var(--f-display); font-size: 1.45rem; font-weight: 500;
  font-variation-settings: 'opsz' 40; color: var(--highlight); line-height: 1.2;
  transition: color 0.3s;
}
.ty-card:hover h3 { color: var(--amber); }
.ty-card p { color: var(--dim); font-size: 0.92rem; flex: 1; }
.ty-card .tc-price { color: var(--amber); font-size: 0.66rem; letter-spacing: 0.2em; margin-top: 0.9rem; }
.ty-review { color: var(--dim); font-size: 0.9rem; max-width: 44rem; margin-top: 1.6rem; }
.ty-review a { color: var(--amber); }
.ty-review a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .ty-cross-grid { grid-template-columns: 1fr; } }

/* referral: one quick question */
.referral {
  max-width: 46rem; margin: 0 auto;
  border: 1px solid var(--line-soft); border-radius: 3px;
  background: var(--carbon-2); padding: 1.9rem 1.9rem 1.7rem;
}
.referral-heading { color: var(--highlight); font-weight: 600; margin-bottom: 1.1rem; }
.referral-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.referral-option {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0.5rem 0.85rem; cursor: pointer;
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--silver);
  transition: border-color 0.25s, color 0.25s;
}
.referral-option:hover { border-color: var(--amber-deep); }
.referral-option:has(input:checked) { border-color: var(--amber); color: var(--amber); }
.referral-option input { accent-color: var(--amber); }
.referral input[type="text"] {
  width: 100%; background: var(--carbon); border: 1px solid var(--line); border-radius: 2px;
  color: var(--highlight); font-family: var(--f-body); font-size: 0.92rem;
  padding: 0.7rem 0.9rem; outline: none; transition: border-color 0.3s;
  margin-bottom: 1.2rem;
}
.referral input[type="text"]:focus { border-color: var(--amber); }
.referral-thanks {
  max-width: 46rem; margin: 0 auto; text-align: center;
  color: var(--teal); font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em;
}
.ty-support { text-align: center; color: var(--dim); font-size: 0.95rem; padding: 0 var(--pad-x) clamp(4rem, 8vh, 6rem); }
.ty-support a { color: var(--amber); }
.ty-support a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Feedback: darkroom notes ──────────────────────────────── */
.fb-wrap {
  max-width: 36rem; margin: 0 auto;
  padding: clamp(8.5rem, 16vh, 11rem) var(--pad-x) clamp(4rem, 9vh, 7rem);
}
.fb-wrap .eyebrow { margin-bottom: 1.1rem; }
.fb-title {
  font-family: var(--f-display); font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 500; font-variation-settings: 'opsz' 120;
  line-height: 1.05; letter-spacing: -0.012em; color: var(--highlight);
}
.fb-title em {
  font-style: italic; font-weight: 390;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  color: var(--amber);
}
.fb-sub { color: var(--dim); margin: 1.1rem 0 2.4rem; }
.fb-rating-group { display: grid; gap: 0.45rem; justify-items: start; }
.fb-rating-label {
  font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--dim);
}
.star-rating {
  display: flex; flex-direction: row-reverse; justify-content: flex-end;
  gap: 0.3rem; border: 0; padding: 0;
}
.star-rating input {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden;
}
.star-rating label { cursor: pointer; padding: 0.1rem 0.15rem; line-height: 1; }
.star-rating label::before {
  content: '\2605'; display: block;
  font-size: 1.7rem; color: var(--carbon-3);
  -webkit-text-stroke: 1px var(--dim);
  transition: color 0.2s, transform 0.25s var(--ease-out), -webkit-text-stroke-color 0.2s;
}
.star-rating label:hover::before { transform: translateY(-2px); }
.star-rating input:checked ~ label::before,
.star-rating label:hover::before,
.star-rating label:hover ~ label::before {
  color: var(--amber); -webkit-text-stroke-color: var(--amber);
}
.star-rating input:focus-visible + label {
  outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px;
}
.feedback-thanks { color: var(--teal); font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.12em; }

/* ── 404: the unexposed frame ──────────────────────────────── */
.nf-stage {
  min-height: 100svh;
  display: grid; align-content: center; justify-items: center; text-align: center;
  padding: clamp(7.5rem, 14vh, 9rem) var(--pad-x) clamp(4rem, 8vh, 6rem);
}
.nf-stage .eyebrow { margin-bottom: 1.2rem; }
.nf-title {
  font-family: var(--f-display); font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 500; font-variation-settings: 'opsz' 144;
  line-height: 1.03; letter-spacing: -0.015em; color: var(--highlight);
  max-width: 24ch;
}
.nf-title em {
  font-style: italic; font-weight: 390;
  font-variation-settings: 'opsz' 144, 'SOFT' 55, 'WONK' 1;
  color: var(--amber);
}
.nf-frame {
  position: relative; width: min(100%, 33rem);
  margin: clamp(2rem, 5vh, 3.2rem) 0;
  border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; background: var(--carbon-2);
}
.nf-frame img { width: 100%; height: auto; display: block; filter: saturate(0.92) brightness(0.94); }
.nf-frame-mark {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(232 163 61 / 0.66);
  font-size: 0.62rem; letter-spacing: 0.42em; text-indent: 0.42em;
  text-shadow: 0 1px 8px rgba(0 0 0 / 0.6);
  pointer-events: none;
}
.nf-frame-edge {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--line-soft);
  color: var(--amber-deep); font-size: 0.54rem; letter-spacing: 0.3em;
  white-space: nowrap; overflow: hidden;
}
.nf-sub { color: var(--dim); max-width: 34rem; margin-bottom: 2.2rem; }
.nf-links { display: flex; gap: clamp(1.4rem, 4vw, 2.6rem); flex-wrap: wrap; justify-content: center; }
.nf-links a {
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--silver);
  position: relative; padding: 0.3rem 0;
}
.nf-links a::before { content: '\2726'; color: var(--amber); margin-right: 0.7rem; font-size: 0.6rem; }
.nf-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--amber); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nf-links a:hover { color: var(--amber); }
.nf-links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 760px) {
  .nf-stage { min-height: 0; }
}
