/* Home page: the hero, every passenger pinned up like a photo, the extras, our other apps. */

/* ---------- hero ---------- */
.hero { padding: 110px 0 60px; background: radial-gradient(70% 60% at 80% 30%, #e7defd, transparent 70%), radial-gradient(60% 50% at 10% 90%, #fbe6ef, transparent 70%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.tagline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tagline span { padding: 6px 12px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--violet); }
.hero h1 { font-size: clamp(44px, 6.4vw, 86px); letter-spacing: -0.048em; line-height: 1.0; font-weight: 750; }
.hero .sub { margin-top: 22px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--soft); max-width: 520px; }
.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone .phone { --pw: min(300px, 64vw, calc((100svh - 160px) * 0.474)); filter: drop-shadow(0 40px 60px rgba(70, 40, 140, 0.28)); }
.float { position: absolute; padding: 12px 16px; border-radius: 18px; background: var(--white); box-shadow: 0 14px 40px rgba(40, 20, 90, 0.16); font-size: 14px; white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float.f1 { left: -6%; top: 22%; border-bottom-left-radius: 4px; }
.float.f2 { right: -2%; bottom: 20%; animation-delay: -3s; color: var(--soft); }
.float.f2 b { color: #1d9e5e; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- the passengers, pinned up like photos ---------- */
.cast { padding: 100px 0 90px; background: var(--white); overflow: hidden; }
.board { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; row-gap: 34px; margin: 64px auto 0; padding: 20px 22px 30px; max-width: 1100px; }
.pol { position: relative; width: 196px; flex: none; margin: 0 -4px; }
.pol:nth-child(even) { margin-top: 30px; }
.pol:hover { z-index: 2; }
.pol a {
  position: relative; display: flex; flex-direction: column; padding: 12px 12px 18px; background: var(--white);
  border-radius: 4px; box-shadow: 0 2px 4px rgba(40, 20, 90, 0.08), 0 18px 40px rgba(40, 20, 90, 0.14);
  transform: rotate(var(--r, 0deg)); transition: transform .35s var(--ease), box-shadow .35s;
}
.pol a:hover, .pol a:focus-visible { transform: rotate(0deg) translateY(-12px) scale(1.04); box-shadow: 0 4px 8px rgba(40, 20, 90, 0.1), 0 30px 60px rgba(40, 20, 90, 0.2); }
/* a strip of tape holding it up */
.pol a::before { content: ""; position: absolute; top: -13px; left: 50%; width: 76px; height: 26px; transform: translateX(-50%) rotate(-4deg); background: rgba(232, 222, 255, 0.85); box-shadow: 0 1px 3px rgba(40, 20, 90, 0.08); }
.pol:nth-child(3n+2) a::before { background: rgba(255, 228, 206, 0.9); transform: translateX(-50%) rotate(3deg); }
.pol:nth-child(3n) a::before { background: rgba(255, 214, 226, 0.9); }
.pol:nth-child(4n) a::before { background: rgba(214, 236, 255, 0.9); transform: translateX(-50%) rotate(5deg); }
.pol:nth-child(5n) a::before { background: rgba(255, 240, 196, 0.9); }
/* the store photos are 9:16: this crops a sliver, keeping the raised hands and the feet */
.ph { display: block; aspect-ratio: 3 / 5; overflow: hidden; background: var(--sky); }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.pol b { margin-top: 12px; font: 400 27px/1 var(--hand); }
.pol .note { margin-top: 4px; font: 400 15px/1.3 var(--hand); color: var(--soft); }
.pol .tag { align-self: flex-start; margin-top: 12px; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); background: #f1eef8; }
.pol .tag.own { color: #fff; background: var(--violet); }
.pol .tag.winter { color: #fff; background: #c8313d; }

/* ---------- more than talk ---------- */
.more-sec { padding: 0 0 100px; }
.wide {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; overflow: hidden;
  padding: 0 56px; border-radius: 32px; background: linear-gradient(135deg, #efe8ff, #fde9f0);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .5s var(--ease), box-shadow .3s;
}
.wide:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(40, 20, 90, 0.12); }
.wide-copy { padding: 56px 0; }
.wide h3 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -0.04em; line-height: 1.05; }
.ticks { margin: 22px 0 26px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--violet); }
.ticks li::after { content: ""; position: absolute; left: 6.5px; top: 7.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.duo { position: relative; height: 420px; align-self: end; }
.duo .phone { position: absolute; bottom: -120px; --pw: 210px; filter: drop-shadow(0 24px 40px rgba(70, 40, 140, 0.25)); }
.duo .back { left: 12%; transform: rotate(-6deg); }
.duo .front { left: 44%; bottom: -150px; transform: rotate(5deg); }

/* ---------- coming to Mac ---------- */
.mac-sec { padding: 0 0 100px; }
.mac { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 30px; padding: 48px 56px; border-radius: 32px; background: var(--white); border: 1px solid var(--line); }
.mac-copy h2 { margin-top: 16px; font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -0.04em; line-height: 1.05; }
.mac-copy p:not(.soon-pill):not(.fine) { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--soft); }
.mac-copy .fine { margin-top: 14px; }

/* ---------- our other apps: home page only ---------- */
.more-apps { padding: 60px 22px 70px; text-align: center; background: #ece6fb; }
.more-title { font-size: 15px; font-weight: 500; color: var(--soft); }
.apps { margin-top: 24px; display: flex; justify-content: center; gap: clamp(32px, 7vw, 64px); }
.app { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.app img { width: 84px; height: 84px; transition: transform 0.3s var(--ease); filter: drop-shadow(0 8px 18px rgba(40, 20, 90, 0.25)); }
.app span { font-size: 14px; font-weight: 500; }
.app:hover img { transform: translateY(-4px) scale(1.05); }

@media (max-width: 1000px) {
  .board { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 30px 40px; gap: 10px; max-width: none; }
  .pol { margin: 0; scroll-snap-align: center; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .tagline, .hero .cta { justify-content: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .float.f1 { left: 0; } .float.f2 { right: 0; }
}
@media (max-width: 760px) {
  .mac { grid-template-columns: 1fr; padding: 34px 26px; text-align: center; }
  .wide { grid-template-columns: 1fr; padding: 0 26px; text-align: center; }
  .wide-copy { padding: 40px 0 0; }
  .ticks { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
  .duo { height: 330px; }
  .duo .phone { --pw: 170px; }
  .duo .back { left: calc(50% - 160px); }
  .duo .front { left: calc(50% - 10px); }
}
@media (max-width: 480px) { .pol { width: 190px; } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } .app img { transition: none; } }
.mac-copy .mac-link { margin-top: 18px; }
/* the "on the Mac App Store" button, once the Mac version is out (mac_available.py) */
.mac .cta { margin-top: 22px; }
@media (max-width: 760px) { .mac .cta { justify-content: center; } }
