/* MyPaw landing — page sections, in page order: hero, facts, feature bento,
   steps, feature deep-dives, trust, partners, FAQ, closing call to action. */

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 36px 0 48px; }
@media (max-width: 359px) { .hero h1 { font-size: 1.875rem; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(48% 42% at 86% 18%, var(--blob-cool), transparent 70%),
    radial-gradient(42% 38% at 4% 0%, var(--blob-warm), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(55% 60% at 75% 32%, #000, transparent 75%);
  mask-image: radial-gradient(55% 60% at 75% 32%, #000, transparent 75%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  color: var(--ink-2); font-size: var(--fs-subhead); font-weight: 500;
}
.eyebrow .icon { width: 16px; height: 16px; color: var(--accent); }
.hero h1 { margin-top: 22px; }
.lead { max-width: 34em; margin-top: 22px; color: var(--ink-2); font-size: var(--fs-intro); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--ink-2); font-size: var(--fs-subhead); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--tone-green-bg); color: var(--tone-green); stroke-width: 3; }

.hero-visual { position: relative; justify-self: center; width: min(470px, 100%); }
.hero-visual::before {
  content: ""; position: absolute; inset: 7% -5% -3% 9%; z-index: -1; border-radius: 48px;
  background: linear-gradient(135deg, #ff9dbb, #b58cf0); opacity: 0.45; transform: rotate(6deg);
}
.hero-card { position: relative; overflow: hidden; border-radius: 44px; box-shadow: var(--shadow-art); }
.hero-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.chip-a { top: 5%; left: 10px; }
.chip-b { top: 45%; right: 10px; animation-delay: -2.3s; }
.chip-c { bottom: 6%; left: 10px; animation-delay: -4.6s; }
.paw-decor { position: absolute; z-index: -1; color: var(--accent); opacity: 0.16; }
.paw-1 { width: 56px; height: 56px; top: -30px; right: 8%; transform: rotate(18deg); }
.paw-2 { width: 40px; height: 40px; bottom: -6px; left: -34px; transform: rotate(-24deg); }
@media (min-width: 560px) {
  .chip-a { left: -36px; }
  .chip-b { right: -20px; }
  .chip-c { left: -24px; }
}

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 48px; }
.facts li {
  padding: 18px 20px; border-radius: 22px;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}
.facts strong {
  display: block; font-size: clamp(var(--fs-title1), 1.3rem + 1.2vw, var(--fs-large));
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; white-space: nowrap;
  background: linear-gradient(115deg, var(--hl-from), var(--hl-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.facts span { display: block; margin-top: 4px; color: var(--ink-2); font-size: var(--fs-subhead); line-height: 1.45; }
@media (max-width: 359px) { .facts li { padding: 14px 16px; } .facts strong { font-size: 1.5rem; } }

@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 88px; }
  .facts li { padding: 22px 24px; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 72px; }
  .hero-visual { justify-self: end; }
}

/* ── Feature bento ────────────────────────────────────────────────────── */
.bento { display: grid; gap: 16px; }
.bento > .card { padding: 30px; overflow: hidden; }
.bento > .bento-shop { display: grid; gap: 32px; background: linear-gradient(120deg, var(--surface) 45%, var(--tone-teal-bg)); }
.bento-shop .device { --w: 210px; justify-self: center; }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide, .bento-shop { grid-column: span 2; }
  .bento > .bento-shop { grid-template-columns: 1fr auto; align-items: center; column-gap: 48px; }
}
@media (min-width: 1020px) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .bento-wide { grid-column: span 2; }
  .bento-shop { grid-column: span 3; }
  .bento > .bento-shop { padding: 40px 88px 40px 40px; }
  .bento-shop .shop-copy { max-width: 540px; }
}

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 16px; }
.step { padding: 30px; }
.step h3 { margin-top: 20px; }
@media (max-width: 767px) {
  .step { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start; }
  .step .step-no { grid-row: span 2; }
  .step h3 { margin-top: 0; }
  .step h3 + p { grid-column: 2; margin-top: 4px; }
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 50px; right: -18px; width: 11px; height: 11px;
    border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg);
  }
}

/* ── Feature deep-dives ───────────────────────────────────────────────── */
.section-dive { padding: 48px 0; }
.dive { display: grid; gap: 44px; align-items: center; }
.dive-copy h2 { margin-bottom: 16px; }
.dive-copy > p:not(.kicker) { color: var(--ink-2); font-size: var(--fs-intro); }
/* The whole phone sits inside its panel, centred, with room above and below. */
.dive-visual {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; justify-content: center; align-items: center;
  padding: 44px 20px; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dive-visual::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 55%, rgba(255, 255, 255, 0.6), transparent 72%);
}
.panel-pink { background: var(--panel-pink); }
.panel-violet { background: var(--panel-violet); }
.panel-amber { background: var(--panel-amber); }
.panel-blue { background: var(--panel-blue); }
.dive-visual .device { --w: min(250px, 64vw); }
.float-top-left { top: 22px; left: 16px; }
.float-bottom-left { bottom: 28px; left: 16px; animation-delay: -2.5s; }
.float-bottom-right { right: 16px; bottom: 22px; animation-delay: -3.5s; }
.float-map { right: 14px; bottom: 32px; }
.dive-art { min-height: 460px; padding: 0; }
.dive-art::before { display: none; }
.dive-art > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
@media (prefers-color-scheme: dark) { .dive-visual::before { opacity: 0.1; } }
@media (min-width: 960px) {
  .section-dive { padding: 64px 0; }
  .dive { grid-template-columns: 1fr 1.05fr; gap: 80px; }
  .dive-reverse { grid-template-columns: 1.05fr 1fr; }
  .dive-reverse .dive-copy { order: 2; }
  .dive-visual { padding: 60px 40px; }
  .dive-art { min-height: 684px; padding: 0; }
  .dive-visual .device { --w: 270px; }
  .float-top-left { top: 32px; left: 32px; }
  .float-bottom-left { bottom: 48px; left: 32px; }
  .float-bottom-right { right: 32px; bottom: 32px; }
  .float-map { right: 32px; bottom: 56px; }
}

/* ── Trust ────────────────────────────────────────────────────────────── */
/* Explicit 1 → 2 → 4 columns: auto-fit left one orphan card on narrow desktops. */
.trust { display: grid; gap: 16px; }
.trust .card { padding: 28px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* Phones: tighter cards, icon beside the text in the trust list. */
@media (max-width: 639px) {
  .bento > .card, .step { padding: 24px; }
  .trust .card { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 22px; }
  .trust .feature-icon { grid-row: span 2; width: 48px; height: 48px; }
  .trust h3 { margin-top: 2px; }
  .trust h3 + p { grid-column: 2; margin-top: 4px; }
}

/* ── Partners ─────────────────────────────────────────────────────────── */
.partner {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 36px; padding: 44px 24px; border-radius: var(--radius-lg);
  background: var(--deep-grad); color: #fff;
  box-shadow: 0 44px 90px -44px rgba(109, 63, 196, 0.75);
}
.partner::before, .partner::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.partner::before { width: 520px; height: 520px; top: -260px; right: -160px; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.2), transparent); }
.partner::after { width: 380px; height: 380px; bottom: -200px; left: -120px; background: radial-gradient(closest-side, rgba(255, 157, 187, 0.4), transparent); }
.kicker-light { background: rgba(255, 255, 255, 0.16); color: #fff; }
.partner :focus-visible { outline-color: #fff; }
.partner-lead { margin-top: 16px; color: rgba(255, 255, 255, 0.92); font-size: var(--fs-intro); }
.partner-benefits { display: grid; gap: 14px; margin: 28px 0 34px; }
.partner-benefits li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.benefit-icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 13px;
  background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.benefit-icon .icon { width: 21px; height: 21px; }
.partner-steps {
  display: grid; gap: 12px; align-content: center; padding: 14px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.partner-steps li { display: flex; gap: 16px; padding: 18px; border-radius: 20px; background: rgba(20, 8, 30, 0.2); }
.partner-steps .step-no { width: 40px; height: 40px; border-radius: 13px; background: #fff; color: #9e3a9f; box-shadow: none; }
.partner-steps b { display: block; font-size: var(--fs-body); font-weight: 600; }
.partner-steps small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.9); font-size: var(--fs-subhead); line-height: 1.5; }
@media (max-width: 559px) { .partner .btn { width: 100%; } }
@media (min-width: 960px) { .partner { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 64px; padding: 76px 68px; } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-layout { display: grid; gap: 36px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
  .faq-layout .section-head { position: sticky; top: 120px; }
}

/* ── Closing call to action ───────────────────────────────────────────── */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; border-radius: var(--radius-lg);
  background: var(--panel-pink); box-shadow: inset 0 0 0 1px var(--line);
}
.cta-copy { padding: 44px 24px 36px; }
.cta-copy p { max-width: 32em; margin-top: 16px; color: var(--ink-2); font-size: var(--fs-intro); }
.cta-art img { width: 100%; height: 100%; min-height: 300px; max-height: 420px; object-fit: cover; object-position: center top; }
@media (min-width: 900px) {
  .cta { grid-template-columns: 1.1fr 0.9fr; }
  .cta-copy { align-self: center; padding: 72px 64px; }
  .cta-art img { min-height: 480px; max-height: none; }
}
