/* connect2trip.com — public site. Served by Modules\Cms\Controllers\PublicSiteController.
   One idea carries the design: the network drawn as a transit map. Each audience is a line
   with its own colour; the operations floor is the interchange they all pass through. */

@font-face { font-family: "HK Grotesk"; src: url("fonts/hkgrotesk-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("fonts/hkgrotesk-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("fonts/hkgrotesk-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "HK Grotesk"; src: url("fonts/hkgrotesk-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f3f4ef;
  --paper-2: #e8eae3;
  --ink: #102235;
  --ink-2: #4a5868;
  --rule: #c9cec5;
  --station: #ffffff;
  --buyers: #2556c4;
  --suppliers: #c47f0c;
  --partners: #13805a;
  --developers: #6e48c4;
  --focus: #2556c4;
  --measure: 38rem;
  --page: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1824;
    --paper-2: #152232;
    --ink: #e6eae3;
    --ink-2: #9ba7b3;
    --rule: #2b3a4b;
    --station: #0e1824;
    --buyers: #6f97f0;
    --suppliers: #e6a83c;
    --partners: #45b98a;
    --developers: #a68cf0;
    --focus: #8fb0ff;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "HK Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: var(--gutter); }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Type scale — 1.25 ratio from the 17px body. */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 36rem; }
.muted { color: var(--ink-2); }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }
.mark svg { width: 1.6rem; height: 1.6rem; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.4rem; font-weight: 500; font-size: 0.98rem; }
.nav a { text-decoration: none; padding: 0.35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--line, var(--ink)); }
.nav .signin { border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.35rem 1rem; }
.nav .signin:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 52rem) {
  .site-head .wrap { padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .nav { width: 100%; gap: 0.25rem 1rem; font-size: 0.95rem; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section + section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }

/* Hero */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
@media (max-width: 60rem) { .hero .wrap { grid-template-columns: 1fr; } }

/* The transit map */
.map { width: 100%; height: auto; overflow: visible; }
.map .line { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.map .route { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.map .dashed { stroke-dasharray: 2 16; }
.map .route.dashed { stroke: var(--partners); stroke-dasharray: 1 11; stroke-width: 5; }
.map .stop { fill: var(--station); stroke: var(--ink); stroke-width: 4; }
.map .stop-open { fill: var(--station); stroke: var(--partners); stroke-width: 4; stroke-dasharray: 3 4; }
.map .hub { fill: var(--station); stroke: var(--ink); stroke-width: 5; }
.map text { fill: var(--ink); font-family: inherit; font-size: 22px; font-weight: 600; }
.map text.small { font-size: 18px; font-weight: 500; fill: var(--ink-2); }
.map text.hub-label { font-size: 19px; font-weight: 700; }
.c-buyers { stroke: var(--buyers); }
.c-suppliers { stroke: var(--suppliers); }
.c-partners { stroke: var(--partners); }
.c-developers { stroke: var(--developers); }

@media (prefers-reduced-motion: no-preference) {
  .map .line, .map .route { stroke-dasharray: 100 100; stroke-dashoffset: 100; animation: draw 1.3s cubic-bezier(.6,.05,.25,1) forwards; }
  .map .dashed { stroke-dasharray: 2 16; stroke-dashoffset: 0; animation: none; }
  .map .route.dashed { stroke-dasharray: 1 11; animation: none; }
  .map .r1 { animation-delay: .9s; } .map .r2 { animation-delay: 1s; } .map .r3 { animation-delay: 1.1s; } .map .r4 { animation-delay: 1.2s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Line legend: the four audiences, read like a map key. */
.legend { list-style: none; margin: 0; padding: 0; display: grid; }
.legend li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.legend li:last-child { border-bottom: 1px solid var(--rule); }
.legend .swatch { height: 9px; border-radius: 9px; background: var(--c); }
.legend .swatch.soon { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 14px); }
.legend h3 { margin-bottom: 0.3rem; }
.legend a.go { font-weight: 600; white-space: nowrap; }
@media (max-width: 40rem) {
  .legend li { grid-template-columns: 2.5rem minmax(0, 1fr); align-items: start; }
  .legend .swatch { margin-top: 0.75rem; }
  .legend a.go { grid-column: 2; }
}

/* Stations: a real sequence, drawn as a line with stops. */
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); position: relative; counter-reset: stop; }
.stations::before { content: ""; position: absolute; left: 0.9rem; right: 0.9rem; top: 0.9rem; height: 6px; margin-top: -3px; background: var(--line, var(--ink)); border-radius: 6px; }
.stations li { position: relative; padding: 2.8rem 1.25rem 0 0; counter-increment: stop; }
.stations li::before { content: counter(stop); position: absolute; top: 0; left: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--station); border: 4px solid var(--line, var(--ink)); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; line-height: 1; }
.stations h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.stations p { font-size: 0.97rem; color: var(--ink-2); }
@media (max-width: 60rem) {
  .stations { grid-template-columns: 1fr; }
  .stations::before { left: 0.9rem; right: auto; top: 0.9rem; bottom: 0.9rem; width: 6px; height: auto; margin: 0 0 0 -3px; }
  .stations li { padding: 0 0 2rem 3.25rem; }
}

/* Audience page header: the page's line runs down its left edge. */
.page-head { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.page-head .wrap { border-left: 9px solid var(--line); padding-left: calc(var(--gutter) + 0.5rem); margin-left: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))); }
.page-head h1 { margin-bottom: 1.25rem; max-width: 18ch; }
.crumbs { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.crumbs a { color: inherit; }

/* Two- and three-column prose blocks */
.cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); }
.cols > div { border-top: 3px solid var(--line, var(--ink)); padding-top: 1.1rem; }
.cols h3 { margin-bottom: 0.6rem; }
.cols p + p { margin-top: 0.7rem; }
.cols ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.cols li + li { margin-top: 0.35rem; }
@media (max-width: 56rem) { .cols { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 0.9rem 0; border-top: 1px solid var(--rule); }
.plain-list li:last-child { border-bottom: 1px solid var(--rule); }
.plain-list strong { display: block; font-weight: 600; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--rule); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.75rem; color: var(--ink-2); }

/* Status board for the coming-soon developer surface */
.board { width: 100%; border-collapse: collapse; font-size: 1rem; }
.board th, .board td { text-align: left; padding: 0.95rem 1rem 0.95rem 0; border-top: 1px solid var(--rule); vertical-align: top; }
.board thead th { border-top: 0; font-size: 0.92rem; color: var(--ink-2); font-weight: 500; }
.board tr:last-child td { border-bottom: 1px solid var(--rule); }
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 3px dashed var(--developers); }
.status.live::before { border: 3px solid var(--partners); background: var(--partners); }
@media (max-width: 40rem) { .board th:nth-child(3), .board td:nth-child(3) { display: none; } }

code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 4px; }

/* Sign-in choices */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.door { display: grid; gap: 0.6rem; align-content: start; padding: 1.5rem; border: 1.5px solid var(--rule); border-top: 9px solid var(--c); border-radius: 6px; text-decoration: none; background: var(--paper); }
.door:hover { border-color: var(--ink); border-top-color: var(--c); }
.door h2, .door h3 { font-size: 1.35rem; }
.door p { color: var(--ink-2); font-size: 0.98rem; }
.door .host { font-size: 0.9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 56rem) { .doors { grid-template-columns: 1fr; } }

/* Call-out band */
.band { background: var(--ink); color: var(--paper); }
.band .lede { color: inherit; opacity: 0.85; }
.band .btn { border-color: var(--paper); }
.band .btn-solid { background: var(--paper); color: var(--ink); }
.band .btn-solid:hover { background: transparent; color: var(--paper); }
.band .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.band :focus-visible { outline-color: var(--paper); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 3rem 0 3.5rem; font-size: 0.95rem; color: var(--ink-2); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot h2 { font-size: 1rem; color: var(--ink); margin-bottom: 0.6rem; letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-foot address { font-style: normal; }
@media (max-width: 52rem) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* Legal page prose */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 0.8rem; }
.prose ul { padding-left: 1.2rem; margin: 0.6rem 0 0; }
.prose li + li { margin-top: 0.3rem; }
.door-info:hover { border-color: var(--rule); }
.mark img { height: 2.25rem; width: auto; max-width: 12rem; }
.hero .wrap.hero-solo { grid-template-columns: 1fr; }
