/* PAPEL — the landing wears the same cut-card look as Sam's 3D world (the renders come from the explainer engine in
   the Papel material): a fibre-paper ground, cards with a cream cut edge lifted on a soft shadow, tape strips, the
   awning's scallops as section edges, price tags. Brand colours only: yellow, cream, ink, the stage indigo. */
.papel {
  --pp-paper: #fbf3e2; --pp-cream: #fffaf0; --pp-ink: #161725; --pp-yellow: #ffc82d; --pp-indigo: #2b2a86; --pp-night: #11134a;
  --pp-coral: #e8714f; --pp-wall: #f3e4c4; --pp-muted: #5f584e;
  --pp-lift: 0 1px 0 #e3d2b0, 0 3px 0 #efe1c5, 0 18px 30px -18px rgba(74, 46, 18, .5);
  --pp-lift-hi: 0 1px 0 #e3d2b0, 0 3px 0 #efe1c5, 0 28px 40px -20px rgba(74, 46, 18, .55);
  --pp-fibre: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42 0 0 0 0 .31 0 0 0 0 .18 0 0 0 .07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background: var(--pp-paper) var(--pp-fibre);
}
.papel .header { background: rgba(251, 243, 226, .92); }
.papel .eyebrow { font-weight: 600; letter-spacing: .14em; color: #7a6a4c; }

/* ---------- hero: the copy, then Sam's storefront with the guide playing in the shop window ---------- */
.pp-hero { padding-top: 54px; }
.pp-hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pp-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--pp-cream); box-shadow: var(--pp-lift); font-size: 13px; font-weight: 500; }
.pp-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fae68; box-shadow: 0 0 0 0 #2fae6866; animation: pp-pulse 2.4s ease-out infinite; }
@keyframes pp-pulse { 0% { box-shadow: 0 0 0 0 #2fae6866; } 70% { box-shadow: 0 0 0 9px #2fae6800; } 100% { box-shadow: 0 0 0 0 #2fae6800; } }
.pp-hero h1 { font-size: clamp(54px, 7.4vw, 106px); line-height: .98; letter-spacing: -.055em; margin: 0 0 20px; }
.pp-lead { max-width: 580px; margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: var(--pp-muted); }
.pp-hero .studio-start { display: inline-flex; }
.pp-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.pp-price-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 13px 18px; border-radius: 10px; background: var(--pp-yellow); color: var(--pp-ink); text-decoration: none; font-size: 14px; box-shadow: var(--pp-lift); transform: rotate(-2deg); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.pp-price-chip strong { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.pp-price-chip:hover { transform: rotate(0) translateY(-2px); }

.pp-storefront { position: relative; margin: 48px auto 0; width: min(1480px, calc(100% - 48px)); aspect-ratio: 2400 / 1000; border: 8px solid var(--pp-cream); border-radius: 28px; overflow: hidden; background: #d9c8f0; box-shadow: var(--pp-lift-hi); }
.pp-storefront picture, .pp-storefront img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the shop window's screen, measured on the render (tools/corners.py): the guide plays in it */
.pp-window { position: absolute; left: 37.15%; top: 55.07%; width: 5.44%; height: 23.19%; object-fit: cover; border-radius: 3px; background: #1d2752; pointer-events: none; }
.pp-window-label { position: absolute; left: 39.87%; top: 84.2%; transform: translate(-50%, -50%) rotate(-2deg); display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 8px; background: var(--pp-yellow); color: var(--pp-ink); font-size: 12px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 14px -6px #0006; white-space: nowrap; transition: transform .2s; }
.pp-window-label:hover { transform: translate(-50%, -50%) rotate(0) scale(1.04); }

.pp-proof { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 14px; margin-top: 30px; padding: 0; list-style: none; }
.pp-proof li { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-radius: 14px; background: var(--pp-cream); box-shadow: var(--pp-lift); }
.pp-proof li:nth-child(odd) { transform: rotate(-.8deg); } .pp-proof li:nth-child(even) { transform: rotate(.7deg); }
.pp-proof strong { font-family: var(--display); font-size: 28px; letter-spacing: -.04em; line-height: 1; }
.pp-proof span { font-size: 13px; color: var(--pp-muted); line-height: 1.3; }
.pp-proof a { font-size: 14px; font-weight: 600; text-decoration: none; align-self: center; }
.pp-proof li:last-child { background: var(--pp-ink); }
.pp-proof li:last-child a { color: var(--pp-cream); }

/* ---------- shared: headings, cards with a cut edge and a strip of tape ---------- */
.pp-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 44px; }
.pp-heading > .eyebrow { flex-basis: 100%; margin-bottom: -6px; }
.pp-heading h2 { max-width: 760px; }
.pp-card { position: relative; background: var(--pp-cream); border-radius: 20px; padding: 10px 10px 20px; box-shadow: var(--pp-lift); transform: rotate(var(--tilt, 0deg)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.pp-card::before { content: ''; position: absolute; z-index: 2; top: -11px; left: 50%; width: 86px; height: 24px; background: #ffd75acc; transform: translateX(-50%) rotate(-3deg); box-shadow: 0 1px 2px #0001; clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 52%); }
.pp-card:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--pp-lift-hi); }
.pp-card img { display: block; width: 100%; height: auto; border-radius: 13px; }
.pp-card h3 { margin: 16px 10px 6px; font-size: 22px; }
.pp-card p { margin: 0 10px; font-size: 14px; line-height: 1.65; color: var(--pp-muted); }

/* ---------- what's included: the four props from Sam's workbench ---------- */
.pp-ingredients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.pp-ingredients img { aspect-ratio: 1; object-fit: cover; }

/* ---------- how it works: the workshop wall, edged with the awning's scallops ---------- */
.pp-process { position: relative; background: var(--pp-wall) var(--pp-fibre); margin-block: 30px; }
.pp-process::before, .pp-process::after { content: ''; position: absolute; left: 0; right: 0; height: 20px; background-repeat: repeat-x; background-size: 34px 20px; }
.pp-process::before { top: 0; background-image: radial-gradient(circle at 17px 0, var(--pp-paper) 15px, transparent 15.5px); }
.pp-process::after { bottom: 0; background-image: radial-gradient(circle at 17px 20px, var(--pp-paper) 15px, transparent 15.5px); }
.pp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pp-steps .pp-card:nth-child(1) { --tilt: -1deg; } .pp-steps .pp-card:nth-child(2) { --tilt: .6deg; } .pp-steps .pp-card:nth-child(3) { --tilt: -.5deg; }
.pp-steps figure { position: relative; margin: 0; }
.pp-steps img { aspect-ratio: 4 / 3; object-fit: cover; }
.pp-step-num { position: absolute; left: -8px; top: -8px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--pp-yellow); border: 4px solid var(--pp-cream); font-family: var(--display); font-size: 24px; box-shadow: 0 6px 12px -6px #0006; transform: rotate(-8deg); }

/* ---------- prices: four paper tags ---------- */
.pp-tags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 18px 0 0; list-style: none; }
.pp-tag { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 34px 20px 20px; border-radius: 16px 16px 18px 18px; background: var(--pp-cream); box-shadow: var(--pp-lift); transform: rotate(var(--tilt, 0deg)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.pp-tag:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--pp-lift-hi); }
.pp-tag-hole { position: absolute; top: 12px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--pp-paper); box-shadow: inset 0 2px 3px #0003; }
.pp-tag-hole::before { content: ''; position: absolute; left: 6px; bottom: 9px; width: 2px; height: 26px; background: #9a8a6c; transform: rotate(14deg); transform-origin: bottom; border-radius: 1px; }
.pp-tag-time { font-family: var(--display); font-size: 26px; letter-spacing: -.03em; line-height: 1.1; }
.pp-tag-desc { font-size: 13px; color: var(--pp-muted); min-height: 40px; }
.pp-tag-price { font-family: var(--display); font-size: 40px; letter-spacing: -.04em; line-height: 1; margin: 6px 0 10px; }
.pp-tag-price small { font-family: var(--body); font-size: 12px; letter-spacing: 0; color: var(--pp-muted); }
.pp-tag .button { width: 100%; }
.pp-tag.is-recommended { background: var(--pp-yellow); }
.pp-tag.is-recommended .pp-tag-desc, .pp-tag.is-recommended .pp-tag-price small { color: #4a3d10; }
.pp-tag-flag { position: absolute; top: -12px; right: 14px; padding: 5px 10px; border-radius: 6px; background: var(--pp-ink); color: var(--pp-yellow); font-size: 11px; font-weight: 700; letter-spacing: .03em; transform: rotate(3deg); }
.pp-prices-note { margin: 26px 0 0; font-size: 13px; color: var(--pp-muted); text-align: center; }
.pp-business { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 30px auto 0; padding: 14px 20px 14px 14px; border-radius: 16px; border: 2px dashed #d9c49c; }
.pp-business img { width: 56px; height: 56px; border-radius: 14px; flex: none; transform: rotate(-5deg); }
.pp-business p { margin: 0; font-size: 14px; line-height: 1.6; }
.pp-business a { font-weight: 600; white-space: nowrap; }

/* ---------- examples: view counts on the reels that earned them ---------- */
.pp-screening { margin-top: 20px; }
.pp-views { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 5px 9px; border-radius: 6px; background: var(--pp-yellow); color: var(--pp-ink); font-size: 11px; font-weight: 700; pointer-events: none; transform: rotate(-3deg); box-shadow: 0 4px 10px -4px #0006; }
.video-frame.is-playing .pp-views { display: none; }
.faq-list a { font-weight: 600; }

/* ---------- the close: the studio at night ---------- */
.pp-night { position: relative; margin-top: 40px; background: var(--pp-night); color: var(--pp-cream); overflow: hidden; }
.pp-night::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 20px; background: radial-gradient(circle at 17px 0, var(--pp-paper) 15px, transparent 15.5px) 0 0 / 34px 20px repeat-x; z-index: 2; }
.pp-night-copy { position: relative; z-index: 1; text-align: center; padding-top: 78px; }
.pp-night .eyebrow { color: #c9c3ff; }
.pp-night h2 { color: var(--pp-cream); font-size: clamp(44px, 5.4vw, 72px); }
.pp-night-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin-top: 28px; }
.pp-night-actions a { color: var(--pp-cream); font-size: 14px; }
.pp-night picture { display: block; position: relative; margin-top: 36px; }
.pp-night picture::before { content: ''; position: absolute; inset: 0 0 auto; height: 38%; background: linear-gradient(var(--pp-night), transparent); z-index: 1; }
.pp-night img { display: block; width: 100%; height: auto; }

/* ---------- entrances: cards settle in one after another ---------- */
.papel [data-reveal].revealing .pp-card, .papel [data-reveal].revealing .pp-tag { animation: pp-drop .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.papel [data-reveal].revealing :is(.pp-card, .pp-tag):nth-child(2) { animation-delay: .08s; }
.papel [data-reveal].revealing :is(.pp-card, .pp-tag):nth-child(3) { animation-delay: .16s; }
.papel [data-reveal].revealing :is(.pp-card, .pp-tag):nth-child(4) { animation-delay: .24s; }
@keyframes pp-drop { from { opacity: 0; transform: translateY(26px) rotate(calc(var(--tilt, 0deg) * 4)); } to { opacity: 1; transform: rotate(var(--tilt, 0deg)); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .pp-ingredients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .pp-proof { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 800px) {
  .pp-steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pp-heading { margin-bottom: 30px; }
}
@media (max-width: 700px) {
  .pp-hero { padding-top: 34px; }
  .pp-kicker { font-size: 12px; margin-bottom: 18px; }
  .pp-hero h1 { font-size: clamp(44px, 13vw, 64px); letter-spacing: -.05em; }
  .pp-lead { font-size: 16px; margin-bottom: 22px; }
  .pp-storefront { width: calc(100% - 32px); aspect-ratio: 1; margin-top: 32px; border-width: 6px; border-radius: 22px; }
  .pp-window { left: 24.28%; top: 54.95%; width: 12.67%; height: 22.5%; }
  .pp-window-label { left: 30.6%; top: 83%; font-size: 11px; padding: 6px 10px; }
  .pp-proof { grid-template-columns: 1fr 1fr; gap: 10px; width: calc(100% - 32px); }
  .pp-proof li { flex-direction: column; gap: 4px; padding: 12px 14px; }
  .pp-proof strong { font-size: 24px; }
  .pp-proof span { font-size: 12px; }
  .pp-ingredients { gap: 18px 14px; }
  .pp-card { padding: 7px 7px 16px; border-radius: 16px; }
  .pp-card::before { width: 60px; height: 18px; top: -8px; }
  .pp-card h3 { font-size: 18px; margin: 12px 6px 4px; }
  .pp-card p { font-size: 13px; margin: 0 6px; }
  .pp-tags { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .pp-tag { padding: 30px 14px 14px; }
  .pp-tag-time { font-size: 20px; }
  .pp-tag-desc { font-size: 12px; min-height: 52px; }
  .pp-tag-price { font-size: 30px; }
  .pp-tag .button { padding-inline: 10px; font-size: 12px; }
  .pp-business { align-items: flex-start; }
  .pp-business a { white-space: normal; overflow-wrap: anywhere; }
  .pp-night-copy { padding-top: 60px; }
  .pp-night img { width: 170%; max-width: none; margin-left: -35%; }
}
@media (max-width: 390px) {
  .pp-ingredients { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .pp-ingredients .pp-card p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-card, .pp-tag, .pp-price-chip, .pp-proof li { transform: none !important; }
  .pp-window { display: none; }
}
