/* Landing v2: iPhone bodies, voice-wave graphics, story, bento grid, FAQ. Loaded after site.css. */

/* App Store button (a link; works once the app is released) */
a.soon { text-decoration: none; }
a.soon:hover { filter: brightness(1.05); }

/* iPhone body */
.phone { position: relative; width: min(280px, 64vw); padding: 9px; border-radius: 54px;
  background: linear-gradient(145deg, #8a7a92 0%, #3a2d42 22%, #5a4a63 48%, #241a2b 76%, #6d5d76 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22), inset 0 0 0 3px rgba(0,0,0,.35), 0 44px 80px rgba(20,6,26,.5), 0 8px 18px rgba(20,6,26,.3); }
.phone img { border-radius: 45px; width: 100%; border: 6px solid #07030a; background: #07030a; }
.phone::before { content: ""; position: absolute; z-index: 2; top: 21px; left: 50%; width: 31%; height: 23px; transform: translateX(-50%); background: #000; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.phone::after { content: ""; position: absolute; left: -3.5px; top: 17%; width: 4px; height: 30px; border-radius: 3px 0 0 3px; background: #4a3b52; box-shadow: 0 50px 0 #4a3b52, 0 -34px 0 -1px #4a3b52; }
.phone.sm { width: min(230px, 58vw); }
.phone.crop { margin-bottom: -34%; }

/* graphics: voice wave and glow */
.wave { display: flex; align-items: center; justify-content: center; gap: 6px; pointer-events: none; }
.wave span { flex: 0 1 8px; height: calc(var(--h) * 1%); border-radius: 8px; background: linear-gradient(180deg, var(--gold), #ff8f7a); opacity: .55; animation: wv 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.16s); }
@keyframes wv { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.glow { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,143,122,.55), rgba(255,227,163,.18) 45%, transparent 70%); filter: blur(10px); }

/* hero additions */
.stage .wave { position: absolute; left: -22%; right: -22%; top: 24%; height: 52%; }
.stage .glow { width: 120%; aspect-ratio: 1; left: -10%; top: -10%; opacity: .75; }
.stage .phone { z-index: 1; }
.chip { z-index: 2; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .92rem; opacity: .85; }
.trust li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; }

/* story: a pinned phone with steps that scroll past */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; margin-top: 44px; align-items: start; }
.story-pin { position: sticky; top: 70px; height: clamp(520px, calc(100vh - 100px), 720px); display: grid; place-items: center; }
.story-pin .glow { width: 110%; aspect-ratio: 1; opacity: .5; background: radial-gradient(circle, rgba(106,36,104,.35), transparent 65%); }
.story-pin .wave { position: absolute; left: -10%; right: -10%; top: 30%; height: 40%; opacity: .55; }
.story-pin .wave span { background: linear-gradient(180deg, var(--brand), #ff8f7a); opacity: .3; }
.story-pin .phone { z-index: 1; width: clamp(220px, min(300px, 100%, calc((100vh - 130px) * .45)), 300px); }
.story-pin .phone .layers { position: relative; display: block; }
.story-pin .phone .layers img { transition: opacity .6s ease; }
.story-pin .phone .layers img + img { position: absolute; inset: 0; opacity: 0; }
.story-pin .phone .layers img.on { opacity: 1; }
.story-steps article { min-height: clamp(360px, 56vh, 520px); display: flex; flex-direction: column; justify-content: center; opacity: .38; transition: opacity .5s; padding: 10px 0; }
.story-steps article.on { opacity: 1; }
.story-steps .num { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-family: var(--serif); font-weight: 700; font-size: 1.5rem; display: grid; place-items: center; box-shadow: 0 0 0 8px var(--tint); }
.story-steps h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 20px 0 10px; }
.story-steps p { color: var(--muted); font-size: 1.1rem; max-width: 26em; margin: 0; }
.story-steps .m-shot { display: none; }

/* bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 40px; grid-auto-flow: dense; }
.tile { position: relative; overflow: hidden; border-radius: 34px; padding: 30px 30px 0; background: var(--raised); border: 1px solid var(--line); min-height: 380px; display: flex; flex-direction: column; }
.tile h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 8px; }
.tile p { color: var(--muted); margin: 0; max-width: 24em; }
.tile.s2 { grid-column: span 2; } .tile.s3 { grid-column: span 3; } .tile.s4 { grid-column: span 4; }
.tile.plum { background: linear-gradient(150deg, var(--block-a), var(--block-b)); color: var(--block-text); border: 0; }
.tile.plum p { color: var(--block-text); opacity: .88; }
.tile.tint { background: var(--tint); border: 0; }
.tile.gold { background: linear-gradient(150deg, #ffe3a3, #ffc9a0); color: #3a0f40; border: 0; }
.tile.gold p { color: #5e1c60; }
.tile .copy { position: relative; z-index: 2; }
.tile .art { margin-top: auto; display: flex; justify-content: center; gap: 14px; position: relative; z-index: 1; }
.tile.row { flex-direction: row; align-items: center; gap: 20px; padding-bottom: 30px; }
.tile.row .art { margin: 0 0 0 auto; }
.tile .wave { position: absolute; left: 0; right: 0; bottom: 8%; height: 34%; opacity: .6; z-index: 0; }
.bigstat { font-family: var(--serif); font-weight: 700; font-size: clamp(4rem, 8vw, 6.4rem); line-height: .95; margin: auto 0 4px; }
.bigstat small { display: block; font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; margin-top: 8px; }
.tile.gold .bigstat { margin: auto 0 28px; }

/* live paced-reader demo */
.reader { margin-top: auto; padding: 0 0 26px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; }
.reader span { display: block; padding: 6px 12px; border-radius: 12px; border-left: 4px solid transparent; color: var(--muted); animation: ph 9s infinite; }
.reader span:nth-child(2) { animation-delay: 3s; } .reader span:nth-child(3) { animation-delay: 6s; }
@keyframes ph { 0%, 30% { background: var(--tint); border-color: var(--gold-d); color: var(--ink); } 36%, 100% { background: transparent; border-color: transparent; color: var(--muted); } }

.card { display: flex; flex-direction: column; }
.card .wave.foot { margin-top: auto; height: 96px; padding-top: 22px; }
.card .wave.foot span { background: linear-gradient(180deg, var(--gold-d), #ff8f7a); opacity: .35; }
.card.prem .wave.foot { display: none; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.6rem; color: var(--gold-d); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 12px 0 0; color: var(--muted); max-width: 36em; }
.faq-intro h2 { font-size: clamp(2rem, 4vw, 3rem); }
.faq-intro p { color: var(--muted); margin-top: 14px; }
.faq-intro .wave { height: 90px; margin-top: 28px; justify-content: flex-start; }

@media (max-width: 640px) {
  .lp .top nav a:not(:last-child) { display: none; }
  .lp .top nav a { margin-left: 0; }
}
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-pin { display: none; }
  .story-steps article { min-height: 0; opacity: 1; padding: 26px 0 8px; }
  .story-steps .m-shot { display: block; margin-top: 26px; }
  .story-steps .m-shot .phone { margin: 0 auto; width: min(250px, 66vw); }
  .bento { grid-template-columns: 1fr; }
  .tile.s2, .tile.s3, .tile.s4 { grid-column: auto; }
  .tile { min-height: 0; padding: 26px 22px 0; border-radius: 28px; }
  .tile.row { flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .tile.row .art { margin: 18px auto 0; }
  .tile .art { margin-top: 22px; }
  .tile .wave { position: relative; left: auto; right: auto; bottom: auto; height: 90px; margin: 20px 0 0; }
  .tile.row .wave { order: 3; }
  .tile.gold, .tile.tint:not(.has-art) { padding-bottom: 26px; }
  .bigstat { margin-top: 18px; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .stage .wave { left: -12%; right: -12%; }
  .phone { border-radius: 46px; }
  .phone img { border-radius: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .wave span { animation: none; transform: scaleY(.7); }
  .reader span:first-child { background: var(--tint); border-color: var(--gold-d); color: var(--ink); animation: none; }
  .reader span { animation: none; }
  .story-steps article { opacity: 1; }
}
