:root {
  --cream: #fef9f3;
  --coral: #ff6b6b;
  --coral-soft: #ff8e8e;
  --mustard: #ffc93c;
  --mint: #6bcb77;
  --sky: #4d96ff;
  --grape: #9b59b6;
  --ink: #2d3436;
  --ink-soft: #636e72;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(45, 52, 54, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Bubbles / blobs background */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.blob-1 { width: 400px; height: 400px; background: var(--mustard); top: -100px; right: -80px; }
.blob-2 { width: 320px; height: 320px; background: var(--coral-soft); bottom: 10%; left: -100px; }
.blob-3 { width: 280px; height: 280px; background: var(--mint); bottom: -80px; right: 15%; opacity: 0.4; }

.wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.logo {
  font-family: Fredoka, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--coral), var(--mustard));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--coral);
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}
.hero h1 {
  font-family: Fredoka, sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 18ch;
  margin: 0 auto 1rem;
}
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--coral), var(--mustard));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 auto 2rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-soft));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
}
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

/* Activity pills preview */
.activity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.pill {
  font-family: Fredoka, sans-serif;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
a.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 52, 54, 0.12);
}
.pill:nth-child(1) { border-left: 4px solid var(--coral); }
.pill:nth-child(2) { border-left: 4px solid var(--mustard); }
.pill:nth-child(3) { border-left: 4px solid var(--mint); }
.pill:nth-child(4) { border-left: 4px solid var(--sky); }
.pill:nth-child(5) { border-left: 4px solid var(--grape); }
.pill:nth-child(6) { border-left: 4px solid #27ae60; }

/* Features strip */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.feature-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(45, 52, 54, 0.12);
}
.feature-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.feature-card:nth-child(1) .icon { background: #ffe0e0; }
.feature-card:nth-child(2) .icon { background: #fff4d6; }
.feature-card:nth-child(3) .icon { background: #d6f0e0; }
.feature-card h3 {
  font-family: Fredoka, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(45, 52, 54, 0.08);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer a {
  color: var(--coral);
  text-decoration: none;
}

/* Inner pages (subpages with title + content) */
.page-header {
  text-align: center;
  padding: 2rem 0 2.5rem;
}
.page-header h1 {
  font-family: Fredoka, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 auto;
}
.page-content {
  max-width: 65ch;
  margin: 0 auto;
}
.page-content h2 {
  font-family: Fredoka, sans-serif;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}
.page-content h2:first-child {
  margin-top: 0;
}
.page-content h3 {
  font-family: Fredoka, sans-serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}
.page-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--ink-soft);
}
.page-content li {
  margin-bottom: 0.35rem;
}
.page-content p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.page-content a {
  color: var(--coral);
  text-decoration: none;
}
.page-content a:hover {
  text-decoration: underline;
}

/* NPS API section (national parks page) */
.nps-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(45, 52, 54, 0.1);
}

.nps-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nps-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nps-filter-group--wide {
  min-width: 200px;
}

.nps-filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.nps-select,
.nps-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(45, 52, 54, 0.2);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  min-width: 140px;
}

.nps-input {
  min-width: 220px;
}

.nps-select:focus,
.nps-input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.nps-status {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  min-height: 1.5em;
}

.nps-status--key {
  color: var(--ink-soft);
}

.nps-status--loading {
  color: var(--ink-soft);
  font-style: italic;
}

.nps-status--empty {
  color: var(--ink-soft);
}

.nps-status--error {
  color: #c0392b;
}

.nps-results {
  display: grid;
  gap: 1.25rem;
}

.nps-card {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid #27ae60;
}

.nps-card__title {
  font-family: Fredoka, sans-serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.nps-card__states {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.95em;
}

.nps-card__desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.nps-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--coral);
  text-decoration: none;
}

.nps-card__link:hover {
  text-decoration: underline;
}

.nps-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.nps-pagination__info {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.nps-pagination__btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.nps-section-title {
  font-family: Fredoka, sans-serif;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.nps-section-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.nps-activities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.nps-activity-item {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--white);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  border-left: 3px solid #27ae60;
}

/* API response viewer */
.nps-response-panel .nps-section-desc code {
  font-size: 0.9em;
  padding: 0.15rem 0.4rem;
  background: rgba(45, 52, 54, 0.08);
  border-radius: 4px;
}

.nps-response-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nps-response-tab {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(45, 52, 54, 0.2);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.nps-response-tab:hover {
  color: var(--ink);
  border-color: rgba(45, 52, 54, 0.35);
}

.nps-response-tab.is-active {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(255, 107, 107, 0.08);
}

.nps-response-content {
  background: #2d3436;
  border-radius: var(--radius-sm);
  overflow: auto;
  max-height: 400px;
}

.nps-response-json {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #dfe6e9;
}

.nps-response-json code {
  font-family: ui-monospace, monospace;
  white-space: pre;
  word-break: break-all;
}

/* Include error (header/footer failed to load) */
.include-error {
  padding: 1rem;
  background: #ffe0e0;
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
