/* =========================================================
   Unimatched — homepage stylesheet (no framework)
   Palette: rainforest greens + hibiscus red on cool paper
   ========================================================= */

:root {
  --ink: #10231c;
  --canopy: #1f5a45;
  --canopy-deep: #143d2f;
  --leaf: #dbe8df;
  --paper: #eef3ef;
  --white: #fbfdfb;
  --hibiscus: #c8203a;
  --hibiscus-dark: #a3182e;
  --sun: #f2b33d;
  --line: #c9d6ce;
  --muted: #4d6359;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 var(--step-0)/1 var(--font-body);
  padding: .95rem 1.4rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--hibiscus); color: var(--white); }
.btn-primary:hover { background: var(--hibiscus-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-small { padding: .65rem 1.1rem; font-size: var(--step--1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1rem; }
.logo { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.logo-mark {
  width: 2rem; height: 2rem; border-radius: 50% 50% 50% 4px; background: var(--hibiscus);
  color: var(--white); display: grid; place-items: center;
  font: 800 1.05rem/1 var(--font-display); align-self: center;
}
.logo-word { font: 800 1.45rem/1 var(--font-display); letter-spacing: -0.03em; }
.nav { display: flex; gap: 1.75rem; font-size: var(--step--1); }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.login { font-size: var(--step--1); font-weight: 700; text-decoration: none; }
.menu-btn { display: none; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: .45rem .9rem; font: 700 var(--step--1) var(--font-body); color: var(--ink); cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; }
.mobile-nav a { display: block; padding: .6rem 0; text-decoration: none; font-weight: 700; }
.mobile-nav.open { display: block; }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; max-width: 12ch; }
.hero-lede { margin-top: 1.5rem; font-size: var(--step-1); color: var(--muted); max-width: 34rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .85rem; }

.facts { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; border-top: 1px solid var(--line); max-width: 34rem; }
.fact { padding: 1rem 1.5rem 0 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact strong { display: block; font: 700 var(--step-2)/1.1 var(--font-display); }
.fact span { font-size: var(--step--1); color: var(--muted); }

/* Route ticket — the hero's signature element */
.ticket {
  position: relative; background: var(--canopy-deep); color: var(--white);
  border-radius: var(--radius-l); padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 30px 60px -30px rgba(16, 35, 28, .55);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 8.6rem; width: 1.5rem; height: 1.5rem;
  background: var(--paper); border-radius: 50%;
}
.ticket::before { left: -.75rem; }
.ticket::after { right: -.75rem; }
.ticket-ends { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .75rem; }
.ticket-label { font-size: .8rem; color: #a9c7b8; display: block; margin-bottom: .3rem; }
.ticket-end:last-child { text-align: right; }
.ticket-code { font: 800 2.6rem/1 var(--font-display); letter-spacing: -0.02em; }
.ticket-select {
  font: 700 .95rem var(--font-body); color: var(--white); background: transparent;
  border: 1px solid #4b7d69; border-radius: var(--radius-s); padding: .3rem .4rem; margin-top: .5rem; max-width: 100%;
}
.ticket-select option { color: var(--ink); }
.ticket-city { display: block; margin-top: .5rem; font-weight: 700; font-size: .95rem; }
.ticket-plane { width: 2.25rem; height: 2.25rem; color: var(--sun); margin-bottom: .6rem; }
.ticket-perf { border-top: 2px dashed #3f6f5c; margin: 1.6rem -.25rem 1.25rem; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { position: relative; padding: 0 0 1rem 1.6rem; }
.stops li::before {
  content: ""; position: absolute; left: 0; top: .4rem; width: .7rem; height: .7rem;
  border-radius: 50%; border: 2px solid var(--sun); background: var(--canopy-deep);
}
.stops li:not(:last-child)::after {
  content: ""; position: absolute; left: .3rem; top: 1.15rem; bottom: .15rem; width: 2px; background: #3f6f5c;
}
.stops b { display: block; font-size: .98rem; }
.stops span { font-size: .85rem; color: #a9c7b8; }
.stops .who { display: inline-block; margin-top: .2rem; font-size: .75rem; font-weight: 700; color: var(--ink); background: var(--leaf); padding: .05rem .5rem; border-radius: 999px; }
.stops .who.you { background: var(--sun); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); }
.band-green { background: var(--canopy); color: var(--white); }
.band-green .section-head p { color: #cfe0d6; }
.band-leaf { background: var(--leaf); }

/* Who does what */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--white); }
.role { padding: 1.75rem 1.75rem 0 0; }
.role + .role { padding-left: 1.75rem; border-left: 1px solid #4b7d69; }
.role h3 { font-size: var(--step-2); }
.role .role-sub { color: #cfe0d6; font-size: var(--step--1); margin-top: .3rem; }
.role ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.role li { padding: .55rem 0; border-bottom: 1px solid #3f6f5c; font-size: .98rem; }
.role li:last-child { border-bottom: 0; }
.role.us h3 { color: var(--sun); }
.roles-note { margin-top: 2.25rem; font-size: var(--step--1); color: #cfe0d6; max-width: 46rem; }

/* Institutions */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip {
  font: 700 var(--step--1) var(--font-body); padding: .5rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.inst-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.inst {
  display: grid; grid-template-columns: 1.4fr .8fr 1.6fr auto; gap: 1.5rem; align-items: center;
  padding: 1.3rem 0; border-bottom: 1px solid var(--line);
}
.inst[hidden] { display: none; }
.inst h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.inst .city { font-size: var(--step--1); color: var(--muted); }
.inst .type { font-size: var(--step--1); font-weight: 700; }
.inst .type::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .45rem; vertical-align: .05rem; }
.inst[data-type="public"] .type::before { background: var(--canopy); }
.inst[data-type="private"] .type::before { background: var(--sun); }
.inst[data-type="branch"] .type::before { background: var(--hibiscus); }
.inst .fields { font-size: .95rem; color: var(--muted); }
.inst-link { font-weight: 700; font-size: var(--step--1); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.inst-link:hover { color: var(--hibiscus); }
.inst-foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.inst-foot p { font-size: var(--step--1); color: var(--muted); max-width: 36rem; }

/* How it works */
.tabs { display: inline-flex; gap: .35rem; padding: .3rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); margin-bottom: 2.5rem; }
.tab { font: 700 var(--step--1) var(--font-body); border: 0; background: transparent; color: var(--muted); padding: .65rem 1.2rem; border-radius: 999px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.route[hidden] { display: none; }
.route li { position: relative; padding: 3.25rem 1.5rem 0 0; counter-increment: step; }
.route li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center;
  font: 800 1rem/1 var(--font-display); z-index: 1;
}
.route li::after { content: ""; position: absolute; top: 1.05rem; left: 2.25rem; right: 0; border-top: 2px dashed var(--ink); }
.route li:last-child::after { display: none; }
.route li:last-child::before { background: var(--hibiscus); border-color: var(--hibiscus); color: var(--white); }
.route h3 { font-size: var(--step-1); }
.route p { margin-top: .5rem; font-size: .95rem; color: var(--muted); max-width: 22rem; }

/* Partners */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.partner-points { margin: 2rem 0 0; padding: 0; list-style: none; }
.partner-points li { padding: 1rem 0; border-top: 1px solid var(--line); }
.partner-points b { display: block; font-family: var(--font-display); font-size: var(--step-1); }
.partner-points span { color: var(--muted); font-size: .98rem; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.25rem); }
.form-card h3 { font-size: var(--step-2); }
.form-card > p { margin-top: .4rem; color: var(--muted); font-size: var(--step--1); }
.form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: var(--step--1); font-weight: 700; margin-bottom: .35rem; }
.field input {
  width: 100%; font: var(--step-0) var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: .8rem .9rem;
}
.field input:focus { outline: none; border-color: var(--canopy); box-shadow: 0 0 0 3px var(--leaf); }
.form-note { font-size: .8rem; color: var(--muted); }
.form .btn { width: 100%; }

/* FAQ */
.faq-wrap { max-width: 50rem; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0; position: relative;
  font: 700 var(--step-1)/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font: 400 1.75rem/1 var(--font-body); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); max-width: 42rem; }

/* Closing CTA */
.closing { background: var(--hibiscus); color: var(--white); border-radius: var(--radius-l); padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.closing h2 { font-size: var(--step-3); max-width: 18ch; }
.closing p { margin-top: .8rem; color: #ffe1e5; max-width: 32rem; }
.closing .btn { background: var(--white); color: var(--hibiscus); }
.closing .btn:hover { background: var(--ink); color: var(--white); }

/* Footer */
.site-footer { margin-top: clamp(4rem, 8vw, 6rem); background: var(--ink); color: #cfe0d6; padding-block: 3rem 2rem; font-size: var(--step--1); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.site-footer .logo-word { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.disclosure { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #2c4a3e; font-size: .8rem; line-height: 1.65; color: #9fb8ab; max-width: 60rem; }

/* ---------- Load moment: ticket stops draw in once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .stops li { opacity: 0; transform: translateY(6px); animation: stop-in .45s ease-out forwards; }
  .stops li:nth-child(1) { animation-delay: .25s; }
  .stops li:nth-child(2) { animation-delay: .45s; }
  .stops li:nth-child(3) { animation-delay: .65s; }
  .stops li:nth-child(4) { animation-delay: .85s; }
  @keyframes stop-in { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-actions .login { display: none; }
  .menu-btn { display: inline-block; }
  .hero-grid, .partner-grid { grid-template-columns: 1fr; }
  .ticket { max-width: 30rem; }
  .route { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .route li:nth-child(2)::after { display: none; }
  .inst { grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
  .inst .fields { grid-column: 1 / -1; }
  .inst-link { grid-column: 1 / -1; }
  .closing { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .header-actions .btn { display: none; }
  .roles { grid-template-columns: 1fr; }
  .role, .role + .role { padding: 1.5rem 0 0; border-left: 0; }
  .role + .role { border-top: 1px solid #4b7d69; margin-top: 1.5rem; }
  .route { grid-template-columns: 1fr; row-gap: 0; }
  .route li { padding: 0 0 2rem 3.25rem; }
  .route li::after { top: 2.25rem; left: 1.05rem; right: auto; bottom: 0; border-top: 0; border-left: 2px dashed var(--ink); }
  .route li:nth-child(2)::after { display: block; }
  .route li:last-child::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .fact { padding-right: 1rem; }
  .fact + .fact { padding-left: 1rem; }
  .fact strong { font-size: var(--step-1); }
  .ticket-code { font-size: 2.1rem; }
}
