/* MyPaw landing — reusable pieces: cards, icon tiles, tags, store labels,
   floating chips/cards, the device frame (+ the hand-built profile screen),
   checklists, FAQ. Font sizes come from the HIG ramp in base.css. */

/* ── Cards & icon tiles ───────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md); }
}
.card h3 { margin-top: 18px; }
.card h3 + p { margin-top: 8px; color: var(--ink-2); font-size: var(--fs-callout); }

.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; }
.feature-icon .icon { width: 26px; height: 26px; }
.tone-pink { background: var(--tone-pink-bg); color: var(--tone-pink); }
.tone-violet { background: var(--tone-violet-bg); color: var(--tone-violet); }
.tone-green { background: var(--tone-green-bg); color: var(--tone-green); }
.tone-amber { background: var(--tone-amber-bg); color: var(--tone-amber); }
.tone-blue { background: var(--tone-blue-bg); color: var(--tone-blue); }
.tone-teal { background: var(--tone-teal-bg); color: var(--tone-teal); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li {
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2); font-size: var(--fs-footnote); font-weight: 600;
}

.step-no {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 15px;
  background: var(--deep-grad); color: #fff; font-size: var(--fs-body); font-weight: 700;
  box-shadow: 0 12px 26px -12px rgba(158, 58, 159, 0.75);
}

/* ── Checklist (icon + bold lead + text) ──────────────────────────────── */
.checklist { display: grid; gap: 20px; margin-top: 30px; }
.checklist li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; color: var(--ink-2); }
.checklist .feature-icon { width: 46px; height: 46px; border-radius: 14px; }
.checklist .feature-icon .icon { width: 23px; height: 23px; }
.checklist b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 600; }

/* ── Store availability ───────────────────────────────────────────────
   Plain labels, not store badges: Apple and Google allow only their official
   badges, and only once the app is live. Dashed outline reads as "not yet". */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 18px 0 14px; border-radius: 14px;
  border: 1.5px dashed var(--line-strong); color: var(--ink);
}
.store .icon { width: 24px; height: 24px; color: var(--ink-2); stroke-width: 1.8; }
.store > span { display: grid; font-size: var(--fs-body); font-weight: 600; line-height: 1.2; }
.store small { color: var(--ink-2); font-size: var(--fs-caption); font-weight: 400; }
@media (max-width: 559px) { .store { flex: 1 1 0; justify-content: center; padding: 0 12px; } }
/* Narrow phones: drop the icon so "App Store" / "CH Play" never break across lines. */
@media (max-width: 399px) { .store .icon { display: none; } }

/* ── Floating chips & cards ───────────────────────────────────────────── */
/* No backdrop-filter here: these float continuously, and re-blurring every frame drops frames on phones. */
.chip, .float-card, .float-map { position: absolute; z-index: 4; animation: float 7s ease-in-out infinite; }
.chip, .float-card {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 16px 10px 10px; border-radius: 18px;
  line-height: 1.3; white-space: nowrap;
}
.chip {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -20px rgba(34, 22, 41, 0.55);
}
.chip b, .float-card b { display: block; font-size: var(--fs-subhead); font-weight: 600; }
.chip small { color: var(--ink-2); font-size: var(--fs-caption); }
.chip-icon, .float-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; }
.chip-icon .icon, .float-icon .icon { width: 20px; height: 20px; }
@keyframes float { 50% { transform: translateY(-9px); } }

/* Cards laid over screenshots and illustrations keep a light look in both themes. */
.float-card { background: #fff; color: #221629; box-shadow: 0 22px 44px -22px rgba(34, 22, 41, 0.6); }
.float-card small { color: #5d4c69; font-size: var(--fs-caption); }
.float-map {
  width: min(46%, 220px); overflow: hidden; border-radius: 18px;
  background: #fff; color: #221629; box-shadow: 0 22px 44px -20px rgba(34, 22, 41, 0.6);
  animation-delay: -3.5s;
}
.float-map img { width: 100%; }
.float-map figcaption {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  font-size: var(--fs-footnote); font-weight: 600;
}
.float-map .icon { width: 16px; height: 16px; color: #0d8058; }
.m-pink { background: #ffe4ee; color: #cf2f67; }
.m-violet { background: #efe4ff; color: #7443c9; }
.m-green { background: #daf4e8; color: #0d8058; }
.m-amber { background: #fff0d6; color: #a95207; }
.m-dark { background: #221629; color: #fff; }

/* ── Device frame ──────────────────────────────────────────────────────
   A neutral phone frame, deliberately not a drawn iPhone: Apple's marketing
   guidelines allow only Apple-supplied product imagery. Screens are full App
   Store screenshots (1284 × 2778), shown whole. */
.device {
  --w: 270px;
  position: relative; isolation: isolate; width: var(--w); flex: none;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(160deg, #3d3742 0%, #18141b 30%, #0e0c10 70%, #27222c 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 40px 80px -36px rgba(20, 8, 30, 0.6);
}
.device .screen {
  position: relative; overflow: hidden; aspect-ratio: 1284 / 2778;
  border-radius: calc(var(--w) * 0.138); background: #fff;
}
.device .screen > img { width: 100%; height: 100%; object-fit: cover; }

/* Hand-built "pet profile" screen (no clean screenshot of it exists yet).
   Sized in em off the frame width so it scales with the device; fixed light
   colours and the system font, like the app. */
.mock {
  position: absolute; inset: 0; padding: 3.3em 1.1em 0;
  background: linear-gradient(180deg, #fff0f6 0%, #fffafc 40%);
  color: #221629; font-size: calc(var(--w) * 0.046); line-height: 1.35; text-align: left;
  font-variant-numeric: tabular-nums;
}
.mock-status {
  position: absolute; top: 1.05em; left: 1.8em; right: 1.6em;
  display: flex; align-items: center; justify-content: space-between; font-size: 0.95em; font-weight: 600;
}
.mock-battery { position: relative; width: 1.7em; height: 0.8em; border-radius: 0.25em; box-shadow: inset 0 0 0 0.12em #221629; }
.mock-battery::after { content: ""; position: absolute; inset: 0.2em 0.45em 0.2em 0.2em; border-radius: 0.1em; background: #221629; }
.mock-head { display: flex; align-items: center; justify-content: space-between; }
.mock-title { font-size: 1.45em; font-weight: 700; letter-spacing: -0.01em; }
.mock-round { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(34, 22, 41, 0.08); }
.mock-round .icon, .mock-qr .icon, .mock-ic .icon { width: 1.2em; height: 1.2em; }
.mock-pet, .mock-stats > span, .mock-list li { background: #fff; box-shadow: 0 0 0 1px rgba(34, 22, 41, 0.06), 0 0.5em 1.2em -0.9em rgba(34, 22, 41, 0.45); }
.mock-pet { display: flex; align-items: center; gap: 0.8em; margin-top: 0.8em; padding: 0.75em; border-radius: 1.2em; }
.mock-pet img { width: 3.3em; height: 3.3em; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 0.18em #ffe4ee; }
.mock-pet b { display: block; font-size: 1.15em; font-weight: 600; }
.mock-pet small, .mock-stats small, .mock-list small { color: #6a5977; }
.mock-pet small { font-size: 0.85em; }
.mock-qr { display: grid; place-items: center; width: 2.4em; height: 2.4em; margin-left: auto; border-radius: 0.8em; background: #221629; color: #fff; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; margin-top: 0.6em; }
.mock-stats > span { padding: 0.55em 0.65em; border-radius: 0.95em; }
.mock-stats small { display: block; font-size: 0.75em; }
.mock-stats b { font-size: 0.98em; font-weight: 600; }
.mock-label { margin: 1em 0 0.5em; font-size: 1em; font-weight: 700; }
.mock-list { display: grid; gap: 0.5em; }
.mock-list li { display: flex; align-items: center; gap: 0.65em; padding: 0.6em 0.7em; border-radius: 1em; }
.mock-ic { display: grid; place-items: center; width: 2.25em; height: 2.25em; flex: none; border-radius: 0.75em; }
.mock-list b { display: block; font-size: 0.9em; font-weight: 600; }
.mock-list small { font-size: 0.76em; }
.mock-badge {
  margin-left: auto; padding: 0.3em 0.65em; border-radius: 999px; white-space: nowrap;
  background: #ffe4ee; color: #b8285b; font-size: 0.72em; font-style: normal; font-weight: 600;
}
.mock-badge.ok { background: #daf4e8; color: #0b6b4a; }
.mock-badge.soft { background: #f1ebf6; color: #5d4c69; }
.mock-share { display: flex; align-items: center; gap: 0.7em; margin-top: 0.8em; padding: 0.7em 0.8em; border-radius: 1em; background: #221629; color: #fff; }
.mock-avatars { display: flex; flex: none; }
.mock-avatars i { width: 2em; height: 2em; border-radius: 50%; background: linear-gradient(135deg, #ff9dbb, #e0457b); box-shadow: 0 0 0 0.15em #221629; }
.mock-avatars i + i { margin-left: -0.6em; background: linear-gradient(135deg, #c9a3ff, #7443c9); }
.mock-share b { display: block; font-size: 0.88em; font-weight: 600; }
.mock-share small { color: rgba(255, 255, 255, 0.78); font-size: 0.74em; }
.mock-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 0.55em 0.4em 1.7em; border-radius: 1.3em 1.3em 0 0;
  background: #fff; box-shadow: 0 -0.3em 1.2em -0.7em rgba(34, 22, 41, 0.35);
}
.mock-tabbar::after { content: ""; position: absolute; left: 50%; bottom: 0.55em; width: 34%; height: 0.3em; transform: translateX(-50%); border-radius: 999px; background: #221629; }
.mock-tabbar > span { display: grid; justify-items: center; gap: 0.25em; color: #8a7b95; font-size: 0.62em; font-weight: 600; white-space: nowrap; }
.mock-tabbar .icon { width: 2.1em; height: 2.1em; }
.mock-tabbar .is-active { color: #e0457b; }
.mock-fab {
  display: grid; place-items: center; width: 4.4em; height: 4.4em; margin-top: -2.4em; border-radius: 50%;
  background: linear-gradient(135deg, #ff7aa2, #e0457b); color: #fff;
  box-shadow: 0 0 0 0.45em #fff, 0 0.6em 1.4em -0.4em rgba(224, 69, 123, 0.7);
}
.mock-fab .icon { width: 2.3em; height: 2.3em; }

/* ── FAQ accordion (native <details>) ─────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; list-style: none; cursor: pointer;
  color: var(--ink); font-size: var(--fs-body); font-weight: 600; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  width: 32px; height: 32px; padding: 7px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong); transition: transform 0.25s ease;
}
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-body { padding: 0 22px 22px; color: var(--ink-2); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height 0.3s ease, content-visibility 0.3s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}
