:root {
  --bg: #f6efe4;
  --bg-strong: #fffaf2;
  --panel: rgba(255, 250, 242, 0.78);
  --panel-strong: rgba(255, 252, 246, 0.94);
  --text: #1e2c2b;
  --muted: #5b6b68;
  --shadow: 0 24px 60px rgba(44, 49, 46, 0.12);
  --brand: #0f766e;
  --brand-2: #ff8c42;
  --brand-3: #ffd166;
  --container: 1180px;
  --radius-xl: 28px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.35), transparent 28%),
    radial-gradient(circle at right 10% top 20%, rgba(15, 118, 110, 0.18), transparent 26%),
    linear-gradient(180deg, #f8f1e6 0%, #f5ede0 48%, #efe7db 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}
a { color: inherit; }
button, a.button { font: inherit; }

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
}

.topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.brand-chip, .status-chip, .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(36,42,39,0.08);
  color: var(--muted);
  font-size: 0.92rem;
}
.brand-chip::before, .status-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #29b2a6);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}
.brand-chip strong, .status-chip strong { color: var(--text); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255,209,102,0.28), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,249,240,0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -6% -28% auto;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,118,110,0.18), transparent 70%);
}

.hero-grid,
.section-grid,
.map-layout,
.detail-layout {
  position: relative;
  display: grid;
  gap: 24px;
  z-index: 1;
}
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr); }
.section-grid, .map-layout, .detail-layout { margin-top: 24px; grid-template-columns: minmax(0,1fr) minmax(0,360px); }

.hero-copy, .stack, .detail-header { display: grid; gap: 14px; }
.intro-copy {
  display: grid;
  gap: 14px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), rgba(15,118,110,0.1));
}

.hero h1, .detail-header h1, .map-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 4vw, 4rem);
}
.lead, .detail-summary, .map-copy p, .hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: clamp(0.98rem, 1.5vw, 1.04rem);
}

.hero-actions, .detail-actions, .map-actions, .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary {
  color: #fffaf5;
  background: linear-gradient(135deg, #0f766e, #16978d);
  box-shadow: 0 14px 30px rgba(15,118,110,0.22);
}
.button-secondary {
    color: var(--text);
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(30,44,43,0.09);
  }
.button-secondary.is-active {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 12px 22px rgba(15,118,110,0.12);
  }
.button-map {
    color: #0f4c5c;
    background: linear-gradient(135deg, #e1f5f9, #c7edf4);
    border: 1px solid rgba(15, 118, 110, 0.18);
    box-shadow: 0 12px 26px rgba(15, 76, 92, 0.14);
  }
.button-map:hover, .button-map:focus-visible {
    box-shadow: 0 16px 30px rgba(15, 76, 92, 0.2);
  }
.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #0f766e;
    font-size: 1rem;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
    flex-shrink: 0;
  }
.button-ghost {
  color: var(--brand);
  background: rgba(15,118,110,0.08);
}

.hero-panel, .info-card, .warning-card, .detail-card, .cta-card, .image-card, .tip-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,252,246,0.94);
    box-shadow: 0 16px 40px rgba(45,49,47,0.08);
  }
.hero-panel { display: grid; gap: 16px; }
.page-footer-cta {
    margin-top: 24px;
  }
.page-footer-cta .cta-card {
    display: grid;
    gap: 14px;
  }
.page-footer-cta h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.65rem, 3.2vw, 2.25rem);
    line-height: 1.05;
  }
.page-footer-cta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
  }
  .warning-card { background: linear-gradient(180deg, rgba(255,248,229,0.96), rgba(255,243,219,0.92)); }
.cta-card {
  background:
    radial-gradient(circle at top right, rgba(255,209,102,0.24), transparent 24%),
    linear-gradient(135deg, rgba(15,118,110,0.08), rgba(255,255,255,0.92));
}
.cta-card-quiet {
  background: rgba(255,252,246,0.86);
  box-shadow: 0 14px 32px rgba(45,49,47,0.06);
}
.cta-card-quiet p {
  max-width: 54ch;
}

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(30,44,43,0.06);
}
.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
  font-family: "Space Grotesk", sans-serif;
}
.metric span { color: var(--muted); font-size: 0.9rem; }

.signal-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.signal-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.signal-list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transform: translateY(-50%);
}

.info-card h2, .warning-card h2, .detail-card h2, .cta-card h2, .image-card h2, .tip-card h2, .map-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-family: "Space Grotesk", sans-serif;
}
.warning-card ul, .tip-card ul, .seo-copy ul, .link-cluster ul {
  margin: 0;
  padding-left: 18px;
}
.warning-card li, .tip-card li, .tip-card p, .cta-card p, .detail-card p, .seo-copy p, .seo-copy li, .link-cluster li {
  color: var(--muted);
  line-height: 1.7;
}

.seo-copy {
  display: grid;
  gap: 14px;
}

.seo-copy h2,
.seo-copy h3,
.link-cluster h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.seo-copy p,
.seo-copy ul,
.seo-copy ol {
  margin: 0;
}

.rich-text {
  display: grid;
  gap: 16px;
}

.link-cluster {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,252,246,0.94);
  box-shadow: 0 16px 40px rgba(45,49,47,0.08);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(30,44,43,0.08);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15,118,110,0.12);
}

.link-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.map-card {
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.58);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,249,241,0.8));
  box-shadow: var(--shadow);
}
.map-stage {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(15,118,110,0.08), transparent 45%), #fff;
  border: 1px solid rgba(30,44,43,0.08);
}
.map-stage img { display: block; width: 100%; height: auto; }

.map-hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 7vw, 54px);
  height: clamp(38px, 7vw, 54px);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), #1cb0a3);
  box-shadow: 0 12px 24px rgba(15,118,110,0.22), 0 0 0 10px rgba(15,118,110,0.12);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: hotspotPulse 2.4s ease-in-out infinite;
}
.map-hotspot span { font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.map-hotspot:hover, .map-hotspot:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 18px 30px rgba(15,118,110,0.28), 0 0 0 14px rgba(15,118,110,0.14);
}
.map-hotspot::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 200px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(30,44,43,0.88);
  color: white;
  font-size: 0.75rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.map-hotspot:hover::after, .map-hotspot:focus-visible::after { opacity: 1; }

.map-callout {
  position: absolute;
  left: 10%;
  top: 10%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,250,242,0.92);
  border: 1px solid rgba(30,44,43,0.08);
  box-shadow: 0 18px 35px rgba(40,46,44,0.12);
  pointer-events: none;
  animation: floatHint 3.2s ease-in-out infinite;
}
.map-callout.hidden { display: none; }
.map-callout strong { display: block; font-size: 0.92rem; }
.map-callout span { color: var(--muted); font-size: 0.8rem; }
.hand-gesture {
  width: 54px;
  height: 54px;
  color: var(--brand);
  filter: drop-shadow(0 12px 18px rgba(15,118,110,0.18));
  animation: handTap 2.8s ease-in-out infinite;
}

.map-list, .media-grid, .step-list { display: grid; gap: 16px; }
.map-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
.map-support {
  margin-top: 10px;
}
.map-support .cta-card {
  gap: 10px;
}
.map-support .eyebrow {
  margin-bottom: -2px;
}

.map-link {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(30,44,43,0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.map-link:hover, .map-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15,118,110,0.12);
}
.map-link-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #15a698);
  font-family: "Space Grotesk", sans-serif;
  justify-self: start;
  align-self: start;
}
.map-link-copy { display: grid; gap: 4px; }
.map-link-copy span { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

.step-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,250,243,0.9));
  border: 1px solid rgba(30,44,43,0.08);
  box-shadow: 0 18px 34px rgba(45,49,47,0.07);
  animation: riseIn 420ms ease both;
}
.step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.step-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.step-index {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), #1ab1a4);
  box-shadow: 0 10px 22px rgba(15,118,110,0.2);
}
.step-card h3 { margin: 0; font-size: 1.06rem; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.72; }
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.step-tag {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(15,118,110,0.08);
  font-size: 0.8rem;
  font-weight: 700;
}

.image-button {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(30,44,43,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.85);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}
.image-button:hover, .image-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(41,48,45,0.11);
}
.image-button img {
  width: 100%;
  display: block;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 180ms ease, transform-origin 180ms ease;
}

.image-button[data-zoomable="true"] img {
  cursor: zoom-in;
}

.image-button[data-zoomable="true"] img.is-zoomed {
  transform: scale(2.2);
  cursor: zoom-out;
}
.image-button strong { font-size: 0.96rem; }
.image-button span { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

.dialog {
  border: 0;
  padding: 0;
  width: min(calc(100% - 24px), 920px);
  border-radius: 24px;
  background: rgba(255,252,247,0.96);
  box-shadow: 0 34px 80px rgba(24,29,27,0.32);
}
.dialog::backdrop {
  background: rgba(15,21,19,0.58);
  backdrop-filter: blur(6px);
}
.dialog-media { background: linear-gradient(180deg, #fdf7eb, #f6ecda); }
.dialog-media img { display: block; width: 100%; height: auto; }
.dialog-copy { display: grid; gap: 12px; padding: 22px; }
.dialog-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.dialog-top h3 { margin: 0; font-family: "Space Grotesk", sans-serif; }
.dialog-copy p { margin: 0; color: var(--muted); line-height: 1.7; }
.close-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(30,44,43,0.06);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
  }
  .close-button::before,
  .close-button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #183432;
    transform-origin: center;
  }
  .close-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .close-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

.tutorial-result .result-actions,
.tutorial-result .result-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tutorial-result .result-panels {
  display: grid;
  gap: 12px;
}

.tutorial-result .result-panel {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(30,44,43,0.08);
}

.tutorial-result .result-panel p {
  margin: 0;
}

.tutorial-result .result-panel-copy {
  max-width: 58ch;
}

.tutorial-result .result-help {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(30,44,43,0.12);
}

.button-subtle {
  min-height: 44px;
  padding: 10px 16px;
  color: var(--muted);
  background: rgba(15,118,110,0.06);
  border: 1px solid rgba(15,118,110,0.12);
  box-shadow: none;
}

.button-subtle.is-active {
  color: var(--brand);
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(15,118,110,0.1);
}

.tutorial-help-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tutorial-help-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
}

.tutorial-help-form span {
  font-size: 0.94rem;
}

.tutorial-help-form input,
.tutorial-help-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(30,44,43,0.12);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  font: inherit;
}

.tutorial-help-form textarea {
  min-height: 130px;
  resize: vertical;
}

.tutorial-help-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.tutorial-form-message {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.94rem;
}

.tutorial-form-message.is-success {
  color: #176a3b;
}

.tutorial-form-message.is-error {
  color: #a13c2f;
}

.compact-header .hero {
  padding-block: clamp(16px, 2.4vw, 24px);
}

.compact-header .topbar {
  margin-bottom: 10px;
}

.compact-header .detail-header,
.compact-header .map-copy,
.compact-header .intro-copy {
  gap: 10px;
}

.compact-header .hero-actions,
.compact-header .map-actions {
  margin-top: 4px;
}

.animate-in { animation: riseIn 520ms ease both; }
.animate-delay-1 { animation-delay: 60ms; }
.animate-delay-2 { animation-delay: 120ms; }
.animate-delay-3 { animation-delay: 180ms; }

@keyframes hotspotPulse {
  0%, 100% { box-shadow: 0 12px 24px rgba(15,118,110,0.22), 0 0 0 10px rgba(15,118,110,0.12); }
  50% { box-shadow: 0 18px 30px rgba(15,118,110,0.28), 0 0 0 16px rgba(15,118,110,0.08); }
}
@keyframes handTap {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  35% { transform: translate3d(18px,12px,0) scale(1.02); }
  45% { transform: translate3d(18px,12px,0) scale(0.9); }
  60% { transform: translate3d(18px,12px,0) scale(1); }
}
@keyframes floatHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero-grid, .section-grid, .map-layout, .detail-layout { grid-template-columns: 1fr; }
  .hero h1, .detail-header h1, .map-copy h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
}
@media (max-width: 760px) {
  .page-shell { width: min(calc(100% - 20px), var(--container)); padding-top: 18px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .brand-chip, .status-chip { justify-content: center; }
  .metric-grid, .map-list, .link-grid { grid-template-columns: 1fr; }
  .hero, .map-card, .hero-panel, .info-card, .warning-card, .detail-card, .cta-card, .image-card, .tip-card, .step-card { padding: 18px; }
  .map-callout { left: 6%; top: auto; right: 6%; bottom: 6%; grid-template-columns: 42px 1fr; }
  .tutorial-result .result-actions,
  .tutorial-result .result-panel-actions {
    flex-direction: column;
  }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
