/* Mishmish website (27 Oct 2026). The page is the pet's paper vaccine booklet: white paper,
   navy ink, on the mango ground of the brand. Two inks, one radius, pill buttons, no rules,
   no gradients, no shadows at rest. Built by website/build.mjs. */
:root {
  --ground: #E8692A;
  --paper: #FFFFFF;
  --tone: #F3F4F7;
  --ink: #1F2A44;
  --muted: #4A5468;
  --accent: #E8692A;
  --accent-ink: #FFFFFF;
  --navy-deep: #151D31;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-text: 'Nunito', system-ui, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --step-display: clamp(2.5rem, 1.6rem + 3vw, 3.5rem);
  --step-sub: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);

  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
body.ar { --font-display: 'Baloo Bhaijaan 2', system-ui, sans-serif; --font-text: 'Baloo Bhaijaan 2', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
body.ar h1, body.ar h2, body.ar h3 { letter-spacing: 0; line-height: 1.25; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
.wrap { padding-inline: var(--margin); }
.nums { font-variant-numeric: tabular-nums; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* Buttons: one shape, fully round. */
.btn, .bar-btn, .dlg-go, .cell { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; transition: transform 140ms var(--ease-out), background-color 180ms var(--ease-out); }
.btn { background: var(--ink); color: var(--paper); padding: 16px 30px; border-radius: 999px; font-size: var(--step-body); }
.btn:hover { background: var(--accent); }
.btn:active, .bar-btn:active, .dlg-go:active, .cell:active { transform: scale(0.97); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: var(--accent); color: var(--paper); }

/* The ink-and-paper stripe of the booklet's spine, on the cover and above the footer. */
.stripe { display: flex; height: 56px; overflow: hidden; }
.stripe i { flex: 0 0 28px; height: 100%; background: var(--ink); }
.stripe i:nth-child(2n) { background: var(--paper); }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; background: var(--ground); color: var(--navy-deep); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); }
.mark img { border-radius: 10px; }
.bar nav { display: flex; gap: clamp(12px, 2vw, 28px); flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { text-decoration: none; font-weight: 700; font-size: var(--step-body); padding: 6px 2px; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- hero (29 Oct 2026): Apple-style. One line says what it is; behind the phone, the
   pet's name, as large as the screen allows. Typing your pet's name writes it there and on the
   phone; cat or dog swaps the pet. ---------- */
.hero { background: var(--ground); color: var(--navy-deep); overflow: hidden; padding-top: clamp(40px, 6vw, 72px); --hp: 0; }
.hero-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; translate: 0 calc(var(--hp) * -40px); opacity: calc(1 - var(--hp) * 0.6); }
.hero-head h1 { font-size: clamp(2rem, 1.1rem + 2.6vw, 3.5rem); max-width: 20ch; }
.hero-head .sub { max-width: 46ch; font-size: var(--step-body); font-weight: 700; }
.hero-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; column-gap: clamp(24px, 4vw, 72px); padding: 0 var(--margin) clamp(48px, 6vw, 88px); margin-top: clamp(20px, 3vw, 40px); }
.giant-name { grid-column: 1 / -1; grid-row: 1; justify-self: center; align-self: start; font-family: var(--font-display); font-weight: 800; font-size: var(--gfs, clamp(5rem, 22vw, 22rem)); line-height: 0.86; letter-spacing: -0.045em; white-space: nowrap; color: var(--paper); translate: 0 calc(var(--hp) * -16%); scale: calc(1 + var(--hp) * 0.06); transform-origin: 50% 0; pointer-events: none; user-select: none; }
body.ar .giant-name { letter-spacing: 0; line-height: 1.1; }
body.ar .hero-phone { margin-top: calc(var(--gfs-px, 260px) * 0.74); }
.gn { display: inline-block; }
.gn i { display: inline-block; font-style: normal; }
.hero-phone { grid-column: 2; grid-row: 1; position: relative; z-index: 1; width: clamp(236px, 21vw, 320px); margin-top: calc(var(--gfs-px, 260px) * 0.52); translate: 0 calc(var(--hp) * -70px); }
/* ---------- the phone: an iPhone in titanium (data-ui, the product itself) ---------- */
.ip { --w: 320px; --rim: #3D3C3A; --rim-hi: #8C8A85; --rim-lo: #1D1C1B; position: relative; width: 100%; aspect-ratio: 433 / 893; border-radius: 16.5% / 8%; padding: 1.2%; background: var(--rim); box-shadow: 0 46px 70px -30px rgba(10, 12, 20, 0.55), 0 10px 18px rgba(10, 12, 20, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 3px 3px 4px rgba(255, 255, 255, 0.28), inset -3px -3px 5px rgba(0, 0, 0, 0.45); }
.ip.natural { --rim: #B9B2A6; --rim-hi: #EFE9DF; --rim-lo: #8A8377; }
.ip::before, .ip::after, .ip-btn { content: ''; position: absolute; width: 1.1%; border-radius: 2px; background: var(--rim-lo); box-shadow: inset 1px 0 0 var(--rim-hi); }
.ip::before { inset-inline-start: -0.9%; top: 19%; height: 5.6%; }
.ip::after { inset-inline-start: -0.9%; top: 27.5%; height: 8.6%; }
.ip-btn { inset-inline-end: -0.9%; top: 30%; height: 12%; }
.ip-bezel { position: relative; height: 100%; border-radius: 15.6% / 7.6%; background: #060606; padding: 3.5%; }
.ip-screen { position: relative; height: 100%; border-radius: 13.6% / 6.3%; overflow: hidden; background: var(--paper); container-type: inline-size; }
.ip-sb { position: absolute; inset: 0 0 auto 0; height: 13.85cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 7.5cqw 0 11cqw; font: 600 4.3cqw/1 -apple-system, 'SF Pro Text', system-ui, sans-serif; color: #000; z-index: 2; direction: ltr; }
body.ar .ip-sb { flex-direction: row-reverse; padding: 0 11cqw 0 7.5cqw; }
.ip-sb svg { height: 3.1cqw; width: auto; display: block; fill: currentColor; }
.ip-ic { display: flex; gap: 1.6cqw; align-items: center; }
.ip-island { position: absolute; top: 2.8cqw; left: 50%; width: 31cqw; height: 9.3cqw; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 3; }
.ip-home { position: absolute; bottom: 2cqw; left: 50%; width: 35cqw; height: 1.3cqw; margin-left: -17.5cqw; border-radius: 9px; background: #111; z-index: 2; }
.ip-screen img, .ip-screen video { position: absolute; top: 13.85cqw; left: 0; width: 100%; height: auto; display: block; opacity: 0; transition: opacity 420ms var(--ease-out); }
.ip-screen img.on, .ip-screen video.on { opacity: 1; }
/* The app's big name, written live over the screenshot (same place, size and weight as the app). */
.hp-name { position: absolute; left: 4%; right: 4%; top: 129.75cqw; z-index: 1; text-align: center; font: 800 9.74cqw/1.21 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; letter-spacing: -0.01em; color: #1F2A44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ar .hp-name { top: 121.28cqw; line-height: 1.37; letter-spacing: 0; }
.side { grid-row: 1; align-self: end; margin-bottom: clamp(40px, 9vw, 160px); }
.side.start { grid-column: 1; justify-self: end; }
.side.end { grid-column: 3; justify-self: start; display: grid; gap: 10px; width: min(100%, 260px); }
.side.end .links { text-align: center; }
.belongs { width: min(100%, 340px); display: grid; gap: 12px; text-align: start; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 20px; position: relative; z-index: 1; }
.belongs label { font-weight: 800; font-size: var(--step-body); }
.belongs input { border: 0; border-bottom: 4px dotted var(--ink); background: transparent; padding: 6px 2px; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; color: var(--ink); outline: none; width: 100%; }
.belongs input:focus-visible { border-bottom-style: solid; border-bottom-color: var(--accent); }
.belongs input::placeholder { color: var(--muted); font-weight: 700; }
/* Cat or dog: one thumb that slides between the two. */
.kind { position: relative; display: flex; background: var(--tone); border-radius: 999px; padding: 4px; --ki: 0; --dir: 1; }
body.ar .kind { --dir: -1; }
.kind::before { content: ''; position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transform: translateX(calc(var(--ki) * 100% * var(--dir))); transition: transform 420ms cubic-bezier(0.34, 1.5, 0.64, 1); }
.kind button { position: relative; flex: 1; border: 0; border-radius: 999px; padding: 10px 14px; background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; transition: color 220ms var(--ease-out); }
.kind button[aria-checked="true"] { color: var(--paper); }
.links { font-size: var(--step-small); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cell { min-height: 72px; border-radius: 999px; font-size: var(--step-body); padding: 0 18px; text-align: center; }
.cell.ink { background: var(--ink); color: var(--paper); }
.cell.tone { background: var(--paper); color: var(--ink); }
.cell:hover { background: var(--accent); color: var(--paper); }


/* ---------- the scroll story (29 Oct 2026): one big phone, tilted and cut by the bottom of the
   screen. Each step turns it around once and it comes back showing the next part of the app, moving. */
html { scroll-padding-top: 76px; }
.story { background: var(--navy-deep); color: #fff; padding-top: clamp(96px, 12vw, 180px); }
.story-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 80px); padding-inline: var(--margin); }
.story-head h2 { font-size: var(--step-head); color: #fff; }
.story-head p { margin-top: 18px; font-size: var(--step-lead); color: #D6DBE6; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: clamp(32px, 5vw, 80px); max-width: 1320px; margin: 0 auto; padding-inline: var(--margin); }
.story-stage { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 0; height: 100svh; align-self: start; overflow: hidden; z-index: 1; }
.halo { position: absolute; left: 50%; top: 5svh; width: min(92%, 640px); aspect-ratio: 1.45; translate: -50% 0; border-radius: 50%; background: #1E2A4A; }
.ip-tilt { --p: 1; position: absolute; left: 50%; top: 13svh; width: min(440px, 33vw); translate: -50% calc((1 - var(--p)) * 30svh); rotate: -9deg; perspective: 1600px; }
body.ar .ip-tilt { rotate: 9deg; }
.ip-turn { transform-style: preserve-3d; will-change: transform; }
.ip-turn .ip { backface-visibility: hidden; }
.ip.big .ip-screen video { transition: none; }
.steps { display: contents; }
.step { grid-column: 1; grid-row: var(--row); min-height: 100svh; display: flex; align-items: center; }
.step-card { max-width: 560px; }
.step h3 { font-size: clamp(2rem, 1.3rem + 1.8vw, 3rem); line-height: 1.06; color: #fff; }
.step p { margin-top: 20px; font-size: var(--step-lead); line-height: 1.45; color: #E6E9F0; }
.step-shot { display: none; }
.js .step { opacity: 0.22; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); }
.js .step.on { opacity: 1; transform: none; }
.story-end { max-width: 640px; margin: clamp(48px, 6vw, 80px) auto 0; }
.story .cell.tone { background: #2B3552; color: #fff; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { grid-column: 1; grid-row: 1; top: 62px; height: 62svh; }
  .halo { top: 2svh; width: 112%; }
  .ip-tilt { top: 5svh; width: min(300px, 64vw); }
  .step { grid-column: 1; grid-row: auto; justify-content: center; text-align: center; min-height: 80svh; align-items: flex-end; position: relative; z-index: 2; }
  .step:first-of-type { margin-top: -18svh; }
  .step-card { background: var(--ink); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 6svh; max-width: 36ch; }
  .step h3 { font-size: var(--step-sub); }
  .step p { font-size: var(--step-body); margin-top: 12px; }
  .js .step { opacity: 0; }
}

/* ---------- features: the price list ---------- */
.menu-ground { background: var(--ground); padding: clamp(80px, 12vw, 180px) var(--margin); display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); justify-content: center; align-items: center; }
.menu { background: var(--paper); padding: 64px clamp(20px, 4vw, 48px) 72px; clip-path: polygon(0 12px, 4% 0, 8% 12px, 12% 0, 16% 12px, 20% 0, 24% 12px, 28% 0, 32% 12px, 36% 0, 40% 12px, 44% 0, 48% 12px, 52% 0, 56% 12px, 60% 0, 64% 12px, 68% 0, 72% 12px, 76% 0, 80% 12px, 84% 0, 88% 12px, 92% 0, 96% 12px, 100% 0, 100% calc(100% - 12px), 96% 100%, 92% calc(100% - 12px), 88% 100%, 84% calc(100% - 12px), 80% 100%, 76% calc(100% - 12px), 72% 100%, 68% calc(100% - 12px), 64% 100%, 60% calc(100% - 12px), 56% 100%, 52% calc(100% - 12px), 48% 100%, 44% calc(100% - 12px), 40% 100%, 36% calc(100% - 12px), 32% 100%, 28% calc(100% - 12px), 24% 100%, 20% calc(100% - 12px), 16% 100%, 12% calc(100% - 12px), 8% 100%, 4% calc(100% - 12px), 0 100%); }
.menu h2 { text-align: center; font-size: var(--step-head); margin-bottom: 40px; }
.menu h3 { font-size: var(--step-lead); margin: 44px 0 14px; }
.menu .perched + h3 { margin-top: 0; }
.item { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 10px; margin-bottom: 18px; }
.iname { font-weight: 800; font-size: var(--step-body); }
.leader { border-bottom: 4px dotted var(--ink); opacity: 0.35; transform: translateY(-5px); }
.ival { font-weight: 800; }
.ival.plus { color: var(--accent); }
.idesc { grid-column: 1 / -1; font-size: var(--step-body); color: var(--muted); max-width: 40ch; margin-top: 2px; }
.menu-side { display: grid; max-width: 560px; }
.menu-side img { border-radius: var(--radius); background: var(--paper); }

/* ---------- at the vet: the clinic slip ---------- */
.how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-block: clamp(80px, 12vw, 180px); background: var(--ink); color: var(--paper); align-items: start; }
.how-text { grid-column: 1 / 6; display: grid; gap: 24px; }
.how-text h2 { font-size: var(--step-head); }
.how-text p { max-width: 30ch; font-size: var(--step-lead); line-height: 1.4; }
.how-shot { width: min(260px, 70%); border-radius: 26px; }
.slip { grid-column: 7 / 12; background: var(--paper); color: var(--ink); padding: 36px clamp(20px, 3vw, 36px) 56px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px), 75% 100%, 70% calc(100% - 14px), 65% 100%, 60% calc(100% - 14px), 55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px), 35% 100%, 30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px), 15% 100%, 10% calc(100% - 14px), 5% 100%, 0 calc(100% - 14px)); }
.slip h3 { font-size: var(--step-body); margin: 28px 0 10px; }
.slip h3:first-child { margin-top: 0; }
.rows li { display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; align-items: baseline; padding-block: 6px; font-size: var(--step-body); }
.result { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--ink); color: var(--paper); min-height: 44px; padding: 10px 14px; margin-top: 24px; font-weight: 800; border-radius: 10px; }

/* ---------- Plus: the ticket ---------- */
.ticket-ground { background: var(--tone); padding: clamp(80px, 12vw, 180px) var(--margin); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center; justify-items: center; }
.ticket { position: relative; width: min(64vw, 900px); display: grid; grid-template-columns: 7fr 3fr; background: var(--paper); border-radius: var(--radius); }
.ticket .main { padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.ticket h2 { font-size: var(--step-head); }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: var(--step-body); }
.terms li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-inline-end: 10px; transform: translateY(-2px); }
.stub { background: var(--ink); color: var(--paper); border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); padding: 32px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; border-inline-start: 6px dotted var(--tone); }
.price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 1rem + 3.4vw, 4.5rem); line-height: 1; }
.per { font-size: var(--step-body); }
.bar-btn { margin-top: 18px; width: 100%; min-height: 56px; border-radius: 999px; background: var(--accent); color: var(--paper); }
.bar-btn:hover { background: var(--paper); color: var(--ink); }
.notch { position: absolute; inset-inline-start: 70%; width: 28px; height: 28px; border-radius: 50%; background: var(--tone); transform: translateX(-50%); }
body.ar .notch { transform: translateX(50%); }
.notch.top { top: -14px; }
.notch.bottom { bottom: -14px; }
.plus-shot { width: min(240px, 26vw); border-radius: 26px; }

/* ---------- questions: the index-card drawer ---------- */
.faq { padding-block: clamp(80px, 12vw, 180px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.faq .perched { grid-column: 3 / 11; }
.faq h2 { font-size: var(--step-head); }
.drawer { grid-column: 3 / 11; display: grid; }
.card { --tabx: calc(var(--i) * 150px); position: relative; margin-top: 8px; padding: 52px 28px 26px; color: var(--ink); clip-path: polygon(0 40px, var(--tabx) 40px, calc(var(--tabx) + 14px) 0, calc(var(--tabx) + 186px) 0, calc(var(--tabx) + 200px) 40px, 100% 40px, 100% 100%, 0 100%); border-radius: 0 0 var(--radius) var(--radius); }
body.ar .card { clip-path: polygon(100% 40px, calc(100% - var(--tabx)) 40px, calc(100% - var(--tabx) - 14px) 0, calc(100% - var(--tabx) - 186px) 0, calc(100% - var(--tabx) - 200px) 40px, 0 40px, 0 100%, 100% 100%); }
.card.c0 { background: #FCE3D4; }
.card.c1 { background: var(--tone); }
.card.c2 { background: #DDE3EE; }
.card summary { list-style: none; cursor: pointer; display: grid; gap: 14px; }
.card summary::-webkit-details-marker { display: none; }
.tab { position: absolute; top: 9px; inset-inline-start: calc(var(--tabx) + 26px); font-size: var(--step-body); font-weight: 800; }
.q { font-size: var(--step-lead); font-weight: 700; }
.card p { margin-top: 14px; max-width: 50ch; font-size: var(--step-body); }
.card[open] .q { font-weight: 800; }

/* ---------- start their book: the app's own "New pet" sheet ---------- */
.cta { min-height: 90svh; background: var(--ground); color: var(--navy-deep); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 40px var(--margin); align-items: center; }
.cta-text { grid-column: 1 / 6; align-self: end; display: grid; gap: 20px; padding-bottom: 40px; }
.cta-text h2 { font-size: clamp(3.5rem, 1rem + 6vw, 7rem); line-height: 0.92; }
body.ar .cta-text h2 { line-height: 1.15; }
.cta-text p { max-width: 34ch; font-size: var(--step-body); }
.dialog { grid-column: 7 / 12; width: min(100%, 440px); justify-self: center; background: var(--paper); color: var(--ink); border-radius: 28px; padding: 24px; display: grid; gap: 10px; box-shadow: 0 24px 60px rgba(21, 29, 49, 0.28); } /* taste-skill-ignore: the app sheet is a real dialog (data-ui) */
.dlg-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); text-align: center; margin-bottom: 6px; }
.dialog label, .dlg-label { font-size: var(--step-small); color: var(--muted); font-weight: 700; }
.dialog input { border: 1px solid rgba(31, 42, 68, 0.14); border-radius: 12px; padding: 13px 14px; font-size: var(--step-body); background: #fff; }
.dialog input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.seg { display: flex; gap: 8px; background: var(--tone); border-radius: 999px; padding: 4px; }
.seg button { flex: 1; border: 0; border-radius: 999px; background: transparent; padding: 9px; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); }
.dlg-go { margin-top: 10px; min-height: 52px; border-radius: 999px; background: var(--accent); color: var(--paper); }
.dlg-go:hover { background: var(--ink); }

/* ---------- footer: the back cover ---------- */
.foot { background: var(--ink); color: var(--paper); overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; }
.foot .stripe { height: 8px; }
.foot .stripe i { flex-basis: 28px; background: var(--accent); }
.foot .stripe i:nth-child(2n) { background: var(--ink); }
.foot-top { display: flex; justify-content: space-between; gap: 32px; padding-block: 80px 40px; flex-wrap: wrap; }
.invite { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 1rem + 5vw, 5.5rem); line-height: 1; margin-bottom: 28px; max-width: 9ch; }
.foot-links { display: grid; gap: 10px; align-content: start; font-size: var(--step-body); }
.foot-links a { text-decoration: none; font-weight: 700; }
.foot-links a:hover { text-decoration: underline; }
.legal { margin-top: auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step-small); color: rgba(255, 255, 255, 0.82); padding-bottom: 8px; }
.giant { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 18vw, 22rem); line-height: 0.8; white-space: nowrap; transform: translateY(26%); margin: 0 calc(var(--margin) * -0.2); color: var(--accent); }

/* ---------- the pixel pets: perched on the headings, on the phone and on the back cover ---------- */
.sprite { --s: clamp(60px, 5.6vw, 84px); width: var(--s); height: var(--s); padding: 0; border: 0; background: none; cursor: pointer; display: block; -webkit-tap-highlight-color: transparent; }
.sprite svg { width: 100%; height: 100%; display: block; overflow: visible; animation: pb-bob 2.2s steps(1) infinite; }
.sprite .tail { animation: pb-wag 0.9s steps(1) infinite; }
.sprite:hover .tail { animation-duration: 0.36s; }
.sprite:focus-visible { outline-offset: 0; border-radius: 12px; }
.sprite.hop svg { animation: pb-hop 560ms cubic-bezier(0.3, 1.55, 0.5, 1) both; }
@keyframes pb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes pb-wag { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(1px); } }
@keyframes pb-hop { 0% { transform: translateY(0) scale(1, 1); } 18% { transform: translateY(1px) scale(1.08, 0.9); } 55% { transform: translateY(-22%) scale(0.96, 1.06); } 85% { transform: translateY(1px) scale(1.06, 0.94); } 100% { transform: none; } }
.perched { position: relative; padding-top: calc(var(--ps, 72px) * 0.9); }
.perched > .sprite { --s: var(--ps, 72px); position: absolute; top: 0; inset-inline-start: 0; }
.story-head .perched > .sprite, .menu .perched > .sprite, .cta-text .perched > .sprite { inset-inline-start: calc(50% - var(--s) / 2); }
.cta-text .perched > .sprite { inset-inline-start: 0; }
.hero-phone .sprite.on-phone { --s: clamp(70px, 6.4vw, 104px); position: absolute; bottom: calc(100% - 8px); inset-inline-end: 12%; z-index: 2; }
.on-phone .is-dog { display: none; }
.hero[data-pet="dog"] .on-phone .is-cat { display: none; }
.hero[data-pet="dog"] .on-phone .is-dog { display: block; }
/* A little pixel heart that floats up from a patted pet. */
.heart { position: absolute; width: 18px; height: 16px; pointer-events: none; z-index: 3; animation: pb-heart 900ms var(--ease-out) forwards; }
@keyframes pb-heart { from { opacity: 1; transform: translate(-50%, 0) scale(0.6); } to { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -70px) scale(1.2); } }
/* The back cover: Mishmish and Milo stroll across the top of the name. */
.giant-wrap { position: relative; margin-top: auto; }
.walkers { position: absolute; inset: 0 0 auto 0; height: 0; }
.walker { --s: clamp(54px, 5vw, 76px); position: absolute; bottom: 0; left: 0; animation: pb-walk 26s linear infinite; }
.walker.dog { animation-delay: -2.4s; }
.walker svg { animation: pb-step 0.5s steps(1) infinite; }
@keyframes pb-walk { from { transform: translateX(-120px); } to { transform: translateX(100vw); } }
@keyframes pb-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
body.ar .walker { left: auto; right: 0; animation-name: pb-walk-ar; }
body.ar .walker svg { scale: -1 1; }
@keyframes pb-walk-ar { from { transform: translateX(120px); } to { transform: translateX(-100vw); } }
.giant { margin-top: 0; }

/* ---------- buttons you can feel: a press, a ripple from the finger, a paw that pops out ---------- */
.btn, .bar-btn, .dlg-go, .cell { position: relative; isolation: isolate; }
.btn.big { gap: 10px; padding: 18px 32px; font-size: var(--step-lead); }
.btn .paw { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn:hover, .bar-btn:hover, .dlg-go:hover, .cell:hover { transform: translateY(-2px); }
.btn.pressed, .bar-btn.pressed, .dlg-go.pressed, .cell.pressed, .btn:active, .bar-btn:active, .dlg-go:active, .cell:active { transform: scale(0.95); transition-duration: 90ms; }
.rip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; pointer-events: none; }
.rip i { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: currentColor; opacity: 0.22; transform: scale(0); /* taste-skill-ignore: a ripple grows from the finger's point */ animation: pb-rip 560ms var(--ease-out) forwards; }
@keyframes pb-rip { to { transform: scale(var(--rs, 24)); opacity: 0; } }
.pop { position: absolute; top: -6px; left: 50%; width: 22px; height: 22px; fill: var(--accent); pointer-events: none; animation: pb-pop 620ms var(--ease-out) forwards; }
@keyframes pb-pop { 0% { opacity: 0; transform: translate(-50%, 0) scale(0.5) rotate(-12deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -34px) scale(1.05) rotate(14deg); } }

/* ---------- motion ---------- */
/* Load out and load in between pages (EN, AR, support, the legal pages): the old page lifts
   away, the new one rises in, the bar stays put. Browsers without cross-page view transitions
   get the same leave from site.js and a plain load. */
@view-transition { navigation: auto; }
.bar { view-transition-name: pb-bar; }
::view-transition-old(root) { animation: pb-out 200ms var(--ease-out) both; }
::view-transition-new(root) { animation: pb-in 460ms var(--ease-expo) both; }
@keyframes pb-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes pb-in { from { opacity: 0; transform: translateY(16px); } }
html.leaving main, html.leaving footer { opacity: 0; transform: translateY(-12px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
/* First paint, in order: the line, the giant name letter by letter, the phone rising, then
   Mishmish dropping onto the phone. Without script everything simply shows. */
.js .hero-head > * { animation: pb-rise 800ms var(--ease-expo) both; }
.js .hero-head > :nth-child(2) { animation-delay: 80ms; }
.js .hero-head > :nth-child(3) { animation-delay: 160ms; }
.js .gn i { animation: pb-letter 900ms var(--ease-expo) both; animation-delay: calc(220ms + var(--li, 0) * 45ms); }
.js body.ar .gn { animation: pb-letter 1000ms var(--ease-expo) 220ms both; }
.js .hero-phone { animation: pb-phone 1200ms cubic-bezier(0.22, 1.2, 0.36, 1) 380ms both; }
.js .hero-phone .on-phone { animation: pb-drop 700ms cubic-bezier(0.3, 1.5, 0.55, 1) 1350ms both; }
.js .side { animation: pb-rise 900ms var(--ease-expo) 700ms both; }
@keyframes pb-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pb-letter { from { opacity: 0; transform: translateY(42%) rotate(4deg); } }
@keyframes pb-phone { from { opacity: 0; transform: translateY(180px) scale(0.94); } }
@keyframes pb-drop { from { opacity: 0; transform: translateY(-140%); } 60% { opacity: 1; } }
.gn i.new { animation: pb-type 360ms cubic-bezier(0.3, 1.6, 0.5, 1) both !important; }
@keyframes pb-type { from { transform: translateY(18%) scale(0.7); opacity: 0.2; } }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-expo), transform 800ms var(--ease-expo); }
.js .reveal.in { opacity: 1; transform: none; }
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-expo), transform 700ms var(--ease-expo); transition-delay: calc(var(--d, 0) * 75ms); }
.js [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  .story-stage { display: none; }
  .story-grid { grid-template-columns: 1fr; max-width: 560px; }
  .step { grid-column: 1; grid-row: auto; min-height: 0; padding-block: 32px; justify-content: center; text-align: center; }
  .js .step { opacity: 1; transform: none; transition: none; }
  .step-shot { display: block; width: min(70%, 300px); margin: 24px auto 0; border-radius: 28px; }
  html.leaving main, html.leaving footer { transform: none; }
  .js .reveal, .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .js .hero-head > *, .js .gn i, .js body.ar .gn, .js .hero-phone, .js .hero-phone .on-phone, .js .side { animation: none; }
  .hero-head, .giant-name, .hero-phone { translate: none; scale: none; opacity: 1; }
  .sprite svg, .sprite .tail, .walker, .walker svg, .sprite.hop svg { animation: none; }
  .walker.dog { left: 90px; }
  body.ar .walker.dog { right: 90px; left: auto; }
}

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .hero-stage { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .hero-phone { grid-column: 1 / -1; justify-self: center; }
  body.ar .hero-phone { margin-top: calc(var(--gfs-px, 200px) * 0.88); }
  .side { grid-row: 2; margin-bottom: 0; align-self: start; }
  .side.start { grid-column: 1; justify-self: stretch; }
  .belongs { width: 100%; }
  .side.end { grid-column: 2; width: 100%; }
  .card { --tabx: calc(var(--i) * 72px); }
  .menu-ground { grid-template-columns: 1fr; }
  .menu-side { max-width: 640px; }
  .how-text { grid-column: 1 / -1; }
  .slip { grid-column: 1 / -1; max-width: 520px; }
  .ticket-ground { grid-template-columns: 1fr; }
  .ticket { width: 100%; }
  .faq .perched, .drawer { grid-column: 1 / -1; }
  .cta-text, .dialog { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .bar nav a:not([hreflang]) { display: none; }
  .bar nav { align-items: center; }
  .stripe { height: 40px; }
  .hero-head h1 { font-size: 8.6vw; }
  body.ar .hero-head h1 { font-size: 8.2vw; }
  .hero-phone { width: 64vw; margin-top: calc(var(--gfs-px, 90px) * 0.74); }
  body.ar .hero-phone { margin-top: calc(var(--gfs-px, 90px) * 0.96); }
  .hero-phone .sprite.on-phone { inset-inline-end: 4%; --s: 58px; }
  .hero-stage { grid-template-columns: 1fr; }
  .side.start, .side.end { grid-column: 1; }
  .side.end { grid-row: 3; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .menu { padding: 48px 20px 56px; }
  .how { grid-template-columns: 1fr; }
  .how-text, .slip { grid-column: 1; }
  .ticket { grid-template-columns: 1fr; }
  .ticket .main { padding: 28px 20px; }
  .terms { grid-template-columns: 1fr; }
  .stub { border-radius: 0 0 var(--radius) var(--radius); border-inline-start: 0; border-top: 6px dotted var(--tone); }
  .price { font-size: 16vw; }
  .notch { inset-inline-start: auto; top: auto; bottom: auto; }
  .notch.top { left: -14px; transform: none; top: calc(100% - var(--stubh, 240px) - 14px); }
  .notch.bottom { right: -14px; left: auto; transform: none; top: calc(100% - var(--stubh, 240px) - 14px); }
  .plus-shot { width: 60vw; }
  .faq { grid-template-columns: 1fr; }
  .faq .perched, .drawer { grid-column: 1; }
  .card { --tabx: calc(var(--i) * 48px); clip-path: polygon(0 40px, var(--tabx) 40px, calc(var(--tabx) + 10px) 0, calc(var(--tabx) + 110px) 0, calc(var(--tabx) + 120px) 40px, 100% 40px, 100% 100%, 0 100%); padding: 50px 20px 20px; }
  body.ar .card { clip-path: polygon(100% 40px, calc(100% - var(--tabx)) 40px, calc(100% - var(--tabx) - 10px) 0, calc(100% - var(--tabx) - 110px) 0, calc(100% - var(--tabx) - 120px) 40px, 0 40px, 0 100%, 100% 100%); }
  .tab { inset-inline-start: calc(var(--tabx) + 18px); font-size: var(--step-small); }
  .cta { grid-template-columns: 1fr; align-content: space-between; min-height: 84svh; }
  .cta-text { grid-column: 1; align-self: start; padding-bottom: 0; }
  .cta-text h2 { font-size: 13vw; }
  .dialog { grid-column: 1; width: 100%; }
  .foot-top { padding-block: 56px 32px; }
  .invite { font-size: 11vw; }
  .btn.light { width: 100%; }
  .foot-links { grid-auto-flow: column; grid-auto-columns: max-content; gap: 16px; font-size: var(--step-small); overflow-x: auto; }
  .giant { font-size: 34vw; }
}
[tabindex="-1"]:focus { outline: none; }

/* ---------- phones, tablets, foldables (31 Oct 2026, Mohamed: "the phone scroller is super broken").
   Below 900px the scroll story is a plain list: each step with its own picture, nothing sticky,
   nothing hidden behind another layer. Links and buttons get a full finger-size target. ---------- */
@media (max-width: 900px) {
  .story-stage { display: none; }
  .story-grid { display: block; }
  .steps { display: grid; gap: clamp(36px, 8vw, 56px); padding-bottom: clamp(48px, 10vw, 80px); }
  .step, .js .step { min-height: 0; display: block; margin: 0; opacity: 1; transform: none; text-align: center; }
  .step:first-of-type { margin-top: 0; }
  .step-card { background: transparent; padding: 0; margin: 0 auto; max-width: 38ch; }
  .step-shot { display: block; width: min(280px, 72vw); height: auto; margin: 24px auto 0; border-radius: 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (max-width: 900px) {
  a, button, [role="button"], summary { min-height: 44px; }
  footer a, .foot a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
  p, li, h1, h2, h3 { overflow-wrap: anywhere; }
}
@media (max-width: 900px) {
  .foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; overflow: visible; }
}
