/* The homepage, on top of styles.css. */

/* The first screen: the app, its promise, and five of its screens. */
.hero { text-align: center; padding: 64px 0 0; }
.stacked { display: inline-flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; }
.stacked img { width: 72px; height: 72px; border-radius: 22.37%; box-shadow: 0 0 0 0.5px var(--rule), 0 6px 18px rgba(0, 0, 0, 0.08); }
.stacked svg { width: 148px; height: 27px; margin-top: 12px; fill: currentColor; }
.hero h1 { font: 600 clamp(44px, 7vw, 84px)/1.04 var(--display); letter-spacing: -0.035em; margin: 28px auto 0; max-width: 12em; }
.hero .sub { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; color: var(--ink-2); max-width: 30em; margin: 20px auto 0; letter-spacing: -0.016em; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero .avail { font-size: 15px; color: var(--ink-2); }

.lineup { display: flex; justify-content: center; align-items: flex-end; gap: 22px; margin-top: 64px; padding: 0 0 48px; overflow: hidden; }
.slot { flex: none; }
.device { width: 230px; border-radius: 40px; border: 5px solid var(--bezel); background: var(--bezel); overflow: hidden; box-shadow: var(--shadow); }
.device img { border-radius: 35px; width: 100%; }
.s3 .device { width: 262px; border-radius: 44px; }
.s3 .device img { border-radius: 39px; }
.s2, .s4 { margin-bottom: 28px; }
.s1, .s5 { margin-bottom: 64px; }
.s1 .device, .s5 .device { width: 210px; }

/* The story, in tiles. */
.section { padding: 128px 0 0; }
.center { text-align: center; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--kraft); margin-bottom: 10px; letter-spacing: -0.01em; }
.section h2, .end h2 { font: 600 clamp(34px, 5vw, 56px)/1.07 var(--display); letter-spacing: -0.03em; }
.lede { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 33em; margin: 18px auto 0; letter-spacing: -0.016em; }
.panel { position: relative; overflow: hidden; background: var(--tile); border-radius: 30px; margin-top: 48px; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; height: 600px; padding: 0 72px; }
.split .device { width: 270px; justify-self: center; align-self: end; margin-bottom: -110px; }
.day { text-align: left; max-width: 340px; justify-self: end; margin: 0; padding: 0; list-style: none; }
.day li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--rule); font-size: 19px; letter-spacing: -0.015em; }
.day li:first-child { border-top: 0; }
.day time { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 15px; padding-top: 3px; }
.day small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 3px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair .panel { margin-top: 0; padding: 44px 40px 0; height: 640px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pair h3 { font: 600 28px/1.14 var(--display); letter-spacing: -0.02em; }
.pair p:not(.eyebrow) { font-size: 17px; color: var(--ink-2); margin-top: 10px; max-width: 24em; }
.pair .device { width: 250px; margin-top: 36px; }

.three { display: flex; justify-content: center; align-items: flex-end; gap: 28px; height: 600px; padding-top: 60px; }
.three .device { width: 240px; margin-bottom: -110px; }
.three .slot:nth-child(2) .device { margin-bottom: -60px; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
.grid4 > div { background: var(--tile); border-radius: 24px; padding: 30px 26px 32px; }
.grid4 svg { width: 32px; height: 32px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.grid4 h3 { font: 600 19px/1.25 var(--display); margin-top: 20px; letter-spacing: -0.015em; }
.grid4 p { font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }

.covers { display: flex; justify-content: center; gap: 22px; margin: 52px 0 0; padding: 0; list-style: none; }
.covers li { text-align: center; }
.covers .device { width: 210px; }
.covers span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 16px; }

/* A few answers. */
.faq { max-width: 760px; margin: 44px auto 0; text-align: left; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font: 600 19px/1.3 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor 0 0) center / 12px 1.5px no-repeat, linear-gradient(currentColor 0 0) center / 1.5px 12px no-repeat; color: var(--ink-2); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); font-size: 17px; line-height: 1.55; padding: 0 40px 22px 0; }
.faq details a { color: var(--kraft); }

.end { text-align: center; padding: 140px 0 0; }
.end .lede { margin-bottom: 30px; }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--rule); font-weight: 500; }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kraft); }
.end .note { font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.end .note a { color: var(--kraft); }

/* Motion, only when welcome (styles.css explains .motion). */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes lift { from { opacity: 0; transform: translateY(90px) scale(0.97); } }
.motion .hero .stacked, .motion .hero h1, .motion .hero .sub, .motion .hero .actions { animation: rise 1s var(--ease) both; }
.motion .hero h1 { animation-delay: 0.08s; }
.motion .hero .sub { animation-delay: 0.16s; }
.motion .hero .actions { animation-delay: 0.24s; }
.motion .lineup .device { animation: lift 1.3s var(--ease) both; }
.motion .s3 .device { animation-delay: 0.3s; }
.motion .s2 .device, .motion .s4 .device { animation-delay: 0.42s; }
.motion .s1 .device, .motion .s5 .device { animation-delay: 0.54s; }
/* As the page scrolls, the outer screens drift up faster than the middle. */
@supports (animation-timeline: scroll()) {
  @keyframes drift { to { transform: translateY(var(--drift, 0)); } }
  .motion .lineup .slot { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 720px; }
  .motion .s1, .motion .s5 { --drift: -64px; }
  .motion .s2, .motion .s4 { --drift: -30px; }
}
/* The day fills in, one moment after another. */
.motion .day .reveal:not(.is-in) { transform: translateX(-18px); }
.motion .split .device.reveal:not(.is-in) { transform: translateY(60px); }
/* The outer screens settle from a slight turn. */
.motion .three .slot:nth-child(1) .reveal:not(.is-in) { transform: translateY(50px) rotate(-5deg); }
.motion .three .slot:nth-child(3) .reveal:not(.is-in) { transform: translateY(50px) rotate(5deg); }
.motion .covers li:nth-child(odd) .reveal:not(.is-in) { transform: translateY(40px) rotate(-3deg); }
.motion .covers li:nth-child(even) .reveal:not(.is-in) { transform: translateY(40px) rotate(3deg); }
/* The privacy icons draw themselves. */
.motion .grid4 .reveal svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) calc(var(--delay, 0s) + 0.35s); }
.motion .grid4 .reveal.is-in svg * { stroke-dashoffset: 0; }

@media (max-width: 1068px) {
  .split { padding: 0 48px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 734px) {
  .hero { padding-top: 44px; }
  .lineup { gap: 14px; margin-top: 44px; padding-bottom: 36px; }
  .s1, .s5 { display: none; }
  .device { width: 150px; border-width: 4px; border-radius: 28px; }
  .device img { border-radius: 24px; }
  .s3 .device { width: 180px; border-radius: 32px; }
  .s3 .device img { border-radius: 28px; }
  .s2, .s4 { margin-bottom: 20px; }
  .section { padding-top: 96px; }
  .split { grid-template-columns: 1fr; height: auto; padding: 28px 24px 0; gap: 24px; }
  .split .device { width: 230px; margin-bottom: -60px; }
  .day { justify-self: stretch; max-width: none; }
  .day li { font-size: 17px; padding: 14px 0; }
  .pair { grid-template-columns: 1fr; }
  .pair .panel { height: 560px; padding: 36px 24px 0; }
  .three { gap: 10px; height: 360px; padding-top: 36px; }
  .three .device { width: 120px; margin-bottom: -40px; border-radius: 22px; }
  .three .device img { border-radius: 18px; }
  .three .slot:nth-child(2) .device { margin-bottom: -10px; }
  .grid4 { grid-template-columns: 1fr; }
  .covers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 14px; justify-items: center; }
  .covers .device { width: 150px; }
  .faq summary { font-size: 17px; }
  .faq details p { padding-right: 0; }
  .end { padding-top: 110px; }
}
@media (max-width: 374px) {
  .s2, .s4 { display: none; }
}
