:root {
  --page: #f7f3eb;
  --surface: #ffffff;
  --surface-alt: #efe8dc;
  --text: #1a2e28;
  --muted: #5c6b64;
  --accent: #c45c3e;
  --accent-alt: #2d6a4f;
  --accent-soft: #e8b86d;
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --radius: 18px;
  --radius-lg: 28px;
  --section-space: clamp(4rem, 7vw, 6.5rem);
  --rail-width: clamp(220px, 16vw, 300px);
  --content-max: min(1180px, 100%);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, 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.65;
  font-family: var(--font-body);
  background: var(--page);
  color: var(--text);
}

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.03em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  margin-bottom: 1.25rem;
}

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

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  margin-bottom: 0.5rem;
}

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

.page-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  align-items: stretch;
}

.site-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  z-index: 40;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, var(--page));
  backdrop-filter: blur(12px);
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  height: 100%;
  padding: 1.5rem 1.25rem 1.75rem;
  min-width: 0;
}

.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: 800;
  font-size: 1rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 64px;
  max-height: 64px;
  border-radius: 12px;
  object-fit: contain;
  overflow: hidden;
  flex: 0 0 auto;
}

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

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

.site-header nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.site-header nav a {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

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

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

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.page-main {
  display: block;
  min-height: 100vh;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.page-main-inner {
  width: min(var(--content-max), calc(100% - clamp(1.5rem, 4vw, 4rem)));
  margin: 0 auto;
  padding-bottom: 4rem;
}

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

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent-soft) 35%, transparent), transparent 42%),
    linear-gradient(155deg, var(--surface), color-mix(in srgb, var(--surface-alt) 70%, var(--surface)));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--text) 8%, transparent);
}

.hero-copy {
  min-width: 0;
}

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

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  max-width: 56ch;
}

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

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

.hero-visual {
  overflow: hidden;
  width: 100%;
  min-height: clamp(280px, 36vw, 520px);
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-alt) 80%, var(--accent-soft));
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

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

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

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

.card {
  min-width: 0;
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--text) 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-alt);
  border: 1px solid color-mix(in srgb, var(--accent-alt) 28%, transparent);
  background: color-mix(in srgb, var(--accent-alt) 10%, transparent);
  border-radius: 12px;
}

.card-icon svg,
.step-icon svg {
  width: 26px;
  height: 26px;
}

.icon-draw path {
  stroke-dasharray: 34 8;
  animation: iconDraw 12s linear infinite;
}

.icon-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: iconPulse 12s ease-in-out infinite;
}

.icon-slide {
  animation: iconSlide 12s ease-in-out infinite;
}

.icon-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: iconSpin 12s linear infinite;
}

@keyframes iconDraw {
  to {
    stroke-dashoffset: -84;
  }
}

@keyframes iconPulse {
  50% {
    transform: scale(0.9);
    opacity: 0.75;
  }
}

@keyframes iconSlide {
  50% {
    transform: translateX(3px);
  }
}

@keyframes iconSpin {
  to {
    transform: rotate(360deg);
  }
}

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

.card-value {
  display: block;
  margin-top: 0.85rem;
  color: var(--accent-alt);
  font-size: 1.05rem;
}

.card small {
  display: block;
  color: var(--muted);
  margin-top: 0.35rem;
}

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

.process-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

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

.geo-chip {
  padding: 1.1rem 1.2rem;
  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.9rem;
  margin-top: 0.35rem;
}

.guide-body {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.chapter {
  min-width: 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.faq-list {
  max-width: 920px;
}

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

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  background: var(--page);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.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(--surface);
  color: var(--text);
  padding: 0.8rem;
  border-radius: calc(var(--radius) * 0.65);
}

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

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

.site-footer {
  padding: 3.5rem 0 0;
  margin-top: var(--section-space);
  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;
  font-family: var(--font-display);
}

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

.footer-coverage {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 1800px) {
  :root {
    --content-max: 1320px;
    --rail-width: 300px;
  }

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

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

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

  .site-rail {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

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

  .header-cta {
    margin-top: 0;
    margin-left: auto;
    width: auto;
  }

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

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

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

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

@media (max-width: 680px) {
  .page-main-inner {
    width: min(100% - 1.5rem, var(--content-max));
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-cta {
    margin-left: 0;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .section {
    padding: 3.5rem 0;
  }
}

.hero-visual .route-shell {
  fill: none;
  stroke: #9ca9ad;
  stroke-width: 2;
  opacity: 0.34;
}

.hero-visual .route-main {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 16;
  animation: routeFlow 12s linear infinite;
}

.hero-visual .contour {
  fill: none;
  stroke: #43d6a0;
  stroke-width: 1.4;
  opacity: 0.24;
}

.hero-visual .city-point {
  fill: #28252b;
  stroke: #0c2328;
  stroke-width: 3;
}

.hero-visual .city-point-selected {
  fill: #a69c6d;
  stroke: #f4fbff;
  stroke-width: 4;
}

.hero-visual .city-halo {
  fill: url(#mapGlow);
  transform-box: fill-box;
  transform-origin: center;
  animation: cityPulse 12s ease-out var(--delay) infinite;
}

.hero-visual .city-label {
  fill: #f4fbff;
  font: 600 18px system-ui, sans-serif;
  paint-order: stroke;
  stroke: #0c2328;
  stroke-width: 5px;
  stroke-linejoin: round;
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -108;
  }
}

@keyframes cityPulse {
  0% {
    transform: scale(0.4);
    opacity: 0.8;
  }

  75%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

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

  .card-icon,
  .step-icon,
  .card-icon svg,
  .step-icon svg,
  .card-icon path,
  .step-icon path,
  .card,
  .hero-visual .route-main,
  .hero-visual .city-halo {
    animation: none !important;
    transition: none !important;
  }
}
