.product-hero { background: radial-gradient(ellipse at 50% 0, #ffede6, #fff8f5 72%); border-bottom: 1px solid #f4e8e2; }
.product-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 44px; }
.product-hero h1 { font-size: 46px; font-weight: 750; letter-spacing: -1px; }
.product-hero h1 span { color: var(--accent); }
.product-hero-copy > p { margin-top: 15px; font-size: 16px; color: var(--muted); }
.product-hero-actions { display: flex; gap: 14px; flex-shrink: 0; }
.product-hero-actions .button { min-width: 142px; }
.product-catalog { padding-block: 36px 55px; background: #f8f9fb; }
.catalog-heading h2 { font-size: 24px; }
.product-grid { gap: 22px; margin-top: 25px; }
.product-card, .deployment-card { display: flex; flex-direction: column; }
.product-card > .feature-art, .deployment-card > .feature-art { flex-shrink: 0; margin-top: auto; }
.product-card > p { min-height: 23px; margin-bottom: 17px; line-height: 1.65; }
.product-card .feature-art { background-color: #f6f7f9; }
.product-footer { display: flex; justify-content: flex-end; align-items: center; margin-top: 18px; }
.product-doc-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 13px; color: var(--accent); border: 1px solid #f1d9d1; border-radius: 5px; font-size: 13px; font-weight: 550; transition: background .18s ease, border-color .18s ease; }
.product-doc-link .icon { width: 16px; height: 16px; }
.product-doc-link:hover { background: #fff4f0; border-color: var(--accent); }
.idphoto-demo, .outfit-demo, .american-demo, .layout-demo, .template-demo, .couple-demo { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 12px; }
.product-card .idphoto-demo { padding: 0; background-color: #fff; background-image: conic-gradient(#e8ebf0 25%, transparent 0 50%, #e8ebf0 0 75%, transparent 0); background-size: 12px 12px; }
.cutout-photo { position: relative; height: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.cutout-photo img { position: absolute; width: calc(400% + 12px); height: calc(200% + 4px); max-width: none; left: calc(-200% - 8px); top: -2px; }
.portrait-crop { position: relative; height: 100%; aspect-ratio: 558 / 860; overflow: hidden; border-radius: 3px; }
.portrait-crop img { position: absolute; width: 323.674%; height: auto; max-width: none; left: -2.858%; top: -6.885%; }
.outfit-demo .portrait-crop img { width: 300%; top: 0; }
.outfit-casual img { left: 0; }
.outfit-formal img { left: -100%; }
.outfit-demo > .icon { width: 23px; color: #a0a8b3; }
.layout-demo { padding: 14px; }
.layout-sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; height: 100%; aspect-ratio: 3 / 2; max-width: 100%; padding: 8px; border: 1px solid #e1e5eb; background: #fff; }
.layout-photo { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #438cce; }
.layout-photo img { position: absolute; display: block; width: 300%; height: auto; max-width: none; left: -100%; top: 0; }
.template-photo { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; border-radius: 3px; }
.couple-photo img { width: 284.23%; left: -182.079%; top: -6.047%; }
.cartoon-demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.cartoon-demo > span { position: relative; overflow: hidden; }
.cartoon-demo img { position: absolute; height: 100%; width: auto; max-width: none; left: 50%; transform: translateX(-25%); }
.cartoon-demo > span:last-child img { transform: translateX(-75%); }
.colour-demo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.watermark-demo .landscape-image { position: absolute; width: 400%; height: 400%; max-width: none; left: -100%; top: -200%; }
.watermark-pattern { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; transform: rotate(-24deg); color: #ffffffb5; font-size: 14px; font-weight: 650; text-align: center; text-shadow: 0 1px 3px #17293840; }
.compression-demo, .format-demo { display: flex; align-items: center; justify-content: center; gap: 20px; }
.compression-demo > .icon, .format-demo > .icon { color: #98a3b1; width: 26px; height: 26px; }
.compression-file { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 14px; width: 102px; border: 1px solid #e7ebef; border-radius: 7px; background: #fff; }
.compression-file .file { width: 44px; height: 49px; }
.compression-file b { color: #647183; font-size: 13px; font-weight: 550; }
.compression-file i { width: 67px; height: 5px; border-radius: 4px; background: #b4c5d8; }
.compression-file:last-child i { background: linear-gradient(to right, #ff8f75 20%, #edf0f3 20%); }
.format-demo > .file { width: 65px; height: 78px; font-size: 14px; }
.format-outputs { display: flex; gap: 8px; }
.format-outputs .file { width: 45px; height: 59px; }
.spec-preview { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px; }
.spec-outline { position: relative; width: 68px; height: 94px; flex-shrink: 0; border: 1px solid #fc9b84; background: #fff3ed; outline: 1px dashed #edc3b7; outline-offset: 5px; }
.spec-outline:before, .spec-outline:after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); background: #f2c6b7; }
.spec-outline:before { width: 22px; height: 28px; top: 14px; border-radius: 50%; }
.spec-outline:after { width: 44px; height: 33px; top: 43px; border-radius: 22px 22px 0 0; }
.spec-outline span { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 9px; color: #b18d7e; }
.spec-data > span { color: #7b8592; font-size: 13px; }
.spec-data strong { display: block; margin-block: 4px 10px; font-size: 21px; font-weight: 650; letter-spacing: -.5px; }
.spec-data strong small { font-size: 13px; font-weight: 400; color: #8d96a1; }
.spec-data > div { display: flex; gap: 10px; color: #8a94a1; font-size: 11px; }
.deployment-section { padding-block: 0 60px; background: #f8f9fb; }
.deployment-heading h2 { font-size: 24px; }
.deployment-grid { gap: 22px; margin-top: 25px; }
.deployment-card > p { min-height: 46px; margin-bottom: 17px; line-height: 1.65; }
.deployment-card .feature-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.deployment-card button.product-doc-link { background: #fff; }
.deployment-card button.product-doc-link:hover { background: #fff4f0; }
body.contact-open { overflow: hidden; }
.contact-dialog { width: 480px; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid #ede6e0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #1724352b; }
.contact-dialog::backdrop { background: #15213266; }
.contact-dialog[open] { animation: contact-dialog-in .24s cubic-bezier(.2, .8, .2, 1) both; }
.contact-dialog[open]::backdrop { animation: contact-backdrop-in .24s ease-out both; }
.contact-dialog.is-closing { animation: contact-dialog-out .18s ease-in both; }
.contact-dialog.is-closing::backdrop { animation: contact-backdrop-out .18s ease-in both; }
@keyframes contact-dialog-in {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes contact-dialog-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(10px) scale(.97); }
}
@keyframes contact-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes contact-backdrop-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-dialog[open], .contact-dialog[open]::backdrop { animation-duration: .01ms; }
}
.contact-dialog-header { position: relative; padding: 28px 28px 24px; border-bottom: 1px solid #f2e9e4; background: #fff8f5; }
.contact-title { display: flex; align-items: center; gap: 10px; padding-right: 30px; }
.contact-title .brand-mark { width: 30px; height: 30px; }
.contact-title h2 { font-size: 24px; font-weight: 750; }
.contact-dialog-header > p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.contact-close { position: absolute; top: 18px; right: 18px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #8d929b; }
.contact-close:hover { background: #ffebe3; color: var(--accent); }
.contact-close .icon { width: 18px; height: 18px; }
.contact-channels { display: grid; gap: 12px; padding: 24px 28px 28px; }
.contact-channel { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid #e9ecf1; border-radius: 10px; background: #fafbfc; }
.contact-channel-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: #fff0e9; color: var(--accent); }
.contact-channel-icon .icon { width: 22px; height: 22px; }
.contact-channel-content { flex: 1; }
.contact-channel-content > span { display: block; color: var(--muted); font-size: 12px; }
.contact-channel-content strong { display: block; margin-top: 2px; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; user-select: all; }
.contact-copy { min-width: 66px; padding: 5px 11px; border: 1px solid #f1d9d1; border-radius: 5px; background: #fff; color: var(--accent); font-size: 12px; }
.contact-copy:hover { border-color: var(--accent); background: #fff4f0; }
.cover-preview-trigger { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: zoom-in; }
.cover-preview-trigger:focus-visible { outline: 3px solid #ffae9e; outline-offset: -3px; }
body.cover-preview-open { overflow: hidden; }
.cover-preview { width: 1000px; max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 0 20px 20px; overflow: hidden; border: 1px solid #e8ebef; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #1724352b; }
.cover-preview::backdrop { background: #152132a6; }
.cover-preview[open] { animation: contact-dialog-in .2s cubic-bezier(.2, .8, .2, 1) both; }
.cover-preview[open]::backdrop { animation: contact-backdrop-in .2s ease-out both; }
.cover-preview.is-closing { animation: contact-dialog-out .16s ease-in both; }
.cover-preview.is-closing::backdrop { animation: contact-backdrop-out .16s ease-in both; }
.cover-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.cover-preview-header h2 { font-size: 18px; font-weight: 650; }
.cover-preview-close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: #f6f7f9; color: #687585; }
.cover-preview-close:hover { background: #fff0e9; color: var(--accent); }
.cover-preview-close .icon { width: 18px; height: 18px; }
.cover-preview-stage { position: relative; display: block; overflow: hidden; border-radius: 5px; }
.cover-preview-stage > .feature-art { position: absolute; top: 0; margin: 0; transform-origin: top left; }
@media (prefers-reduced-motion: reduce) {
    .cover-preview[open], .cover-preview[open]::backdrop { animation: none; }
}

@media (max-width: 1199px) {
    .product-hero-inner { gap: 24px; }
    .product-hero h1 { font-size: 40px; }
    .product-hero-copy { min-width: 0; }
    .product-hero-actions { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
    .deployment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .deployment-card { padding: 18px; }
    .deployment-card h3 { font-size: 19px; }
}

@media (max-width: 900px) {
    .product-hero-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
    .product-hero-actions { justify-content: flex-start; }
    .deployment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .product-hero-inner { padding-block: 32px; }
    .product-hero h1 { font-size: clamp(30px, 7vw, 40px); letter-spacing: -.5px; }
    .product-hero-copy > p { margin-top: 12px; font-size: 14px; }
    .product-hero-actions { width: 100%; gap: 12px; }
    .product-hero-actions .button { height: 44px; font-size: 14px; }
    .product-catalog { padding-block: 28px 38px; }
    .catalog-heading h2, .deployment-heading h2 { font-size: 22px; }
    .product-grid, .deployment-grid { gap: 16px; margin-top: 20px; }
    .deployment-section { padding-bottom: 38px; }
    .product-card > p, .deployment-card > p { min-height: 0; }
    .contact-dialog { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); border-radius: 12px; }
    .contact-dialog-header { padding: 22px 20px 20px; }
    .contact-title h2 { font-size: 22px; }
    .contact-dialog-header > p { font-size: 13px; }
    .contact-channels { gap: 10px; padding: 18px 16px 20px; }
    .contact-channel { gap: 10px; padding: 12px; }
    .contact-channel-icon { width: 34px; height: 34px; border-radius: 8px; }
    .contact-channel-icon .icon { width: 20px; height: 20px; }
    .contact-channel-content { min-width: 0; }
    .contact-channel-content strong { font-size: 17px; overflow-wrap: anywhere; }
    .contact-copy { min-width: 54px; flex-shrink: 0; padding: 7px 9px; }
    .cover-preview { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 0 12px 12px; border-radius: 10px; }
    .cover-preview-header { min-height: 56px; gap: 12px; }
    .cover-preview-header h2 { min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
    .format-demo { gap: 10px; }
    .format-demo > .icon { width: 22px; height: 22px; }
    .format-demo > .file { width: 55px; height: 68px; }
    .format-outputs { gap: 6px; }
    .format-outputs .file { width: 40px; height: 53px; }
}

@media (max-width: 600px) {
    .deployment-grid { grid-template-columns: minmax(0, 1fr); }
    .product-hero-actions .button { flex: 1; min-width: 0; padding-inline: 16px; }
    .compression-demo { gap: 12px; }
    .compression-file { width: 88px; padding: 16px 10px; }
    .compression-file i { width: 60px; }
    .spec-preview { gap: 14px; padding: 14px; }
    .spec-data { min-width: 0; }
    .spec-data > div { flex-wrap: wrap; gap: 4px 10px; }
}
