/* ── 06 · Sample plans ────────────────────────────────────
   Giant brand word drifting behind, then a tabbed viewer: checklist on the left,
   a permit-style sheet (drawing + title block) on the right. */
.smp { position: relative; isolation: isolate; overflow: clip; padding-block: var(--msp-section-y); background: var(--msp-surface); }
.smp__word { position: absolute; top: clamp(20px, 3vw, 48px); left: 0; z-index: -1; pointer-events: none; }
.smp__word span {
  display: block; padding-left: 3vw;
  font-size: clamp(6.5rem, 3rem + 16vw, 24rem); font-weight: 700; line-height: .82; letter-spacing: -.045em;
  white-space: nowrap; color: #E4E9EC;
  will-change: transform;
}
.smp__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: clamp(28px, 5vw, 96px); }
.smp__title { max-width: 11ch; margin-top: 20px; font-size: var(--msp-fs-h2); line-height: 1.04; letter-spacing: -.01em; }
.smp__intro { display: grid; justify-items: start; gap: 28px; }
.smp__intro p { max-width: 48ch; font-size: var(--msp-fs-lead); line-height: 1.6; }

/* Tabs */
.smp__viewer { margin-top: clamp(48px, 5vw, 72px); }
.smp__tabs {
  display: flex; gap: 6px; width: fit-content; max-width: 100%;
  padding: 6px; border: 1px solid var(--msp-divider); border-radius: var(--msp-radius-pill);
  background: #fff; overflow-x: auto; scrollbar-width: none;
}
.smp__tabs::-webkit-scrollbar { display: none; }
.smp-tab {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  height: 52px; padding: 0 22px 0 8px; border-radius: var(--msp-radius-pill);
  font-size: 15.5px; font-weight: 500; color: var(--msp-secondary);
  transition: background-color .3s, color .3s;
}
.smp-tab__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--msp-surface); transition: background-color .3s, color .3s; }
.smp-tab__icon .icon { width: 19px; height: 19px; }
.smp-tab:hover { background: var(--msp-surface); }
.smp-tab[aria-selected="true"] { background: var(--msp-secondary); color: #fff; }
.smp-tab[aria-selected="true"] .smp-tab__icon { background: var(--msp-primary); color: var(--msp-secondary); }

/* Panels */
.smp-panel { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 72px); margin-top: 36px; }
.smp-panel[hidden] { display: none; }
.smp-panel:focus-visible { outline-offset: 8px; border-radius: 12px; }
.smp-panel.is-entering .sheet { animation: msp-sheet-in .6s var(--msp-ease-out); }
.smp-panel.is-entering .smp-panel__info { animation: msp-fade-in .5s var(--msp-ease-out); }
@keyframes msp-sheet-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes msp-fade-in { from { opacity: 0; transform: translateY(10px); } }
.smp-panel__title { font-size: var(--msp-fs-h3); line-height: 1.15; }
.smp-panel__sub { margin-top: 12px; font-size: 15px; color: var(--msp-muted); }
.smp-list { display: grid; gap: 12px; margin-top: 16px; }
.smp-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--msp-secondary); font-weight: 400; }
.smp-list__check { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; background: var(--msp-primary); }
.smp-list__check .icon { width: 13px; height: 13px; }
.smp-panel__for { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--msp-divider); font-size: 15px; line-height: 1.55; }
.smp-panel__for strong { font-weight: 500; color: var(--msp-secondary); }
.smp-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.smp-panel__quote { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--msp-accent); }
.smp-panel__quote .icon { width: 17px; height: 17px; transition: transform .3s var(--msp-ease-out); }
.smp-panel__quote:hover { text-decoration: underline; text-underline-offset: 4px; }
.smp-panel__quote:hover .icon { transform: translateX(3px); }

/* Sheet: 11 × 17 landscape with a title block on the right */
.sheet {
  position: relative; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 24%; gap: 12px;
  aspect-ratio: 17 / 11; padding: 14px;
  border-radius: 6px; background: #fff;
  box-shadow: 0 2px 4px rgb(8 17 25 / .06), 0 44px 80px -42px rgb(8 17 25 / .5);
}
.sheet__badge {
  position: absolute; top: -14px; left: 24px; z-index: 1;
  padding: 6px 12px; border-radius: var(--msp-radius-pill);
  background: var(--msp-primary); color: var(--msp-secondary);
  font-size: 12.5px; font-weight: 600;
}
.sheet__draw { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 12px; border: 1.5px solid var(--msp-secondary); }
.sheet__draw svg, .sheet__draw img { width: 100%; height: 100%; object-fit: contain; }
.sheet__draw--photo { padding: 0; }
.sheet__draw--photo img { object-fit: cover; }
.sheet svg text { font-family: var(--msp-font); }
.sheet__tb { display: flex; flex-direction: column; min-height: 0; border: 1.5px solid var(--msp-secondary); font-size: 12px; line-height: 1.35; color: var(--msp-secondary); font-weight: 500; }
.sheet__tb-brand { padding: 12px; border-bottom: 1.5px solid var(--msp-secondary); }
.sheet__tb-brand img { width: 100%; height: auto; }
.sheet__tb-row { padding: 8px 12px; border-bottom: 1px solid #C9D1D6; }
.sheet__tb-row span, .sheet__tb-no span { display: block; margin-bottom: 2px; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--msp-muted); }
.sheet__tb-note { margin-top: auto; padding: 10px 12px; font-size: 10.5px; line-height: 1.4; font-weight: 500; color: var(--msp-muted); }
.sheet__tb-note + .sheet__tb-no { margin-top: 0; }
.sheet__tb-no { margin-top: auto; padding: 12px; background: var(--msp-secondary); color: #fff; font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: .02em; }
.sheet__tb-no span { color: var(--msp-on-dark-muted); }

/* Drawing styles specific to the sample sheets (shared sp-* styles live in quick-answer.css) */
.sh-pool { fill: #E2F3BB; stroke: var(--msp-secondary); stroke-width: 1.5; }
.sh-barrier { fill: none; stroke: var(--msp-accent); stroke-width: 2; stroke-dasharray: 2 4; }
.sh-note { font-size: 10px; font-weight: 600; letter-spacing: .08em; fill: var(--msp-accent); }
.sh-roof { fill: #EEF1F3; stroke: var(--msp-secondary); stroke-width: 1.6; stroke-linejoin: round; }
.sh-shingles path, .sh-siding path { stroke: #C9D1D6; stroke-width: 1; }
.sh-wall { fill: #fff; fill-opacity: .4; stroke: var(--msp-secondary); stroke-width: 1.6; }
.sh-open { fill: #fff; stroke: var(--msp-secondary); stroke-width: 1.5; }
.sh-mullion { stroke: var(--msp-secondary); stroke-width: 1; }
.sh-knob { fill: var(--msp-secondary); }
.sh-grade { stroke: var(--msp-secondary); stroke-width: 2; }
.sh-hatch path { stroke: var(--msp-secondary); stroke-width: .8; }
.sh-leader path { fill: none; stroke: var(--msp-secondary); stroke-width: .9; }
.sh-callout text { font-size: 10px; font-weight: 600; letter-spacing: .06em; fill: var(--msp-secondary); }
.sh-pitch { font-size: 11px; font-weight: 600; fill: var(--msp-secondary); }
.sh-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; fill: var(--msp-secondary); }
.sh-sub { font-size: 10px; font-weight: 500; letter-spacing: .08em; fill: var(--msp-muted); }

@media (max-width: 1099px) {
  .smp-panel { grid-template-columns: 1fr; }
  .smp-panel__info { max-width: 560px; }
  .smp-panel .sheet { order: -1; }
}
@media (max-width: 899px) {
  .smp__head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 639px) {
  .smp__tabs { width: 100%; }
  .smp-tab { padding-right: 16px; font-size: 14.5px; }
  .sheet { grid-template-columns: 1fr; aspect-ratio: auto; padding: 10px; }
  .sheet__draw { aspect-ratio: 4 / 3; }
  .sheet__tb { display: grid; grid-template-columns: 1fr 1fr; }
  .sheet__tb-brand, .sheet__tb-note { grid-column: 1 / -1; }
  .sheet__tb-brand img { max-width: 160px; }
  .sheet__tb-row:nth-child(odd) { border-left: 1px solid #C9D1D6; }
  .sheet__tb-no { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; }
}
