/* Fable's overview-first case study; existing galleries and anchors are retained. */
.juan-detail-page #main > section { padding-block:72px; }
.juan-detail-page #main > .juan-hero { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:48px; align-items:start; padding-block:24px 48px; }
.juan-hero h1 { font-size:clamp(34px,4vw,52px); letter-spacing:-.05em; }
.juan-hero-copy > .overline { margin-bottom:12px; }
.juan-hero-summary { margin-top:16px; font-size:clamp(17px,1.5vw,20px); line-height:1.7; }
.juan-contents { display:grid; gap:22px; margin-top:28px; }
.juan-contents-title { margin:0; font-size:18px; font-weight:700; line-height:1.4; color:var(--text); }
.juan-contents-group { display:grid; }
.juan-contents-label { margin:0 0 4px; font-size:12px; font-weight:700; letter-spacing:.04em; color:var(--blue); }
.juan-contents-group > a { display:grid; grid-template-columns:44px minmax(0,1fr) 14px; align-items:center; gap:14px; min-height:60px; padding-block:10px; border-top:1px solid var(--line); }
.juan-contents-group > a:last-child { border-bottom:1px solid var(--line); }
.juan-contents-icon { width:40px; height:40px; border-radius:11px; background:var(--soft); color:var(--blue); display:grid; place-items:center; }
.juan-contents-icon svg { width:21px; height:21px; }
.juan-contents-copy { min-width:0; display:flex; flex-direction:column; gap:3px; }
.juan-contents-copy strong { font-size:15px; font-weight:600; line-height:1.5; }
.juan-contents-copy > span { color:#4a5568; font-size:13.5px; line-height:1.65; overflow-wrap:anywhere; word-break:auto-phrase; text-wrap:pretty; }
.juan-contents-group > a > span:last-child { color:var(--muted); font-size:13px; }
.juan-contents-group > a:hover strong { color:var(--blue); }
.juan-detail-page #main > section[id], .juan-detail-page .juan-store { scroll-margin-top:108px; }
.juan-detail-page #main > section:not(.juan-hero) { border-top:1px solid var(--line); }
.juan-section-heading { display:grid; gap:10px; margin-bottom:24px; }
.juan-section-heading .overline { margin-bottom:6px; font-size:12px; color:var(--blue); }
.juan-section-heading h2 { font-size:22px; font-weight:700; line-height:1.35; letter-spacing:-.03em; }
.juan-section-heading > p, .juan-section-lead { color:var(--muted); font-size:15px; line-height:1.8; }
.juan-section-lead { max-width:760px; margin-bottom:28px; }
.juan-detail-page #juan-poster .juan-section-heading > p { font-size:13px; }
.juan-detail-page .juan-store { border:0; border-radius:0; background:transparent; }
.juan-detail-page .juan-store-shot { overflow:hidden; border-radius:10px; }
.juan-detail-page .juan-store-copy { padding:22px 0 0; }
.juan-detail-page .juan-store-scope li { padding:0 10px 0 0; border:0; border-radius:0; background:transparent; }
.juan-detail-page .juan-store-copy > .text-link { margin-top:auto; align-self:flex-start; }
.juan-detail-page .juan-menu-entry { display:flex; align-items:flex-start; gap:16px; margin-top:6px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--soft); }
.juan-detail-page .juan-menu-entry > img { flex:0 0 auto; width:106px; height:66px; border-radius:8px; box-shadow:0 0 0 1px var(--line), 0 1px 3px rgb(23 32 43 / 6%); }
.juan-detail-page .juan-menu-entry-copy { min-width:0; flex:1; display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.juan-detail-page .juan-menu-entry-copy p { margin:0; font-size:13.5px; line-height:1.7; color:var(--muted); }
.juan-detail-page .juan-menu-entry-copy .juan-menu-entry-title { font-size:15px; font-weight:700; line-height:1.45; color:var(--ink); }
.juan-detail-page .juan-menu-entry-copy .text-link { margin-top:2px; align-self:flex-start; }
.juan-detail-intro { display:flex; flex-wrap:wrap; gap:10px 32px; align-items:baseline; margin:40px 0 20px; }
.juan-detail-intro h3, .juan-gallery-label { font-size:18px; }
.juan-detail-page .juan-step-gallery { gap:24px; grid-template-columns:repeat(4,minmax(0,1fr)); }
.juan-detail-page .juan-step-gallery .work-shot, .juan-detail-page .poster-translation-grid .work-shot { border:0; border-radius:10px; background:transparent; }
.juan-detail-page .juan-step-gallery figcaption { font-size:13px; margin-top:12px; }
.juan-menu-layout { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.55fr); gap:48px; align-items:start; }
.juan-flow { display:grid; padding:0; margin:0; list-style:none; }
.juan-flow li { display:grid; grid-template-columns:44px minmax(0,1fr); column-gap:16px; align-items:start; padding-block:18px; border-top:1px solid var(--line); }
.juan-flow-icon { width:44px; height:44px; border-radius:12px; background:var(--soft); color:var(--blue); display:grid; place-items:center; }
.juan-flow-icon svg { width:22px; height:22px; }
.juan-flow-body { min-width:0; display:grid; gap:6px; }
.juan-flow p { min-width:0; margin:0; font-size:15px; line-height:1.75; text-wrap:pretty; color:var(--ink); }
.juan-flow p.juan-flow-desc { font-size:13px; line-height:1.75; color:var(--muted); }
.juan-detail-page .juan-step-gallery--single { grid-template-columns:1fr; }
.juan-section-foot { display:grid; gap:12px; margin-top:20px; }
.juan-section-foot p { color:var(--muted); font-size:13px; line-height:1.8; }
.juan-language-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:48px; align-items:center; }
.juan-language-layout > div:first-child > p { color:var(--muted); line-height:1.8; }
.juan-language-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; list-style:none; padding:0; margin:24px 0 16px; }
.juan-language-list li { border-bottom:1px solid var(--line); padding:12px 0; font-size:15px; }
.juan-detail-page .juan-step-gallery--languages { grid-template-columns:minmax(0,220px); justify-content:center; }
.juan-detail-page .juan-step-gallery--languages img { max-height:370px; object-fit:contain; }
.juan-detail-page .poster-translation-grid { gap:24px; }
.juan-detail-page #juan-poster > .caption { margin-top:20px; }
.juan-table-qr { display:grid; grid-template-columns:clamp(74px,18vw,124px) minmax(0,1fr); align-items:center; gap:clamp(12px,3vw,24px); max-width:540px; margin:0 0 28px; padding:clamp(12px,2vw,20px); border:1px solid var(--line); border-radius:14px; background:var(--soft); scroll-margin-top:100px; }
.juan-table-qr .work-shot { display:block; border-radius:8px; overflow:hidden; cursor:zoom-in; }
.juan-table-qr img { display:block; width:100%; height:auto; }
.juan-table-qr figcaption { min-width:0; color:var(--ink); font-size:14px; line-height:1.65; overflow-wrap:anywhere; }
.juan-gallery-label { margin-bottom:24px; }
.juan-screen-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:28px; list-style:none; margin:0; padding:0; }
.juan-screen-grid--four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.juan-screen-grid li, .juan-screen-grid figure { margin:0; min-width:0; }
.juan-screen-grid .case-study-screen { display:block; width:min(100%,210px); margin-inline:auto; }
.juan-screen-grid figcaption { width:min(100%,250px); margin:20px auto 0; display:flex; flex-direction:column; align-items:flex-start; font-size:16px; line-height:1.6; font-weight:600; }
.juan-screen-grid figcaption > .step-label { margin-bottom:8px; }
.juan-screen-grid figcaption > .step-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-bottom:8px; }
.juan-screen-grid figcaption > .step-meta > * { margin:0; }
.juan-screen-grid figcaption p { margin-top:8px; font-size:14px; line-height:1.8; font-weight:400; color:var(--muted); }
.juan-ordering-extras { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto auto auto; gap:0 32px; margin-top:48px; padding-top:32px; border-top:1px solid var(--line); }
.juan-ordering-extras article { min-width:0; display:grid; grid-row:1 / -1; grid-template-rows:subgrid; align-content:start; }
.juan-ordering-extras h3 { font-size:clamp(19px,1.8vw,21px); }
.juan-ordering-extras article > p { margin-top:12px; color:var(--muted); font-size:14px; line-height:1.8; }
.juan-design-previews { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; padding-top:24px; }
.juan-review-preview { padding-top:24px; }
.juan-ordering-extras .case-study-screen { display:block; width:min(100%,210px); margin-inline:auto; }
.juan-ordering-extras figcaption { margin-top:16px; font-size:13px; text-align:center; color:var(--muted); }
.juan-detail-page #main > .juan-inline-cta { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 32px; padding-block:24px; }
.juan-inline-cta > p { font-size:14px; color:var(--muted); }
.juan-inline-cta .actions { margin:0; gap:16px; }
.juan-detail-page .juan-related { display:flex; flex-wrap:wrap; gap:24px; align-items:center; justify-content:space-between; }
@media(max-width:900px) {
 .juan-detail-page #main > .juan-hero { grid-template-columns:1fr; gap:32px; }
 .juan-detail-page .juan-step-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
 .juan-detail-page .juan-step-gallery--single { grid-template-columns:1fr; }
 .juan-detail-page .juan-step-gallery--languages { grid-template-columns:minmax(0,220px); }
 .juan-menu-layout { grid-template-columns:1fr; gap:28px; }
 .juan-language-layout { gap:28px; }
 .juan-screen-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px 20px; }
 .juan-screen-grid--four { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .juan-ordering-extras { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:none; gap:40px 24px; }
 .juan-ordering-extras article { display:flex; flex-direction:column; grid-row:auto; grid-template-rows:none; }
 .juan-ordering-extras article:first-child { grid-column:1 / -1; }
 .juan-ordering-extras article > .juan-design-previews,
 .juan-ordering-extras article > .juan-review-preview { margin-top:auto; }
}
@media(max-width:600px) {
 .juan-detail-page #main > section { padding-block:48px; }
 .juan-detail-page #main > .juan-hero { display:flex; flex-direction:column; gap:0; padding-block:20px 36px; }
 .juan-hero-copy { display:contents; }
 .juan-hero-copy > .overline { order:0; }
 .juan-hero h1 { order:1; }
 .juan-hero-summary { order:2; font-size:17px; margin-top:12px; }
 .juan-hero-visual { order:4; margin-top:28px; }
 .juan-contents { order:3; width:100%; margin-top:20px; gap:18px; }
 .juan-contents-group > a { grid-template-columns:40px minmax(0,1fr) 12px; gap:12px; min-height:56px; padding-block:8px; }
 .juan-contents-icon { width:36px; height:36px; border-radius:10px; }
 .juan-contents-copy strong { font-size:14px; }
 .juan-section-heading { margin-bottom:20px; }
 .juan-section-heading h2 { font-size:19px; }
 .juan-detail-intro { margin-top:28px; }
 .juan-detail-intro h3, .juan-gallery-label { font-size:17px; }
 .juan-detail-page .juan-step-gallery { gap:16px; }
 .juan-detail-page .juan-step-gallery--single { grid-template-columns:1fr; }
 .juan-detail-page .juan-step-gallery--languages { grid-template-columns:minmax(0,220px); }
 .juan-menu-layout, .juan-language-layout { grid-template-columns:1fr; gap:24px; }
 .juan-screen-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; }
 .juan-screen-grid figcaption { font-size:14px; margin-top:16px; }
 .juan-screen-grid figcaption p { font-size:14px; }
 .juan-detail-page .poster-translation-grid { gap:16px; }
 .juan-ordering-extras { grid-template-columns:1fr; gap:40px; margin-top:40px; }
 .juan-design-previews { gap:16px; }
 .juan-detail-page .juan-menu-entry { gap:14px; padding:14px; }
 .juan-detail-page .juan-menu-entry > img { width:92px; height:auto; aspect-ratio:212 / 132; }
}

/* 2026-11-15 compact flow pass: overrides only, appended so parallel edits above stay conflict-free */
.juan-detail-page { --juan-phone-w:170px; }
.juan-detail-page #main > section { padding-block:48px; }
.juan-section-heading { margin-bottom:18px; }
.juan-detail-intro { margin:28px 0 14px; }
.juan-gallery-label { margin-bottom:16px; }
.juan-contents-group > a { min-height:40px; padding-block:7px; }
.juan-detail-page .juan-store-copy > .text-link { order:1; margin-top:2px; }
.juan-detail-page .juan-menu-entry { order:2; gap:12px; margin-top:6px; padding:12px 14px; border-radius:12px; }
.juan-detail-page .juan-menu-entry > img { width:84px; height:auto; aspect-ratio:212 / 132; }
.juan-detail-page .juan-menu-entry-copy { gap:4px; }
.juan-detail-page .juan-menu-entry-copy p { font-size:13px; line-height:1.65; }
.juan-detail-page .juan-menu-entry-copy .juan-menu-entry-title { font-size:14px; }
.juan-detail-page .juan-store-scope li:not(:last-child)::after { content:"·"; margin-left:10px; color:var(--muted); }
.juan-detail-page .juan-store-shot img { aspect-ratio:2 / 1; object-fit:cover; object-position:top center; }
.juan-language-list { gap:8px; margin:18px 0 12px; }
.juan-language-list li { padding:8px 0; font-size:14px; }
.juan-detail-page .juan-step-gallery--languages img { max-height:300px; }
.juan-detail-page .poster-translation-grid img { max-height:320px; width:auto; max-width:100%; margin-inline:0; }
.juan-screen-grid { --juan-grid-gap:28px; }
.juan-screen-grid .case-study-screen,
.juan-ordering-extras .case-study-screen { width:min(100%,var(--juan-phone-w)); }
.juan-screen-grid figcaption { margin-top:14px; font-size:15px; }
.juan-screen-grid figcaption p { margin-top:6px; font-size:13.5px; line-height:1.7; }
.juan-ordering-extras { margin-top:32px; padding-top:24px; }
.juan-design-previews,
.juan-review-preview { padding-top:16px; }
@media(min-width:601px) {
 .juan-language-list { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .juan-detail-page .juan-ordering-extras { --juan-phone-w:160px; }
}
@media(min-width:901px) {
 .juan-screen-grid li { position:relative; }
 .juan-screen-grid li:not(:last-child)::after { content:"→"; position:absolute; right:calc(var(--juan-grid-gap, 28px) / -2); transform:translate(50%,-50%); top:calc((var(--juan-phone-w) - 16px) * 900 / 828 + 8px); color:var(--muted); font-size:16px; line-height:1; pointer-events:none; }
}
@media(max-width:600px) {
 .juan-detail-page { --juan-phone-w:150px; }
 .juan-detail-page #main > section { padding-block:36px; }
 .juan-contents-group > a { padding-block:6px; }
 .juan-detail-page .juan-store-shot img { aspect-ratio:16 / 9; }
 .juan-detail-page .juan-step-gallery--languages { grid-template-columns:minmax(0,180px); }
 .juan-ordering-extras { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; }
 .juan-ordering-extras article:first-child { grid-column:1 / -1; }
 /* side-by-side extras: share heading/text/phone rows so both phones start at the same height */
 .juan-ordering-extras article:not(:first-child) { display:grid; grid-row:span 3; grid-template-rows:subgrid; row-gap:0; align-content:start; }
 .juan-ordering-extras article:not(:first-child) > .juan-review-preview { margin-top:0; }
}

/* 2026-11-15 scope rows: real photo + plain-language description, laid out like /how-it-works/ */
.juan-hero-actions { margin-top:24px; }
.juan-detail-page #main > .juan-scope { padding-block:32px 40px; }
.juan-scope .juan-contents { gap:32px; margin-top:0; }
.juan-scope .juan-contents-title { font-size:clamp(24px,2.6vw,32px); line-height:1.35; }
.juan-scope .juan-contents-label { margin:0 0 6px; }
.juan-scope .juan-contents-group > a { grid-template-columns:280px minmax(0,1fr) 20px; gap:28px; align-items:center; min-height:0; padding-block:22px; }
.juan-scope .juan-contents-photo { width:280px; height:150px; border-radius:14px; background:#f4f6fa; border:1px solid var(--line); overflow:hidden; display:flex; align-items:center; justify-content:center; gap:8px; }
.juan-scope .juan-contents-photo > img { display:block; flex:none; height:130px; width:auto; max-width:none; border:0; border-radius:6px; box-shadow:0 1px 4px rgba(20,30,60,.12); }
.juan-scope .juan-contents-photo--wide img { width:100%; height:100%; border-radius:0; box-shadow:none; object-fit:cover; object-position:top; }
.juan-scope .juan-contents-photo--stack { flex-direction:column; gap:6px; padding:8px; }
.juan-scope .juan-contents-photo--stack img { width:100%; height:calc(50% - 3px); object-fit:cover; object-position:top; border-radius:8px; box-shadow:none; }
.juan-scope .juan-contents-photo--icon { color:var(--blue); }
.juan-scope .juan-contents-photo--icon svg { width:56px; height:56px; }
.juan-scope .juan-contents-copy { gap:8px; }
.juan-scope .juan-contents-copy > .juan-contents-kicker { align-self:flex-start; padding:3px 10px; border-radius:999px; background:var(--soft); color:var(--blue); font-size:11px; font-weight:700; letter-spacing:.1em; line-height:1.6; }
.juan-scope .juan-contents-copy strong { font-size:clamp(19px,1.8vw,22px); line-height:1.4; }
.juan-scope .juan-contents-copy > .juan-contents-desc { max-width:38em; color:#4a5568; font-size:15px; line-height:1.8; }
@media(min-width:901px) { .juan-detail-page #main > .juan-hero { align-items:center; } }
@media(max-width:600px) {
 .juan-hero-actions { order:3; margin-top:18px; }
 .juan-detail-page #main > .juan-scope { padding-block:28px 32px; }
 .juan-scope .juan-contents { gap:24px; }
 .juan-scope .juan-contents-group > a { grid-template-columns:104px minmax(0,1fr); gap:14px; align-items:start; padding-block:16px; }
 .juan-scope .juan-contents-more { display:none; }
 .juan-scope .juan-contents-photo { width:104px; height:118px; border-radius:12px; gap:4px; }
 .juan-scope .juan-contents-photo > img { height:92px; border-radius:4px; }
 .juan-scope .juan-contents-photo--wide img { height:100%; }
 .juan-scope .juan-contents-photo--stack { padding:5px; gap:4px; }
 .juan-scope .juan-contents-photo--stack img { height:calc(50% - 2px); }
 .juan-scope .juan-contents-photo--icon svg { width:40px; height:40px; }
 .juan-scope .juan-contents-copy { gap:6px; }
 .juan-scope .juan-contents-copy strong { font-size:16px; }
 .juan-scope .juan-contents-copy > .juan-contents-desc { font-size:13.5px; line-height:1.7; }
}

/* toggle rows: each overview row opens the full section in place */
.juan-scope .juan-toggle { border-top:1px solid var(--line); scroll-margin-top:96px; }
.juan-scope .juan-contents-group > .juan-toggle:last-child { border-bottom:1px solid var(--line); }
.juan-toggle > summary { list-style:none; cursor:pointer; display:grid; grid-template-columns:280px minmax(0,1fr) 34px; gap:28px; align-items:center; padding-block:22px; }
.juan-toggle > summary::-webkit-details-marker { display:none; }
.juan-toggle > summary:focus { outline:none; }
.juan-toggle > summary:focus-visible { outline:2px solid var(--blue); outline-offset:-4px; border-radius:14px; }
.juan-scope .juan-contents-copy h2 { margin:0; font-size:clamp(19px,1.8vw,22px); font-weight:700; line-height:1.4; letter-spacing:-.02em; color:#17191d; }
.juan-toggle > summary:hover .juan-contents-copy h2 { color:var(--blue); }
.juan-toggle-chevron { position:relative; width:32px; height:32px; border:1px solid #cfd8e6; border-radius:50%; color:var(--blue); background:#fff; transition:background .2s, border-color .2s; }
.juan-toggle-chevron::before { content:""; position:absolute; inset:0; margin:auto; width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .2s; }
.juan-toggle > summary:hover .juan-toggle-chevron { border-color:var(--blue); }
.juan-toggle[open] > summary .juan-toggle-chevron { background:var(--soft); border-color:var(--blue); }
.juan-toggle[open] > summary .juan-toggle-chevron::before { transform:translateY(2px) rotate(-135deg); }
.juan-toggle-panel { margin:0 0 28px; padding:clamp(18px,3vw,32px); border:1px solid var(--line); border-radius:18px; background:#fafbfd; }
.juan-toggle-panel > .juan-toggle-lead { margin:0 0 18px; }
.juan-toggle-panel > :last-child { margin-bottom:0; }
@media(max-width:600px) {
 .juan-toggle > summary { grid-template-columns:104px minmax(0,1fr) 28px; gap:12px; align-items:start; padding-block:16px; }
 .juan-toggle-chevron { width:26px; height:26px; margin-top:2px; }
 .juan-toggle-chevron::before { width:6px; height:6px; }
 .juan-scope .juan-contents-copy h2 { font-size:16px; }
 .juan-toggle-panel { margin:0 0 20px; padding:16px 14px; border-radius:14px; }
}

/* iPhone-framed thumbnails and ticket screens; neutralise the global FAQ "+" rotation on opened toggles */
.juan-toggle[open] > summary > span { transform:none; }
.juan-scope .juan-contents-photo .iphone-frame { flex:0 0 auto; width:62px; }
.juan-ticket-shots { display:grid; grid-template-columns:repeat(3,minmax(0,168px)); justify-content:center; gap:28px; margin:8px 0 22px; padding:0; list-style:none; }
.juan-ticket-shots figure { margin:0; }
.juan-ticket-shots .iphone-frame { width:100%; }
.juan-ticket-shots figcaption { margin-top:12px; text-align:center; font-size:11px; letter-spacing:.08em; color:var(--muted); }
@media(max-width:600px) {
 .juan-scope .juan-contents-photo .iphone-frame { width:44px; }
 .juan-scope .juan-contents-photo--phones .iphone-frame:nth-child(n+3) { display:none; }
 .juan-ticket-shots { gap:12px; }
}

/* the global "summary > span" rule (blue, 20px) must not restyle the toggle row's spans */
.juan-toggle > summary > .juan-contents-copy { color:#17191d; font-size:inherit; font-weight:inherit; }

/* The artwork fills these thumbnail cells without a second border. */
.juan-scope .juan-contents-photo--phones, .juan-scope .juan-contents-photo--tall, .juan-scope .juan-contents-photo--icon { border-color:transparent; }

/* Japanese line breaks: wrap by phrase instead of in the middle of words (e.g. 入|力, 選|択) */
.juan-detail-page #main { word-break:auto-phrase; }
.juan-detail-page #main p, .juan-detail-page #main figcaption, .juan-detail-page #main li { text-wrap:pretty; }
.juan-detail-page #main h2, .juan-detail-page #main h3 { text-wrap:balance; }

/* Hero composition: Tokyo page on the left, Sydney laptop on the right, QR menu in front. */
.juan-devices { position:relative; width:100%; max-width:560px; aspect-ratio:1.48; isolation:isolate; }
.juan-devices .juan-device, .juan-devices .juan-device--phone { position:absolute; }
.juan-device--page { inset:3% auto 4% 2%; width:33%; display:grid; grid-template-rows:45% 55%; overflow:hidden; background:#fff; box-shadow:0 8px 24px rgba(17,24,39,.15); }
.juan-device--page img { width:100%; height:100%; object-fit:cover; object-position:left top; }
.juan-device--laptop { left:40%; bottom:12%; width:56%; z-index:1; }
.juan-device-screen { position:relative; overflow:hidden; aspect-ratio:16 / 10; padding:1.25% 1.25% 1.7%; border-radius:2.4% / 3.8%; background:#0b0c0e; box-shadow:0 0 0 1px #2c2e33, 0 18px 32px -18px rgba(17,24,39,.45); }
.juan-device-screen::before { content:""; position:absolute; top:0; left:50%; width:9%; height:3.2%; transform:translateX(-50%); border-radius:0 0 6px 6px; background:#0b0c0e; }
.juan-device-screen img { width:100%; height:100%; object-fit:cover; object-position:left top; border-radius:1px; }
.juan-device-base { position:relative; aspect-ratio:100 / 3.4; margin:0 -6.5%; border-radius:0 0 50% 50% / 0 0 100% 100%; background:linear-gradient(180deg,#f1f2f4 0%,#d9dbdf 45%,#b2b5bb 100%); box-shadow:0 1px 0 rgba(255,255,255,.7) inset, 0 6px 10px -6px rgba(17,24,39,.35); }
.juan-device-base::before { content:""; position:absolute; top:0; left:50%; width:14%; height:38%; transform:translateX(-50%); border-radius:0 0 8px 8px; background:linear-gradient(180deg,#c3c6cb,#d7d9dd); }
.juan-devices .juan-device--phone { left:26%; bottom:6%; width:18%; z-index:2; }
@media(max-width:900px) {
 .juan-devices { margin-inline:auto; }
}

/* 2026-11-15 guest extras (#guest-ordering .juan-ordering-extras): one white card per feature,
   heading + text stacked tight (no shared heading row), phones pushed to the card bottom so they
   line up across cards — every phone in this block carries a caption to keep the heights equal */
.juan-detail-page .juan-ordering-extras { grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr); grid-template-rows:none; gap:20px; }
.juan-detail-page .juan-ordering-extras > article { display:flex; flex-direction:column; grid-row:auto; grid-template-rows:none; padding:24px 24px 20px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.juan-detail-page .juan-ordering-extras h3 { font-size:clamp(18px,1.6vw,20px); line-height:1.45; }
.juan-detail-page .juan-ordering-extras article > p { margin-top:8px; font-size:14px; line-height:1.75; }
.juan-detail-page .juan-ordering-extras article > .juan-design-previews,
.juan-detail-page .juan-ordering-extras article > .juan-review-preview { margin-top:auto; padding-top:20px; }
.juan-detail-page .juan-ordering-extras .juan-design-previews { grid-template-columns:repeat(2,minmax(0,var(--juan-phone-w))); justify-content:center; gap:clamp(16px,3vw,40px); }
.juan-detail-page .juan-ordering-extras figcaption { margin-top:12px; }
@media(max-width:1100px) {
 .juan-detail-page .juan-ordering-extras { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .juan-detail-page .juan-ordering-extras > article:first-child { grid-column:1 / -1; }
}
@media(max-width:600px) {
 .juan-detail-page .juan-ordering-extras { grid-template-columns:minmax(0,1fr); gap:12px; margin-top:24px; }
 .juan-detail-page .juan-ordering-extras > article { padding:16px; border-radius:14px; }
 .juan-detail-page .juan-ordering-extras h3 { font-size:17px; }
 .juan-detail-page .juan-ordering-extras article > p { font-size:13.5px; line-height:1.7; }
 .juan-detail-page .juan-ordering-extras .juan-design-previews { padding-top:16px; }
 /* single-phone features: text left, phone right */
 .juan-detail-page .juan-ordering-extras > article:not(:first-child) { display:grid; grid-row:auto; grid-template-columns:minmax(0,1fr) 112px; grid-template-rows:auto 1fr; gap:0 16px; align-content:start; }
 .juan-detail-page .juan-ordering-extras > article:not(:first-child) > h3 { grid-column:1; grid-row:1; }
 .juan-detail-page .juan-ordering-extras > article:not(:first-child) > p { grid-column:1; grid-row:2; align-self:start; }
 .juan-detail-page .juan-ordering-extras > article:not(:first-child) > .juan-review-preview { grid-column:2; grid-row:1 / -1; margin-top:0; padding-top:0; }
 .juan-detail-page .juan-ordering-extras > article:not(:first-child) figcaption { margin-top:8px; font-size:12px; line-height:1.5; }
}
@media(max-width:380px) {
 /* too narrow for text beside the phone: stack again, phone centered under the text */
 .juan-detail-page .juan-ordering-extras > article:not(:first-child) { display:flex; flex-direction:column; }
 .juan-detail-page .juan-ordering-extras > article:not(:first-child) > .juan-review-preview { padding-top:16px; }
 .juan-detail-page .juan-ordering-extras > article:not(:first-child) .case-study-screen { width:min(100%,140px); }
}

/* Search evidence inside chapter 03. */
