:root {
  --cribzer-ink: #17211b;
  --cribzer-green: #1e4d3a;
  --cribzer-deep: #102e24;
  --cribzer-mint: #bbeed3;
  --cribzer-coral: #f05a28;
  --cribzer-gold: #f5a623;
  --cribzer-paper: #fbf9f5;
  --cribzer-cloud: #f5f3ef;
  --cribzer-line: #d9ded8;
  --cribzer-muted: #68756d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--cribzer-ink);
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--cribzer-mint);
  color: #002115;
}

a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(245, 166, 35, 0.72);
  outline-offset: 3px;
}

.cribzer-home-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(30, 77, 58, 0.92) !important;
}

.cribzer-home-hero {
  background:
    linear-gradient(135deg, rgba(16, 46, 36, 0.98), rgba(30, 77, 58, 0.96) 58%, rgba(68, 41, 0, 0.88)),
    #1e4d3a !important;
}

.cribzer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(187, 238, 211, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  color: #d6f8e5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cribzer-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.cribzer-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(245, 166, 35, 0.85);
  pointer-events: none;
}

.cribzer-search {
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.cribzer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.cribzer-property-card {
  border-radius: 14px !important;
}

.cribzer-property-card:hover {
  box-shadow: 0 26px 55px rgba(30, 77, 58, 0.14);
}

.cribzer-lift-card {
  border: 1px solid rgba(192, 201, 194, 0.48);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(30, 77, 58, 0.08);
}

[data-page="journey"] .choice span {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(30, 77, 58, 0.04);
}

[data-page="journey"] .choice input:checked + span {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #bbeed3, #ffddb4);
}

[data-page="journey"] main > aside {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(30, 77, 58, 1), rgba(16, 46, 36, 1) 58%, rgba(96, 61, 0, 0.88)) !important;
  box-shadow: 0 24px 64px rgba(30, 77, 58, 0.18);
}

[data-page="journey"] main > section {
  border-radius: 18px !important;
}

[data-page="discover"] {
  background:
    linear-gradient(135deg, #111110, #102e24 56%, #211807) !important;
}

[data-page="discover"] .discover-stage {
  isolation: isolate;
}

[data-page="discover"] .discover-actions button {
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

[data-page="discover"] .cribzer-swipe-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.guide-note,
.guide-human-note {
  border: 1px solid rgba(240, 90, 40, 0.18);
  border-radius: 14px;
  background: #fff8f2;
  padding: 18px 20px;
  color: #563326;
}

.guide-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
  color: var(--cribzer-muted);
  font-size: 14px;
  font-weight: 700;
}

.guide-byline span {
  border: 1px solid var(--cribzer-line);
  border-radius: 999px;
  background: white;
  padding: 7px 11px;
}

@media (max-width: 900px) {
  .cribzer-home-header {
    position: relative;
  }

  .cribzer-home-header nav {
    gap: 10px;
  }

  .cribzer-home-hero {
    min-height: auto !important;
    padding: 46px 20px 36px !important;
  }

  .cribzer-home-hero h1 {
    font-size: clamp(42px, 13vw, 62px) !important;
  }

  .cribzer-search {
    flex-direction: column;
    align-items: stretch !important;
    border-radius: 16px !important;
  }

  .cribzer-search button {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .cribzer-home-header {
    padding: 18px 20px !important;
  }

  .cribzer-home-header nav {
    display: none !important;
  }

  .cribzer-home-hero .max-w-7xl {
    gap: 28px !important;
  }

  .cribzer-home-hero p {
    font-size: 17px !important;
  }

  [data-page="journey"] main {
    padding: 18px 14px 28px !important;
  }

  [data-page="journey"] main > aside {
    border-radius: 18px !important;
    padding: 22px !important;
  }

  [data-page="journey"] main > section {
    padding: 18px !important;
  }

  [data-page="journey"] h1,
  [data-page="journey"] h2 {
    overflow-wrap: anywhere;
  }

  .guide-byline {
    gap: 8px;
  }
}
