/* Propappa home story (design/home-hero/experience.md; prototype design/home-hero/prototype/index.html).
   Prefix p3- so the site stylesheet cannot collide. The site header and footer stay as on every page. */
.page-home {
  --p3-ivory: #f6efe6; --p3-wall: #efe2d0; --p3-ink: #1d1a19; --p3-muted: #5f5752; --p3-red: #ca2127;
  --p3-red-dark: #a8181d; --p3-line: #e3d6c6; --p3-display: "Jost", "Avenir Next", system-ui, sans-serif;
  /* Layer 1: base atmosphere, the morning wall over the oak counter; shown while loading and without the scene */
  background: linear-gradient(180deg, var(--p3-wall) 0 72%, #d9b98c 72% 100%) fixed;
}

/* Layer 2: the scene, mounted once, never takes input */
.p3-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .7s ease; }
.p3-scene.p3-ready { opacity: 1; }
.p3-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.p3-world img { display: block; width: 100%; height: 100%; max-width: none; }
.p3-life { position: absolute; inset: 0; width: 100%; height: 100%; }

/* splash: Propappa red, held until the still has decoded (at most 1.5 s after load) */
.p3-splash { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: var(--p3-red); transition: opacity .5s ease; }
.p3-splash img { width: min(220px, 46vw); }
.p3-splash.p3-done { opacity: 0; pointer-events: none; }

/* the site header stays above the scene; on the home page it is fixed so the scene runs under it */
.page-home .hdr { position: fixed; left: 0; right: 0; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.2) blur(8px); }
.page-home .hdr-shop { margin-left: 24px; }
.page-home .ftr { position: relative; z-index: 2; }

/* progress dots, named */
.p3-dots { position: fixed; right: max(18px, 2vw); top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 12px; }
.p3-dots a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--p3-muted); text-decoration: none; font: 500 12px var(--p3-display); letter-spacing: .08em; text-transform: uppercase; }
.p3-dots a span { opacity: 0; transition: opacity .3s; }
.p3-dots a:hover span, .p3-dots a[aria-current="step"] span { opacity: 1; }
.p3-dots a i { width: 8px; height: 8px; border-radius: 50%; background: rgba(29, 26, 25, .25); }
.p3-dots a[aria-current="step"] i { background: var(--p3-red); transform: scale(1.25); }

/* Layer 3: sections in normal flow */
.p3-page { position: relative; z-index: 1; }
.p3-section { min-height: 100vh; display: flex; align-items: center; padding: 110px max(24px, 6vw) 60px; }
.p3-copy { max-width: min(420px, 30vw); position: relative; }
.p3-copy::before { content: ""; position: absolute; inset: -60px -80px -60px -120px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(246, 239, 230, .88), rgba(246, 239, 230, .55) 60%, rgba(246, 239, 230, 0)); }
.p3-label { display: inline-block; font: 600 12px var(--p3-display); letter-spacing: .14em; text-transform: uppercase; color: var(--p3-red); padding-bottom: 6px; border-bottom: 2px solid var(--p3-red); margin-bottom: 18px; }
.p3-copy h1, .p3-copy h2 { font-family: var(--p3-display); font-weight: 300; line-height: 1.05; margin: 0; text-wrap: balance; color: var(--p3-ink); letter-spacing: 0; }
.p3-copy h1 { font-size: clamp(44px, 5.4vw, 78px); }
.p3-copy h2 { font-size: clamp(34px, 3.6vw, 52px); }
.p3-copy p { margin: 14px 0 0; color: #3d3632; max-width: 36ch; }
.p3-actions { display: flex; gap: 16px 20px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.p3-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border-radius: 6px; background: var(--p3-red); color: #fff; font: 500 16px var(--p3-display); text-decoration: none; border: 1.5px solid var(--p3-red); white-space: nowrap; }
.p3-btn:hover { background: var(--p3-red-dark); border-color: var(--p3-red-dark); }
.p3-btn.p3-ghost { background: #fff; color: var(--p3-red); }
.p3-btn.p3-ghost:hover { background: var(--p3-red); color: #fff; }
.p3-link { color: var(--p3-ink); font: 500 16px var(--p3-display); text-underline-offset: 5px; }
.p3-tag { display: grid; gap: 4px; margin-top: 22px; padding: 14px 18px; background: #fff; border-radius: 6px; box-shadow: 0 1px 0 var(--p3-line); max-width: 100%; }
.p3-tag b { font: 500 15px/1.3 var(--p3-display); color: var(--p3-ink); }
.p3-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.p3-price strong { font: 600 24px var(--p3-display); color: var(--p3-red); }
.p3-price strong small { font-size: 15px; font-weight: 500; }
.p3-price s { color: var(--p3-muted); }
.p3-pill { background: var(--p3-red); color: #fff; border-radius: 999px; padding: 1px 8px; font: 600 12px var(--p3-display); }
.p3-facts { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.p3-facts li { padding-left: 18px; position: relative; }
.p3-facts li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--p3-red); }

/* the Shop section: an opaque panel, nothing hidden behind the scene */
.p3-shop { align-items: flex-end; }
.p3-panel { width: 100%; max-width: 1200px; margin: 0 auto; background: var(--p3-ivory); border-radius: 10px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 80px rgba(60, 30, 10, .12); }
.p3-panel h2 { font: 300 clamp(30px, 3.4vw, 48px)/1.05 var(--p3-display); margin: 0; color: var(--p3-ink); }
.p3-panel > p { color: var(--p3-muted); margin: 10px 0 0; }
.p3-grid { margin-top: 24px; }
.p3-grid .card { background: #fff; border-radius: 6px; padding: 12px 14px 16px; }
.p3-grid .card-img { background: #fff; }
.p3-markets { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.p3-markets .p3-link { margin-left: 8px; }

/* phone: its own composition, subject on top, copy below on a solid band */
@media (max-width: 760px) {
  .page-home .hdr { background: var(--red); backdrop-filter: none; }
  .page-home .hdr-shop { display: inline-flex; margin-left: auto; min-height: 36px; padding: 6px 14px; font-size: 14px; background: #fff; color: var(--red); border-color: #fff; }
  .page-home .menu { margin-left: 0; }
  .p3-dots { display: none; }
  .p3-section { align-items: flex-end; padding: 0; }
  .p3-copy { max-width: none; width: 100%; background: var(--p3-ivory); padding: 24px 20px 36px; margin-top: 52vh; min-height: 48vh; }
  .p3-copy::before { display: none; }
  .p3-copy h1 { font-size: 40px; }
  .p3-copy h2 { font-size: 32px; }
  .p3-shop { padding: 0; }
  .p3-panel { border-radius: 0; margin-top: 30vh; padding: 24px 16px 32px; }
  .p3-grid { gap: 16px 12px; }
  .p3-grid .card { padding: 8px 8px 12px; }
  .p3-markets .p3-btn { flex: 1 1 100%; }
  .p3-markets .p3-link { margin: 6px auto 0; }
}
