/* Homepage factory showcase; all colours and fonts come from the design package. */
.home-factory { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.65fr); gap:clamp(1.5rem,3.5vw,3.25rem); align-items:center; border-top:3px double var(--border-mid); }
.factory-copy h2 { margin-bottom:22px; }
.factory-copy>p { margin-bottom:24px; }
.factory-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.factory-tabs button { border:1px solid var(--border-mid); border-radius:6px; background:transparent; color:var(--neel); min-height:46px; padding:8px 20px; }
.factory-tabs [aria-selected="true"] { background:var(--neel-deep); border-color:var(--neel-deep); color:var(--lotus); }
.factory-description { min-height:174px; }
.factory-description h3 { font-size:26px; margin-bottom:12px; }
.factory-description p { font-size:18px; }
.factory-copy .factory-beta { border-left:2px solid var(--terra); padding-left:14px; margin:4px 0 20px; font-size:17px; }
.factory-copy .site-button { margin-top:6px; }
.factory-preview { min-width:0; margin:0; }
.factory-frame { width:100%; padding:0; display:block; overflow:hidden; border:1px solid var(--border-strong); border-radius:8px; background:var(--paper); }
.factory-frame img { width:100%; height:auto; aspect-ratio:8/5; display:block; object-fit:contain; }
.factory-caption { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
.factory-caption p { margin:0; font-size:16px; color:var(--ink-mute); }
.factory-caption strong { display:block; color:var(--ink-soft); font-weight:500; }
.factory-controls { display:flex; align-items:center; gap:5px; flex-shrink:0; }
.factory-controls button { min-width:44px; min-height:44px; padding:5px 10px; border:1px solid var(--border-mid); border-radius:5px; background:transparent; color:var(--neel); font-size:16px; }
.factory-controls button:hover { background:var(--deep); }
.factory-controls [data-factory-play] { min-width:66px; }
@media(max-width:1000px) { .home-factory { gap:32px; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); } .factory-caption { align-items:flex-start; flex-direction:column; } }
@media(max-width:960px) { .home-factory { grid-template-columns:minmax(0,1fr); gap:30px; } .factory-description { min-height:0; } .factory-caption { flex-direction:row; align-items:center; } }
@media(max-width:420px) { .factory-caption { align-items:flex-start; flex-direction:column; } }
