:root {
  --ink: #1f2322;
  --muted: #6f746f;
  --line: rgba(31, 35, 34, 0.12);
  --lime: #ddff52;
  --cream: #f6f5ef;
  --glass: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  background:
    radial-gradient(circle at top left, rgba(221, 255, 82, 0.18), transparent 34rem),
    linear-gradient(180deg, #eef1ef 0%, var(--cream) 42%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
  padding: 18px clamp(14px, 5vw, 72px) 0;
  max-width: 100%;
  overflow-x: clip;
}

.floating-nav {
  position: sticky;
  top: 18px;
  z-index: 40;
  margin: 0 auto;
  width: min(1180px, 100%);
  max-width: 1180px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
}

.nav-link {
  border-radius: 999px;
  padding: 10px 14px;
  color: #242827;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  background: #f0f1ed;
}

.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hamburger-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 999px;
  background: #f5f5f2;
}

.hamburger-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.icon-button,
.arrow-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f5f5f2;
  color: var(--ink);
}

.arrow-dot {
  background: var(--ink);
  color: #fff;
}

.hero-wrap {
  margin: 18px auto 0;
  width: min(1180px, 100%);
  max-width: 1180px;
  overflow: hidden;
  border-radius: 34px;
  min-height: clamp(680px, 86vh, 820px);
  position: relative;
  background:
    linear-gradient(90deg, rgba(14, 20, 18, 0.72), rgba(14, 20, 18, 0.22) 52%, rgba(14, 20, 18, 0.08)),
    linear-gradient(0deg, rgba(17, 23, 18, 0.45), rgba(17, 23, 18, 0)),
    url("https://images.unsplash.com/photo-1535131749006-b7f58c99034b?auto=format&fit=crop&w=1800&q=85") center / cover;
}

.hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  bottom: clamp(34px, 7vw, 76px);
  max-width: 720px;
  color: #fff;
}

.kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--lime);
  color: #1f2519;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 22px;
  max-width: 780px;
  font-size: clamp(56px, 9vw, 96px);
  line-height: 0.96;
  font-weight: 850;
}

.hero-copy {
  margin-top: 22px;
  max-width: 570px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  padding: 8px 10px 8px 20px;
  min-height: 52px;
  font-weight: 800;
}

.pill-cta.primary {
  background: #fff;
  color: var(--ink);
}

.pill-cta.lesson-submit {
  background: #8fd36b;
  color: #111513;
}

.pill-cta.lesson-submit .mini-arrow {
  background: var(--lime);
  color: #111513;
}

.pill-cta.lesson-submit:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.pill-cta.secondary {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(14px);
}

.pill-cta .mini-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
}

.pill-cta.secondary .mini-arrow {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.google-login-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 12px 22px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.page-image-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  max-height: 360px;
}

.page-image-frame picture,
.page-image-frame img {
  display: block;
  width: 100%;
}

.page-image-frame img {
  height: clamp(220px, 28vw, 360px);
  object-fit: cover;
}

.session-card {
  position: absolute;
  top: clamp(34px, 8vw, 86px);
  right: clamp(18px, 5vw, 58px);
  width: min(310px, calc(100% - 36px));
  border-radius: 26px;
  background: rgba(238, 241, 238, 0.78);
  padding: 18px;
  backdrop-filter: blur(22px);
}

.session-line {
  height: 2px;
  width: 24px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(31, 35, 34, 0.22);
}

.lesson-tile {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px 16px 0;
}

.lesson-ruler {
  height: 22px;
  margin: 12px -16px 0;
  opacity: 0.2;
  background: repeating-linear-gradient(90deg, #1f2322 0 1px, transparent 1px 7px);
}

.member-stack {
  position: absolute;
  right: clamp(24px, 10vw, 150px);
  bottom: clamp(54px, 11vw, 100px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.avatar-row {
  display: flex;
}

.avatar-row img {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 999px;
  object-fit: cover;
  background: #c8c2a5;
}

.avatar-row img:first-child {
  margin-left: 0;
}

.tab-pill {
  display: inline-flex;
  border-radius: 999px;
  background: #f1f1ee;
  padding: 7px 17px;
  font-size: 14px;
}

.tab-pill.active {
  background: var(--lime);
  font-weight: 800;
}

.story-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 0 72px;
  clear: both;
}

.content-band {
  clear: both;
  max-width: 100%;
  overflow-x: clip;
}

.osm-map {
  height: min(560px, 68vh);
  min-height: 380px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  z-index: 1;
}

.osm-map.compact {
  height: 360px;
  min-height: 320px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 14px;
}

.story-card,
.feature-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

table {
  border-collapse: collapse;
}

.mobile-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-footer input {
  max-width: 100%;
}

.footer-links a {
  padding: 2px 0;
}

.feature-card {
  min-height: 190px;
  transition: border-color 160ms ease, background 160ms ease;
}

.feature-card:hover {
  border-color: rgba(31, 35, 34, 0.2);
}

.blog-body {
  color: #334155;
  font-size: 17px;
  line-height: 1.75;
}

.blog-body h2 {
  margin-top: 2.2rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.08;
  font-weight: 900;
}

.blog-body h2:first-child {
  margin-top: 0;
}

.blog-body h3 {
  margin-top: 1.4rem;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 900;
}

.blog-body p,
.blog-body ul,
.blog-body ol,
.blog-body table {
  margin-top: 1rem;
}

.blog-body ul,
.blog-body ol {
  padding-left: 1.3rem;
}

.blog-body ul {
  list-style: disc;
}

.blog-body ol {
  list-style: decimal;
}

.blog-body li {
  margin-top: 0.45rem;
}

.blog-body a {
  color: #047857;
  font-weight: 700;
}

.blog-body table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-size: 0.95rem;
}

.blog-body th,
.blog-body td {
  border-bottom: 1px solid rgba(31, 35, 34, 0.1);
  padding: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.blog-body tr:last-child th,
.blog-body tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 860px) {
  main,
  section,
  article,
  aside,
  div {
    min-width: 0;
  }

  .site-shell {
    padding-top: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .floating-nav {
    top: 10px;
    width: calc(100vw - 24px);
    border-radius: 26px;
  }

  .site-nav {
    align-items: center;
  }

  .hamburger-button {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
  }

  .nav-link,
  .nav-actions .pill-cta {
    width: 100%;
    justify-content: space-between;
  }

  .icon-button {
    display: none !important;
  }

  .hero-wrap {
    display: flex;
    min-height: auto;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    border-radius: 26px;
    background-position: 58% center;
  }

  .session-card {
    position: relative;
    top: auto;
    right: auto;
    order: 1;
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
  }

  .lesson-tile {
    padding: 14px 14px 0;
  }

  .hero-content {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    order: 2;
    max-width: none;
    padding: 8px 0 4px;
  }

  .member-stack {
    display: none;
  }

  .story-section {
    padding-bottom: 48px;
  }

  .hero-title {
    margin-top: 16px;
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1;
    max-width: 100%;
  }

  .hero-copy {
    margin-top: 18px;
    max-width: none;
    font-size: 16px;
    line-height: 1.24;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .story-card,
  .feature-card {
    border-radius: 18px;
  }

  [class*="md:grid-cols"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [class*="md:col-span"] {
    grid-column: auto !important;
  }

  img,
  svg,
  canvas,
  iframe {
    max-width: 100%;
  }

  .page-image-frame {
    border-radius: 22px;
    max-height: 300px;
  }

  .page-image-frame img {
    height: clamp(180px, 42vw, 300px);
  }

  .story-card {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .story-card h1,
  .story-card h2,
  .story-card h3,
  .feature-card h1,
  .feature-card h2,
  .feature-card h3 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .story-card h2.text-4xl,
  .story-card h2.text-5xl,
  .feature-card h2.text-4xl,
  .feature-card h2.text-5xl {
    font-size: clamp(2rem, 10vw, 2.65rem) !important;
    line-height: 1.04 !important;
  }

  .story-card h2.text-3xl,
  .feature-card h2.text-3xl {
    font-size: clamp(1.75rem, 8vw, 2.15rem) !important;
    line-height: 1.08 !important;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    min-width: 120px;
  }

  .mobile-table-scroll table {
    display: table;
    min-width: 620px;
  }

  .osm-map {
    min-height: 320px;
  }

  .site-footer {
    margin-top: 42px;
  }

  .footer-grid {
    gap: 26px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .footer-brand {
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }

  .footer-form,
  .footer-email-row {
    width: 100%;
  }

  .footer-email-row {
    align-items: stretch;
  }

  .footer-email-row .icon-button {
    display: inline-flex !important;
    flex: 0 0 48px;
    height: auto;
    min-height: 48px;
  }

  .footer-links {
    border-bottom: 1px solid rgba(31, 35, 34, 0.08);
    padding-bottom: 18px;
  }

  .footer-links a {
    min-height: 34px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .site-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-wrap {
    min-height: auto;
    padding: 16px;
  }

  .page-image-frame {
    border-radius: 18px;
    max-height: 220px;
  }

  .page-image-frame img {
    height: 210px;
  }

  .session-card {
    width: 100%;
    margin: 0;
  }

  .session-card .space-y-3 .lesson-tile + .lesson-tile {
    display: none;
  }

  .kicker {
    font-size: 12px;
    padding: 7px 14px;
  }

  .hero-title {
    font-size: clamp(40px, 12vw, 52px);
  }

  .hero-actions,
  .pill-cta {
    width: 100%;
  }

  .pill-cta {
    justify-content: space-between;
  }

  .footer-email-row {
    flex-direction: column;
  }

  .footer-email-row .icon-button {
    width: 100%;
    border-radius: 18px;
  }
}
