@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

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

:root {
  --primary: #0a0a0a;
  --on-primary: #ffffff;
  --brand-green: #00d4a4;
  --brand-green-deep: #00b48a;
  --canvas: #ffffff;
  --surface: #f7f7f7;
  --surface-soft: #fafafa;
  --hairline: #e5e5e5;
  --hairline-soft: #ededed;
  --ink: #0a0a0a;
  --charcoal: #1c1c1e;
  --slate: #3a3a3c;
  --steel: #5a5a5c;
  --stone: #888888;
  --muted: #a8a8aa;
  --hero-sky-from: #87a8c8;
  --hero-sky-to: #f5e9d8;
  --hero-dark-from: #1a3d4a;
  --hero-dark-to: #2d5a4f;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--canvas);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
  height: 64px;
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--steel);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  border-radius: 6px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 200;
  flex-direction: column;
  padding: 24px 32px;
}

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

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  display: block;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--hero-sky-from) 0%, var(--hero-sky-to) 100%);
  padding: 80px 0 64px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -1px;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--slate);
  max-width: 580px;
  margin: 0 auto 32px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--charcoal); text-decoration: none; }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand-green);
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-accent:hover { background: var(--brand-green-deep); text-decoration: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover { background: var(--surface); text-decoration: none; }

/* SECTIONS */
section { padding: 64px 0; }
section.bg-surface { background: var(--surface); }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--steel);
  max-width: 580px;
  line-height: 1.5;
}

.section-header {
  margin-bottom: 48px;
}

/* CARDS */
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.5;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-green-deep);
  margin-top: 16px;
}

.card-link:hover { text-decoration: underline; }

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-green-deep);
}

/* FAQ ACCORDION */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--steel);
  transition: transform 0.2s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--steel);
  line-height: 1.6;
}

.faq-item.open .faq-answer { display: block; }

/* GLOSSARY STRIP */
.glossary-strip {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 32px 0;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.glossary-term h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-green-deep);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.glossary-term p {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.4;
}

/* ROUTE CARDS */
.route-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.route-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.route-card .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(0,212,164,0.12);
  color: var(--brand-green-deep);
  border-radius: 9999px;
  padding: 2px 10px;
  margin-bottom: 12px;
}

.route-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.route-card p {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* IMAGES */
.content-image {
  border-radius: 12px;
  border: 1px solid var(--hairline-soft);
  overflow: hidden;
  margin: 32px 0;
}

.content-image img {
  width: 100%;
  object-fit: cover;
}

.content-image figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--stone);
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline-soft);
}

/* BREADCRUMBS */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--stone);
  padding: 16px 0;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .sep { color: var(--muted); }
.breadcrumb .current { color: var(--slate); }

/* TABLE OF CONTENTS */
.toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--steel);
  margin-bottom: 12px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc ol li a {
  font-size: 14px;
  color: var(--steel);
}

.toc ol li a:hover { color: var(--ink); text-decoration: underline; }

/* CONTENT PAGE LAYOUT */
.content-page {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  padding: 48px 0;
}

.content-article h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 16px;
}

.content-article .byline {
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline-soft);
}

.content-article h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 16px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.content-article h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
}

.content-article p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.content-article ul, .content-article ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.content-article li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.content-article ul { list-style: disc; }
.content-article ol { list-style: decimal; }

.research-note {
  background: var(--surface);
  border-left: 3px solid var(--brand-green);
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--steel);
  line-height: 1.5;
  margin: 24px 0;
}

.page-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 16px 20px;
}

.sidebar-toc .toc-title {
  margin-bottom: 10px;
}

.sidebar-toc ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-toc ul a {
  font-size: 13px;
  color: var(--steel);
  display: block;
  padding: 2px 0;
}

.sidebar-toc ul a:hover { color: var(--ink); text-decoration: underline; }
.sidebar-toc ul a.active {
  color: var(--ink);
  font-weight: 500;
  border-left: 2px solid var(--brand-green);
  padding-left: 8px;
  margin-left: -8px;
}

/* RELATED CONTENT */
.related-content {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.related-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related-card {
  background: var(--surface-soft);
  border: 1px solid var(--hairline-soft);
  border-radius: 8px;
  padding: 20px;
}

.related-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.related-card p {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.4;
  margin-bottom: 10px;
}

.related-card a {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-green-deep);
}

/* CONTACT FORM */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  height: 40px;
  transition: border-color 0.15s;
}

.form-group textarea { height: 120px; resize: vertical; }

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  border-width: 2px;
}

.form-status {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.form-status.success {
  background: rgba(0,212,164,0.08);
  color: var(--brand-green-deep);
  border: 1px solid rgba(0,212,164,0.2);
}

.form-status.loading {
  background: var(--surface);
  color: var(--steel);
}

.form-error {
  font-size: 13px;
  color: #d45656;
  margin-top: 4px;
}

/* FOOTER */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 12px; }

.footer-tagline {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--steel);
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--ink); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.5;
  max-width: 860px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--muted);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 640px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 12px;
  padding: 20px 24px;
  z-index: 300;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
  color: #b3b3b3;
}

.cookie-banner p a { color: var(--brand-green); text-decoration: underline; }

.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--brand-green);
  color: var(--primary);
  border: none;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cookie-reject {
  background: transparent;
  color: #b3b3b3;
  border: 1px solid #3a3a3c;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cookie-banner.hidden { display: none; }

/* PROSE CONTENT PAGES */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.prose-page h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 12px;
}

.prose-page .byline {
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline-soft);
}

.prose-page h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 14px;
  letter-spacing: -0.3px;
}

.prose-page h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}

.prose-page p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.prose-page ul, .prose-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose-page li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.prose-page ul { list-style: disc; }
.prose-page ol { list-style: decimal; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .content-page { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; align-items: center; justify-content: center; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .content-article h1 { font-size: 28px; }
  .prose-page h1 { font-size: 28px; }
  .cookie-banner { bottom: 12px; left: 12px; right: 12px; transform: none; width: auto; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 26px; }
  section { padding: 40px 0; }
}
