/* TripScan variant — Baseline editorial-split / charcoal-lime / display-sans-technical */

:root {
  --page: #eef0f2;
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --surface-dark: #121316;
  --text: #121316;
  --muted: #5c626b;
  --accent: #2563c9;
  --accent-deep: #0f2f63;
  --accent-lime: #c8ff00;
  --accent-lime-soft: #9ecc00;
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --radius: 22px;
  --radius-lg: 32px;
  --section-space: clamp(4rem, 8vw, 7rem);
  --rail-width: clamp(220px, 18vw, 280px);
  --content-max: 1360px;
  --hero-max-h-desktop: 55vh;
  --hero-max-h-tablet: 44vh;
  --hero-max-h-mobile: 38vh;
  --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  line-height: 1.58;
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.baseline-editorial {
  background:
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 36%),
    linear-gradient(180deg, var(--page), color-mix(in srgb, var(--surface) 70%, var(--page)));
}

body, button, input, select, textarea { font: inherit; }

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

img, svg, video, canvas, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 0.98;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  margin-bottom: 1.25rem;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 3.2rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.18;
  font-weight: 700;
}

p { color: var(--muted); }

.page-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
  max-width: 2160px;
  margin: 0 auto;
}

.side-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, var(--page));
  z-index: 40;
}

.rail-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  font-size: 1.05rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(44px, 4vw, 64px);
  height: clamp(44px, 4vw, 64px);
  max-width: 64px;
  max-height: 64px;
  border-radius: calc(var(--radius) - 6px);
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: var(--surface);
}

.brand-logo svg { width: 100%; height: 100%; }

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

.rail-nav a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.rail-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.rail-cta-wrap { margin-top: auto; padding-top: 0.5rem; }

.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.86rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta {
  width: 100%;
  white-space: nowrap;
}

.header-cta, .button-primary {
  background: var(--accent);
  color: var(--surface);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button:hover, .header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.page-main {
  min-width: 0;
  width: 100%;
  position: relative;
}

.page-main::before {
  content: "TRIPSCAN";
  position: absolute;
  top: 8vh;
  right: clamp(1rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: color-mix(in srgb, var(--accent) 7%, transparent);
  pointer-events: none;
  z-index: 0;
  max-width: 50%;
  text-align: right;
}

.section-inner {
  width: min(var(--content-max), calc(100% - clamp(1.5rem, 4vw, 3.5rem)));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 var(--section-space);
  position: relative;
}

.hero-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy { min-width: 0; max-width: 40rem; }

.eyebrow, .section-kicker {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--accent-deep);
}

.lead {
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}

.geo-line {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-visual-slot { min-width: 0; }

.hero-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: var(--hero-max-h-desktop);
  max-width: min(100%, calc(var(--hero-max-h-desktop) * 1.5));
  aspect-ratio: 4 / 3;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface-dark), #242830);
  border: 2px solid color-mix(in srgb, var(--accent-lime) 35%, var(--text));
  box-shadow:
    0 28px 56px color-mix(in srgb, var(--surface-dark) 18%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--accent-lime) 12%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, color-mix(in srgb, var(--accent-lime) 8%, transparent));
  pointer-events: none;
}

.section { padding: var(--section-space) 0; }

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.25rem;
}

.section-heading > p { font-size: 1.05rem; }

.proof-stack {
  display: grid;
  gap: var(--section-space);
  padding: var(--section-space) 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 4%, var(--page)) 12%, transparent);
  border-block: 1px solid var(--line);
}

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

.card {
  min-width: 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 4%, transparent);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 10%, transparent);
}

.card p { margin-bottom: 0; }

.card-icon, .step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 14px;
}

.card-icon svg, .step-icon svg { width: 28px; height: 28px; overflow: visible; }

.card-label {
  display: block;
  color: var(--accent-deep);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
  font-weight: 800;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.process-list li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.step-icon { margin-bottom: 0; }

.geo-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.geo-chip {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.geo-chip strong, .geo-chip span { display: block; }

.geo-chip span { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; }

.guide-body { min-width: 0; }

.chapter {
  min-width: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.chapter:first-child { padding-top: 0; }

.chapter li { color: var(--muted); margin: 0.5rem 0; }

.faq-list { max-width: 52rem; }

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.faq-list p { padding-right: 1.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--text) 6%, transparent);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--text);
  padding: 0.85rem;
  border-radius: calc(var(--radius) * 0.55);
}

textarea { min-height: 110px; resize: vertical; }

.form-message { color: var(--accent); margin: 0; }

.tripscan-disclaimer {
  font-size: 0.78rem !important;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.site-footer {
  padding: 3.5rem 0 4rem;
  background: color-mix(in srgb, var(--surface) 82%, var(--page));
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand { font-size: 1.35rem; color: var(--text); }

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 0.35rem 0;
}

.preserve-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 1100px) {
  .page-shell { grid-template-columns: 1fr; }

  .side-rail {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .rail-brand-row { flex: 1 1 auto; }

  .rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    order: 3;
    width: 100%;
  }

  .rail-cta-wrap {
    margin-top: 0;
    width: auto;
  }

  .header-cta { width: auto; }

  .page-main::before {
    font-size: clamp(3rem, 18vw, 6rem);
    top: 4vh;
    opacity: 0.65;
  }

  .hero-editorial { grid-template-columns: 1fr; }

  .hero-visual {
    max-height: var(--hero-max-h-tablet);
    max-width: min(100%, calc(var(--hero-max-h-tablet) * 1.5));
  }

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

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

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

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-inner { width: min(100% - 1.75rem, var(--content-max)); }

  .side-rail { padding: 0.85rem 1rem; }

  .brand-logo { width: 40px; height: 40px; }

  .hero-visual {
    max-height: var(--hero-max-h-mobile);
    max-width: min(100%, calc(var(--hero-max-h-mobile) * 1.5));
    min-height: 200px;
  }

  .cards-grid, .process-list, .geo-chips, .footer-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 3.5rem 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover, .button:hover, .header-cta:hover { transform: none; }
}
