/* Page-specific styles. All design tokens live in theme.css: never redeclare
   a token here, because this sheet loads after theme.css at equal
   specificity and would silently win over :root. Utility classes come from
   the Tailwind Play runtime (web/static/tailwind.js) with the inline config
   in web/layouts/base.gohtml; never restate a utility here. */

/* ════════════════════════════════════════════════════════════════════ */
/* Shell                                                                 */
/* ════════════════════════════════════════════════════════════════════ */

/* The header: glass over the page, quiet at the top, and once the page
   has scrolled it gains a shadow and the brand hairline along its foot. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out), background-color var(--duration-slow) var(--ease-out);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background-image: var(--gradient-edge);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 8px 30px -18px rgba(17, 17, 17, 0.25);
}
.site-header.is-scrolled::after { opacity: 1; }

/* The wordmark image: the app's logo, sized by height. */
.wordmark { height: 1.75rem; width: auto; display: block; }
@media (min-width: 640px) { .wordmark { height: 1.9rem; } }
.wordmark-lg { height: 2.25rem; }
/* The lockup on dark: the logo image in white, with the gradient mark laid
   exactly over its own mark. The mark fills the image's left 17% (its box
   is 256 of 1500 by 274 of 274); the SVG's shape sits at 112–911 of 1024
   across and 107–958 down, hence the offsets. */
.lockup { position: relative; display: inline-block; line-height: 0; }
.lockup .wordmark { filter: brightness(0) invert(1); }
.lockup-mark { position: absolute; left: -2.4%; top: -12.6%; width: 21.9%; height: 120%; }

/* Primary nav links: a pill that fills on hover and a dot that marks the
   current page. */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground-strong);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-out);
}
.nav-link:hover { color: var(--foreground); background-color: var(--muted); }
.nav-link.is-active { color: var(--foreground); font-weight: 600; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background-image: var(--gradient-brand);
  transform: translateX(-50%);
}

/* The account pill in the header. */
.account-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  padding: 0.2rem 0.25rem;
  background: var(--card);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
@media (min-width: 640px) { .account-pill { padding-right: 0.8rem; } }
.account-pill:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

/* The phone tab bar: the app's bottom navigator. Pages that render it
   leave room underneath (.has-tabbar) so nothing hides behind it. */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px rgba(17, 17, 17, 0.06);
}
.tabbar::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto 0;
  height: 2px;
  background-image: var(--gradient-brand);
}
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.55rem 0.25rem 0.5rem;
  font-size: 11px;
  font-weight: 500;
  color: #52575c;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--duration-fast) var(--ease-out);
}
.tabbar-item > span:first-child {
  display: inline-flex;
  padding: 0.2rem 0.85rem;
  border-radius: var(--radius-full);
  transition: background-color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-spring);
}
.tabbar-item.is-active { color: var(--accent-2); font-weight: 600; }
.tabbar-item.is-active > span:first-child { background: var(--primary-subtle); transform: translateY(-1px); }
.tabbar-item.is-active svg { color: var(--accent-2); }
@media (max-width: 767.98px) {
  .has-tabbar { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
}

/* The footer: ink, the brand hairline along its top and the mark as a
   watermark. The one dark surface every page shares. */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(255, 79, 1, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(253, 224, 71, 0.12), transparent 60%),
    var(--ink);
  color: rgba(255, 255, 255, 0.72);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background-image: var(--gradient-brand);
}
.site-footer a { transition: color var(--duration-fast) var(--ease-out); }
.site-footer a:hover { color: #fff; }
.site-footer .watermark { right: -6rem; bottom: -10rem; width: 34rem; height: 34rem; opacity: 0.12; }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  transition: background-color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.footer-social:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); color: #fff; }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.footer-top:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

/* ════════════════════════════════════════════════════════════════════ */
/* Home                                                                  */
/* ════════════════════════════════════════════════════════════════════ */

/* The hero: the app's showcase, on the brand's warm ground. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(253, 224, 71, 0.55), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(255, 79, 1, 0.16), transparent 60%),
    linear-gradient(180deg, #fff8f1 0%, #ffffff 100%);
}
.hero-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}
.hero-title {
  font-size: clamp(2.6rem, 1.3rem + 4.4vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  background: radial-gradient(circle, var(--orb, var(--primary-glow)) 0%, transparent 70%);
}
@keyframes orb-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5%, 7%, 0) scale(1.1); }
}
@keyframes orb-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to { transform: translate3d(-6%, -4%, 0) scale(0.95); }
}
.hero-orb-a { animation: orb-drift-a 18s var(--ease-in-out) infinite alternate; }
.hero-orb-b { animation: orb-drift-b 23s var(--ease-in-out) infinite alternate; }

/* The floating hand-camera mark, bobbing. */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
.float { animation: float 6s var(--ease-in-out) infinite; }

/* The hero's staggered entrance: each child rises a beat after the last. */
.hero-stagger > * { animation: rise 0.7s var(--ease-out) backwards; }
.hero-stagger > :nth-child(1) { animation-delay: 0.05s; }
.hero-stagger > :nth-child(2) { animation-delay: 0.15s; }
.hero-stagger > :nth-child(3) { animation-delay: 0.28s; }
.hero-stagger > :nth-child(4) { animation-delay: 0.4s; }
.hero-stagger > :nth-child(5) { animation-delay: 0.52s; }

/* The collage: three real listing photos fanned like prints on a table,
   drifting with the pointer (the hero writes --px/--py, -1..1). Chips of
   glass float over them. */
.collage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 34rem;
  margin-inline: auto;
  --px: 0;
  --py: 0;
}
.collage-glow {
  position: absolute;
  inset: 12%;
  border-radius: 40%;
  background-image: var(--gradient-brand);
  opacity: 0.3;
  filter: blur(48px);
  animation: orb-drift-a 14s var(--ease-in-out) infinite alternate;
}
.collage-card {
  position: absolute;
  width: 56%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--muted);
  border: 5px solid #fff;
  box-shadow: var(--shadow-xl);
  transform: translate(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * 1px)) rotate(var(--rot));
  transition: transform 0.6s var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
  animation: rise 0.9s var(--ease-out) backwards;
}
.collage-card img { width: 100%; height: 100%; object-fit: cover; }
.collage-card:hover { z-index: 5; box-shadow: var(--shadow-brand), var(--shadow-xl); }
.collage-card-1 { left: 0; top: 10%; --rot: -8deg; --depth: 14; z-index: 1; animation-delay: 0.3s; }
.collage-card-2 { right: 0; top: 0; --rot: 6deg; --depth: 22; z-index: 2; animation-delay: 0.45s; width: 52%; }
.collage-card-3 { left: 22%; bottom: 0; --rot: 2deg; --depth: 30; z-index: 3; animation-delay: 0.6s; width: 54%; }
.collage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 0.9rem 0.8rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collage-chip {
  position: absolute;
  z-index: 6;
  white-space: nowrap;
  transform: translate(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * 1px));
  transition: transform 0.6s var(--ease-out);
}
.collage-chip .pill { box-shadow: var(--shadow-lg); }
.collage-chip-1 { left: -6%; top: 2%; --depth: -18; }
.collage-chip-2 { right: -7%; top: 50%; --depth: -26; }
.collage-chip-3 { left: 2%; bottom: -3%; --depth: -12; }
/* The mark hovering beside the collage. */
.collage-mark {
  position: absolute;
  right: -4%;
  bottom: 12%;
  width: 22%;
  z-index: 4;
  filter: drop-shadow(0 18px 30px rgba(255, 79, 1, 0.35));
}
/* Empty API? The collage shows the app's hand-camera instead. */
.collage-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The search pill on the hero: one row on desktop, stacked on phones. On
   wide screens it hangs over the hero's bottom edge. */
.hero-search {
  display: grid;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
}
@media (min-width: 768px) {
  .hero-search { grid-template-columns: 1.4fr 1fr 1fr auto; border-radius: var(--radius-full); padding: 0.4rem 0.4rem 0.4rem 0.75rem; align-items: center; }
  .hero-search .hero-search-field + .hero-search-field { border-left: 1px solid var(--border); }
}
.hero-search-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
  min-width: 0;
  border-radius: var(--radius-lg);
  transition: background-color var(--duration-fast) var(--ease-out);
}
.hero-search-field:hover { background: var(--surface); }
.hero-search-field input, .hero-search-field select {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--foreground);
  min-width: 0;
}
.hero-search-field input:focus, .hero-search-field select:focus { outline: none; }
.hero-search-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
  color: var(--muted-foreground);
}

/* The ticker band between the hero and the categories. */
.ticker {
  background-image: linear-gradient(90deg, var(--primary) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  color: #fff;
  padding: 0.8rem 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
}
.ticker-item { display: inline-flex; align-items: center; gap: 2.75rem; }
.ticker-item svg { width: 1.1rem; height: 1.1rem; opacity: 0.9; }

/* Category bento: the featured categories as a mosaic on wide screens
   (one hero tile, five supporting), a snap row on phones. */
.category-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff7e00 0%, #ff7e00 55%, #fde248 100%);
}
.category-band .watermark { left: -8rem; top: -8rem; width: 36rem; height: 36rem; opacity: 0.16; }
.cat-bento {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.cat-bento::-webkit-scrollbar { display: none; }
.cat-bento > .category-tile { flex: 0 0 auto; width: 12.5rem; scroll-snap-align: start; }
@media (min-width: 900px) {
  .cat-bento {
    display: grid;
    overflow: visible;
    padding-bottom: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "a a b b"
      "a a c d"
      "e e f f";
    grid-auto-rows: 11.5rem;
  }
  .cat-bento > :nth-child(1) { grid-area: a; }
  .cat-bento > :nth-child(2) { grid-area: b; }
  .cat-bento > :nth-child(3) { grid-area: c; }
  .cat-bento > :nth-child(4) { grid-area: d; }
  .cat-bento > :nth-child(5) { grid-area: e; }
  .cat-bento > :nth-child(6) { grid-area: f; }
  .cat-bento > :nth-child(n + 7) { display: none; }
  .cat-bento > .category-tile { width: auto; }
}
.category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  padding: 1rem;
  min-height: 11rem;
  text-decoration: none;
  color: var(--foreground);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}
.category-tile:hover { box-shadow: var(--shadow-xl); }
.category-tile img {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  width: 62%;
  height: 62%;
  object-fit: contain;
  transition: transform 0.7s var(--ease-out);
  filter: drop-shadow(0 12px 18px rgba(17, 17, 17, 0.18));
}
.category-tile:hover img { transform: scale(1.08) rotate(-4deg); }
.category-tile-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 0.5rem 0.9rem;
  transition: background-color var(--duration-base) var(--ease-out), gap var(--duration-base) var(--ease-out);
}
.category-tile:hover .category-tile-title { background: var(--primary); }
.category-tile-title svg { width: 0.9rem; height: 0.9rem; transition: transform var(--duration-base) var(--ease-out); }
.category-tile:hover .category-tile-title svg { transform: translateX(3px); }
.category-tile-kicker { position: relative; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--letter-wide); color: var(--primary); margin-bottom: 0.4rem; }
@media (min-width: 900px) {
  .cat-bento > :nth-child(1).category-tile { padding: 1.5rem; }
  .cat-bento > :nth-child(1).category-tile img { width: 70%; height: 70%; right: 1rem; top: 1rem; }
  .cat-bento > :nth-child(1) .category-tile-title { font-size: 14px; padding: 0.65rem 1.1rem; }
  .cat-bento > :nth-child(1) .category-tile-kicker { font-size: 12px; }
}
/* The same tiles in a snap row on phones. */
.snap-row {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.snap-row::-webkit-scrollbar { display: none; }
/* The all-categories chip cloud on the band. */
.cat-chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.cat-chip:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }

.section-ink .watermark { left: -9rem; bottom: -12rem; width: 34rem; height: 34rem; opacity: 0.1; }

/* The steps timeline on the ink band: five numerals on a gradient rail. */
.steps { display: grid; gap: 2rem; position: relative; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .steps::before {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    top: 2.35rem;
    height: 2px;
    background-image: linear-gradient(90deg, var(--primary), var(--accent-2), var(--accent-3));
    opacity: 0.55;
  }
}
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
@media (min-width: 1024px) { .step { grid-template-columns: 1fr; gap: 1.1rem; } }
.step-dot {
  position: relative;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform var(--duration-slow) var(--ease-spring), background-color var(--duration-slow) var(--ease-out);
}
.step:hover .step-dot { transform: scale(1.08) rotate(-6deg); background: rgba(255, 255, 255, 0.1); }
.step-dot .numeral { font-size: 2rem; }
.step h3 { color: #fff; font-weight: 700; font-size: var(--text-lg); letter-spacing: var(--letter-tight); }
.step p { color: rgba(255, 255, 255, 0.66); font-size: var(--text-sm); line-height: var(--line-relaxed); margin-top: 0.35rem; }
/* The light variant, for the how-it-works page. */
.steps-light .step-dot { background: var(--card); border-color: var(--border); box-shadow: var(--shadow-md); }
.steps-light .step h3 { color: var(--foreground); }
.steps-light .step p { color: var(--muted-foreground); }

/* Feature bento: two wide tiles, then four. */
.feature-bento { display: grid; gap: 1rem; }
@media (min-width: 640px) { .feature-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .feature-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .feature-bento > * { grid-column: span 3; }
  .feature-bento > :nth-child(-n + 2) { grid-column: span 6; }
}
.feature-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  min-height: 13rem;
}
.feature-tile .watermark { right: -3rem; bottom: -3rem; width: 11rem; height: 11rem; opacity: 0.07; transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out); }
.feature-tile:hover .watermark { transform: rotate(18deg) scale(1.1); opacity: 0.12; }
.feature-tile h3 { font-weight: 700; font-size: var(--text-lg); letter-spacing: var(--letter-tight); }
.feature-tile p { color: var(--muted-foreground); font-size: var(--text-sm); line-height: var(--line-relaxed); }
@media (min-width: 1024px) {
  .feature-bento > :nth-child(-n + 2) .feature-tile-body { max-width: 26rem; }
  .feature-bento > :nth-child(-n + 2) h3 { font-size: var(--text-xl); }
}

/* The CTA panel: the brand gradient, the mark as a giant watermark, the
   ink button. */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background-image: linear-gradient(120deg, var(--primary) 0%, var(--accent-2) 55%, #ffb31a 100%);
  color: #fff;
  box-shadow: var(--shadow-brand), var(--shadow-xl);
  padding: 2.5rem 1.5rem;
}
@media (min-width: 768px) { .cta-panel { padding: 4rem 3.5rem; } }
.cta-panel .watermark { right: -6rem; top: -6rem; width: 30rem; height: 30rem; opacity: 0.16; animation: spin 90s linear infinite; }
.cta-panel .hand { position: absolute; right: 6%; bottom: -1rem; width: 11rem; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25)); display: none; }
@media (min-width: 900px) { .cta-panel .hand { display: block; } }
.cta-panel .btn-primary { box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45); }

/* ════════════════════════════════════════════════════════════════════ */
/* Listings                                                              */
/* ════════════════════════════════════════════════════════════════════ */

.listing-grid {
  display: grid;
  gap: 1.5rem 1.1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 480px) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.listing-grid-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .listing-grid-dense { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The listing card: the photo lifts and the edge warms on hover; the
   price rides on the photo as a glass pill. */
.listing-card .photo {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}
.listing-card:hover .photo { transform: translateY(-4px); box-shadow: var(--shadow-brand), var(--shadow-lg); }
.listing-card .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
  pointer-events: none;
}
.price-pill {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.price-pill small { font-size: 0.7rem; font-weight: 600; color: var(--muted-foreground); }

/* Gallery dots, over the photo. */
.dots { position: absolute; left: 0; right: 0; bottom: 0.6rem; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: background var(--duration-fast), transform var(--duration-fast); }
.dots span.is-on { background: #fff; transform: scale(1.3); }

/* The explore split: results beside the map on wide screens. */
.explore {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .explore { grid-template-columns: minmax(0, 1fr) 24rem; align-items: start; }
  .explore-map { position: sticky; top: calc(var(--header-h) + 5.5rem); }
}
/* The map keeps a photo ratio rather than a min-height: a min-height would
   transfer through aspect-ratio into a min-width and overflow the column. */
.explore-map .photo { aspect-ratio: 16 / 9; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
@media (min-width: 1024px) { .explore-map .photo { aspect-ratio: 4 / 5; } }

/* The sticky search bar on explore, under the header. */
.filter-bar {
  position: sticky;
  top: calc(var(--header-h) + 0.5rem);
  z-index: 30;
}
.filter-bar > .card {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
}

/* The explore hero: a shallow warm band with the mark behind. */
.explore-hero { position: relative; overflow: hidden; }
.explore-hero .watermark { right: -4rem; top: -6rem; width: 22rem; height: 22rem; opacity: 0.1; }

/* Price pin on the static map. */
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* The category strip on the category page: the current one lit. */
.cat-strip { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 0.25rem 0; }
.cat-strip::-webkit-scrollbar { display: none; }

/* Listing detail: the price panel is glass on the brand wash; specs are
   tiles. */
.price-panel {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.price-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  pointer-events: none;
}
.price-panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background-image: var(--gradient-brand);
}
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spec-tile {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem 1rem;
  transition: border-color var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.spec-tile:hover { border-color: var(--primary-border); transform: translateY(-2px); }
.spec-tile dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: var(--letter-wide); color: var(--muted-foreground); }
.spec-tile dd { font-weight: 600; margin-top: 0.2rem; overflow-wrap: anywhere; }

/* The section label on a detail page: a small kicker with a rule. */
.section-kicker { display: flex; align-items: center; gap: 0.75rem; }
.section-kicker::after { content: ""; flex: 1; height: 1px; background-image: var(--gradient-edge); }

/* ════════════════════════════════════════════════════════════════════ */
/* Booking                                                               */
/* ════════════════════════════════════════════════════════════════════ */

/* The calendar. */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-head { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); text-align: center; padding: 0.35rem 0; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
  color: var(--foreground);
}
.cal-day:hover:not(:disabled) { background: var(--primary-subtle); transform: scale(1.06); }
.cal-day:disabled { color: var(--border-strong); cursor: not-allowed; }
.cal-day.is-booked { background: rgba(224, 43, 43, 0.6); color: #fff; }
.cal-day.is-booked:disabled { color: #fff; }
.cal-day.is-today { border-color: var(--ink); }
.cal-day.in-range { background: var(--primary-subtle); color: var(--primary); }
.cal-day.is-edge { background: var(--primary); color: #fff; font-weight: 700; }
.cal-day.is-empty { pointer-events: none; }

/* The stepper. */
.stepper { position: relative; display: flex; }
.stepper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(100% / var(--n) / 2);
  right: calc(100% / var(--n) / 2);
  height: 2.5px;
  background: var(--border-strong);
  border-radius: 2px;
}
.stepper-progress {
  position: absolute;
  top: 15px;
  left: calc(100% / var(--n) / 2);
  height: 2.5px;
  background-image: var(--gradient-brand);
  border-radius: 2px;
  width: calc((100% - 100% / var(--n)) * var(--p));
  transition: width var(--duration-slower) var(--ease-out);
}
.stepper-node { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; min-width: 0; }
.stepper-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--border-strong);
  color: #7a7a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: background-color var(--duration-slow) var(--ease-out), border-color var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-spring);
}
.stepper-node.is-done .stepper-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper-node.is-current .stepper-dot { background: #fff; border-color: var(--primary); color: var(--foreground); box-shadow: 0 0 0 5px var(--primary-subtle), var(--shadow-glow); transform: scale(1.12); }
.stepper-label { font-size: 11px; font-weight: 500; color: #7a7a7a; text-align: center; }
.stepper-node.is-current .stepper-label { color: var(--foreground); font-weight: 600; }

/* Slide to confirm: the app's return gesture. */
.slide-track {
  position: relative;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-3) 100%);
  user-select: none;
  touch-action: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18);
}
.slide-track span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.slide-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 64px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: grab;
  transition: left 0.18s var(--ease-out);
}
.slide-thumb.is-dragging { transition: none; cursor: grabbing; }

/* Chat bubbles: the app's asymmetric radii. */
.bubble { max-width: 78%; padding: 0.7rem 0.95rem; font-size: 0.95rem; line-height: 1.45; word-wrap: break-word; }
.bubble-mine { background: #ff4e00; color: #fff; border-radius: 22px 18px 4px 22px; margin-left: auto; }
.bubble-theirs { background: rgba(230, 230, 230, 0.55); color: var(--foreground); border-radius: 18px 22px 22px 4px; }

/* Star rating input. */
.stars { display: inline-flex; gap: 0.25rem; }
.stars button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); line-height: 0; transition: transform var(--duration-fast); }
.stars button:hover { transform: scale(1.12); }

/* QR / camera well. */
.camera-well {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #111;
  aspect-ratio: 4 / 3;
}
.camera-well video { width: 100%; height: 100%; object-fit: cover; }
.camera-mask { position: absolute; inset: 0; pointer-events: none; }

/* Upload well. */
.upload-well {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--muted-foreground);
  cursor: pointer;
  text-align: center;
  padding: 1rem;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
  position: relative;
  overflow: hidden;
}
.upload-well:hover { border-color: var(--primary); background: var(--primary-subtle); color: var(--primary); }
.upload-well.is-filled { border-style: solid; border-color: var(--border); padding: 0; background: var(--muted); }
.upload-well img, .upload-well video { width: 100%; height: 100%; object-fit: cover; }
.upload-well input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ════════════════════════════════════════════════════════════════════ */
/* Marketing and copy pages                                              */
/* ════════════════════════════════════════════════════════════════════ */

/* The doc hero: the warm ground with the mark drifting behind the title. */
.doc-hero .watermark { right: -5rem; top: -7rem; width: 28rem; height: 28rem; opacity: 0.12; animation: spin 120s linear infinite; }
@media (max-width: 767.98px) { .doc-hero .watermark { width: 18rem; height: 18rem; right: -7rem; top: -5rem; } }

/* FAQ disclosures. */
.faq { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 600;
  transition: color var(--duration-fast) var(--ease-out);
}
.faq summary:hover { color: var(--primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform var(--duration-base);
  flex-shrink: 0;
  margin-right: 0.25rem;
}
.faq[open] summary::after { transform: rotate(-135deg); }
.faq > div { padding: 0 0 1.1rem; color: var(--muted-foreground-strong); line-height: var(--line-relaxed); animation: rise var(--duration-slow) var(--ease-out) backwards; }

/* Auth split: brand panel beside the form on wide screens. */
.auth-split { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 900px) { .auth-split { grid-template-columns: 5fr 7fr; } }
.auth-brand { display: none; position: relative; overflow: hidden; }
@media (min-width: 900px) { .auth-brand { display: flex; } }
.auth-brand .watermark { left: -10rem; bottom: -12rem; width: 36rem; height: 36rem; opacity: 0.14; animation: spin 140s linear infinite; }

/* Blog: the lead story is a photo with the words on it. */
.story-lead {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  aspect-ratio: 16 / 9;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  color: #fff;
  text-decoration: none;
}
@media (min-width: 768px) { .story-lead { aspect-ratio: 21 / 9; } }
.story-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 1.2s var(--ease-out); }
.story-lead:hover img { transform: scale(1.04); }
.story-lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.78) 100%); }
.story-lead-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.5rem; }
@media (min-width: 768px) { .story-lead-body { padding: 2.5rem; max-width: 46rem; } }
.story-card .photo { border-radius: var(--radius-xl); transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out); }
.story-card:hover .photo { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Profile: a gradient cover behind the avatar. */
.profile-cover {
  position: relative;
  overflow: hidden;
  height: 11rem;
  border-radius: var(--radius-2xl);
  background-image: linear-gradient(120deg, var(--primary) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
}
@media (min-width: 768px) { .profile-cover { height: 14rem; } }
.profile-cover .watermark { right: -3rem; top: -6rem; width: 22rem; height: 22rem; opacity: 0.18; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E"); opacity: 0.5; }
.profile-head { position: relative; }

/* The 404: the big numerals. */
.oops { font-size: clamp(5rem, 18vw, 12rem); line-height: 0.9; font-weight: 800; letter-spacing: -0.06em; }
