/* Xreet public site: transit route-map design */
:root {
  --ground: #EDEEF0;
  --paper: #FFFFFF;
  --ink: #15171C;
  --text: #3A3F4A;
  --quiet: #5A606C;
  --rule: #D5D8DE;
  --on-dark: #C9CDD6;
  --blue: #2448FF;
  --blue-deep: #1530C9;
  --orange: #FF6A2B;
  --teal: #00A88F;
  --teal-text: #007A68;
  --yellow: #FFC531;
  --yellow-hover: #FFD45E;
  --font: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: 40px;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 860px; }
.x { font-stretch: 125%; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Type */
.display { margin: 0; font-size: 84px; line-height: .95; font-weight: 900; letter-spacing: -0.035em; font-stretch: 125%; }
.h2 { margin: 0 0 20px; font-size: 52px; line-height: 1; font-weight: 900; letter-spacing: -0.03em; font-stretch: 125%; }
.h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.1; font-weight: 900; letter-spacing: -0.01em; font-stretch: 125%; }
.lede { font-size: 20px; line-height: 1.5; color: var(--text); max-width: 36em; }
.body-lg { font-size: 19px; color: var(--text); }
.note { font-size: 15px; color: var(--quiet); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border-radius: 999px; font-family: var(--font); font-weight: 800; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-hover); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; font-weight: 700; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--ground); position: relative; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 36px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo span { font-weight: 900; font-size: 24px; letter-spacing: -0.02em; font-stretch: 125%; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.login-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.login-link:hover { text-decoration: underline; color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 54px; width: 240px; background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; padding: 10px; display: grid; }
.menu-panel a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 12px 14px; border-radius: 12px; }
.menu-panel a:hover { background: var(--ground); }

/* Sections */
.sec { padding: 112px 0; }
.sec-white { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.sec-ink { background: var(--ink); color: #fff; }
.sec-blue { background: var(--blue); color: #fff; }
.page-head { padding: 88px 0 56px; }
.page-head .display { font-size: 72px; margin-bottom: 20px; }
.display-md { font-size: 72px; }
.page-head .display-sm, .display-sm { font-size: 56px; }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero-top .lede { margin-bottom: 28px; }
.map-box { margin-top: 72px; background: var(--paper); border-radius: var(--radius); padding: 40px 40px 28px; border: 2px solid var(--ink); }
.map-tall { display: none; }

/* Routes */
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.route { border-radius: var(--radius); padding: 44px 40px; }
.route-blue { background: var(--blue); color: #fff; }
.route-orange { background: var(--orange); color: var(--ink); }
.route-label { margin: 0 0 6px; font-weight: 700; font-size: 15px; }
.route h3 { margin: 0 0 36px; font-size: 34px; line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; font-stretch: 125%; }
.route-blue .soft { opacity: .88; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { position: relative; padding: 0 0 30px 44px; }
.stops li:last-child { padding-bottom: 0; }
.stops li::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: -12px; width: 6px; background: currentColor; opacity: .35; border-radius: 3px; }
.stops li:last-child::before { display: none; }
.stops li::after { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid currentColor; }
.stops strong { display: block; font-size: 18px; }

/* Ticket */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.ticket { margin: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 10px 10px 0 var(--ink); }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 2px dashed var(--rule); }
.ticket-head span:first-child { font-weight: 700; font-size: 15px; color: var(--quiet); }
.code { font-family: var(--mono); font-weight: 700; font-size: 15px; background: var(--yellow); padding: 6px 12px; border-radius: 999px; }
.ticket-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px 0; }
.ticket-amounts .k { margin: 0 0 4px; font-size: 14px; color: var(--quiet); }
.ticket-amounts .v { margin: 0; font-size: 36px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; font-stretch: 125%; }
.ticket-amounts .v small { font-size: 18px; color: var(--quiet); }
.ticket-amounts .teal { color: var(--teal-text); }
.ticket-amounts .s { margin: 8px 0 0; font-size: 14px; color: var(--quiet); }
.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 22px 0 0; list-style: none; border-top: 2px dashed var(--rule); }
.track li { position: relative; padding: 34px 8px 0 0; font-size: 13px; line-height: 1.3; font-weight: 600; }
.track li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 6px; background: var(--rule); }
.track li.on::before { background: var(--teal); }
.track li.now::before { background: linear-gradient(90deg, var(--teal) 50%, var(--rule) 50%); }
.track li::after { content: ""; position: absolute; top: 2px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--rule); }
.track li.on::after { border-color: var(--teal); }
.track li.now::after { background: var(--yellow); border-color: var(--ink); }
.track li.now { font-weight: 800; }
.track li.off { color: var(--quiet); font-weight: 500; }

/* Card */
.vcard-wrap { display: flex; justify-content: center; }
.vcard { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1.586; background: var(--yellow); border-radius: 24px; overflow: hidden; color: var(--ink); transform: rotate(-4deg); }
.vcard svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vcard .brand { position: absolute; top: 26px; left: 30px; font-weight: 900; font-size: 26px; letter-spacing: -0.02em; font-stretch: 125%; }
.vcard .kind { position: absolute; top: 30px; right: 30px; font-weight: 700; font-size: 14px; }
.vcard .num { position: absolute; bottom: 26px; left: 30px; font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: .06em; }
.rings { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 16px; }
.rings li { display: flex; gap: 14px; align-items: flex-start; }
.rings li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 5px solid var(--yellow); }
.on-light .rings li::before { border-color: var(--blue); }
.sec-ink .body-lg { color: var(--on-dark); }

/* Who */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.who > div { padding-top: 24px; border-top: 10px solid var(--ink); }
.who > div:nth-child(1) { border-top-color: var(--blue); }
.who > div:nth-child(2) { border-top-color: var(--orange); }
.who p { margin: 0; color: var(--text); }

/* Fee strip and table */
.panel { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 40px; }
.fee-strip { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.fee-strip h2 { margin: 0 0 10px; font-size: 32px; line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; font-stretch: 125%; }
.fee-figs { display: flex; flex-wrap: wrap; gap: 28px; }
.fee-figs .k { margin: 0 0 4px; font-size: 14px; color: var(--quiet); }
.fee-figs .v { margin: 0; font-size: 26px; font-weight: 900; font-stretch: 125%; }
.table-box { overflow-x: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); }
.fee-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.fee-table th, .fee-table td { text-align: left; padding: 22px 28px; border-bottom: 2px solid var(--rule); vertical-align: top; }
.fee-table thead th { font-size: 14px; color: var(--quiet); font-weight: 700; border-bottom-color: var(--ink); }
.fee-table tbody th { font-weight: 800; font-size: 18px; }
.fee-table tbody th small { display: block; font-weight: 500; font-size: 15px; color: var(--quiet); margin-top: 4px; }
.fee-table td { font-size: 24px; font-weight: 900; font-stretch: 125%; white-space: nowrap; }
.fee-table td.free { color: var(--teal-text); }
.fee-table tr:last-child th, .fee-table tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 800; font-size: 20px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 22px; color: var(--text); max-width: 40em; }

/* Steps and statuses */
.prose h2 { margin: 56px 0 20px; font-size: 32px; line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; font-stretch: 125%; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.status-list { margin: 0; border-top: 2px solid var(--ink); }
.status-list div { display: grid; grid-template-columns: 16em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 2px solid var(--rule); }
.status-list dt { font-weight: 800; display: flex; gap: 12px; align-items: center; }
.status-list dt::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--dot, var(--teal)); }
.status-list dd { margin: 0; color: var(--text); }
.verify-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: v; }
.verify-steps li { counter-increment: v; background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; padding: 24px; }
.verify-steps li::before { content: counter(v); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-weight: 900; margin-bottom: 16px; }
.verify-steps strong { display: block; font-size: 18px; margin-bottom: 6px; }
.verify-steps span { color: var(--text); font-size: 16px; }

/* Docs grid */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.docs ul { margin: 0; padding-left: 1.2em; color: var(--text); }
.docs li { margin-bottom: 6px; }

/* CTA band */
.cta-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.cta-row h2 { margin: 0; font-size: 64px; line-height: .95; font-weight: 900; letter-spacing: -0.035em; font-stretch: 125%; max-width: 760px; }

/* Legal */
.draft { display: inline-block; background: #FFF1CC; border: 2px solid var(--yellow); border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: 15px; }

/* Auth */
.auth { display: flex; flex-wrap: wrap; min-height: calc(100vh - 78px); }
.auth-side { flex: 1 1 440px; min-width: 0; background: var(--ink); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.auth-side h2 { margin: 0; font-size: 40px; line-height: 1; font-weight: 900; letter-spacing: -0.03em; font-stretch: 125%; }
.auth-side ol { margin: 0; padding-left: 20px; color: var(--on-dark); display: grid; gap: 8px; }
.auth-side .note { color: var(--on-dark); margin: 0; }
.auth-main { flex: 999 1 560px; min-width: 0; padding: 72px 64px 96px; }
.auth-inner { max-width: 520px; margin: 0 auto; }
.auth-inner h1 { margin: 0 0 12px; font-size: 52px; line-height: 1; font-weight: 900; letter-spacing: -0.035em; font-stretch: 125%; }
.form { display: grid; gap: 28px; margin-top: 40px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .field-label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 10px; padding: 0; }
.form input[type="email"], .form select { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); min-height: 52px; }
.form input[type="email"]:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 72, 255, .3); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; min-height: 56px; font-weight: 700; background: #fff; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 5px solid currentColor; }
.choice:has(input:checked) { background: var(--blue); color: #fff; border-color: var(--blue); }
.choice:has(input:checked) .dot { background: var(--yellow); border-color: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.alert { margin: 12px 0 0; padding: 12px 16px; background: #FFE3D6; border: 2px solid var(--orange); border-radius: 12px; font-weight: 700; font-size: 15px; }
.ok { margin: 0; padding: 14px 16px; background: #D7F3EC; border: 2px solid var(--teal); border-radius: 12px; font-weight: 700; }
.form-msg:empty { display: none; }
.switch { margin: 0 0 56px; text-align: right; font-size: 15px; }
.switch a { font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 72px 0 32px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand { margin: 0 0 12px; color: #fff; font-weight: 900; font-size: 24px; font-stretch: 125%; }
.foot .strong { color: #fff; font-weight: 700; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot h2 { margin: 0 0 4px; color: #fff; font-weight: 800; font-size: 15px; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-base { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid #3A3F4A; font-size: 14px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-top, .two-col, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .routes, .docs { grid-template-columns: minmax(0, 1fr); }
  .verify-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .display { font-size: 64px; }
}
@media (max-width: 860px) {
  .nav, .login-link, .header-actions .btn { display: none; }
  .menu { display: block; }
}
@media (max-width: 720px) {
  :root { --pad: 20px; --radius: 22px; }
  body { font-size: 16px; }
  .display, .page-head .display, .display-md { font-size: 44px; }
  .page-head .display-sm, .display-sm { font-size: 38px; }
  .vcard { transform: rotate(-3deg); max-width: 92%; }
  .vcard .num { font-size: 15px; bottom: 18px; }
  .h2 { font-size: 34px; }
  .cta-row h2 { font-size: 40px; }
  .sec { padding: 72px 0; }
  .hero { padding: 48px 0 56px; }
  .page-head { padding: 56px 0 32px; }
  .map-box { margin-top: 48px; padding: 24px 16px 16px; }
  .map-wide { display: none; }
  .map-tall { display: block; }
  .route { padding: 32px 24px; }
  .route h3 { font-size: 28px; }
  .ticket { padding: 22px; box-shadow: 6px 6px 0 var(--ink); }
  .ticket-amounts .v { font-size: 28px; }
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .who, .verify-steps { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 24px; }
  .status-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .faq summary { font-size: 18px; }
  .auth-side { padding: 40px 20px; }
  .auth-main { padding: 40px 20px 64px; }
  .auth-inner h1 { font-size: 40px; }
  .switch { margin-bottom: 32px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
