/* TripScan variant 1 — editorial rail layout (Dantora-inspired tokens, system fonts) */
:root {
  --page: #ffffff;
  --surface: #eff4f2;
  --surface-deep: #e5f1ed;
  --text: #101828;
  --muted: #4a5568;
  --accent: #246f65;
  --accent-alt: #f8ffb4;
  --accent-ink: #ffffff;
  --line: rgba(16, 24, 40, 0.12);
  --radius: 1.5rem;
  --radius-pill: 999px;
  --section-space: clamp(4rem, 8vw, 7rem);
  --rail-width: 72px;
  --header-h: 64px;
  --font-display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 250ms;
}

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

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

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
}

body.donor-layout-tripc86-top {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, color-mix(in srgb, var(--accent-alt) 35%, transparent), transparent 50%),
    var(--page);
}

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

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

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

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

h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.25;
  font-weight: 500;
}

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

/* ── Shell ── */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-rail {
  display: grid;
  grid-template-columns: 1fr var(--rail-width);
  flex: 1;
  min-width: 0;
}

.main-flow {
  min-width: 0;
}

.progress-rail {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 40%, var(--page));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.progress-track {
  width: 3px;
  height: min(240px, 40vh);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-alt));
  opacity: 0.55;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.site-header nav a {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--muted);
  border: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-header nav a:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  background: color-mix(in srgb, var(--surface) 60%, var(--page));
}

.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--accent);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.header-cta {
  white-space: nowrap;
  background: var(--accent);
  color: var(--accent-ink);
}

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

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-secondary {
  background: var(--accent-alt);
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 15%, transparent);
}

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

/* ── Hero (editorial stack) ── */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 var(--section-space);
}

.hero-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hero-editorial {
  max-width: 780px;
}

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

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  max-width: 640px;
  color: var(--muted);
}

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

.geo-line {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  max-width: 320px;
}

.hero-stage {
  position: relative;
}

.hero-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-deep);
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--accent) 12%, transparent);
}

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

/* ── Bands & sections ── */
.band {
  padding: var(--section-space) 0;
  position: relative;
}

.band-process { background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; }
.band-scenarios { background: var(--surface-deep); }
.band-guide { background: var(--surface); }
.band-contact { background: linear-gradient(180deg, var(--page), var(--surface)); }

.section-inner {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

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

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

/* ── Cards (bento services) ── */
.band-services .cards-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.band-services .card {
  grid-column: span 6;
  min-width: 0;
}

.band-services .card:first-child {
  grid-column: span 12;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}

.band-services .card:first-child p,
.band-services .card:first-child small,
.band-services .card:first-child .card-label { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }

.band-services .card:first-child .card-value { color: var(--accent-alt); }

.band-services .card:first-child .card-icon {
  color: var(--accent-alt);
  border-color: color-mix(in srgb, var(--accent-ink) 25%, transparent);
  background: color-mix(in srgb, var(--accent-ink) 10%, transparent);
}

.band-scenarios .cards-grid,
.band-benefits .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--page);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px 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: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  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: 12px;
}

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

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

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

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

/* Icon motion */
.icon-draw path { stroke-dasharray: 34 8; animation: iconDraw 5.8s linear infinite; }
.icon-pulse { transform-box: fill-box; transform-origin: center; animation: iconPulse 3.8s ease-in-out infinite; }
.icon-slide { animation: iconSlide 4.6s ease-in-out infinite; }
.icon-spin { transform-box: fill-box; transform-origin: center; animation: iconSpin 10s linear infinite; }

@keyframes iconDraw { to { stroke-dashoffset: -84; } }
@keyframes iconPulse { 50% { transform: scale(0.88); opacity: 0.72; } }
@keyframes iconSlide { 50% { transform: translateX(3px); } }
@keyframes iconSpin { to { transform: rotate(360deg); } }

/* ── Process timeline ── */
.timeline-rail {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.timeline-rail::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-alt));
  opacity: 0.35;
}

.timeline-rail li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0 1.25rem 0;
  position: relative;
}

.timeline-rail .step-icon {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  background: var(--surface);
}

.timeline-rail li + li {
  border-top: 1px dashed color-mix(in srgb, var(--text) 8%, transparent);
}

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

.geo-chip {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--page);
  border-left: 4px solid var(--accent);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

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

/* ── Guide layout ── */
.guide-layout {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.guide-rail {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  height: min(320px, 50vh);
  border-left: 2px solid var(--accent);
  opacity: 0.4;
}

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

.chapter:last-child { border-bottom: 0; }

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

/* ── FAQ ── */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  max-width: none;
}

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

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq-list p {
  padding-right: 0.5rem;
  margin-bottom: 0;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-flip { direction: rtl; }
.contact-flip > * { direction: ltr; }

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--page);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 8%, 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(--surface);
  color: var(--text);
  padding: 0.8rem 0.9rem;
  border-radius: calc(var(--radius) * 0.5);
}

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

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

/* ── Footer ── */
.site-footer {
  padding: 3rem 0 4rem;
  background: var(--text);
  color: color-mix(in srgb, var(--page) 75%, transparent);
  border-top: none;
}

.site-footer h3,
.site-footer strong { color: var(--page); }

.site-footer p { color: color-mix(in srgb, var(--page) 65%, transparent); }

.site-footer a {
  color: color-mix(in srgb, var(--page) 55%, transparent);
}

.site-footer a:hover { color: var(--accent-alt); }

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

.footer-brand { font-size: 1.35rem; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .content-rail { grid-template-columns: 1fr; }
  .progress-rail { display: none; }
  .site-header nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .band-services .cards-grid { grid-template-columns: 1fr; }
  .band-services .card,
  .band-services .card:first-child { grid-column: span 1; display: block; }
  .geo-chips { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .contact-grid,
  .contact-flip { grid-template-columns: 1fr; direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-rail { display: none; }
}

@media (max-width: 560px) {
  .header-inner,
  .section-inner,
  .hero-shell { width: min(100% - 1.25rem, 1240px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .band { padding: 3.5rem 0; }
  h1 { font-size: clamp(1.85rem, 9vw, 2.75rem); }
}

@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,
  .icon-draw path, .icon-pulse, .icon-slide, .icon-spin { animation: none !important; }
  .card, .button, .header-cta { transition: none !important; }
}
