/* crossova.app — one stylesheet. Tokens: mercan (coral) = action, turkuaz (teal) = crossing / connection. */
@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 500 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage-latin-ext.woff2') format('woff2');
  font-weight: 500 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --mist: #eaf4f4;
  --ink: #15212b;
  --muted: #4b5a66;
  --line: #d3e0e2;
  --coral: #ff6b47;
  --coral-ink: #b83a18;
  --teal: #12a5a8;
  --teal-ink: #0a6e71;
  --on-coral: #15212b;
  --focus: #0a6e71;
  --display: 'Bricolage', ui-rounded, system-ui, sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 28px;
  --wrap: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #10181e; --mist: #16232b; --ink: #e6edf0; --muted: #9eafb9; --line: #263740;
    --coral: #ff7a57; --coral-ink: #ff9a7a; --teal: #2fc2c4; --teal-ink: #5fd6d8; --focus: #5fd6d8;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #10181e; --mist: #16232b; --ink: #e6edf0; --muted: #9eafb9; --line: #263740;
  --coral: #ff7a57; --coral-ink: #ff9a7a; --teal: #2fc2c4; --teal-ink: #5fd6d8; --focus: #5fd6d8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 750; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: var(--r-s); z-index: 10; }
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------ header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem; position: relative; z-index: 2;
}
.brand { display: block; line-height: 0; }
.wm { width: 128px; height: auto; }
.wm-dark { display: none; }
:root[data-theme='dark'] .wm-light { display: none; }
:root[data-theme='dark'] .wm-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .wm-light { display: none; }
  :root:not([data-theme='light']) .wm-dark { display: block; }
}
.top-nav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.95rem; }
.top-nav a { color: var(--ink); text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }
.theme {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .moon { display: none; }
:root[data-theme='dark'] .theme .sun { display: none; }
:root[data-theme='dark'] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme .sun { display: none; }
  :root:not([data-theme='light']) .theme .moon { display: block; }
}

/* ------------------------------------------------------------ the crossing (signature) */
.crossing { display: block; width: 100%; height: 130px; margin-top: -0.25rem; }
.crossing .path, .crossing .path-gap { fill: none; stroke-linecap: round; }
.crossing .path { stroke-width: 26; }
.crossing .path-teal { stroke: var(--teal); }
.crossing .path-coral { stroke: var(--coral); }
.crossing .path-gap { stroke: var(--paper); stroke-width: 46; }
.crossing .meet circle { fill: var(--paper); stroke: var(--ink); stroke-width: 5; }
.crossing .meet .meet-dot { fill: var(--ink); stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero .crossing .path, .hero .crossing .path-gap { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.5s cubic-bezier(.6, .05, .25, 1) forwards; }
  .hero .crossing .path-coral, .hero .crossing .path-gap { animation-delay: 0.25s; }
  .hero .crossing .meet { opacity: 0; transform-origin: 640px 280px; animation: meet 0.5s 1.35s cubic-bezier(.3, 1.6, .5, 1) forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes meet { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding-bottom: 3.5rem; }
.hero-in { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; position: relative; }
.hero h1 {
  font-size: clamp(3rem, 13.5vw, 6.6rem); line-height: 0.95; letter-spacing: -0.035em; font-weight: 800;
  margin: 0.4rem 0 1.25rem; max-width: 9.5em; text-wrap: balance;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; text-wrap: pretty; }
.city-note { margin-top: 1.25rem; font-weight: 600; color: var(--teal-ink); }
@media (min-width: 900px) {
  .hero { padding: 3.5rem 0 6rem; }
  .hero .crossing { position: absolute; top: 0; bottom: 0; left: 44%; width: 56%; height: 100%; margin: 0; }
  .hero .crossing { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .hero-in > * { max-width: 34rem; }
  .hero h1 { max-width: 7.5em; }
}

/* ------------------------------------------------------------ forms */
.wl, .del { margin-top: 1.75rem; display: grid; gap: 0.9rem; max-width: 34rem; }
.wl-row { display: grid; gap: 0.9rem; }
@media (min-width: 560px) { .wl-row { grid-template-columns: 1.6fr 1fr; } }
.field { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit; font-weight: 400; font-size: 1.0625rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 0.8rem 0.9rem; width: 100%; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 30%, transparent); }
.field input[aria-invalid='true'] { border-color: var(--coral-ink); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start; font-size: 0.95rem; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0.1rem 0 0; accent-color: var(--teal); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0.85rem 1.6rem;
  border: 0; border-radius: 999px; background: var(--coral); color: var(--on-coral);
  font: 700 1.0625rem/1.2 var(--text); text-decoration: none; cursor: pointer; justify-self: start;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover { background: color-mix(in srgb, var(--coral) 88%, #fff); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { background: var(--mist); }
.fine { font-size: 0.875rem; color: var(--muted); margin: 0; }
.msg { margin: 0; font-weight: 600; color: var(--coral-ink); min-height: 0; }
.msg:empty { display: none; }
.wl-done { border-left: 4px solid var(--teal); padding: 0.25rem 0 0.25rem 1rem; }
.wl-done:not([hidden]) { animation: pop 0.35s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.done-title { font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.25; color: var(--ink); margin-bottom: 0.4rem; }
.done-share { margin: 0; color: var(--muted); }
.link-btn { font: inherit; font-weight: 700; color: var(--teal-ink); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
form.is-done > :not(.wl-done):not(.errs) { display: none; }

/* ------------------------------------------------------------ phases: a route with three stops */
.phases { max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.25rem 3rem; }
.sec-head { max-width: 40rem; margin-bottom: 2.5rem; }
.sec-head p { color: var(--muted); font-size: 1.1rem; }
.route { list-style: none; margin: 0; padding: 0 0 0 1.75rem; position: relative; display: grid; gap: 3rem; }
.route::before { content: ''; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 2rem; width: 3px; border-radius: 3px; background: var(--teal); }
.stop { position: relative; }
.stop-name { font-family: var(--display); font-weight: 700; color: var(--teal-ink); margin-bottom: 0.3rem; font-size: 1.05rem; }
.stop .dot { position: absolute; left: -1.75rem; top: 0.25rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--teal); }
.stop-2 .dot { border-color: var(--coral); background: var(--coral); }
.stop h3 { font-size: 1.6rem; }
.stop > p:not(.stop-name) { color: var(--muted); max-width: 30rem; }
.shot { margin: 1.25rem 0 0; max-width: 340px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: #fff; }
@media (min-width: 900px) {
  .route { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 2.25rem 0 0; }
  .route::before { left: 0.6rem; right: 0; top: 0.55rem; bottom: auto; height: 3px; width: auto; }
  .stop .dot { left: 0; top: -2.25rem; }
}

/* ------------------------------------------------------------ safety */
.safety { background: var(--mist); }
.safety-in { max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.25rem; display: grid; gap: 2.5rem; }
.safety-text > p { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.girls { margin-top: 2rem; padding: 1.25rem 1.4rem; border-radius: var(--r-m); background: var(--paper); border: 1.5px solid color-mix(in srgb, var(--coral) 45%, var(--line)); max-width: 34rem; }
.girls h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.girls p { margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; align-content: start; }
.facts li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.8rem; font-size: 1.05rem; }
.xmark { width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; fill: none; stroke-width: 3.2; stroke-linecap: round; }
.xm-t { stroke: var(--teal); }
.xm-c { stroke: var(--coral); }
@media (min-width: 900px) { .safety-in { grid-template-columns: 1.1fr 1fr; gap: 4rem; padding: 6rem 1.25rem; } .facts { padding-top: 0.6rem; } }

/* ------------------------------------------------------------ proof */
.proof-in { max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.25rem; display: grid; gap: 2rem; }
.proof-in p { color: var(--muted); max-width: 34rem; }
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.quotes blockquote { margin: 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.3; }
.who { font-size: 0.9rem; }
.captains { border-top: 1px solid var(--line); padding-top: 1.5rem; }
@media (min-width: 900px) { .proof-in { grid-template-columns: 1fr 1fr; align-items: start; } .captains { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 2rem; } }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem 1rem; display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; display: flex; gap: 0.75rem; align-items: center; }
.foot-brand p { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.mark { width: 32px; height: auto; }
.foot h2 { font-family: var(--text); font-size: 0.95rem; font-weight: 700; letter-spacing: 0; margin-bottom: 0.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-small { max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem 2.5rem; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 900px) { .foot-in { grid-template-columns: 2fr 1fr 1fr; } .foot-brand { grid-column: auto; align-items: start; } }

/* ------------------------------------------------------------ documents */
.doc { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem 1.25rem 4rem; display: grid; gap: 0 3.5rem; }
.doc-head { grid-column: 1 / -1; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 3px solid var(--coral); max-width: 46rem; }
.doc-head h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.doc-meta { color: var(--muted); margin: 0; font-size: 0.95rem; }
.doc-body { max-width: 42rem; min-width: 0; }
.doc-body h2 { font-size: 1.45rem; margin-top: 2.2rem; scroll-margin-top: 1.5rem; }
.doc-body h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.doc-body ul, .doc-body ol { padding-left: 1.3rem; margin: 0 0 1em; }
.doc-body li { margin-bottom: 0.4rem; }
.doc-body li::marker { color: var(--teal); }
.doc-body blockquote { margin: 1rem 0; padding: 0.6rem 1rem; border-left: 3px solid var(--teal); background: var(--mist); border-radius: 0 var(--r-s) var(--r-s) 0; }
.doc-body blockquote p:last-child { margin: 0; }
.table { overflow-x: auto; margin: 1rem 0; }
.doc-body table { border-collapse: collapse; font-size: 0.95rem; min-width: 32rem; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
.doc-body th { background: var(--mist); }
.toc { font-size: 0.95rem; margin-bottom: 1.5rem; }
.toc h2, .doc-more h2 { font-family: var(--text); font-size: 0.95rem; font-weight: 700; letter-spacing: 0; margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.doc-more { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.doc-more ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
@media (min-width: 1000px) {
  .legal .doc:has(.toc) { grid-template-columns: 15rem minmax(0, 42rem); }
  .toc { position: sticky; top: 1.5rem; align-self: start; grid-row: 2; }
  .doc-body { grid-row: 2; }
}
.doc.narrow { max-width: 46rem; display: block; }
.doc.narrow .lead { margin: 0.75rem 0 0; }
.way { margin-bottom: 2.5rem; }
.way h2, .doc.narrow > h2, .two h2 { font-size: 1.5rem; }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: 0.4rem; }
.steps li::marker { font-family: var(--display); font-weight: 700; color: var(--coral-ink); }
.del { margin: 1.25rem 0 1rem; }
.two { display: grid; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.two ul { padding-left: 1.2rem; color: var(--muted); }
@media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; } }
.contact { margin: 1.5rem 0; }
.contact dt { font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.contact dd { margin: 0; font-family: var(--display); font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 700; }
.contact dd a { color: var(--ink); text-decoration-color: var(--coral); text-decoration-thickness: 3px; }
.emergency { padding: 0.9rem 1.1rem; border-radius: var(--r-m); background: var(--mist); font-weight: 600; margin: 1.5rem 0 2.5rem; }
.faq details { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style-position: outside; }
.faq summary::marker { color: var(--teal); }
.faq p { margin: 0.6rem 0 0; color: var(--muted); }

/* ------------------------------------------------------------ open-in-app / 404 */
.open { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
.crossing-small { height: 150px; margin: 0 -1.25rem 1rem; width: calc(100% + 2.5rem); }
.open h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); letter-spacing: -0.03em; }
.open h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.open .btn { margin: 0.5rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .top, .foot, .crossing, .toc, .doc-more { display: none; }
  body { background: #fff; color: #000; }
}
