:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5f6f6b;
  --soft: #F6F3FF;
  --paper: #fffefb;
  --line: #E2DCFF;
  --mint: #5A46F0;
  --mint-dark: #2F247A;
  --coral: #ee725f;
  --blue: #4f86cf;
  --gold: #d99b37;
  --shadow: 0 24px 70px rgba(47, 36, 122, 0.16);
  --warm: #fff8ef;
  --warm-line: #eadfd2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid rgba(226, 220, 255, 0.9);
  box-shadow: 0 8px 24px rgba(47, 36, 122, 0.08);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  background: var(--paper);
  border-bottom-color: rgba(226, 220, 255, 0.95);
}

.brand,
.site-nav,
.hero-actions,
.hero-points,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(90, 70, 240, 0.28);
}

.site-nav {
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 0.94rem;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a {
  color: var(--ink);
}

.site-nav a,
.header-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.header-cta {
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(90, 70, 240, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: var(--mint-dark);
  font-weight: 760;
}

.page-breadcrumb {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.page-breadcrumb a {
  color: var(--muted);
}

.page-breadcrumb span {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: start;
  overflow: hidden;
  padding: 124px clamp(20px, 6vw, 96px) 68px;
  background:
    radial-gradient(circle at 82% 18%, rgba(90, 70, 240, 0.16), transparent 34%),
    linear-gradient(135deg, var(--warm) 0%, #fffefb 58%, #f4f1ff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(20px, 7vw, 120px);
  bottom: clamp(32px, 8vw, 110px);
  width: min(30vw, 310px);
  aspect-ratio: 1;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 243, 255, 0.72)),
    url("/dropsub-logo-512.png") center / 70% auto no-repeat;
  border: 1px solid rgba(90, 70, 240, 0.16);
  box-shadow: var(--shadow);
  opacity: 0.94;
}

.hero-content {
  max-width: 720px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: var(--muted);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  text-align: center;
}

.button-primary {
  background: var(--mint);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(90, 70, 240, 0.22);
}

.button-secondary {
  color: var(--mint-dark);
  border: 1px solid rgba(90, 70, 240, 0.32);
  background: rgba(255, 255, 255, 0.64);
}

.hero-points,
.check-list {
  list-style: none;
  padding: 0;
}

.hero-points {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 640px;
  margin: 0;
  color: var(--ink);
}

.hero-points li,
.check-list li {
  position: relative;
  padding-left: 24px;
}

.hero-points li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--mint);
}

.intro-band,
.section,
.split-section,
.privacy-band,
.launch-section {
  padding: clamp(56px, 9vw, 110px) clamp(20px, 6vw, 96px);
}

.site-header + main > .section:first-child,
.site-header + main > .privacy-band:first-child {
  padding-top: clamp(112px, 12vw, 140px);
}

.intro-band {
  background: #17211f;
  color: #f6fff9;
}

.intro-band p {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2.3rem);
  line-height: 1.18;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature-card p,
.split-section p,
.privacy-band p,
.launch-section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.feature-dot {
  display: block;
  width: 16px;
  height: 16px;
  margin-bottom: 44px;
  border-radius: 99px;
}

.feature-dot.mint {
  background: var(--mint);
}

.feature-dot.coral {
  background: var(--coral);
}

.feature-dot.blue {
  background: var(--blue);
}

.feature-dot.gold {
  background: var(--gold);
}

.problems-section {
  background: #ffffff;
}

.problem-grid,
.plain-columns,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plain-columns {
  gap: clamp(22px, 4vw, 42px);
}

.plain-columns h3 {
  color: var(--mint-dark);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--muted);
}

.problem-card,
.faq-list article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.problem-card p,
.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 7vw, 94px);
  align-items: start;
  background: var(--soft);
}

.coach-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coach-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.coach-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ffd8d1;
  color: #6d1f14;
  font-weight: 900;
}

.coach-steps p {
  margin: 0;
}

.guides-section {
  background: var(--paper);
}

.guides-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: end;
}

.guide-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.guide-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.guide-stats dt {
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 900;
}

.guide-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-transform: uppercase;
}

.guide-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.guide-search {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.guide-search:focus {
  outline: 2px solid rgba(84, 199, 162, 0.45);
  outline-offset: 2px;
}

.difficulty-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.filter-button.is-active {
  border-color: var(--mint-dark);
  background: var(--mint);
  color: #ffffff;
}

.guide-result-count {
  min-height: 24px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 720;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-card {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.guide-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.guide-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.difficulty-pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.difficulty-pill.easy {
  background: rgba(84, 199, 162, 0.18);
  color: var(--mint-dark);
}

.difficulty-pill.medium {
  background: #fff0d8;
  color: #8a5b0f;
}

.difficulty-pill.hard {
  background: #ffd8d1;
  color: #6d1f14;
}

.guide-meta {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-meta div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(216, 229, 223, 0.7);
  padding-bottom: 4px;
}

.guide-meta dt {
  font-weight: 760;
}

.guide-meta dd {
  margin: 0;
  text-align: right;
}

.guide-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-flag {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.guide-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 720;
  text-align: center;
}

.guide-shell {
  display: grid;
  gap: 18px;
}

.guide-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.guide-clear-button,
.guide-reset-button,
.category-button,
.featured-guide-button,
.guide-action {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.guide-clear-button {
  padding: 0 14px;
}

.guide-category-row,
.featured-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-button,
.featured-guide-button {
  padding: 0 12px;
}

.category-button span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.category-button.is-active,
.featured-guide-button:hover,
.guide-action.primary,
.guide-action.secondary:hover {
  border-color: var(--mint-dark);
  background: var(--mint);
  color: #ffffff;
}

.featured-guides {
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.featured-guides span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  text-transform: uppercase;
}

.region-browser {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.region-browser-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 18px;
  align-items: start;
}

.region-browser h3,
.region-browser h4,
.region-browser p {
  margin: 0;
}

.region-browser p {
  color: var(--muted);
}

.region-detail {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(84, 199, 162, 0.35);
  border-radius: 8px;
  background: var(--soft);
}

.region-meta {
  display: grid;
  gap: 6px;
  margin: 0;
}

.region-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(226, 220, 255, 0.9);
}

.region-meta dt {
  color: var(--muted);
  font-weight: 760;
}

.region-meta dd {
  margin: 0;
  font-weight: 900;
}

.region-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.region-button {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.region-button span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.region-button strong {
  font-size: 1.05rem;
}

.region-button.is-active,
.region-button:hover {
  border-color: var(--mint-dark);
  background: var(--mint);
  color: #ffffff;
}

.region-button.is-active span,
.region-button:hover span {
  color: #ffffff;
}

.guide-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guide-status-row .guide-result-count {
  margin: 0;
}

.guide-reset-button {
  padding: 0 12px;
}

.guide-reset-button[hidden] {
  display: none;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.guide-detail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #102723;
  color: #f8fffc;
  box-shadow: var(--shadow);
}

.guide-detail h3,
.guide-detail p {
  margin: 0;
}

.guide-detail p:not(.eyebrow) {
  color: rgba(248, 255, 252, 0.78);
}

.guide-detail-topline,
.guide-actions,
.guide-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.guide-detail-topline {
  color: rgba(248, 255, 252, 0.78);
  font-weight: 780;
}

.guide-detail-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.guide-detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(248, 255, 252, 0.16);
}

.guide-detail-meta dt {
  color: rgba(248, 255, 252, 0.62);
  font-weight: 760;
}

.guide-detail-meta dd {
  margin: 0;
  text-align: right;
  font-weight: 850;
}

.guide-detail .guide-flag {
  border-color: rgba(248, 255, 252, 0.22);
  color: rgba(248, 255, 252, 0.76);
}

.guide-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
}

.guide-action.primary {
  box-shadow: 0 12px 28px rgba(84, 199, 162, 0.18);
}

.guide-action.secondary {
  color: var(--ink);
}

.guide-action.muted {
  cursor: default;
  color: var(--muted);
  background: var(--soft);
}

.guide-detail .guide-action.secondary {
  border-color: rgba(248, 255, 252, 0.28);
  color: #f8fffc;
  background: transparent;
}

.guide-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guide-card:hover,
.guide-card.is-selected {
  border-color: rgba(18, 107, 88, 0.5);
  box-shadow: 0 16px 44px rgba(22, 42, 38, 0.12);
  transform: translateY(-1px);
}

.guide-category {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
  background: #fff8ea;
}

.privacy-band .eyebrow {
  color: #8a5b0f;
}

.launch-section {
  text-align: center;
}

.launch-section h2,
.launch-section p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.launch-section .button {
  margin-top: 8px;
}

.faq-section {
  background: var(--soft);
}

.faq-list article {
  background: #ffffff;
}

.site-footer {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-header {
    position: fixed;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    min-height: 0;
    padding: 10px 16px 12px;
  }

  .site-nav {
    display: flex;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-top: 142px;
    padding-bottom: 54px;
  }

  .hero::after {
    width: min(42vw, 240px);
    right: 20px;
    bottom: 26px;
    opacity: 0.28;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3.1rem);
    line-height: 1.08;
  }

  .feature-grid,
  .problem-grid,
  .plain-columns,
  .faq-list,
  .split-section,
  .privacy-band,
  .guides-heading,
  .region-browser-header,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-detail {
    position: static;
  }

  .guide-controls {
    grid-template-columns: 1fr;
  }

  .difficulty-filters {
    justify-content: flex-start;
  }

  .region-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 134px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero::after {
    display: none;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-dot {
    margin-bottom: 26px;
  }

  .guide-stats,
  .guide-list,
  .region-list {
    grid-template-columns: 1fr;
  }

  .guide-search-wrap,
  .guide-status-row {
    grid-template-columns: 1fr;
  }

  .guide-clear-button,
  .guide-reset-button {
    width: 100%;
  }

  .filter-button {
    flex: 1 1 calc(50% - 8px);
  }

  .category-button,
  .featured-guide-button {
    flex: 1 1 calc(50% - 8px);
  }
}

/* Contrast guard: keep the first viewport readable even if older theme rules are cached above. */
body .site-header,
body .site-header.is-scrolled {
  background: #fffefb !important;
  color: #17211f !important;
  border-bottom-color: #E2DCFF !important;
}

body .brand,
body .site-nav a,
body .header-cta,
body .hero,
body .hero-content,
body .hero h1,
body .hero-copy,
body .hero-points {
  color: #17211f !important;
}

body .hero h1 {
  max-width: 720px !important;
  font-size: clamp(2.1rem, 4vw, 3.9rem) !important;
  line-height: 1.08 !important;
}

@media (max-width: 520px) {
  body .hero h1 {
    font-size: clamp(2rem, 9vw, 2.55rem) !important;
  }
}
