/* Wedge pages (/photography, /g/*, /pet-adoption/*, src/wedge-template.js) on top of /landing/site.css
   and /landing/public.css, in the same look as the rest of the site: calm and photo-first, white the
   only accent, colour from photos and seeded tints, radius 16 by default and 26 for large panels. */

.wedge-page { max-width: 1200px; padding-top: calc(100px + env(safe-area-inset-top, 0px)); padding-bottom: 56px; overflow-wrap: anywhere; }
.wedge-page .sec { margin-top: 56px; }
.wedge-page .sec h2 { margin: 0 0 16px; max-width: 760px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.22; font-weight: 600; letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }
.wedge-page .label { margin: 0 0 10px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tertiary); }
.wedge-page .label:empty { display: none; }
.narrow { max-width: 720px; }
.narrow > p, .beyond-body { margin: 0 0 14px; max-width: 68ch; font-size: 16px; line-height: 26px; color: var(--muted); }
.narrow > p:last-child, .beyond-body:last-of-type { margin-bottom: 0; }
.wedge-note { margin: 16px 0 0; font-size: 13px; line-height: 19px; color: var(--tertiary); }

/* ── the first screen ──────────────────────────────────────────────────────────────────────── */
.wedge-hero { max-width: 780px; }
.wedge-hero h1 { font-size: clamp(36px, 5vw, 62px); }
.wedge-hero h1 em { font-style: normal; background: var(--wash); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.14em; }
.wedge-hero .lede { margin-top: 18px; }
.wedge-hero .actions { margin-top: 24px; }
.wedge-hero .eyebrow + .eyebrow { margin-top: -10px; }
.hero-break { display: none; }
.wedge-hero.has-visual { max-width: none; display: grid; gap: 24px; }
.wedge-visual { min-width: 0; }

/* Store buttons are the shared storeChoice (base.css): a phone's pill fills the row. */
.wedge-stores .btn { flex: 1 1 200px; }

.trust-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 0; font-size: 13px; line-height: 18px; color: var(--tertiary); }
.trust-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 600; }
.trust-rating svg { width: 13px; height: 13px; }

/* Two photos and what links them. A side with several photos fades through them. */
.match-visual { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.match-side { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--card); }
.match-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.match-rotating img { opacity: 0; animation: match-fade 16s linear infinite both; }
@keyframes match-fade { 0% { opacity: 0; } 3%, 25% { opacity: 1; } 28%, 100% { opacity: 0; } }
.match-side figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.74)); color: #fff; }
.match-kicker { display: block; font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.match-name { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 600; }
.match-mid { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 2; }
.match-title { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0; padding: 0 14px; border-radius: 9999px; background: var(--ink); color: #121212; font-size: 13px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.match-pair { margin: 10px 0 0; text-align: center; font-size: 12px; line-height: 16px; color: var(--tertiary); }

/* ── how it works ──────────────────────────────────────────────────────────────────────────── */
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.how-plain { display: block; counter-reset: how; margin: 0; padding: 4px 20px; list-style: none; }
.how-plain li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; counter-increment: how; }
.how-plain li + li { border-top: 0.5px solid var(--edge); }
.how-n { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); color: var(--ink); font-size: 13px; line-height: 18px; font-weight: 600; }
.how-n:empty::before { content: counter(how); }
.how-n svg { width: 18px; height: 18px; }
.how-plain h3 { margin: 6px 0 4px; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.how-plain p { margin: 0; max-width: 64ch; color: var(--muted); }

/* A card: its picture or live app screen on top, the words below. */
.why-grid, .ecosystem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.why-card, .eco-card, .how-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 16px; background: var(--card); border: 0.5px solid var(--edge); }
.story-visual { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; flex: none; }
/* Where a researched card's fact comes from. */
.why-body .guide-src { margin: 10px 0 0; font-size: 12px; line-height: 17px; color: var(--tertiary); }
.why-body .guide-src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.why-body .guide-src a:hover { color: var(--ink); }
/* Four cards sit two by two, so none is left alone on a second row. */
@media (min-width: 760px) { .why-grid.guide-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.story-visual-empty { background: var(--fill); }
.why-photo { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.sv { background: #111115; }
.why-body, .eco-body, .step-body { padding: 16px 18px 20px; }
.why-card h3, .eco-card h3, .how-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.why-card p, .eco-card p, .how-card p { margin: 0; font-size: 14px; line-height: 21px; color: var(--muted); }
.step-index { color: var(--tertiary); }
.icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--fill); color: var(--ink); }
.icon svg { width: 20px; height: 20px; }
.eco-link { display: inline-flex; margin-top: 10px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.eco-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.step-chips, .beyond-chips { margin-top: 12px; }
.chip svg { width: 15px; height: 15px; margin-right: 6px; }

/* ── pets, boards and groups ───────────────────────────────────────────────────────────────── */
.listing-row > li { flex-basis: min(58vw, 230px); }
.listing-card { display: block; color: inherit; }
.listing-shot { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: var(--card); }
.listing-photo { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.15s linear, transform 0.5s var(--ease); }
a.listing-card:hover .listing-photo { transform: scale(1.03); }
.listing-tags { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.tag { padding: 4px 9px; border-radius: 9999px; background: rgba(13, 13, 17, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-size: 11px; line-height: 15px; font-weight: 600; }
.listing-name { margin: 10px 0 0; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--ink); }
.listing-meta, .listing-poster { margin: 3px 0 0; font-size: 13px; line-height: 18px; color: var(--tertiary); }
.listing-desc { margin: 6px 0 0; font-size: 13px; line-height: 19px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.listing-logo-wrap { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 20px; border-radius: 16px; background: #f4f4f5; }
.listing-logo-wrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.listing-board .tag { display: inline-block; margin-top: 10px; background: var(--fill); }
.listing-board .listing-tags { position: static; }

.city-grid, .places-grid { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.city-card { display: block; color: inherit; transition: transform 0.14s var(--press); }
a.city-card:active { transform: scale(0.985); }
.city-visual { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--card); margin-bottom: 10px; }
.city-card strong { display: block; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--ink); }
.city-card span { display: block; margin-top: 3px; font-size: 13px; line-height: 18px; color: var(--tertiary); }

.places-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.place-card { display: flex; flex-direction: column; height: 100%; padding: 10px 10px 14px; border-radius: 16px; background: var(--card); border: 0.5px solid var(--edge); color: inherit; transition: border-color 0.2s, transform 0.14s var(--press); }
a.place-card:hover { border-color: var(--edge-strong); }
a.place-card:active { transform: scale(0.985); }
.place-logo { display: flex; align-items: center; justify-content: center; height: 68px; margin-bottom: 10px; padding: 8px; border-radius: 12px; background: #f4f4f5; }
.place-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.place-name { padding: 0 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.place-note { padding: 2px 4px 0; font-size: 12px; line-height: 17px; color: var(--tertiary); }

.panel { padding: 24px 20px; border-radius: 26px; border: 0.5px solid var(--edge); }
/* A panel or card runs the full width of the page, like the grids around it; its words don't. */
.narrow.panel, .narrow.card { max-width: none; }
.panel p > a { display: inline-block; padding-block: 6px; }
.panel > :last-child { margin-bottom: 0; }
.panel a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(232, 232, 232, 0.35); text-underline-offset: 3px; }

.beyond-split { display: grid; gap: 20px; }
.beyond-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.beyond-photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--card); }

/* Words that matter inside a panel, and the ways to act on them. */
.highlight-panel { text-align: center; }
.highlight-panel h2 { margin-left: auto !important; margin-right: auto !important; }
.highlight-panel p { margin: 0 auto 10px; max-width: 60ch; font-size: 15px; line-height: 24px; color: var(--muted); }
.gradient-text-inline { color: var(--ink); font-weight: 600; }
.highlight-detail { font-size: 13px !important; color: var(--tertiary) !important; }
.highlight-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }

/* ── the end of the page ───────────────────────────────────────────────────────────────────── */
.wedge-page .end { margin-top: 56px; }
.wedge-page .end h2 { font-weight: 300; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.04em; color: var(--ink-bright); }
.wedge-page .end .wedge-stores .btn { flex: 0 1 auto; }
.wedge-page .end .trust-line { justify-content: center; }
.waitlist-note { margin: 12px 0 0; font-size: 13px; line-height: 19px; color: var(--tertiary); }
.wedge-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.wedge-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 9999px; background: var(--fill); color: var(--muted); font-size: 13px; line-height: 18px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.wedge-links a:hover { background: var(--tint); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .match-rotating img { animation: none; }
  .match-rotating img:first-child { opacity: 1; }
  .listing-photo { transition: none; }
  a.listing-card:hover .listing-photo { transform: none; }
}

@media (min-width: 600px) {
  .wedge-stores .btn { flex: 0 1 auto; }
  .hero-break { display: inline; }
  .panel { padding: 32px; }
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .places-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .wedge-page .sec { margin-top: 72px; }
  .wedge-page .end { margin-top: 72px; }
  .listing-row { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .listing-row > li:nth-child(n+7) { display: block; }
  .beyond-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .places-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .wedge-hero.has-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); grid-template-areas: "lead visual" "cta visual"; column-gap: 64px; row-gap: 0; align-items: start; }
  .wedge-lead { grid-area: lead; align-self: end; padding-top: 24px; }
  .wedge-visual { grid-area: visual; }
  .wedge-cta { grid-area: cta; }
  .wedge-page .sec { margin-top: 88px; }
  .places-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
