/* B source layout, adapted to A tokens. Only Features is affected. */
#features .feature-layout{display:flex;flex-direction:column}
#features .feature-list{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-bottom:2px solid var(--ink)}

#features .feature-list{width:100%;padding:0;border-bottom:0;gap:24px}
#features .feature-tab{min-height:78px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:22px;gap:18px}
#features .feature-tab[aria-selected=true]{border-top-color:var(--ink);border-bottom-color:var(--ink);color:var(--ink);background:transparent}
#features .preview-stage{width:100%;height:420px;margin-top:20px}
#features .abstract-layout{inset:18px 19%}
#features .edit .abstract-layout{inset:18px 33%}
#features .export .abstract-layout{inset:25px 24%}
#features .preview-surface h3{font-size:36px}
#features .eyebrow,#features .preview-top,#features .preview-kicker{font-size:13px}
@media(min-width:761px) and (max-width:1050px){
 #features .feature-list{gap:16px}
 #features .feature-tab{font-size:19px;gap:12px}
 #features .preview-stage{height:390px}
}
@media(max-width:760px){
 #features .feature-list{order:1;display:block;margin-top:20px}
 #features .feature-tab{min-height:76px;font-size:19px;gap:17px;border-bottom:0}
 #features .feature-tab:last-child{border-bottom:1px solid var(--line)}
 #features .feature-tab[aria-selected=true]{border-bottom-color:var(--line)}
 #features .preview-stage{order:0;height:310px;margin-top:0}
 #features .abstract-layout{inset:14px 24px}
 #features .edit .abstract-layout{inset:14px 70px}
 #features .export .abstract-layout{inset:20px 33px}
 #features .preview-surface h3{font-size:26px}
 #features .eyebrow,#features .preview-top,#features .preview-kicker{font-size:12px}
}



.examples .example-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.examples .example{display:flex;flex-direction:column;gap:12px;min-width:0}
.examples .example h3{margin:0;font-size:18px}
.examples .example-frame{position:static;align-items:stretch;justify-content:flex-start;height:auto;margin:0;padding:0;text-align:left;border:1px solid var(--line);background:#fff}
.examples .example-frame figcaption{padding:9px 12px;border-bottom:1px solid var(--line);font-size:13px}
.examples .example-frame img{position:static;display:block;height:clamp(220px,22vw,320px);object-fit:contain}
@media(min-width:1060px){
 .hero .lead{word-break:keep-all;overflow-wrap:break-word;text-wrap:balance}
}
@media(min-width:761px) and (max-width:1059px){
 .examples .example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .examples .example-grid{grid-template-columns:1fr}
 .examples .example-frame img{height:auto;max-height:440px}
}
#features .preview-stage{height:auto;background:#fff;border:0}
#features .preview-panel{position:relative;inset:auto;display:none}
#features .preview-panel.active{display:flex;animation:feature-reveal .2s ease}
#features .feature-images{display:grid;grid-template-columns:repeat(2,minmax(0,420px));justify-content:center;align-items:center;gap:24px;padding:24px 0;background:#fff}
#features .feature-image{position:relative;display:block;width:100%;min-width:0;border:0;background:#fff;cursor:zoom-in}
#features .feature-image img{display:block;width:100%;height:auto;box-sizing:border-box;border:1px solid #e5e5e5}
#features .feature-zoom-hint{display:block;margin-top:8px;text-align:right;font-size:12px;line-height:1.5;color:var(--muted)}
#features .preview-caption{display:block;margin:0;padding:14px 0 16px;border-top:1px solid var(--line);background:#fff;font-size:20px;line-height:1.7;color:var(--ink)}
.feature-image-dialog{width:min(1100px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:16px;background:#fff;overflow:auto}
.feature-image-dialog::backdrop{background:#0008}
.feature-viewer-close{display:block;margin:0 0 12px auto;padding:8px;min-height:44px}
.feature-image-dialog img{display:block;max-width:100%;height:auto;margin:auto}
@keyframes feature-reveal{from{opacity:0}to{opacity:1}}
@media(max-width:760px){#features .feature-list{order:0;margin-top:0}#features .preview-stage{order:1;margin-top:20px}#features .feature-images{grid-template-columns:minmax(0,1fr);align-items:start;padding:0 0 16px;gap:24px}#features .preview-caption{padding:14px 0;font-size:16px}}
@media(prefers-reduced-motion:reduce){#features .preview-panel.active{animation:none}}

#features{border-bottom-color:#181818}
