/* Landing page layout. Colors and type come only from brand/sidequest.css tokens. */

.lp-flash { padding-block: var(--sq-space-2); }
.lp-flash p { margin: 0; padding: 12px 16px; background: var(--sq-violet); color: var(--sq-lilac); font-weight: 600; }

.lp-cta-row { display: flex; flex-wrap: wrap; gap: var(--sq-space-3); margin-top: var(--sq-space-6); }
.lp-section-head { display: grid; gap: var(--sq-space-4); margin-bottom: var(--sq-space-7); }
.lp-section-head .sq-lead { margin: 0; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; padding-block: var(--sq-space-8) var(--sq-space-9); overflow: hidden; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--sq-space-7); align-items: center; min-height: min(78vh, 760px); }
.lp-hero-copy { display: grid; gap: var(--sq-space-4); }
.lp-hero-copy .sq-lead { margin: 0; }
.lp-hero-warm { font-size: var(--sq-step-3); line-height: 1.05; margin: 0; }
.lp-hero-note { margin: 0; }
.lp-hero-art { position: relative; aspect-ratio: 1; }
.lp-paper {
  position: absolute; inset: 8% 10% 12% 6%;
  background: var(--sq-cream-soft); border: var(--sq-hair) solid var(--sq-violet);
  transform: rotate(-5deg); display: grid; place-items: center;
  box-shadow: 14px 14px 0 var(--sq-violet);
}
.lp-paper-art { width: 46%; animation: lp-sway 6s ease-in-out infinite alternate; }
.lp-paper-note { position: absolute; right: 8%; bottom: 6%; font-size: var(--sq-step-1); transform: rotate(-4deg); }
.lp-hero-stamp { position: absolute; width: 34%; right: -2%; top: -2%; animation: lp-spin 40s linear infinite; }
.lp-hero-rat { position: absolute; width: 54%; left: -16%; bottom: -16%; }
.lp-hero-stars { position: absolute; width: 26%; left: 2%; top: -4%; animation: lp-sway 5s ease-in-out infinite alternate; }
.lp-scroll-cue { position: absolute; left: 50%; bottom: var(--sq-space-5); transform: translateX(-50%); text-decoration: none; padding: 12px; }
@keyframes lp-sway { from { transform: rotate(-6deg) scale(.98); } to { transform: rotate(6deg) scale(1.03); } }
@keyframes lp-spin { to { rotate: 360deg; } }

/* ---------- Scroll story ---------- */
.lp-story { position: relative; height: 460vh; }
.lp-story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.lp-story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sq-space-7); align-items: center; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.lp-step { grid-area: 1 / 1; display: grid; gap: var(--sq-space-3); opacity: 0; pointer-events: none; will-change: opacity, transform; }
.lp-word { transition: opacity .12s linear; }
.lp-step p { margin: 0; }
.lp-step p:last-child { font-size: var(--sq-step-1); line-height: 1.45; max-width: 40ch; }
.lp-step.is-active { pointer-events: auto; }
.lp-stage { display: grid; place-items: center; }
.lp-stage-box { position: relative; width: min(100%, 72vh, 640px); aspect-ratio: 1; }
.lp-actor { position: absolute; left: 50%; top: 50%; translate: -50% -50%; will-change: transform, opacity; opacity: 0; }
.lp-actor img { width: 100%; }
.lp-a-paper { width: 58%; aspect-ratio: 4 / 5; background: var(--sq-cream-soft); border: var(--sq-hair) solid var(--sq-lilac); box-shadow: 12px 12px 0 var(--sq-lilac); }
.lp-a-paper img { display: none; }
.lp-a-paper span { position: absolute; right: 10%; bottom: 6%; color: var(--sq-violet); font-size: var(--sq-step-1); transform: rotate(-4deg); }
.lp-a-art { width: 34%; }
.lp-a-chips { width: 92%; height: 70%; color: var(--sq-lilac); }
.lp-a-chips .sq-chip { position: absolute; background: var(--sq-violet); white-space: nowrap; }
.lp-a-chips .sq-chip:nth-child(1) { left: 0; top: 4%; }
.lp-a-chips .sq-chip:nth-child(2) { right: 0; top: 40%; }
.lp-a-chips .sq-chip:nth-child(3) { left: 6%; bottom: 2%; }
.lp-a-tee { width: 62%; }
.lp-tee-art { position: absolute; left: 34.8%; top: 22.8%; width: 30.8%; height: 45%; background: var(--sq-cloth); display: grid; place-items: center; opacity: var(--tee-art, 0); }
.lp-tee-art img { width: 72%; }
.lp-a-cap { width: 38%; }
.lp-a-tote { width: 38%; }
.lp-a-label { width: 88%; }
.lp-a-rat { width: 48%; }
.lp-a-monkey { width: 46%; }
.lp-a-duck { width: 40%; }
.lp-a-frog { width: 40%; }
.lp-a-ink { width: 70%; aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--sq-lilac); }
.lp-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: color-mix(in srgb, var(--sq-lilac) 25%, transparent); }
.lp-progress span { display: block; height: 100%; width: 100%; background: var(--sq-lilac); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Without JS, or with reduced motion: no pinning, every step listed, the label shown. */
.lp-static .lp-story { height: auto; padding-block: var(--sq-space-9); }
.lp-static .lp-story-pin { position: static; height: auto; }
.lp-static .lp-steps { gap: var(--sq-space-7); }
.lp-static .lp-step { grid-area: auto; opacity: 1 !important; transform: none !important; }
.lp-static .lp-word { opacity: 1 !important; }
.lp-static .lp-actor { display: none; }
.lp-static .lp-a-label { display: block; opacity: 1; transform: rotate(-3deg); }
.lp-static .lp-a-frog { display: block; opacity: 1; transform: translateY(-76%); }
.lp-static .lp-progress { display: none; }

/* ---------- How / goods / who / label ---------- */
.lp-how p { margin: var(--sq-space-3) 0 0; }
.lp-goods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sq-space-5); }
.lp-good a { display: grid; gap: var(--sq-space-2); text-decoration: none; }
.lp-good-img { display: block; aspect-ratio: 1; background: var(--sq-cream-soft); border: var(--sq-hair) solid var(--sq-violet); overflow: hidden; }
.lp-good-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .4s var(--sq-ease); }
.lp-good a:hover .lp-good-img img { transform: scale(1.05) rotate(-2deg); }
.lp-good a:hover .sq-h3 { text-decoration: underline; }

.lp-who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sq-space-7); align-items: start; }
.lp-who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sq-space-4); font-size: var(--sq-step-1); line-height: 1.4; }

.lp-label { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sq-space-7); align-items: center; }
.lp-neck { background: var(--sq-cream); border: var(--sq-hair) solid var(--sq-violet); aspect-ratio: 5 / 4; display: grid; place-items: center; position: relative; overflow: hidden; }
.lp-neck::before { content: ""; position: absolute; width: 120%; height: 70%; top: -38%; left: -10%; border-radius: 50%; border: 10px solid var(--sq-violet); background: var(--sq-cream-soft); }
.lp-neck-label { position: relative; background: var(--sq-violet); color: var(--sq-lilac); padding: 22px 30px; display: grid; gap: 6px; text-align: center; transform: rotate(-2deg); outline: 2px dashed var(--sq-lilac); outline-offset: -9px; }
.lp-neck-name { font-size: var(--sq-step-3); line-height: 1; }
.lp-neck-run { font-size: var(--sq-step-1); }
.lp-neck-ours { font: 600 var(--sq-step--1)/1.2 var(--sq-font-body); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Questions ---------- */
.lp-ask { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--sq-space-7); align-items: start; }
.lp-faq { margin-top: var(--sq-space-6); border-bottom: var(--sq-hair) solid var(--sq-violet); }
.lp-faq details { border-top: var(--sq-hair) solid var(--sq-violet); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: var(--sq-step-1); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 800 1.6rem/1 var(--sq-font-loud); }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0 0 18px; max-width: 60ch; }
.lp-ask-form { display: grid; gap: var(--sq-space-4); }
.lp-ask-form h3 { margin-bottom: var(--sq-space-2); }
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Invite ---------- */
.lp-invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sq-space-7); align-items: start; }
.lp-invite-stamp { width: min(220px, 50%); margin-top: var(--sq-space-6); animation: lp-spin 50s linear infinite; }
.lp-invite-form { display: grid; gap: var(--sq-space-4); }
.lp-invite-actions { display: flex; flex-wrap: wrap; gap: var(--sq-space-3); }
.lp-invite-status { min-height: 1.5em; margin: 0; }

/* ---------- Last call ---------- */
.lp-last { text-align: left; }
.lp-last .lp-hero-warm { margin-top: var(--sq-space-4); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .lp-goods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lp-hero-grid, .lp-who, .lp-label, .lp-ask, .lp-invite { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-grid { min-height: 0; }
  .lp-hero-art { width: min(100%, 420px); margin-inline: auto; }
  .lp-scroll-cue { display: none; }
  .lp-story-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sq-space-4); align-content: center; height: 100%; }
  .lp-story-pin .sq-wrap { height: 100%; padding-block: 80px 24px; }
  .lp-stage { order: -1; }
  .lp-stage-box { width: min(100%, 46svh); }
  .lp-step .sq-h2 { font-size: var(--sq-step-2); }
  .lp-step p:last-child { font-size: var(--sq-step-0); }
  .lp-static .lp-story-pin .sq-wrap { padding-block: 0; }
}
@media (max-width: 560px) {
  .lp-goods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Characters ---------- */
.lp-who-crew { display: flex; gap: var(--sq-space-4); margin-top: var(--sq-space-6); }
.lp-who-crew img { width: min(44%, 200px); }
.lp-ask-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sq-space-4); }
.lp-ask-monkey { width: clamp(96px, 16vw, 170px); flex: none; margin-bottom: -12px; }
.lp-invite-duck { width: min(240px, 60%); margin-top: var(--sq-space-6); background: var(--sq-cream-soft); border: var(--sq-hair) solid var(--sq-lilac); transform: rotate(-3deg); }
.lp-crew { display: flex; gap: var(--sq-space-3); margin-bottom: var(--sq-space-5); }
.lp-crew img { width: clamp(72px, 12vw, 150px); }
.lp-crew img:nth-child(odd) { transform: translateY(10px) rotate(-3deg); }
.lp-crew img:nth-child(even) { transform: rotate(3deg); }

/* Why us */
.lp-why { margin-block: var(--sq-space-6); }
.lp-why .sq-card { display: grid; gap: var(--sq-space-2); align-content: start; }
