.shell-inner { max-width: var(--content-max); margin: 0 auto; padding: var(--sp-4) var(--sp-8); }
.icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.brand { gap: 10px; }
.brand strong { display: block; font-size: 22px; color: var(--ink-1); line-height: 1; }
.brand small { display: block; font: 500 9px var(--font-mono); color: var(--ink-4); letter-spacing: .22em; margin-top: 2px; }
.public-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--canvas), transparent 12%); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.desktop-nav { gap: 28px; font-size: 14px; font-weight: 500; }
.hero { max-width: var(--content-max); margin: 0 auto; padding: var(--sp-20) var(--sp-8) var(--sp-16); display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.12; margin: var(--sp-6) 0; }
.gradient-text { color: var(--brand-600); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.mock-card { position: absolute; border-radius: var(--r-xl); box-shadow: var(--shadow-xl); border: 4px solid var(--surface); overflow: hidden; }
.mock-before { top: 8%; inset-inline-start: 5%; width: 46%; aspect-ratio: 4/5; background: linear-gradient(135deg,var(--canvas-2),var(--border-strong)); transform: rotate(-6deg); }
.mock-after { bottom: 6%; inset-inline-end: 5%; width: 56%; aspect-ratio: 4/5; background: linear-gradient(135deg,var(--amber-300),var(--amber-600),var(--brand-950)); transform: rotate(5deg); }
.mock-card:after, .sample:after { content: ""; position: absolute; bottom: 20%; left: 50%; transform: translateX(-50%); width: 34%; height: 55%; background: var(--ink-1); border-radius: 30% 30% 12% 12%; box-shadow: var(--shadow-lg); }
.section { max-width: var(--content-max); margin: 0 auto; padding: var(--sp-16) var(--sp-8); }
.section-narrow { max-width: 900px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.pad-card { padding: var(--sp-6); }
.auth-grid { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-form-pane { padding: var(--sp-10); display: flex; flex-direction: column; }
.auth-top { margin-bottom: var(--sp-16); }
.auth-card-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-2); }
.auth-footer { text-align: center; color: var(--ink-4); font-size: 12px; }
.auth-showcase { color: var(--surface); padding: var(--sp-10); background: linear-gradient(135deg,var(--brand-700),var(--brand-950)); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-showcase h2 { color: var(--surface); font-size: 40px; line-height: 1.2; }
.auth-showcase h2 strong { color: var(--amber-300); }
.auth-showcase p { color: color-mix(in oklab, var(--surface), transparent 22%); max-width: 440px; line-height: 1.7; }
.sample-stack { position: relative; height: 260px; }
.sample { position: absolute; width: 170px; height: 220px; border-radius: 14px; border: 3px solid var(--surface); box-shadow: var(--shadow-xl); }
.sample-a { top: 10%; inset-inline-start: 2%; background: linear-gradient(135deg,var(--amber-300),var(--amber-600)); transform: rotate(-8deg); }
.sample-b { top: 20%; inset-inline-start: 28%; background: linear-gradient(135deg,var(--brand-200),var(--brand-800)); transform: rotate(3deg); }
.sample-c { top: 34%; inset-inline-start: 48%; background: linear-gradient(135deg,var(--danger-50),var(--danger-700)); transform: rotate(-2deg); }
.quote-card { background: color-mix(in oklab, var(--surface), transparent 92%); border: 1px solid color-mix(in oklab, var(--surface), transparent 88%); border-radius: var(--r-lg); padding: var(--sp-6); line-height: 1.7; }
.app-shell { display: flex; flex-direction: row-reverse; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); height: 100vh; position: sticky; top: 0; background: var(--surface); border-inline-start: 1px solid var(--hairline); padding: var(--sp-5) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-6); }
.side-nav { flex: 1; }
.side-bottom { margin-top: auto; }
.side-nav a, .side-bottom a, .nav-button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); font-size: var(--fs-base); font-weight: 500; text-align: start; }
.side-nav a:hover, .side-bottom a:hover, .nav-button:hover { background: var(--canvas-2); }
.side-nav .primary { background: var(--brand-500); color: var(--surface); box-shadow: var(--shadow-brand); }
.app-main { flex: 1; min-width: 0; }
.topbar { height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--hairline); padding: 0 var(--sp-8); position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: var(--fs-xl); }
.content { max-width: var(--content-max); margin: 0 auto; padding: var(--sp-8); }
.credit-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; border: 1px solid var(--brand-200); border-radius: var(--r-pill); padding: 0 var(--sp-4); background: linear-gradient(135deg,var(--brand-50),var(--surface)); color: var(--brand-700); box-shadow: var(--shadow-brand); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--hairline); text-align: start; }
.notice { padding: var(--sp-4); background: var(--warning-50); border: 1px solid var(--amber-300); border-radius: var(--r-md); }
.generation-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-6); align-items: start; }
.summary-card { position: sticky; top: calc(var(--topbar-h) + var(--sp-6)); }
.dropzone { min-height: 150px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--canvas); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); cursor: pointer; text-align: center; }
.preview-grid, .choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin-top: var(--sp-4); }
.preview-tile, .choice-card { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; position: relative; }
.preview-tile img, .choice-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--canvas-2); }
.preview-tile button { position: absolute; top: 8px; inset-inline-start: 8px; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in oklab, var(--ink-1), transparent 28%); color: var(--surface); }
.segmented { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }
.segmented label, .choice-card { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.segmented label:has(input:checked), .choice-card:has(input:checked), .choice-card.selected { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); box-shadow: 0 0 0 4px var(--focus-ring); }
.choice-card span { display: block; font-size: 12px; color: var(--ink-4); margin-top: 3px; }
.ratios { grid-template-columns: repeat(5,1fr); }
.hero-cta-panel { background: linear-gradient(135deg,var(--brand-600),var(--brand-950)); color: var(--surface); border: none; }
.hero-cta-badge { background: color-mix(in oklab, var(--surface), transparent 84%); color: var(--surface); }
.hero-cta-title { color: var(--surface); font-size: 38px; margin: var(--sp-4) 0; }
.hero-cta-copy { color: color-mix(in oklab, var(--surface), transparent 22%); max-width: 640px; }
.hero-cta-button { background: var(--surface); color: var(--brand-700); margin-top: var(--sp-6); }
.pricing-balance { background: linear-gradient(135deg,var(--brand-700),var(--brand-950)); color: var(--surface); border: none; }
.pricing-balance p { color: color-mix(in oklab, var(--surface), transparent 30%); }
.showcase-swatch { aspect-ratio: 1; position: relative; }
.showcase-swatch-1 { background: linear-gradient(135deg,var(--brand-100),var(--brand-700)); }
.showcase-swatch-2 { background: linear-gradient(135deg,var(--amber-100),var(--amber-600)); }
.showcase-swatch-3 { background: linear-gradient(135deg,var(--success-50),var(--success-700)); }
.showcase-swatch-4 { background: linear-gradient(135deg,var(--info-50),var(--info-500)); }
.stat-card { border-top: 3px solid var(--brand-500); }
.stat-card-warning { border-top-color: var(--warning-500); }
.stat-card-success { border-top-color: var(--success-500); }
.stat-card-info { border-top-color: var(--info-500); }
.quick-action { border-color: color-mix(in oklab, var(--brand-500), var(--border) 72%); }
.quick-action .icon { color: var(--brand-600); }
@media (max-width: 900px) {
  .hero, .auth-grid { grid-template-columns: 1fr; }
  .auth-showcase, .desktop-nav { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; }
  .content, .topbar { padding-inline: var(--sp-4); }
  .generation-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .preview-grid, .choice-grid, .ratios { grid-template-columns: repeat(2, 1fr); }
}
