/* des-a.css: premium design pass, group a (home, pricing, The Debut). Nov 6 2026. Scoped by body[data-re]. */

/* ===================== THE DEBUT ===================== */

/* Residue: test-spot photo becomes the anchor of the section */
body[data-re="debut"] #residue .db2-res-top{align-items:start}
body[data-re="debut"] #residue .db2-head .lead{max-width:56ch}
@media (min-width:720px) and (max-width:1023px){
  body[data-re="debut"] #residue .db2-res-top{grid-template-columns:minmax(0,1fr) 248px;gap:32px;align-items:start}
  body[data-re="debut"] #residue .db2-spot{width:248px;justify-self:end;transform:rotate(1.2deg)}
  body[data-re="debut"] #residue .db2-res-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:stretch}
  body[data-re="debut"] #residue .db2-tag li{font-size:15px}
  body[data-re="debut"] #residue .db2-spot figcaption{right:8px;bottom:8px;padding:6px 8px;font-size:12px}
  body[data-re="debut"] #residue .db2-spot figcaption span{font-size:14px}
}
@media (min-width:1024px){
  body[data-re="debut"] #residue .wrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(40px,5vw,80px);row-gap:28px;align-items:start}
  body[data-re="debut"] #residue .db2-sheet{grid-column:1/-1;grid-row:1;margin-bottom:0}
  body[data-re="debut"] #residue .db2-res-top,
  body[data-re="debut"] #residue .db2-res-grid{display:contents}
  body[data-re="debut"] #residue .db2-head{grid-column:2;grid-row:2}
  body[data-re="debut"] #residue .db2-tag-std{grid-column:2;grid-row:3;transform:none}
  body[data-re="debut"] #residue .db2-tag-ask{grid-column:2;grid-row:4;transform:none}
  body[data-re="debut"] #residue .db2-spot{grid-column:1;grid-row:2/span 3;width:100%;aspect-ratio:4/5;justify-self:stretch;align-self:start;position:sticky;top:104px;transform:none;border-width:2px}
  body[data-re="debut"] #residue .db2-spot img{object-position:0% 50%}
  /* square image cropped from the right to 4:5; ring keeps marking the niche corner */
  body[data-re="debut"] #residue .db2-spot-ring{left:27.5%;top:52%;width:42.5%}
  body[data-re="debut"] #residue .db2-spot figcaption{right:16px;bottom:16px;padding:10px 14px}
  body[data-re="debut"] #residue .db2-tag{padding:36px 30px 28px}
  body[data-re="debut"] #residue .db2-tag-std ul{grid-template-columns:minmax(0,1fr)}
}

/* Phases: the two footer boxes no longer leave a half-empty box beside a full one */
@media (min-width:1024px){
  body[data-re="debut"] #phases .db2-ph-foot{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
  body[data-re="debut"] #phases .db2-cost ul{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px}
}

/* Windows: below desktop the copy (with its sheet label) leads, the elevation follows */
@media (max-width:899px){
  body[data-re="debut"] #windows .db2-win-copy{order:-1}
}

/* ===================== HOME ===================== */

/* Areas: the centred heading-plus-paragraph opener reads as a theme default; set it as a left-aligned
   split head (title left, intro right on desktop) like the rest of the page, with a hairline rule. */
body[data-re="home"] #areas .ar3-head{max-width:none;margin-left:0;margin-right:0;text-align:left;justify-items:start}
body[data-re="home"] #areas .ar3-head h2{text-align:left;max-width:22ch}
body[data-re="home"] #areas .ar3-intro{text-align:left;justify-items:start;justify-self:start;margin-left:0;max-width:52ch}
body[data-re="home"] #areas .ar3-intro .lead{text-align:left;margin-left:0}
@media (min-width:1000px){
  body[data-re="home"] #areas .ar3-head{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);column-gap:clamp(40px,6vw,96px);align-items:end;padding-bottom:28px;border-bottom:1.5px solid var(--fg,#000)}
  body[data-re="home"] #areas .ar3-head h2{max-width:none}
  body[data-re="home"] #areas .ar3-intro{justify-self:end}
}

/* Reviews, tablet: the 4.9 sat far from its caption, and the third Moving quote left half a row empty */
@media (min-width:600px) and (max-width:1023px){
  body[data-re="home"] #reviews .rx-score{grid-template-columns:auto minmax(0,1fr);column-gap:28px;justify-content:start;align-items:center}
  body[data-re="home"] #reviews .rx-score .rx-n{grid-row:1/span 2}
  body[data-re="home"] #reviews .rx-g1 .rx-list>li:last-child:nth-child(odd){grid-column:1/-1}
}

/* Final CTA, tablet: receipt centred under the copy instead of hugging the left edge */
@media (min-width:600px) and (max-width:999px){
  body[data-re="home"] #final-cta .fx-tk{margin-inline:auto;justify-self:center}
}

/* Upkeep, desktop: copy column was top-aligned against a much taller plan card, leaving a dead block
   under the list; centre it on the card so both columns end together visually. */
@media (min-width:1100px){
  body[data-re="home"] #upkeep .upk-grid{align-items:center}
  body[data-re="home"] #upkeep .upk-copy{align-self:center}
}
