/* studio-update.mjs sections: design your own, the wood and hardware library, the Pro switch.
   Uses the page's own tokens (clean-design.css) so the new sections sit in the same system. */

/* The page sets section backgrounds by id; the new sections keep its white, tint, white rhythm. */
main #materials-library{background:var(--tint)}

/* The live demo says how much of the library it carries. */
main .section-heading>p.su-demo-note{margin-top:10px;font-size:13px;line-height:1.6;opacity:.78}

/* Design your own: one real screen, wide enough to read. */
.su-window{max-width:1040px;margin:0 auto}
.su-window picture{display:block}
.su-window img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 34px 70px -40px rgba(16,26,21,.45),0 8px 22px -14px rgba(16,26,21,.18)}
.su-window figcaption{margin:16px auto 0;max-width:720px;text-align:center;color:var(--muted);font-size:12px;line-height:1.65}

.su-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;max-width:1040px;margin:44px auto 0;padding:0;list-style:none}
.su-steps li{min-width:0;padding-top:18px;border-top:1px solid #cdd5d0}
.su-step-number{display:block;color:var(--green);font-size:27px;font-weight:800;line-height:1.1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.su-steps h3{margin:12px 0 8px;color:var(--ink);font-size:19px;font-weight:800;line-height:1.3;letter-spacing:-.01em}
.su-steps p{margin:0;color:var(--muted);font-size:15px;line-height:1.65}

.su-foot{display:flex;align-items:center;justify-content:space-between;gap:28px;max-width:1040px;margin:40px auto 0;padding:24px 28px;border-radius:16px;background:var(--tint)}
.su-foot p{margin:0;max-width:560px;color:var(--muted);font-size:16px;line-height:1.65}
.su-foot p strong{color:var(--ink)}
.su-foot .button{flex:none}
.su-section .small-disclosure{text-align:center}

/* The library: four counts, then the two shelves as BuildBeaver shows them. */
.su-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:0 0 30px;padding:30px 32px;border-radius:16px;background:#e6efdf;list-style:none}
.su-stats li{display:grid;align-content:start;gap:2px;min-width:0}
.su-stats strong{color:#173f2e;font-size:44px;font-weight:800;line-height:1.1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.su-stats span{color:#173f2e;font-size:16px;font-weight:750;line-height:1.4}
.su-stats small{margin-top:5px;max-width:210px;color:#405846;font-size:12px;line-height:1.6}

/* AI design (third round): what was typed, what came back, three across. */
.su-ideas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;max-width:1040px;margin:0 auto}
.su-ideas article{display:grid;grid-template-rows:1fr auto auto;min-width:0}
.su-said{align-self:end;margin:0 0 14px;padding:14px 18px;border:1px solid var(--line);border-radius:16px 16px 16px 4px;background:#fff;color:var(--ink);font-size:16px;line-height:1.5}
.su-ideas h3{margin:16px 2px 0;color:var(--ink);font-size:19px;font-weight:800;line-height:1.3;letter-spacing:-.01em}
body.rf .su-fill.su-square{aspect-ratio:1/1}
.su-ideas+.su-steps{margin-top:52px}
@media(max-width:900px){.su-ideas{grid-template-columns:1fr;gap:34px;max-width:440px}.su-ideas article{grid-template-rows:auto auto auto}}
.su-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.su-library article{display:grid;grid-template-rows:auto 1fr;min-width:0}
.su-panel-shot{position:relative;height:540px;overflow:hidden;border-radius:14px;background:#fff;padding:34px 34px 0}
.su-panel-shot img{display:block;width:min(100%,439px);height:auto;margin:0 auto;border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;background:#fff;box-shadow:0 24px 50px -30px rgba(16,26,21,.4)}
.su-panel-shot:after{content:"";position:absolute;left:0;right:0;bottom:0;height:70px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff);pointer-events:none}
.su-library-copy{padding:24px 0 0}
.su-library h3{margin:0 0 10px;color:var(--ink);font-size:25px;font-weight:800;line-height:1.25;letter-spacing:-.02em}
.su-library-copy>p{margin:0;max-width:560px;color:var(--muted);font-size:16px;line-height:1.65}
.su-tags{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;padding:0;list-style:none}
.su-tags li{padding:6px 12px;border:1px solid var(--line);border-radius:999px;color:var(--ink);font-size:13px;font-weight:650;line-height:1.4;white-space:nowrap}
.su-tags li:last-child{border-color:transparent;padding-left:4px;color:var(--muted);font-weight:500}

/* Strength and joints: the tint ground again after the white Pro row, so its card turns white. */
main #strength-and-joints{background:var(--tint)}
#strength-and-joints .su-foot{background:#fff}
.su-window-after{margin-top:56px}
/* A list of equals has no trailing "and more". */
.su-tags-even li:last-child{padding-left:12px;border-color:var(--line);color:var(--ink);font-weight:650}

/* The Pro row: a detail row whose picture is a real screen. */
.detail-section .su-shot{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 24px 50px -34px rgba(16,26,21,.4)}
.detail-section .su-shot picture{display:block}
.detail-section .su-shot img{display:block;width:100%;height:auto}

@media(max-width:1000px){
  .su-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px;margin-top:36px}
  .su-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 20px;padding:26px 24px}
  .su-foot{flex-direction:column;align-items:flex-start;gap:18px}
  .su-panel-shot{height:460px;padding:26px 22px 0}
}
@media(max-width:700px){
  .su-window{max-width:390px}
  .su-window img{border-radius:22px}
}
@media(max-width:640px){
  .su-steps{grid-template-columns:1fr;gap:22px;margin-top:30px}
  .su-steps li{padding-top:14px}
  .su-step-number{font-size:24px}
  .su-steps h3{font-size:18px;margin:8px 0 6px}
  .su-foot{margin-top:30px;padding:20px}
  .su-foot .button{width:100%}
  .su-stats{gap:22px 14px;padding:22px 18px;margin-bottom:24px}
  .su-stats strong{font-size:34px}
  .su-stats span{font-size:15px}
  .su-library{grid-template-columns:1fr;gap:36px}
  .su-panel-shot{height:400px;padding:20px 16px 0}
  .su-library h3{font-size:23px}
  .su-tags li{font-size:12px;padding:5px 10px}
  .su-tags-even li:last-child{padding-left:10px}
  .su-window-after{margin-top:40px}
}
