/* Shared Dock and Music components; page artwork belongs in images/notch-page. */
.notch-page { --dock-heading: #12445b; }
.notch-intro__artwork { width: min(1060px, calc(100% - 40px)); margin: 0 auto 90px; overflow: hidden; isolation: isolate; contain: paint; }
.notch-intro__hero { display: block; width: 100%; height: auto; transform-origin: center top; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform, opacity; clip-path: inset(0); }
.notch-intro { padding-bottom: 68px; }
.notch-intro .music-intro__description { max-width: 900px; }
.notch-card { background: #e9e9ec; color: #55555b; }
.notch-card .lm-card__title { color: #777780; }
.notch-card--search { aspect-ratio: 1121 / 510; }
.notch-card--bottom { aspect-ratio: 1121 / 430; }
.notch-card--bottom .lm-card__content { position: absolute; bottom: 10px; width: 100%; }
.notch-customize, .notch-music-grid { margin-top: 28px; }
.notch-page .dock-heading h2 { background: linear-gradient(100deg, #062d45 25%, #488bb4 78%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.notch-page .dock-heading .dock-eyebrow { color: #1d1d1f; font-weight: 600; }
.notch-page .dock-workflow__stage { min-height: 0; aspect-ratio: 1121 / 754; }
.notch-page .dock-workflow__items { width: 29%; }
.notch-page .dock-workflow__scene img { object-fit: cover; }
.notch-widgets { padding-top: 112px; }
.notch-widgets .dock-heading { text-align: left; }
.notch-widgets .dock-heading p { max-width: none; }
.notch-widgets__collage { display: grid; gap: 16px; }
.notch-widgets__row { display: flex; gap: 16px; }
.notch-widgets__row img { display: block; min-width: 0; width: 0; height: auto; object-fit: contain; border-radius: 28px; }
.notch-screens__media { display: grid; aspect-ratio: 1298 / 668; }
.notch-screens__media img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.notch-screens__media img[hidden] { display: none; }
.notch-screens .dock-switch { flex-wrap: wrap; }
.notch-page #notch-details .ai-vi__title { width: fit-content; background: linear-gradient(to right,#30266d,#a047bc); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.notch-page .dock-workspace-caption { max-width: 740px; }
.notch-page a:focus-visible, .notch-page button:focus-visible { outline: 3px solid #00aabe; outline-offset: 4px; }
@media (max-width: 767px) {
 .notch-intro__artwork { margin-bottom: 44px; }
 .notch-intro { padding-bottom: 42px; }
 .notch-page .notch-grid, .notch-page .notch-music-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
 .notch-card { border-radius: 24px; }
 .notch-card .lm-card__content { padding: 18px 8px; }
 .notch-card .lm-card__title { font-size: 8px; }
 .notch-card .lm-card__subtitle { font-size: clamp(12px,3.1vw,20px); }
 .notch-page .dock-card--strip { min-height: 0; }
 .notch-card--bottom .lm-card__content { bottom: 0; }
 .notch-widgets { padding-top: 70px; }
 .notch-widgets__collage, .notch-widgets__row { gap: 8px; }
 .notch-widgets__row img { border-radius: 12px; }
 .notch-page .dock-workflow__items { width: 36%; }
 .notch-page .dock-workflow__stage { aspect-ratio: 1121 / 754; }
 .notch-page .dock-workflow__item.is-active .dock-workflow__button { font-size: clamp(7px,2.1cqw,12px); padding: 9px; }
 .notch-screens .dock-switch button { font-size: 10px; padding: 7px 9px; }
 .notch-screens .dock-switch { gap: 0; }
}

/* Dark navigation follows the hero's actual viewport visibility. */
.notch-page .lp-header { transition: transform .28s cubic-bezier(.22,.61,.36,1), background-color .25s ease, border-color .25s ease; }
.notch-hero-visible .lp-header { background: #000; border-bottom-color: #000; backdrop-filter: none; -webkit-backdrop-filter: none; }
.notch-hero-visible .lp-logo img { content: url('/images/logoicontext-white.png'); }
.notch-hero-visible .lp-nav a { color: #b5b5ba; }
.notch-hero-visible .lp-nav a:hover { color: #fff; }
.notch-hero-visible .lp-nav .lp-btn { background: #fff; color: #111; }
.notch-hero-visible .lp-nav-toggle__bar { background: #fff; }
@media (max-width: 767px) {
 .notch-hero-visible .lp-nav { background: #111; border-color: #333; }
 .notch-hero-visible .lp-nav__link + .lp-nav__link::before { background: #333; }
 .notch-hero-visible .lp-nav .lp-nav__link:hover { background: #222; }
 .notch-hero-visible .lp-header.is-menu-open .lp-nav-toggle { background: #222; }
}
@media (prefers-reduced-motion: reduce) { .notch-page .lp-header { transition: none; } }

@media (prefers-reduced-motion: reduce) { .notch-intro__hero { will-change: auto; } }

.notch-widgets__image { display: block; width: 100%; height: auto; }

/* Supplied feature artwork uses white text in the clear upper area. */
.notch-grid .notch-card { color: #fff; }
.notch-grid .notch-card .lm-card__title { color: #fff; }
.notch-grid .dock-card--strip { aspect-ratio: 1121 / 299; }
.notch-grid .notch-card--search { aspect-ratio: 1121 / 508; }

/* Intrinsic image height preserves the full export; captions sit in its lower area. */
.notch-page .notch-customize .notch-card--bottom {
 aspect-ratio: auto;
 height: auto;
 min-height: 0;
 color: #fff;
 width: 100%;
 max-width: none;
 grid-column: 1 / -1;
 border-radius: 50px;
 container-type: inline-size;
}
.notch-page .notch-customize .notch-card--bottom > .dock-placeholder {
 position: relative;
 inset: auto;
 z-index: 0;
 background: transparent;
}
.notch-page .notch-customize .notch-card--bottom > .dock-placeholder > img {
 display: block;
 width: 100%;
 height: auto;
 object-fit: contain;
 transform: none;
}
.notch-page .notch-customize .notch-card--bottom > .lm-card__content {
 position: absolute;
 inset: auto 0 0;
 width: 100%;
 padding: 0 2cqw 3cqw;
}
.notch-page .notch-customize .notch-card--bottom .lm-card__subtitle {
 margin: 0;
 font-size: clamp(10px, 2.5cqw, 28px);
 font-weight: 700;
 line-height: 1.2;
}

/* Fit the colored image canvas, excluding the 13px transparent export border on all sides. */
.notch-page .notch-customize .notch-card--bottom > .dock-placeholder {
 overflow: hidden;
 aspect-ratio: 1121 / 414;
}
.notch-page .notch-customize .notch-card--bottom > [data-notch-asset="apps-folders"] {
 aspect-ratio: 1121 / 509;
}
.notch-page .notch-customize .notch-card--bottom > .dock-placeholder > img {
 position: absolute;
 top: 0;
 left: 0;
 width: calc(100% * 1147 / 1121);
 max-width: none;
 height: auto;
 margin: 0;
 transform: translate(-1.133391%, -2.954545%);
}
.notch-page .notch-customize .notch-card--bottom > [data-notch-asset="apps-folders"] > img {
 transform: translate(-1.133391%, -2.429907%);
}
.notch-page .notch-customize .notch-card--bottom { overflow: hidden; }
@media (max-width: 767px) {
 .notch-page .notch-customize .notch-card--bottom { border-radius: 24px; }
}

.notch-screens .dock-heading { margin-bottom: 16px; }
.notch-screens .dock-switch { margin-top: 12px; }

/* Clipboard cards use the same full-width, bottom-caption layout as customization. */
.notch-clipboard .notch-customize { margin-top: 0; }
.notch-page .notch-customize .notch-card--bottom > [data-notch-asset="clipboard-code"] { aspect-ratio: 1121 / 616; }
.notch-page .notch-customize .notch-card--bottom > [data-notch-asset="clipboard-code"] > img { transform: translate(-1.133391%, -2.024922%); }

.notch-music-grid .notch-card,
.notch-music-grid .notch-card .lm-card__title { color: #fff; }

.notch-page .has-pocket-motion .dock-workflow__scenes { border-radius: inherit; }
.notch-page .has-pocket-motion .dock-workflow__scene {
 transition: none;
 transform-origin: center;
 border-radius: inherit;
 overflow: hidden;
 backface-visibility: hidden;
 -webkit-backface-visibility: hidden;
}

/* iMac color previews follow the Clipboard cards. */
.notch-imac .dock-heading p { max-width: 850px; }
.notch-imac__slides { display: grid; width: 100%; }
@media (min-width: 768px) {
 .notch-imac__slides { width: 70%; margin-inline: auto; }
}
.notch-imac__slides img {
 grid-area: 1 / 1;
 display: block;
 width: 100%;
 height: auto;
 align-self: start;
 opacity: 0;
 transition: opacity .6s ease;
 pointer-events: none;
}
.notch-imac__slides img.is-active { opacity: 1; }
.notch-imac .dock-switch { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) {
 .notch-imac__slides img { transition: none; }
}

/* Keep the complete card background underneath until the lower screen video plays. */
.notch-page .notch-messages__video {
 position: absolute;
 left: 0;
 bottom: 0;
 z-index: 1;
 display: block;
 width: 100%;
 height: auto;
 opacity: 0;
 pointer-events: none;
 transition: opacity .3s ease;
}
.notch-page .notch-card.is-video-ready > .notch-messages__video { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
 .notch-page .notch-messages__video { transition: none; }
}

@media (max-width: 767px) {
 .notch-page :is(.notch-grid, .notch-music-grid) .notch-card:not(.dock-card--wide):not(.dock-card--strip) .lm-card__title { font-size: 11px; }
 .notch-page :is(.notch-grid, .notch-music-grid) .notch-card:not(.dock-card--wide):not(.dock-card--strip) .lm-card__subtitle { font-size: clamp(20px, 5vw, 28px); }
}

.notch-page .notch-together-video { position: relative; aspect-ratio: 4 / 3; }
.notch-together-video > .notch-video-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.notch-together-video > video { position: relative; z-index: 1; display: block; width: 100%; height: auto; opacity: 0; transition: opacity .3s ease; }
.notch-together-video.is-video-ready > video { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .notch-together-video > video { transition: none; } }

.notch-page .dock-heading > .notch-music-link {
 display: inline-block;
 margin-top: 1.5em;
 color: #026096;
 font-weight: 700;
}
