:root {
  --bg: #1e2a22;
  --fg: #e8e0ca;
  --muted: #9aa085;
  --accent: #c08a3c;
  --accent-fg: #1a120a;
  --card: #26322a;
  --border: #3a4a3d;
  --danger: #b15a34;
  --photo-bg: #0f1411;
  --vignette: rgba(255, 255, 255, 0.05);
  color-scheme: dark;
  font-size: 16px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #e5d8b6;
    --fg: #2a2012;
    --muted: #6b5a3e;
    --accent: #7a3a1c;
    --accent-fg: #f4ecd5;
    --card: #f1e6c6;
    --border: #b8a078;
    --danger: #7a1a1a;
    --photo-bg: #2a2012;
    --vignette: rgba(0, 0, 0, 0.04);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #e5d8b6;
  --fg: #2a2012;
  --muted: #6b5a3e;
  --accent: #7a3a1c;
  --accent-fg: #f4ecd5;
  --card: #f1e6c6;
  --border: #b8a078;
  --danger: #7a1a1a;
  --photo-bg: #2a2012;
  --vignette: rgba(0, 0, 0, 0.04);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% -10%, var(--vignette), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  z-index: -1;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

header.site {
  position: relative;
  padding: 1.5rem 1rem 1rem;
  padding-top: calc(1.5rem + env(safe-area-inset-top));
  text-align: center;
  flex: 0 0 auto;
}
header.site h1 {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--fg);
  line-height: 0;
}
.site-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
.site-brand:hover { color: var(--accent); text-decoration: none; }
.site-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: block;
  object-fit: contain;
}
/* Icon is black on transparent; invert on dark backgrounds */
:root .site-icon { filter: invert(1); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .site-icon { filter: none; }
}
:root[data-theme="light"] .site-icon { filter: none; }

#theme-toggle {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 50%;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}
#theme-toggle:hover { opacity: 0.7; }
#theme-toggle svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.gate {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1rem;
}
.gate[hidden] { display: none; }

.cta {
  max-width: 360px;
  width: 100%;
  text-align: center;
  color: var(--muted);
}
.cta p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--fg);
}
.cta-btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
}
.cta-btn:hover { background: var(--card); text-decoration: none; }

/* Landing page */
.hero {
  padding: 4rem 1.25rem 3rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.hero-video-bg,
.hero-image-bg {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 55dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: #f4ecd5;
}
.hero-image-bg {
  background: url("../hero.png") center/cover no-repeat;
}
.hero-image-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  z-index: -1;
}
.hero-image-bg {
  justify-content: flex-start;
}
.hero-image-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-image-bg .site {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 1rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
}
:root .hero-image-bg .site-icon {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}
.hero-image-bg .site-subtitle {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 14px rgba(0, 0, 0, 0.5);
}
.hero-image-bg .site-brand { gap: 0.6rem; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.55) saturate(0.85);
}
.hero-grain {
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-5%, -3%); }
  20%  { transform: translate(-10%, 5%); }
  30%  { transform: translate(7%, -7%); }
  40%  { transform: translate(-7%, 10%); }
  50%  { transform: translate(-5%, 5%); }
  60%  { transform: translate(10%, 0%); }
  70%  { transform: translate(0%, 7%); }
  80%  { transform: translate(-10%, -5%); }
  90%  { transform: translate(5%, -10%); }
  100% { transform: translate(0, 0); }
}
.hero-video-bg .hero-content {
  max-width: 42rem;
  margin: 0 auto;
  position: relative;
}
.hero-video-bg .hero-tagline {
  color: rgba(244, 236, 213, 0.9);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-grain { animation: none; }
}
.hero-title {
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.hero-tagline {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn.primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  font-weight: 600;
}
.cta-btn.primary:hover {
  background: var(--accent);
  opacity: 0.9;
}

.section-title {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.intro {
  padding: 3.5rem 1.25rem 1rem;
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}
.intro p {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.intro p:first-child {
  font-size: 1.2rem;
  color: var(--fg);
}
.intro p:not(:first-child) {
  color: var(--muted);
}
.intro p:last-child {
  margin-bottom: 0;
}

.services {
  padding: 3rem 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 20rem));
  gap: 1rem;
  justify-content: center;
}

.service {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-icon {
  color: var(--accent);
}
.service-icon svg {
  width: 2rem;
  height: auto;
  display: block;
}
.icon-antlers {
  width: 2.75rem;
  height: 1.75rem;
  background-color: currentColor;
  -webkit-mask: url("antlers.svg") center/contain no-repeat;
  mask: url("antlers.svg") center/contain no-repeat;
}
.service h3 {
  margin: 0;
  font-size: 1.1rem;
}
.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.service-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.6rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}
.service-link:hover {
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.6rem;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: auto;
}

.contact {
  padding: 3rem 1.25rem 4rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}
.contact p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.contact-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-grid.steps {
  max-width: 54rem;
  margin-inline: auto;
}
@media (min-width: 640px) {
  .service-grid.steps { grid-template-columns: repeat(3, 1fr); }
}
.service-grid.steps .service {
  text-align: left;
}

body.product .service {
  text-align: center;
  align-items: center;
}
body.product .service-grid.steps .service {
  text-align: center;
}

.hero-wrap {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1.25rem;
  max-width: 62rem;
  margin: 0 auto;
}
.hero-wrap .hero {
  padding: 0;
  margin: 0;
  max-width: none;
}
.hero-wrap .showcase {
  padding: 0;
  margin: 0;
  max-width: 26rem;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-wrap {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
    padding: 4rem 1.25rem;
  }
  .hero-wrap .showcase {
    flex: 0 1 35%;
    max-width: 18rem;
  }
  .hero-wrap .hero {
    flex: 1 1 60%;
    text-align: left;
  }
  .hero-wrap .hero-actions {
    justify-content: flex-start;
  }
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--border);
  max-width: 58rem;
  margin: 0 auto;
}

.showcase {
  padding: 1rem 1.25rem 2rem;
  max-width: 30rem;
  margin: 0 auto;
  text-align: center;
}

.showcase-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: 18rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.showcase-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Default (dark): show the light showcase */
.showcase .showcase-dark { display: none; }
.showcase .showcase-light { display: block; }

/* System light + no manual dark override */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .showcase .showcase-dark { display: block; }
  :root:not([data-theme="dark"]) .showcase .showcase-light { display: none; }
}

/* Manual light override */
:root[data-theme="light"] .showcase .showcase-dark { display: block; }
:root[data-theme="light"] .showcase .showcase-light { display: none; }
/* Landing hero: hero image below the normalized header, with overlaid
   tagline + CTA. Mirrors the old in-header composition but keeps the
   brand strip consistent with every other page. */
.landing-hero {
  position: relative;
  isolation: isolate;
  min-height: 48dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem 3.5rem;
  overflow: hidden;
  color: #f4ecd5;
  text-align: center;
}
.landing-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  z-index: -1;
  pointer-events: none;
}
.landing-hero-overlay {
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.landing-hero-title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.landing-hero-tagline {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(244, 236, 213, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.landing-hero .cta-btn.primary {
  margin-top: 0.5rem;
}

/* Two-column product blocks on the landing page. Image on one side, copy
   on the other, alternating via `.reverse`. Stacks on mobile. */
.product-blocks {
  padding: 3rem 1.25rem;
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.product-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.product-visual {
  width: 100%;
  max-width: 16rem;
  display: flex;
  justify-content: center;
}
.product-visual-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.25);
}
.product-copy {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.product-copy h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.15;
}
.product-copy p {
  margin: 0;
  color: var(--muted);
}
.product-copy .cta-btn {
  align-self: center;
  margin-top: 0.25rem;
}
.product-copy .eyebrow {
  margin: 0;
}
@media (min-width: 820px) {
  .product-block {
    flex-direction: row;
    gap: 3rem;
    text-align: left;
  }
  .product-block.reverse {
    flex-direction: row-reverse;
  }
  .product-visual { flex: 0 0 auto; }
  .product-copy { align-items: flex-start; }
  .product-copy .cta-btn { align-self: flex-start; }
}

/* Light/dark showcase swap for the trofeer image. Mirrors the existing
   .showcase logic but scoped to landing product blocks. */
.product-block .showcase-dark { display: none; }
.product-block .showcase-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .product-block .showcase-dark { display: block; }
  :root:not([data-theme="dark"]) .product-block .showcase-light { display: none; }
}
:root[data-theme="light"] .product-block .showcase-dark { display: block; }
:root[data-theme="light"] .product-block .showcase-light { display: none; }

.screens {
  padding: 2rem 1rem 0.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.screens-row {
  list-style: none;
  margin: 0;
  padding: 0 0.25rem 0.5rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screens-row::-webkit-scrollbar { display: none; }
.screens-row { scrollbar-width: none; }
.screens-row li {
  flex: 0 0 auto;
  width: min(62vw, 16rem);
  scroll-snap-align: center;
}
.screens-row img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.25);
  background: var(--photo-bg);
}
@media (min-width: 900px) {
  .screens-row {
    justify-content: center;
    overflow: visible;
    padding-top: 1rem;
  }
  .screens-row li {
    width: 15rem;
  }
}

/* Alert preview — a fake Telegram-style chat showing the warning and
   location pin a contact would receive. Bubbles fade/slide in staggered
   once the section scrolls into view; the inline script on the product
   page toggles .in-view. */
.alert-demo {
  padding: 3rem 1.25rem;
  max-width: 62rem;
  margin: 0 auto;
}
.alert-demo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.alert-demo-copy {
  max-width: 26rem;
  text-align: left;
}
.alert-demo-copy .section-title {
  text-align: left;
}
.alert-demo-lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.channel-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  color: var(--accent);
}
.channel-icons li {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.channel-icons svg { color: var(--accent); }
@media (min-width: 820px) {
  .channel-icons { justify-content: flex-start; }
}
@media (min-width: 820px) {
  .alert-demo-wrap {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    text-align: left;
  }
  .alert-demo-copy { flex: 1 1 50%; }
  .alert-demo-wrap .chat { flex: 0 0 auto; margin: 0; }
}
.chat {
  max-width: 22rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 85%, var(--bg));
}
.chat-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-avatar img {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}
:root .chat-avatar img { filter: invert(1); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .chat-avatar img { filter: none; }
}
:root[data-theme="light"] .chat-avatar img { filter: none; }
.chat-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.chat-name { font-weight: 600; font-size: 0.95rem; }
.chat-sub { color: var(--muted); font-size: 0.75rem; }

.chat-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background:
    repeating-linear-gradient(
      45deg,
      color-mix(in srgb, var(--card) 94%, var(--bg)),
      color-mix(in srgb, var(--card) 94%, var(--bg)) 8px,
      color-mix(in srgb, var(--card) 88%, var(--bg)) 8px,
      color-mix(in srgb, var(--card) 88%, var(--bg)) 16px
    );
  min-height: 14rem;
}

.chat-bubble {
  align-self: flex-start;
  max-width: 86%;
  background: var(--bg);
  color: var(--fg);
  border-radius: 14px 14px 14px 4px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-size: 0.92rem;
  line-height: 1.35;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.chat-bubble p { margin: 0 0 0.2rem; }
.chat-bubble p:last-of-type { margin-bottom: 0; }
.chat-note { color: var(--muted); font-size: 0.85rem; }
.chat-time {
  display: block;
  text-align: right;
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 0.25rem;
}

.chat-location {
  padding: 0;
  overflow: hidden;
  width: 15rem;
}
.chat-map {
  height: 7rem;
  background:
    radial-gradient(circle at 40% 60%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%),
    repeating-linear-gradient(
      0deg,
      color-mix(in srgb, var(--card) 70%, var(--bg)),
      color-mix(in srgb, var(--card) 70%, var(--bg)) 14px,
      color-mix(in srgb, var(--card) 55%, var(--bg)) 14px,
      color-mix(in srgb, var(--card) 55%, var(--bg)) 16px
    ),
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--card) 70%, var(--bg)),
      color-mix(in srgb, var(--card) 70%, var(--bg)) 14px,
      color-mix(in srgb, var(--card) 55%, var(--bg)) 14px,
      color-mix(in srgb, var(--card) 55%, var(--bg)) 16px
    );
  position: relative;
}
.chat-pin {
  position: absolute;
  left: 40%;
  top: 60%;
  width: 1rem;
  height: 1rem;
  border-radius: 50% 50% 50% 0;
  background: var(--danger);
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.chat-pin::after {
  content: '';
  position: absolute;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--card);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.chat-map-meta {
  padding: 0.6rem 0.8rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.chat-map-title { font-weight: 600; font-size: 0.9rem; }
.chat-map-sub { color: var(--muted); font-size: 0.78rem; }
.chat-location .chat-time {
  padding: 0 0.8rem 0.5rem;
}

.alert-demo.in-view .chat-bubble {
  opacity: 1;
  transform: translateY(0);
}
.alert-demo.in-view .chat-bubble.chat-text { transition-delay: 0.25s; }
.alert-demo.in-view .chat-bubble.chat-location { transition-delay: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  .chat-bubble { transition: none; opacity: 1; transform: none; }
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: left;
}
.steps-list > li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.steps-num {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}
.steps-body h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.steps-body p { margin: 0; color: var(--muted); }

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.gate form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.gate input[type="password"] {
  padding: 0.9rem 1rem;
  font-size: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
}
.gate button {
  padding: 0.9rem 1rem;
  font-size: 1rem;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.gate .error { color: var(--danger); font-size: 0.9rem; min-height: 1.25rem; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  color: inherit;
}
.card:hover { text-decoration: none; border-color: var(--accent); }
.card .thumb {
  aspect-ratio: 1/1;
  width: 100%;
  background: var(--photo-bg) center/cover no-repeat;
  display: block;
}
.card .meta { padding: 0.75rem 1rem; }
.card .species { font-weight: 600; }
.card .sub { color: var(--muted); font-size: 0.85rem; }

article.trophy .title {
  text-align: center;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}
article.trophy .title .species {
  margin: 0 0 0.25rem;
  font-size: 1.8rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
article.trophy .title .scientific {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.trophy-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0 1rem;
}
.trophy-actions:empty { display: none; }

.trophy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}
.trophy-btn:hover { background: var(--card); }
.trophy-btn svg {
  width: 1rem;
  height: 1rem;
  display: block;
  flex-shrink: 0;
}

article.trophy .byline {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.25rem auto 0;
  padding: 0 1rem;
}

article.trophy .description {
  text-align: center;
  max-width: 36rem;
  margin: 1rem auto 0;
  padding: 0 1rem;
}
article.trophy .description p:first-child { margin-top: 0; }
article.trophy .description p:last-child { margin-bottom: 0; }

.modal {
  border: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
}
.modal-close {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top));
  right: 0.75rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.modal-close svg { width: 1.1rem; height: 1.1rem; display: block; }

.modal-photo {
  background: #000;
}
.modal-photo .photo {
  width: 100vw;
  height: 100dvh;
  object-fit: contain;
  display: block;
  max-height: none;
  background: #000;
}

.modal-map .map-wrap {
  width: 100vw;
  height: 100dvh;
  margin: 0;
  border-radius: 0;
  max-height: none;
  position: relative;
}
.modal-map .map {
  width: 100%;
  height: 100%;
}

.map-wrap {
  margin: 0.75rem 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  flex: 1 1 0;
  min-height: 0;
  max-height: 35dvh;
  position: relative;
}
.map {
  width: 100%;
  height: 100%;
}

.map .leaflet-tile-pane {
  filter: saturate(0.75) brightness(0.85) contrast(0.95);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .map .leaflet-tile-pane {
    filter: saturate(0.7) brightness(1) contrast(0.92);
  }
}
:root[data-theme="light"] .map .leaflet-tile-pane {
  filter: saturate(0.7) brightness(1) contrast(0.92);
}

.empty, .loading {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
}

.back {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem 1rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex: 0 0 auto;
}
body.trophy .site-footer {
  padding: 0.75rem 1rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.map-wrap {
  position: relative;
}

.attrib {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.attrib:hover { opacity: 0.7; }

.attrib-map {
  position: absolute;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  right: 0.75rem;
  z-index: 500;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.attrib-map .attrib-text {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  left: auto;
  right: 0;
  transform: none;
}
.attrib-icon {
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
}
.attrib-text {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
  max-width: min(80vw, 22rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1000;
}
.attrib:hover .attrib-text,
.attrib:focus .attrib-text,
.attrib:focus-visible .attrib-text {
  opacity: 1;
}
