/* My Pet Maze section styles. Used only by /mypetmaze/* pages; the shared header and footer keep the studio styles from site.css.
   Palette is taken from the app: storybook garden with sunny yellow titles outlined in royal blue, warm brown ink on cream cards, hedge greens and sky blue. */
.mpm { --ink:#5A3719; --ink-soft:#6E4A2B; --cream:#FEF9EC; --cream-2:#F8EDCF; --line:#8A5A2B; --blue:#2D4696; --blue-deep:#1E3170; --yellow:#FFDE3C; --orange:#FF8C37; --orange-ink:#A04708; --green:#3E7A2E; --green-deep:#2C5A20; --green-lt:#6FA84B; --teal:#1F4E6B; --teal-deep:#163A52; --sky:#BFE6F6; --purple:#5B4690; --purple-deep:#443374;
  position:relative; z-index:1; background:linear-gradient(180deg,#C8E9F7 0,#E6F3DD 380px,var(--cream) 760px); color:var(--ink); font-family:"Baloo 2","Trebuchet MS",system-ui,sans-serif; font-size:18px; font-weight:500; line-height:1.55; padding-top:72px; min-height:70vh; overflow-x:hidden; }
.mpm *, .mpm *::before, .mpm *::after { box-sizing:border-box; }
.mpm a { color:var(--blue); text-underline-offset:3px; }
.mpm a:hover { color:var(--blue-deep); }
.mpm :focus-visible { outline:3px solid var(--blue); outline-offset:2px; border-radius:4px; }
.mpm-in { max-width:1100px; margin:0 auto; padding:0 24px; }

/* Sub-nav, like the app's purple caption bar */
.mpm-tabs { background:var(--purple); border-bottom:4px solid var(--purple-deep); }
.mpm-tabs ul { list-style:none; margin:0 auto; max-width:1100px; padding:10px 24px; display:flex; gap:8px; flex-wrap:wrap; }
.mpm-tabs a { display:flex; align-items:center; min-height:44px; padding:0 20px; border-radius:100px; background:rgba(255,255,255,.14); color:#fff; text-decoration:none; font-size:16px; font-weight:600; }
.mpm-tabs a:hover { background:rgba(255,255,255,.28); color:#fff; }
.mpm-tabs a[aria-current="page"] { background:var(--cream); color:var(--purple-deep); }
.mpm-tabs :focus-visible { outline-color:#fff; }

/* Headings: Bubblegum Sans, blue on light, yellow with a blue outline on titles */
.mpm h1, .mpm h2, .mpm h3 { font-family:"Bubblegum Sans","Baloo 2",system-ui,sans-serif; font-weight:400; letter-spacing:.2px; margin:0; }
.mpm h1 { color:var(--yellow); font-size:clamp(52px,9vw,92px); line-height:1; text-shadow:-4px -4px 0 var(--blue),4px -4px 0 var(--blue),-4px 4px 0 var(--blue),4px 4px 0 var(--blue),0 -4px 0 var(--blue),0 4px 0 var(--blue),-4px 0 0 var(--blue),4px 0 0 var(--blue),0 8px 0 var(--blue-deep),0 12px 18px rgba(30,49,112,.35); }
.mpm h2 { color:var(--blue); font-size:clamp(30px,4.4vw,44px); line-height:1.1; margin-bottom:14px; }
.mpm h3 { color:var(--blue); font-size:24px; line-height:1.15; margin-bottom:8px; }
.mpm p { margin:0 0 14px; }
.mpm .mpm-tagline { font-family:"Bubblegum Sans","Baloo 2",sans-serif; font-size:clamp(24px,3.2vw,32px); line-height:1.2; color:var(--orange-ink); margin:20px 0 0; }
.mpm-kicker { display:inline-block; background:var(--purple); color:#fff; font-size:14px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; padding:6px 16px; border-radius:100px; margin-bottom:18px; }
.mpm-eyebrow { color:var(--orange-ink); font-weight:800; font-size:14px; letter-spacing:.8px; text-transform:uppercase; margin:0 0 6px; }

/* Hero */
.mpm-hero { display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; padding:48px 0 64px; }
.mpm-hero-top { display:flex; align-items:center; gap:18px; margin-bottom:6px; }
.mpm-hero-top img { width:84px; height:84px; border-radius:20px; border:3px solid var(--ink); box-shadow:0 4px 0 var(--ink); flex:none; }
.mpm-lede { font-size:20px; max-width:560px; margin:16px 0 22px; }
.mpm-stores { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.mpm-store { display:inline-flex; flex-direction:column; justify-content:center; min-height:56px; padding:8px 24px; background:var(--cream); border:3px dashed var(--line); border-radius:16px; color:var(--ink); font-size:20px; font-weight:800; line-height:1.1; }
.mpm-store small { font-size:12px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--orange-ink); }
.mpm-btns { display:flex; gap:12px; flex-wrap:wrap; }
.mpm .mpm-btn { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:0 28px; border-radius:100px; background:var(--green); border:3px solid var(--green-deep); box-shadow:0 4px 0 var(--green-deep); color:#fff; font:700 18px "Baloo 2",system-ui,sans-serif; text-decoration:none; cursor:pointer; }
.mpm .mpm-btn:hover { background:#33691F; color:#fff; }
.mpm .mpm-btn.alt { background:var(--teal); border-color:var(--teal-deep); box-shadow:0 4px 0 var(--teal-deep); }
.mpm .mpm-btn.alt:hover { background:#27607F; }
.mpm .mpm-btn:focus-visible { outline-color:var(--ink); }

/* Phone screenshots */
.mpm-fig { margin:0; }
.mpm-fig img { display:block; width:100%; height:auto; border-radius:26px; border:4px solid var(--ink); background:var(--cream-2); box-shadow:0 8px 0 var(--ink),0 18px 36px rgba(90,55,25,.25); }
.mpm-fig figcaption { font-size:15px; color:var(--ink-soft); margin-top:16px; text-align:center; }
.mpm-hero .mpm-fig { max-width:340px; margin:0 auto; justify-self:center; }

/* Sections */
.mpm-sec { padding:56px 0; }
.mpm-band { background:var(--cream); border-top:4px solid var(--green-lt); border-bottom:4px solid var(--green-lt); }
.mpm-sec .lead { font-size:20px; max-width:720px; }
.mpm-split { display:grid; grid-template-columns:1fr 300px; gap:48px; align-items:center; }
.mpm-split.flip { grid-template-columns:300px 1fr; }
.mpm-split .mpm-fig { max-width:300px; width:100%; justify-self:center; }
.mpm-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:22px; }
.mpm-grid.two { grid-template-columns:repeat(2,1fr); }
.mpm-card { background:var(--cream); border:3px solid var(--line); border-radius:22px; padding:22px 24px; box-shadow:0 4px 0 rgba(90,55,25,.25); }
.mpm-band .mpm-card { background:#fff; }
.mpm-card p:last-child { margin-bottom:0; }
.mpm-card.best { border-color:var(--green); box-shadow:0 0 0 3px var(--green),0 6px 0 var(--green-deep); position:relative; }
.mpm-price { font-family:"Bubblegum Sans","Baloo 2",sans-serif; font-size:44px; line-height:1; color:var(--green-deep); margin:0 0 8px; }
.mpm-price small { font-family:"Baloo 2",sans-serif; font-size:14px; font-weight:700; color:var(--ink-soft); margin-left:6px; }
.mpm-note { background:var(--cream-2); border-left:8px solid var(--orange); border-radius:12px; padding:14px 20px; margin-top:22px; }
.mpm-note p { margin:0; }

.mpm-list { list-style:none; margin:0 0 14px; padding:0; }
.mpm-list li { position:relative; padding:5px 0 5px 34px; }
.mpm-list li::before { content:""; position:absolute; left:2px; box-sizing:border-box; width:20px; height:20px; top:calc(5px + (1.55em - 20px) / 2 + 1px); border-radius:50%; background:var(--green-lt); border:3px solid var(--green-deep); } /* centred on the FIRST line at any font size (was 12px + border = ~5px low) */

/* Steps */
.mpm-steps { list-style:none; counter-reset:s; margin:26px 0 0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.mpm-steps > li { counter-increment:s; display:grid; grid-template-columns:56px 1fr; gap:0 16px; background:#fff; border:3px solid var(--line); border-radius:22px; padding:20px 22px; }
.mpm-steps > li::before { content:counter(s); grid-row:1 / span 2; width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--yellow); color:var(--blue-deep); border:3px solid var(--blue); font:400 26px "Bubblegum Sans",sans-serif; }
.mpm-steps h3 { margin:2px 0 4px; }
.mpm-steps p { margin:0; grid-column:2; }

/* Screens strip */
.mpm-shots { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:26px; }
.mpm-shots .mpm-fig img { border-radius:20px; border-width:3px; box-shadow:0 6px 0 var(--ink),0 12px 24px rgba(90,55,25,.2); }

/* Animal chips */
.mpm-chips { list-style:none; margin:16px 0 16px; padding:0; display:flex; flex-wrap:wrap; gap:10px; }
.mpm-chips li { background:#fff; border:3px solid var(--line); border-radius:100px; padding:4px 18px; font-weight:700; font-size:18px; }
.mpm-chips li.free { background:var(--yellow); border-color:var(--blue); color:var(--blue-deep); }

/* FAQ */
.mpm-faq details { background:#fff; border:3px solid var(--line); border-radius:18px; margin-bottom:12px; }
.mpm-faq summary { cursor:pointer; padding:14px 20px; min-height:56px; font-size:19px; font-weight:700; color:var(--blue-deep); list-style:none; display:flex; justify-content:space-between; gap:14px; align-items:center; }
.mpm-faq summary::-webkit-details-marker { display:none; }
.mpm-faq summary::after { content:"+"; flex:none; width:32px; height:32px; border-radius:50%; background:var(--yellow); border:3px solid var(--blue); color:var(--blue-deep); font:700 22px/1 "Baloo 2",sans-serif; display:flex; align-items:center; justify-content:center; padding-bottom:3px; }
.mpm-faq details[open] summary::after { content:"\2212"; }
.mpm-faq details > div { padding:0 20px 16px; }
.mpm-faq details > div p:last-child { margin-bottom:0; }
.mpm-faq h2 { margin-top:36px; }
.mpm-faq h2:first-child { margin-top:0; }
.mpm-toc { display:flex; flex-wrap:wrap; gap:10px; list-style:none; margin:18px 0 0; padding:0; }
.mpm-toc a { display:inline-flex; align-items:center; min-height:44px; padding:0 18px; border-radius:100px; background:#fff; border:3px solid var(--line); color:var(--blue-deep); text-decoration:none; font-weight:700; font-size:16px; }
.mpm-toc a:hover { background:var(--yellow); }

/* Plain page heads (FAQ, support, privacy) */
.mpm-pagehead { padding:44px 0 6px; }
.mpm-pagehead h1 { font-size:clamp(40px,7vw,64px); }
.mpm-pagehead p { max-width:720px; font-size:20px; margin-top:22px; }

/* Contact card */
.mpm-contact { background:var(--yellow); border:4px solid var(--blue); border-radius:24px; padding:22px 26px; margin:26px 0 0; color:var(--blue-deep); box-shadow:0 6px 0 var(--blue); }
.mpm-contact h2 { color:var(--blue-deep); margin-bottom:6px; font-size:32px; }
.mpm-contact p { margin:0; font-weight:600; color:#3F2A12; }
.mpm-contact a { color:var(--blue-deep); font-weight:800; }

/* Legal text */
.mpm-legal h2 { margin-top:40px; font-size:32px; }
.mpm-legal h3 { margin-top:22px; }
.mpm-legal ul { padding-left:24px; margin:0 0 14px; }
.mpm-legal li { margin-bottom:6px; }
.mpm-legal table { width:100%; border-collapse:collapse; margin:0 0 14px; background:#fff; border-radius:12px; overflow:hidden; }
.mpm-legal th, .mpm-legal td { text-align:left; padding:10px 14px; border:2px solid var(--cream-2); vertical-align:top; font-size:17px; }
.mpm-legal th { background:var(--purple); color:#fff; }
.mpm-short { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin:20px 0 6px; }
.mpm-short .mpm-card h3 { font-size:22px; }
.mpm-meta { display:inline-block; background:#fff; border:3px solid var(--line); border-radius:100px; padding:2px 16px; font-weight:700; font-size:16px; margin-top:12px; }

/* Closing band */
.mpm-end { text-align:center; padding:56px 0 64px; background:var(--green); border-top:6px solid var(--green-deep); color:#fff; }
.mpm-end h2 { color:var(--yellow); text-shadow:-2px -2px 0 var(--blue),2px -2px 0 var(--blue),-2px 2px 0 var(--blue),2px 2px 0 var(--blue),0 4px 0 var(--blue-deep); }
.mpm-end p { max-width:560px; margin:0 auto 18px; color:#fff; font-weight:600; }
.mpm-end .mpm-btns { justify-content:center; }
.mpm .mpm-end .mpm-btn { background:var(--cream); color:var(--blue-deep); border-color:var(--blue-deep); box-shadow:0 4px 0 var(--blue-deep); }
.mpm .mpm-end .mpm-btn:hover { background:#fff; color:var(--blue-deep); }
.mpm .mpm-end a:not(.mpm-btn) { color:#fff; }
.mpm .mpm-end :focus-visible { outline-color:#fff; }

@media (max-width:900px) {
  .mpm-hero { grid-template-columns:1fr; gap:34px; padding:32px 0 44px; }
  .mpm-split, .mpm-split.flip { grid-template-columns:1fr; gap:28px; }
  .mpm-split.flip .mpm-fig { order:2; }
  .mpm-grid, .mpm-grid.two, .mpm-steps, .mpm-short { grid-template-columns:1fr; }
  .mpm-shots { grid-template-columns:repeat(2,1fr); gap:16px; }
  .mpm-sec { padding:40px 0; }
}
@media (max-width:600px) {
  .mpm { font-size:17px; }
  .mpm-in { padding:0 16px; }
  .mpm-tabs ul { padding:8px 16px; gap:6px; }
  .mpm-tabs a { padding:0 14px; font-size:15px; }
  .mpm-hero-top img { width:64px; height:64px; border-radius:16px; }
  .mpm-store { width:100%; }
  .mpm .mpm-btn { width:100%; }
  .mpm h1 { text-shadow:-3px -3px 0 var(--blue),3px -3px 0 var(--blue),-3px 3px 0 var(--blue),3px 3px 0 var(--blue),0 -3px 0 var(--blue),0 3px 0 var(--blue),-3px 0 0 var(--blue),3px 0 0 var(--blue),0 6px 0 var(--blue-deep); }
  .mpm-legal table { display:block; overflow-x:auto; }
}
@media (prefers-reduced-motion:reduce) { .mpm * { transition:none !important; animation:none !important; } }

.mpm-legal tbody th { background:var(--cream-2); color:var(--ink); font-weight:700; }

/* Promo video (9:16) in a storybook phone frame */
.mpm-video-fig { max-width:320px; }
.mpm-video { display:block; width:100%; height:auto; aspect-ratio:9/16; background:#FEF9EC; border:6px solid #6E4623; border-radius:28px; box-shadow:0 14px 30px rgba(40,25,10,.25); }
.mpm-hero .mpm-hero-video { max-width:340px; }
@media (max-width: 900px) { .mpm-hero .mpm-hero-video { max-width:300px; margin-top:8px; } }
/* Phones: video straight after the title + tagline, before the long intro */
@media (max-width: 900px) {
  .mpm-hero > div:first-child { display:contents; }
  .mpm-hero .mpm-hero-top { order:1; }
  .mpm-hero h1 { order:2; }
  .mpm-hero .mpm-tagline { order:3; }
  .mpm-hero .mpm-hero-video { order:4; margin:4px auto 0; }
  .mpm-hero .mpm-lede { order:5; }
  .mpm-hero .mpm-stores, .mpm-hero .store-badges { order:6; }
  .mpm-hero .mpm-btns { order:7; }
  .mpm-hero { gap:14px; }
}

/* Store buttons (App Store / Google Play), styled to sit with the storybook buttons:
   black store-badge fill, chunky ink border + drop like .mpm-btn, clear space above and below. */
.mpm .store-badges { gap:14px; margin:30px 0 0; }
.mpm .store-badges .dl-btn { width:auto; min-width:184px; height:60px; padding:0 22px 0 18px; gap:12px; background:#111; color:#fff; border:3px solid var(--ink); border-radius:16px; box-shadow:0 4px 0 var(--ink); font-family:"Baloo 2",system-ui,sans-serif; transition:transform .15s ease, box-shadow .15s ease; }
.mpm .store-badges .dl-btn:hover, .mpm .store-badges .dl-btn:focus-visible { background:#000; color:#fff; border-color:var(--ink); transform:translateY(-2px); box-shadow:0 6px 0 var(--ink); }
.mpm .store-badges .dl-btn:active { transform:translateY(2px); box-shadow:0 2px 0 var(--ink); }
.mpm .store-badges .dl-btn-icon { width:26px; height:26px; }
.mpm .store-badges .dl-btn-prefix { font-size:11px; font-weight:600; letter-spacing:.5px; opacity:.85; }
.mpm .store-badges .dl-btn-store { font-size:19px; font-weight:700; letter-spacing:0; line-height:1.05; }
.mpm .store-badges + .mpm-btns { margin-top:22px; }
.mpm .mpm-hero .mpm-lede { margin:14px 0 0; }

/* "Out now" band: centred, white-edged buttons on the green, clear of the pills below */
.mpm-end .store-badges { justify-content:center; margin:28px 0 0; }
.mpm-end .store-badges .dl-btn { border-color:var(--green-deep); box-shadow:0 4px 0 var(--green-deep), 0 0 0 2px rgba(255,255,255,.55); }
.mpm-end .store-badges .dl-btn:hover, .mpm-end .store-badges .dl-btn:focus-visible { border-color:var(--green-deep); box-shadow:0 6px 0 var(--green-deep), 0 0 0 2px rgba(255,255,255,.75); }
.mpm-end .store-badges + .mpm-btns { margin-top:30px; padding-top:28px; border-top:2px dashed rgba(255,255,255,.35); max-width:620px; margin-left:auto; margin-right:auto; }

@media (max-width:900px) {
  .mpm-hero .store-badges { margin-top:18px; justify-content:center; }
  .mpm-hero .mpm-btns { justify-content:center; margin-top:8px; }
}
@media (max-width:480px) {
  .mpm .store-badges { gap:12px; }
  .mpm .store-badges .dl-btn { min-width:0; flex:1 1 150px; max-width:220px; padding:0 10px 0 12px; gap:9px; height:56px; justify-content:center; }
  .mpm .store-badges .dl-btn-icon { width:22px; height:22px; }
  .mpm .store-badges .dl-btn-prefix { font-size:10px; letter-spacing:.2px; }
  .mpm .store-badges .dl-btn-store { font-size:17px; }
}
