:root {
  --bg-canvas: #160f2e;
  --bg-surface: #281841;
  --bg-surface-elevated: #361f56;
  --text-primary: #ffffff;
  --text-muted: #d0c8df;
  --accent-magenta: #e0409b;
  --accent-magenta-hover: #f158af;
  --accent-lime: #d4db63;
  --border-subtle: rgba(224, 64, 155, 0.25);
  --border-solid: #3d2363;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 16px 36px -6px rgba(10, 4, 24, 0.55);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

.mono-label {
  font-family: ui-monospace, Consolas, "SF Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--accent-lime);
}

.mono-num {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
}

/* Header & Navigation */
header.site-header {
  position: relative;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-solid);
  padding: 1.25rem 1.5rem;
  width: 100%;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-wrapper {
  text-align: left;
}

.brand-logo {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--accent-magenta);
}

.nav-desktop {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-kinetic);
  padding: 0.35rem 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent-magenta);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 1.4rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--accent-magenta);
  z-index: 100;
  padding: 1.5rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-drawer a {
  color: #ffffff;
  text-decoration: none;
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  text-transform: uppercase;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 72ch;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Magenta Breakout Bands */
.band-magenta {
  background-color: var(--accent-magenta);
  color: #160f2e;
  padding: 3.5rem 1.5rem;
  margin: 4.5rem 0;
}

.band-magenta h2,
.band-magenta h3,
.band-magenta p {
  color: #160f2e;
}

.band-magenta .mono-label {
  color: #3b0722;
  font-weight: 700;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  padding: 4rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-visual {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-solid);
  overflow: visible;
  padding-bottom: 2rem;
}

.hero-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.hero-overlay-card {
  position: relative;
  margin: -5rem 2rem 0;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--accent-magenta);
  padding: 2.2rem;
  box-shadow: var(--shadow-elevation);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.hero-fact {
  border-left: 2px solid var(--accent-lime);
  padding-left: 1rem;
}

.hero-fact-value {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-fact-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Typography */
h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
  color: #ffffff;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 1.5rem 0 0.6rem;
  color: #ffffff;
}

p {
  margin-bottom: 1.4rem;
  color: var(--text-muted);
}

p.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: #ffffff;
}

blockquote.editorial-quote {
  border-left: 3px solid var(--accent-magenta);
  padding: 1.5rem 1.8rem;
  margin: 2.5rem 0;
  background-color: rgba(40, 24, 65, 0.6);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #ffffff;
}

blockquote.editorial-quote cite {
  display: block;
  font-style: normal;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  margin-top: 0.8rem;
  color: var(--accent-lime);
  text-transform: uppercase;
}

/* Pill Buttons */
.btn-pill {
  display: inline-block;
  background-color: var(--accent-magenta);
  color: #160f2e;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s ease;
  line-height: 1;
}

.btn-pill:hover {
  background-color: var(--accent-magenta-hover);
  transform: translateY(-2px);
}

.btn-pill-dark {
  background-color: #160f2e;
  color: #ffffff;
}

.btn-pill-dark:hover {
  background-color: #281841;
}

/* Stories / Route Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.story-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-solid);
  position: relative;
  display: flex;
  flex-direction: column;
}

.story-card-img-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  background-color: #0e091d;
}

.story-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-badge {
  position: absolute;
  bottom: -12px;
  left: 1.25rem;
  background-color: var(--accent-magenta);
  color: #160f2e;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.card-badge.badge-lime {
  background-color: var(--accent-lime);
  color: #160f2e;
}

.story-card-body {
  padding: 2rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.story-card-body h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.75rem;
}

.story-card-body a.read-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-lime);
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
}

.story-card-body a.read-link:hover {
  color: #ffffff;
}

/* Comfort Comparison Table */
.table-wrap {
  overflow-x: auto;
  margin: 2.5rem 0;
  border: 1px solid var(--border-solid);
}

table.comfort-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background-color: var(--bg-surface);
}

table.comfort-table th,
table.comfort-table td {
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--border-solid);
}

table.comfort-table th {
  background-color: #1a0f35;
  font-family: ui-monospace, monospace;
  color: var(--accent-lime);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table.comfort-table tr:hover td {
  background-color: rgba(224, 64, 155, 0.05);
}

/* FAQ Accordion */
.faq-list {
  margin: 2rem 0;
}

details.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-solid);
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-family: ui-monospace, monospace;
  font-size: 1.4rem;
  color: var(--accent-magenta);
}

details.faq-item[open] summary::after {
  content: "–";
}

details.faq-item p {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Tool / Form Section */
.tool-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-solid);
  padding: 2.2rem;
  margin: 2.5rem 0;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--accent-lime);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background-color: #160f2e;
  border: 1px solid var(--border-solid);
  color: #ffffff;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: 1px solid var(--accent-magenta);
  border-color: var(--accent-magenta);
}

.tool-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tool-output {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #120b24;
  border-left: 3px solid var(--accent-lime);
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: var(--text-muted);
}

/* Breakout Wide Illustrations */
.breakout-illustration {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  background-color: #1b1036;
}

.breakout-illustration img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.breakout-caption {
  max-width: 1200px;
  margin: 0.8rem auto 0;
  padding: 0 1.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
footer.site-footer {
  background-color: #0e091d;
  border-top: 1px solid var(--border-solid);
  padding: 4rem 1.5rem 3rem;
  margin-top: 5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  font-family: ui-monospace, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.footer-links-col h4 {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 1.2rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--accent-magenta);
}

.footer-legal-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #877d9c;
  font-size: 0.82rem;
}

.footer-legal-bar a {
  color: #a497bd;
  text-decoration: none;
}

.footer-legal-bar a:hover {
  color: #ffffff;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-overlay-card {
    grid-template-columns: 1fr;
    margin: -2rem 0 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual img {
    height: 320px;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
