.image-generator-page { --ig-width: 1120px; }
.ig-section { width: min(var(--ig-width), calc(100% - 64px)); margin-inline: auto; }
.ig-icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; filter: invert(95%) sepia(6%) saturate(331%) hue-rotate(221deg) brightness(102%); vertical-align: middle; }
.ig-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ig-kicker { color: var(--accent); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .17em; }
.ig-hero { padding: 42px 24px 72px; text-align: center; overflow: hidden; }
.ig-fan { height: 300px; max-width: 1100px; position: relative; margin: 24px auto 0; isolation: isolate; }
.ig-fan-card { position: absolute; width: 224px; height: 168px; top: 26px; left: calc(50% - 112px); border-radius: 23px; overflow: hidden; box-shadow: 0 16px 40px #0005; border: 1px solid #ffffff12; transform-origin: center 140%; }
.ig-fan-card img { width: 100%; height: 100%; object-fit: cover; }
.ig-fan-card:nth-child(1) { transform: translate(-386px, 68px) rotate(-27deg); }
.ig-fan-card:nth-child(2) { transform: translate(-193px, 18px) rotate(-13deg); }
.ig-fan-card:nth-child(3) { z-index: 2; }
.ig-fan-card:nth-child(4) { transform: translate(193px, 18px) rotate(13deg); }
.ig-fan-card:nth-child(5) { transform: translate(386px, 68px) rotate(27deg); }
.ig-fan::after { content: ''; position: absolute; inset: 50% -30% -40px; z-index: 3; background: linear-gradient(transparent, var(--bg) 80%); pointer-events: none; }
.ig-composer { position: relative; z-index: 4; width: min(700px,100%); margin: -70px auto 0; padding: 19px 20px 15px; border: 1px solid #a855f77a; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 4px #a855f70a, 0 15px 60px #0005; text-align: left; }
.ig-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #ff4d8d14, 0 15px 60px #0005; }
.ig-composer textarea { display: block; resize: vertical; width: 100%; min-height: 65px; max-height: 180px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font: 14px/1.65 var(--font-ui); padding: 0; }
.ig-composer textarea::placeholder { color: var(--muted); opacity: 1; }
.ig-composer textarea:focus-visible { outline: 0; }
.ig-composer-bottom { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 12px; }
.ig-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-chips button, .ig-step-styles button, .ig-style-options button { border: 1px solid var(--line); background: #ffffff03; padding: 6px 10px; border-radius: 100px; color: var(--muted); font-size: 10px; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.ig-chips button:hover, .ig-chips button[aria-pressed="true"], .ig-step-styles button:hover { background: #ff4d8d12; border-color: #ff4d8d66; color: var(--text); }
.ig-generate { flex: 0 0 auto; font-size: 12px; padding: 11px 17px; border-radius: 11px; box-shadow: none; }
.ig-generate .ig-icon { width: 17px; height: 17px; }
.ig-hero h1 { margin: 34px auto 18px; max-width: 850px; font-family: var(--font-serif); font-size: clamp(43px, 5.3vw, 67px); line-height: 1.08; font-weight: 400; letter-spacing: -.05em; text-wrap: balance; }
.image-generator-page h2 em, .ig-hero h1 em { font-weight: 400; font-style: italic; color: var(--accent); }
.ig-hero-intro { color: var(--muted); font-size: 14px; line-height: 1.85; }
.ig-hero-fine { color: var(--faint); font-size: 10px; margin-top: 18px; }
.ig-section-label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; font-size: 10px; color: var(--muted); }
.ig-section-label .ig-icon { width: 13px; height: 13px; }
.ig-section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.image-generator-page h2 { font-family: var(--font-serif); font-size: clamp(34px, 3.9vw, 49px); font-weight: 400; line-height: 1.15; letter-spacing: -.04em; text-wrap: balance; }
.ig-section-head h2 { margin: 20px 0 16px; }
.ig-section-head > p { color: var(--muted); font-size: 13px; }
.ig-how { padding: 68px 0 76px; border-top: 1px solid var(--line); }
.ig-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ig-step { background: var(--surface); border: 1px solid var(--line); border-radius: 19px; padding: 23px; }
.ig-step-label { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ig-step-visual { height: 160px; margin: 25px 0; border-radius: 11px; overflow: hidden; }
.ig-step-prompt { border: 1px solid #ff4d8d24; background: var(--surface-2); padding: 18px; position: relative; display: flex; flex-direction: column; justify-content: center; }
.ig-mini-label { color: var(--accent); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.ig-step-prompt p { font-family: var(--font-serif); font-size: 20px; line-height: 1.4; margin-top: 10px; }
.ig-step-prompt > .ig-icon { position: absolute; right: 14px; bottom: 15px; opacity: .5; }
.ig-step-styles { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 10px; }
.ig-step-styles button { border-radius: 9px; font-size: 12px; padding: 13px 8px; }
.ig-step-styles button:nth-child(2) { border-color: #ff4d8d55; background: #ff4d8d0d; color: var(--text); }
.ig-step-result { position: relative; }
.ig-step-result > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ig-step-result a { position: absolute; bottom: 11px; right: 11px; display: flex; gap: 8px; align-items: center; font-size: 10px; padding: 7px 10px; border: 1px solid #ffffff26; border-radius: 7px; background: #140e1de8; }
.ig-step-result .ig-icon { width: 13px; height: 13px; }
.ig-step h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.ig-step > p:last-child { font-size: 12px; line-height: 1.8; color: var(--muted); }
.ig-features { padding-top: 58px; }
.ig-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; grid-template-areas: 'scene scene detail' 'style history detail' 'outfits outfits outfits'; }
.ig-feature { padding: 26px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); overflow: hidden; min-width: 0; }
.ig-feature-copy h3 { font: italic 24px/1.25 var(--font-serif); letter-spacing: -.02em; }
.ig-feature-copy > p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 7px; }
.ig-feature-prompt { grid-area: scene; }
.ig-feature-detail { grid-area: detail; display: flex; flex-direction: column; }
.ig-feature-style { grid-area: style; }
.ig-feature-history { grid-area: history; }
.ig-feature-outfits { grid-area: outfits; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; }
.ig-scene-example { display: grid; grid-template-columns: 1fr 190px; align-items: center; gap: 22px; margin-top: 24px; }
.ig-scene-example button { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border-radius: 11px; border: 1px solid #ff4d8d2b; background: var(--surface-2); text-align: left; }
.ig-scene-example button span { color: var(--text); font-size: 12px; line-height: 1.8; }
.ig-scene-example > img { height: auto; width: 190px; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.ig-detail-photo { margin-top: 23px; flex: 1; min-height: 250px; border-radius: 13px; overflow: hidden; }
.ig-detail-photo img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; transition: transform .15s; transform-origin: 50% 50%; }
.ig-zoom-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; margin: 18px 0 8px; }
.ig-zoom-label span { color: var(--accent); font-variant-numeric: tabular-nums; }
[data-detail-zoom] { width: 100%; accent-color: var(--accent); cursor: pointer; margin: 0; }
.ig-style-options { display: flex; gap: 5px; margin-top: 22px; flex-wrap: wrap; }
.ig-style-options button { padding: 7px 9px; font-size: 9px; border-radius: 7px; }
.ig-style-options [aria-pressed="true"] { color: var(--text); border-color: #a855f77a; background: var(--surface-2); }
.ig-style-thumbnail { position: relative; height: 150px; margin-top: 14px; border-radius: 10px; overflow: hidden; }
.ig-style-thumbnail img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ig-style-thumbnail span { position: absolute; bottom: 9px; left: 9px; border: 1px solid #ffffff26; background: #140e1de8; border-radius: 100px; padding: 4px 9px; font-size: 9px; }
.ig-saved-list { min-height: 112px; margin-top: 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ig-saved-empty { color: var(--faint); font-family: var(--font-serif); font-style: italic; font-size: 19px; max-width: 160px; line-height: 1.4; }
.ig-saved-list button { text-align: left; color: var(--muted); font-size: 10px; line-height: 1.6; padding: 8px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-save-prompt { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; padding: 8px 0; }
.ig-save-prompt .ig-icon { width: 15px; height: 15px; }
.ig-prompt-status { color: var(--accent); font-size: 10px; min-height: 16px; line-height: 1.6; }
.ig-text-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding-bottom: 5px; border-bottom: 1px solid #ff4d8d55; font-size: 12px; font-weight: 600; }
.ig-text-link .ig-icon { width: 16px; height: 16px; }
.ig-text-link:hover { color: var(--accent); }
.ig-outfit-pair { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 8px 0; }
.ig-outfit-pair img { width: 42%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.ig-outfit-pair img:first-child { transform: rotate(-7deg); }
.ig-outfit-pair img:last-child { transform: rotate(7deg); }
.ig-manifesto { padding: 110px 0 100px; text-align: center; }
.ig-small-fan { position: relative; height: 160px; max-width: 390px; margin: auto; }
.ig-small-fan img { width: 150px; height: 112px; object-fit: cover; position: absolute; left: calc(50% - 75px); top: 8px; border-radius: 11px; border: 3px solid var(--surface-2); }
.ig-small-fan img:nth-child(1) { transform: translateX(-53px) rotate(-19deg); }
.ig-small-fan img:nth-child(2) { transform: translateX(53px) rotate(19deg); }
.ig-small-fan img:nth-child(3) { transform: rotate(2deg); }
.ig-manifesto > p { font-family: var(--font-serif); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.4; letter-spacing: -.025em; }
.ig-manifesto em { color: var(--accent); }
.ig-manifesto > p > span { color: var(--muted); }
.ig-starting { border-top: 1px solid var(--line); padding-top: 80px; scroll-margin-top: 90px; }
.ig-starting-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin-bottom: 37px; }
.ig-starting-head h2 { margin-top: 18px; }
.ig-starting-head > p { font-size: 12px; color: var(--muted); line-height: 1.8; padding-bottom: 6px; }
.ig-starting-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 35px; align-items: stretch; background: var(--surface); padding: 26px; border: 1px solid var(--line); border-radius: 22px; }
.ig-scene-tabs { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ig-scene-tabs button { display: flex; align-items: center; gap: 20px; text-align: left; border-radius: 13px; padding: 22px 18px; border: 1px solid transparent; }
.ig-scene-tabs button > span { font-size: 10px; color: var(--faint); }
.ig-scene-tabs strong { display: block; font-family: var(--font-serif); font-style: italic; font-size: 22px; font-weight: 400; line-height: 1.3; }
.ig-scene-tabs small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; line-height: 1.6; }
.ig-scene-tabs .ig-icon { margin-left: auto; opacity: 0; width: 17px; height: 17px; }
.ig-scene-tabs [aria-selected="true"] { background: var(--surface-2); border-color: #a855f74d; }
.ig-scene-tabs [aria-selected="true"] > span { color: var(--accent); }
.ig-scene-tabs [aria-selected="true"] .ig-icon { opacity: 1; }
.ig-scene-photo { aspect-ratio: 4/3; border-radius: 15px; overflow: hidden; }
.ig-scene-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ig-scene-caption { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding: 19px 4px 0; }
.ig-scene-caption p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.ig-scene-caption button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; }
.ig-scene-caption .ig-icon { width: 14px; height: 14px; }
.ig-gallery { padding-top: 100px; }
.ig-gallery-head { display: flex; justify-content: space-between; gap: 25px; align-items: flex-end; margin-bottom: 28px; }
.ig-gallery-head h2 { margin-top: 12px; font-size: 39px; }
.ig-gallery-head .ig-text-link { flex: 0 0 auto; margin-bottom: 5px; }
.ig-gallery-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 13px; }
.ig-gallery-item { position: relative; border-radius: 13px; overflow: hidden; height: 170px; text-align: left; }
.ig-gallery-item > img { height: 100%; width: 100%; object-fit: cover; transition: transform .3s; }
.ig-gallery-item:hover > img { transform: scale(1.045); }
.ig-gallery-item > span { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 34px 12px 13px; font-size: 10px; line-height: 1.5; background: linear-gradient(transparent,#0a0710dc); }
.ig-gallery-item .ig-icon { width: 14px; height: 14px; }
.ig-faq { display: grid; grid-template-columns: 1fr 1.35fr; gap: 85px; margin-top: 105px; padding: 75px 0 0; border-top: 1px solid var(--line); }
.ig-faq h2 { font-size: 42px; margin-top: 20px; }
.ig-faq-list details { border-bottom: 1px solid var(--line); }
.ig-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; list-style: none; cursor: pointer; padding: 21px 0; font-size: 13px; font-weight: 600; }
.ig-faq-list summary::-webkit-details-marker { display: none; }
.ig-faq-list summary .ig-icon { width: 16px; height: 16px; opacity: .65; }
.ig-faq-list details[open] .ig-icon { transform: rotate(45deg); }
.ig-faq-list p { padding: 0 20px 23px 0; font-size: 12px; color: var(--muted); line-height: 1.9; }
.ig-faq-list p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ig-final { text-align: center; padding: 75px 0 82px; margin-top: 70px; }
.ig-final-photos { display: flex; justify-content: center; gap: 7px; margin: 0 auto 25px; }
.ig-final-photos img { width: 84px; height: 63px; border-radius: 10px; object-fit: cover; }
.ig-final-photos img:nth-child(1) { transform: rotate(-10deg) translateY(6px); }
.ig-final-photos img:nth-child(3) { transform: rotate(10deg) translateY(6px); }
.ig-final h2 { margin: 15px auto; font-size: 50px; }
.ig-final > p:not(.ig-kicker) { color: var(--muted); font-size: 13px; }
.ig-final .btn { margin-top: 26px; font-size: 13px; }
.ig-final > small { display: block; color: var(--faint); font-size: 10px; margin-top: 15px; }
@media (max-width: 1000px) {
 .ig-fan-card { width: 200px; height: 150px; left: calc(50% - 100px); }
 .ig-fan-card:nth-child(1) { transform: translate(-310px, 64px) rotate(-27deg); }
 .ig-fan-card:nth-child(2) { transform: translate(-155px, 18px) rotate(-13deg); }
 .ig-fan-card:nth-child(4) { transform: translate(155px, 18px) rotate(13deg); }
 .ig-fan-card:nth-child(5) { transform: translate(310px, 64px) rotate(27deg); }
 .ig-step { padding: 19px; }
 .ig-step-styles button { font-size: 10px; }
 .ig-feature-grid { grid-template-columns: 1fr 1fr; grid-template-areas: 'scene scene' 'style detail' 'history detail' 'outfits outfits'; }
 .ig-detail-photo { min-height: 290px; }
 .ig-detail-photo img { max-height: 380px; }
 .ig-scene-example { grid-template-columns: 1fr 170px; }
 .ig-scene-example > img { width: 170px; }
 .ig-starting-grid { gap: 20px; padding: 20px; }
 .ig-scene-tabs button { gap: 12px; padding: 18px 10px; }
 .ig-scene-tabs strong { font-size: 19px; }
 .ig-scene-caption { flex-wrap: wrap; gap: 10px; }
 .ig-gallery-grid { grid-template-columns: repeat(3,1fr); }
 .ig-gallery-item { height: 215px; }
 .ig-faq { gap: 40px; }
}
@media (max-width: 640px) {
 .ig-section { width: calc(100% - 40px); }
 .ig-hero { padding: 32px 20px 46px; }
 .ig-kicker { font-size: 9px; }
 .ig-fan { height: 200px; margin-top: 22px; }
 .ig-fan-card { width: 148px; height: 111px; top: 14px; left: calc(50% - 74px); border-radius: 14px; transform-origin: center 130%; }
 .ig-fan-card:nth-child(1) { transform: translate(-197px, 44px) rotate(-29deg); }
 .ig-fan-card:nth-child(2) { transform: translate(-99px, 14px) rotate(-15deg); }
 .ig-fan-card:nth-child(4) { transform: translate(99px, 14px) rotate(15deg); }
 .ig-fan-card:nth-child(5) { transform: translate(197px, 44px) rotate(29deg); }
 .ig-fan::after { inset: 50% -70% -30px; }
 .ig-composer { margin-top: -59px; padding: 15px; border-radius: 15px; }
 .ig-composer textarea { font-size: 13px; min-height: 65px; }
 .ig-composer-bottom { flex-wrap: wrap; gap: 13px; }
 .ig-chips { gap: 5px; }
 .ig-chips button { padding: 6px 9px; font-size: 9px; min-height: 30px; }
 .ig-generate { width: 100%; justify-content: center; min-height: 43px; }
 .ig-hero h1 { font-size: 43px; margin-top: 29px; line-height: 1.1; }
 .ig-hero-intro { font-size: 12px; }
 .ig-hero-intro br { display: none; }
 .ig-hero-fine { margin-top: 15px; font-size: 9px; }
 .ig-how { padding: 43px 0 45px; }
 .image-generator-page h2 { font-size: 35px; }
 .ig-section-head { margin-bottom: 27px; }
 .ig-section-head > p { font-size: 12px; line-height: 1.8; }
 .ig-section-head h2 { margin-top: 17px; }
 .ig-steps { grid-template-columns: 1fr; gap: 14px; }
 .ig-step { padding: 22px; }
 .ig-step-visual { margin-block: 18px; height: 150px; }
 .ig-step-styles { grid-template-columns: 1fr 1fr; }
 .ig-step-styles button { padding-block: 13px; font-size: 12px; }
 .ig-step-result { height: 170px; }
 .ig-features { padding-top: 30px; }
 .ig-feature-grid { grid-template-columns: 1fr; grid-template-areas: 'scene' 'detail' 'style' 'history' 'outfits'; gap: 14px; }
 .ig-feature { padding: 23px; }
 .ig-feature-copy h3 { font-size: 25px; }
 .ig-scene-example { grid-template-columns: 1fr 120px; gap: 13px; }
 .ig-scene-example button { padding: 12px; gap: 8px; }
 .ig-scene-example button span { font-size: 11px; }
 .ig-scene-example > img { width: 120px; }
 .ig-scene-example button .ig-icon { width: 15px; height: 15px; }
 .ig-detail-photo { min-height: 0; height: 230px; flex: auto; }
 .ig-detail-photo img { height: 230px; max-height: none; }
 .ig-style-options button { min-height: 36px; font-size: 10px; }
 .ig-style-thumbnail { height: 165px; }
 .ig-saved-list { min-height: 80px; }
 .ig-saved-empty { max-width: none; }
 .ig-feature-outfits { grid-template-columns: 1fr; gap: 22px; }
 .ig-outfit-pair img { width: 45%; }
 .ig-manifesto { padding: 65px 0; }
 .ig-small-fan { height: 180px; }
 .ig-manifesto > p { font-size: 26px; }
 .ig-manifesto > p br:nth-child(2) { display: none; }
 .ig-starting { padding-top: 48px; }
 .ig-starting-head { display: block; margin-bottom: 25px; }
 .ig-starting-head > p { margin-top: 17px; }
 .ig-starting-grid { grid-template-columns: 1fr; padding: 14px; gap: 20px; }
 .ig-scene-tabs { gap: 3px; }
 .ig-scene-tabs button { padding: 17px 12px; gap: 12px; }
 .ig-scene-tabs strong { font-size: 20px; }
 .ig-scene-tabs small { font-size: 10px; }
 .ig-scene-photo { height: 240px; }
 .ig-scene-caption { padding: 15px 3px 4px; }
 .ig-scene-caption button { min-height: 40px; }
 .ig-gallery { padding-top: 60px; }
 .ig-gallery-head { display: block; }
 .ig-gallery-head h2 { font-size: 32px; }
 .ig-gallery-head .ig-text-link { margin-top: 15px; }
 .ig-gallery-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
 .ig-gallery-item { height: 175px; }
 .ig-faq { grid-template-columns: 1fr; gap: 28px; margin-top: 60px; padding-top: 48px; }
 .ig-faq h2 { font-size: 35px; }
 .ig-faq-list summary { font-size: 12px; padding: 20px 0; }
 .ig-final { padding: 20px 0 55px; margin-top: 60px; }
 .ig-final h2 { font-size: 37px; }
}
@media (max-width: 360px) { .ig-hero h1 { font-size: 37px; } .ig-gallery-item { height: 160px; } .ig-scene-tabs strong { font-size: 18px; } .ig-step, .ig-feature { padding-inline: 19px; } .ig-outfit-pair img { width: 45%; } }
