/* The product collection follows the supplied Readdle layout reference. */
body.collection-home {
  --home-ink: #202020;
  --home-muted: #444;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", sans-serif;
  background: #fff;
  color: var(--home-ink);
  -webkit-font-smoothing: antialiased;
}
.collection-home button, .collection-home summary { font: inherit; }
.collection-home button { cursor: pointer; }
.collection-home a { text-decoration: none; }
.collection-home :is(a, button, summary):focus-visible { outline: 3px solid #5983f1; outline-offset: 5px; }
.home-container { width: min(1200px, calc(100% - 100px)); margin-inline: auto; }
.collection-home .skip { position: fixed; z-index: 110; }
.screen-reader-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A transparent header over the hero becomes a floating white navigation. */
.collection-header { position: fixed; z-index: 100; top: 0; left: 50%; width: min(1240px, calc(100% - 60px)); transform: translateX(-50%); color: #b5b5b5; border: 1px solid transparent; transition: background .22s, color .22s, border-color .22s, box-shadow .22s, top .22s; }
.collection-header-inner { min-height: 56px; display: flex; align-items: center; padding-inline: 19px; position: relative; }
.collection-brand { display: inline-flex; align-items: center; color: #f1ede5; flex-shrink: 0; line-height: 0; min-height: 44px; }
.collection-brand .venture-wordmark { display: block; width: 82px; height: auto; }
.collection-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 39px; height: 100%; font-size: 16px; white-space: nowrap; }
.collection-nav > a, .products-menu > summary { padding: 18px 0; line-height: 20px; }
.collection-nav > a:hover, .products-menu > summary:hover { color: #fff; }
.products-menu { position: relative; }
.products-menu > summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.products-menu > summary::-webkit-details-marker { display: none; }
.chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.products-menu[open] .chevron { transform: translateY(2px) rotate(225deg); }
.products-dropdown { position: absolute; left: -22px; top: 52px; min-width: 250px; padding: 12px; background: #fff; color: #242424; box-shadow: 0 10px 36px #0002; border: 1px solid #e9e9e9; border-radius: 15px; }
.products-dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px; font-size: 15px; border-radius: 8px; }
.products-dropdown img { border-radius: 6px; width: 28px; height: 28px; }
.products-dropdown a:hover { background: #f5f5f5; }
.products-dropdown .all-products { margin-top: 6px; border-top: 1px solid #eee; border-radius: 0; color: #656565; }
.collection-header.is-scrolled { top: 5px; background: #fffffff5; color: #676767; border-color: #e6e6e6; border-radius: 18px; box-shadow: 0 5px 22px #00000005; backdrop-filter: blur(16px); }
.collection-header.is-scrolled .collection-brand { color: #222; }
.collection-header.is-scrolled :is(.collection-nav > a:hover, .products-menu > summary:hover) { color: #111; }
.mobile-menu-button { display: none; }

.collection-hero { background: radial-gradient(ellipse at 0 72%, #182449 0, transparent 40%), radial-gradient(ellipse at 100% 72%, #351749 0, transparent 40%), #111; color: #fff; padding-bottom: 28px; }
.hero-heading { text-align: center; padding: 94px 20px 42px; }
.hero-heading h1 { font-size: 40px; line-height: 1.33; font-weight: 700; letter-spacing: 0; margin: 0; }
.hero-heading h1 span { color: #a5a5a5; display: block; }
.hero-carousel { position: relative; scroll-margin-top: 84px; outline-offset: 8px; }
.hero-viewport { position: relative; aspect-ratio: 2.5; border-radius: 24px; overflow: hidden; background: #252525; }
.hero-slide { position: absolute; inset: 0; }
.hero-slide[hidden] { display: none; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.deepvalues-showcase { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 0, #7b58252b, transparent 58%), #0c0c0e; }
.device-browser { position: absolute; left: 18%; top: 8%; width: 65%; border: 2px solid #666; border-radius: 10px 10px 0 0; background: #f9f8f6; box-shadow: 0 24px 60px #0008; overflow: hidden; }
.browser-titlebar { position: relative; height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 9px; border-bottom: 1px solid #d8d8d8; background: #ecebea; }
.browser-titlebar span { width: 6px; height: 6px; border-radius: 50%; background: #ff6158; }
.browser-titlebar span:nth-child(2) { background: #ffbd2e; }
.browser-titlebar span:nth-child(3) { background: #28c840; }
.browser-titlebar b { position: absolute; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 400; color: #777; }
.browser-display { aspect-ratio: 1.7076; overflow: hidden; }
.browser-display img { width: 100%; }
.device-tablet { position: absolute; z-index: 2; left: 3.5%; top: 16%; width: 26.5%; padding: 8px; border: 2px solid #6b6b70; border-radius: 20px; background: #151517; box-shadow: 0 12px 36px #0007; }
.tablet-display { position: relative; aspect-ratio: 467 / 568; border-radius: 12px; overflow: hidden; background: #f3f2f7; }
.tablet-display img { position: absolute; top: 0; left: 0; width: 415.85%; max-width: none; transform: translate(-2.884%, -28.266%); }
.device-phone { position: absolute; z-index: 3; right: 5%; top: 22%; width: 15%; padding: 6px; border: 2px solid #636367; border-radius: 28px; background: #101011; box-shadow: 0 12px 36px #0009; }
.phone-display { position: relative; aspect-ratio: 275 / 568; overflow: hidden; border-radius: 20px; background: #000; }
.phone-display img { position: absolute; top: 0; left: 0; width: 706.18%; max-width: none; transform: translate(-77.085%, -32.54%); }
.hero-slide-shade { position: absolute; z-index: 4; inset: 0; pointer-events: none; background: linear-gradient(transparent 57%, #0005); }
#slide-deepvalues .hero-slide-shade { background: linear-gradient(transparent 45%, #000a); }
.hero-slide-caption { position: absolute; z-index: 5; bottom: 48px; left: 56px; right: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-product-name { display: flex; align-items: center; gap: 13px; font-size: 24px; line-height: 1.25; font-weight: 700; }
.hero-product-name img { width: 40px; height: 40px; border-radius: 9px; }
.hero-explore { background: white; color: #202020; font-size: 18px; font-weight: 500; line-height: 1.3; padding: 13px 23px; border: 1px solid #d8d8d8; border-radius: 8px; box-shadow: 0 1px 2px #0001; }
.hero-explore:hover { background: #f3f3f3; }
.hero-image-note { position: absolute; z-index: 5; top: 17px; right: 20px; color: white; text-shadow: 0 1px 8px #000; font-size: 12px; padding: 4px 8px; background: #0005; border-radius: 5px; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); padding: 14px 8px; width: 34px; height: 64px; background: #ffffff0d; border: 0; border-radius: 8px; color: #a7a6b8; }
.carousel-arrow.previous { left: -50px; }
.carousel-arrow.next { right: -50px; }
.carousel-arrow svg { width: 18px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.carousel-arrow:hover { color: #fff; background: #ffffff16; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 27px; position: relative; min-height: 20px; }
.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 10px; }
.carousel-dot { width: 10px; height: 10px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: #fff; position: relative; }
.carousel-dot::before { content: ""; position: absolute; inset: -7px; }
.carousel-dot.is-active { background: transparent; outline: 2px solid #fff; outline-offset: 0; }
.carousel-pause { position: absolute; left: calc(50% + 65px); display: grid; place-items: center; width: 28px; height: 28px; border: 0; background: transparent; color: #aaa; border-radius: 50%; }
.carousel-pause:hover { background: #fff2; color: #fff; }
.pause-glyph { display: block; width: 7px; height: 9px; border-inline: 2px solid currentColor; }
.carousel-pause[aria-pressed=true] .pause-glyph { border: 0; width: 0; height: 0; border-left: 7px solid currentColor; border-block: 5px solid transparent; }

.collection-apps { text-align: center; padding-top: 100px; padding-bottom: 100px; scroll-margin-top: 80px; }
.collection-apps > h2 { font-size: 48px; line-height: 1.33; font-weight: 700; letter-spacing: 0; margin: 0 0 24px; }
.collection-intro { color: var(--home-muted); font-size: 20px; line-height: 1.5; max-width: 880px; margin: 0 auto 66px; }
.collection-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-tile { display: flex; flex-direction: column; align-items: center; padding: 40px 24px; background: #f7f7f7; border-radius: 24px; min-height: 416px; scroll-margin-top: 90px; }
.app-tile:last-child { grid-column: 2; }
.app-tile-icon { width: 100px; height: 100px; border-radius: 23px; margin: 0 0 22px; }
.app-tile h3 { font-size: 24px; line-height: 1.33; font-weight: 700; letter-spacing: 0; margin: 0 0 10px; }
.app-description { font-size: 16px; line-height: 1.5; color: #444; margin: 0; min-height: 48px; }
.app-meta { margin: 24px 0 30px; line-height: 1.45; display: flex; flex-direction: column; gap: 7px; }
.app-meta strong { font-size: 16px; font-weight: 600; }
.app-meta span { font-size: 14px; color: #777; }
.app-preview-button { margin-top: auto; min-height: 48px; padding: 10px 25px; font-size: 18px !important; line-height: 1.4; color: #202020; background: #fff; border: 1px solid #d5d5d5; border-radius: 8px; }
.app-preview-button:hover { background: #efefef; border-color: #bcbcbc; }
.app-tile:target { box-shadow: 0 0 0 3px #ddd; }
.collection-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 1px solid #e9e9e9; padding-top: 64px; padding-bottom: 74px; }
.collection-services article { scroll-margin-top: 100px; }
.collection-services h2 { font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; }
.collection-services p { font-size: 16px; line-height: 1.65; color: #646464; margin: 0 0 18px; }
.collection-services a { font-size: 16px; font-weight: 500; color: #2572df; }
.collection-services a:hover { text-decoration: underline; }
.collection-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e9e9e9; padding-block: 30px; gap: 30px; }
.collection-footer .collection-brand { color: #242424; }
.collection-footer p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #777; }
.collection-footer nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: #666; }
.collection-footer nav a:hover { color: #111; }

@media (min-width: 1600px) {
  .home-container { width: min(1400px, calc(100% - 120px)); }
  .collection-header { width: min(1440px, calc(100% - 80px)); }
  .collection-app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .app-tile:last-child { grid-column: auto; }
}
@media (max-width: 1050px) {
  .home-container { width: calc(100% - 64px); }
  .collection-header { width: calc(100% - 24px); }
  .collection-nav { position: static; transform: none; margin-left: auto; gap: 25px; }
  .carousel-arrow.previous { left: -31px; }
  .carousel-arrow.next { right: -31px; }
  .carousel-arrow { width: 25px; padding-inline: 4px; }
  .hero-slide-caption { left: 32px; right: 32px; bottom: 30px; }
  .hero-product-name { font-size: 22px; }
  .hero-explore { padding: 11px 18px; font-size: 16px; }
  .collection-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-tile:last-child { grid-column: auto; }
  .collection-services { gap: 28px; }
}
@media (max-width: 700px) {
  .home-container { width: calc(100% - 36px); }
  .collection-header { width: calc(100% - 20px); }
  .collection-header-inner { padding-inline: 8px; }
  .mobile-menu-button { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; background: transparent; border: 0; color: #fff; margin-left: auto; padding: 10px; }
  .mobile-menu-button span { display: block; width: 22px; height: 2px; background: currentColor; }
  .is-scrolled .mobile-menu-button { color: #222; }
  .collection-nav { display: none; position: absolute; top: 60px; left: -1px; right: -1px; height: auto; padding: 12px 20px 20px; background: #fff; color: #444; border: 1px solid #e7e7e7; border-radius: 16px; box-shadow: 0 8px 20px #0001; }
  .collection-header.menu-open .collection-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .collection-nav > a, .products-menu > summary { padding: 14px 0; }
  .collection-nav > a:hover, .products-menu > summary:hover { color: #111; }
  .products-dropdown { position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .hero-heading { padding: 102px 20px 32px; }
  .hero-heading h1 { font-size: clamp(27px, 6.3vw, 36px); line-height: 1.35; max-width: 530px; margin-inline: auto; }
  .hero-heading h1 span { margin-top: 8px; }
  .hero-viewport { aspect-ratio: 4 / 5; border-radius: 20px; }
  .hero-photo { object-position: 49% center; }
  .device-browser { width: 92%; left: 4%; top: 10%; }
  .browser-titlebar { height: 18px; padding-inline: 6px; gap: 3px; }
  .browser-titlebar span { width: 4px; height: 4px; }
  .browser-titlebar b { font-size: 8px; }
  .device-tablet { width: 43%; left: 6%; top: 26%; padding: 5px; border-radius: 13px; }
  .tablet-display { border-radius: 7px; }
  .device-phone { width: 28%; right: 5%; top: 35%; padding: 4px; border-radius: 18px; }
  .phone-display { border-radius: 12px; }
  #slide-warmlight .hero-photo { object-position: 66% center; }
  .hero-slide-shade { background: linear-gradient(transparent 55%, #0009); }
  .hero-slide-caption { left: 20px; right: 20px; bottom: 24px; flex-wrap: wrap; gap: 20px; }
  .hero-product-name { font-size: 22px; gap: 10px; width: 100%; }
  .hero-product-name img { width: 36px; height: 36px; }
  .hero-explore { min-height: 44px; padding: 11px 20px; }
  .carousel-arrow { top: auto; bottom: 23px; transform: none; background: #0004; color: white; width: 30px; height: 44px; z-index: 6; padding: 10px 8px; }
  .carousel-arrow svg { width: 13px; height: 23px; }
  .carousel-arrow.previous { left: auto; right: 61px; }
  .carousel-arrow.next { right: 22px; }
  .carousel-controls { margin-top: 26px; }
  .collection-hero { padding-bottom: 28px; }
  .collection-apps { padding-top: 66px; padding-bottom: 64px; }
  .collection-apps > h2 { font-size: 34px; line-height: 1.25; margin-bottom: 22px; }
  .collection-intro { font-size: 18px; line-height: 1.5; margin-bottom: 38px; }
  .collection-intro br { display: none; }
  .collection-app-grid { grid-template-columns: 1fr; gap: 20px; }
  .app-tile { padding: 38px 24px; min-height: 416px; }
  .app-tile h3 { font-size: 25px; }
  .app-description { min-height: auto; }
  .app-meta { margin-block: 26px; }
  .collection-services { grid-template-columns: 1fr; gap: 40px; padding-block: 44px; }
  .collection-services h2 { font-size: 28px; }
  .collection-footer { flex-direction: column; align-items: flex-start; padding-block: 28px; gap: 24px; }
  .collection-footer nav { flex-wrap: wrap; gap: 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-header, .chevron { transition: none; }
}
