/* The public landing page (templates/landing.html). Self-contained: it does not load style.css.
   World: the departures board of docs/landing-mockups/b-departures.html in the Starstelle brand colours (navy #0E1E33,
   gold #FFD200, paper #F4F6F8). Each vacancy row and each card is a SHEET of the logo: a gold edge on top, and on
   light grounds the logo's own flat shadow. Faces: Sofia Sans Condensed for headings, Inter for text (fonts.css). */
:root {
  --navy: #0e1e33; --board-2: #16294a; --cell: #1d3357; --seam: #0a1627;
  --paper: #f4f6f8; --white: #ffffff; --white-soft: #b9c4d4;
  --gold: #ffd200; --gold-2: #ffe45c;
  --ink: #0b0f14; --ink-soft: #3b3f46; --paper-2: #f1f2f4;
  --shade-navy: #050b14; --shade-paper: #cfd6df;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --m: clamp(16px, 2.2vw, 32px);
  --font-display: "Sofia Sans Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--cell) var(--navy); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.on-light :focus-visible, .pro :focus-visible, .faq :focus-visible { outline-color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 0;
  font: 700 1.125rem/1 var(--font-display); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn-yellow { background: var(--gold); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { background: transparent; color: inherit; padding: 0 6px; }
@media (hover: hover) and (pointer: fine) {
  .btn-yellow:hover { background: var(--gold-2); }
  .btn-ink:hover { background: #222a35; }
  .btn-line:hover { text-decoration: underline; }
}

/* ---------- first screen: the sentence, the search, the board ---------- */
.hall { background: var(--navy); color: var(--paper); padding: 0 var(--m) 56px; }
.top { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { width: 118px; height: 28px; display: block; }
.top nav { display: flex; gap: 24px; }
.top nav a { text-decoration: none; color: var(--white-soft); font-size: 1rem; }
.top nav a:hover { color: var(--paper); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; font-size: .9375rem; }
.lang a { text-decoration: none; padding: 4px 7px; color: var(--white-soft); }
.lang a:hover { color: var(--paper); }
.lang a[aria-current] { background: var(--paper); color: var(--navy); }

.sentence { margin-top: clamp(36px, 7vh, 88px); font-size: clamp(2.125rem, 6.8vw, 8rem); line-height: .95; letter-spacing: -0.025em; font-weight: 800; }
.sentence .l { display: flex; align-items: center; flex-wrap: nowrap; gap: .22em; }

.sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-top: clamp(28px, 5vh, 56px); }
.sub > p { font-size: clamp(1.0625rem, 1rem + .35vw, 1.3rem); line-height: 1.5; max-width: 42ch; color: var(--paper); }
.find { display: grid; gap: 12px; min-width: 0; }
.kiosk { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 4px; background: var(--board-2); padding: 4px; }
.kiosk label { display: flex; flex-direction: column; min-width: 0; padding: 10px 16px 8px; background: var(--cell); font-size: .875rem; color: var(--white-soft); cursor: text; }
.kiosk label:focus-within { background: #25406a; }
.kiosk input { border: 0; background: transparent; color: var(--paper); font: 600 1.125rem/1.3 var(--font-sans); padding: 2px 0; outline: none; min-width: 0; }
.kiosk input::placeholder { color: #a3afc2; font-weight: 500; }
.kiosk .btn { min-height: auto; }
.kiosk-hint { font-size: .9375rem; color: var(--white-soft); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9375rem; color: var(--white-soft); align-items: center; }
.quick button { font: 600 .9375rem/1 var(--font-sans); color: var(--paper); background: var(--board-2); border: 0; padding: 9px 12px; cursor: pointer; transition: background-color 160ms ease, transform 120ms var(--ease-out); }
.quick button:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .quick button:hover { background: var(--cell); } }


/* ---------- how it works: drag through the stages ---------- */
.stages { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; position: relative; }
.stages .left { background: var(--navy); color: var(--paper); padding: clamp(64px, 10vh, 120px) var(--m) 170px; }
.stages .right { background: var(--paper-2); display: grid; place-items: center; padding: 60px var(--m) 170px; }
.clause { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 1rem + 3.6vw, 4.75rem); line-height: .98; max-width: 21ch; letter-spacing: -0.02em; }
.clause-sub { margin-top: 24px; max-width: 36ch; color: var(--white-soft); font-size: 1.0625rem; }
.frag { width: min(460px, 100%); position: relative; min-height: 340px; }
.frag > div { position: absolute; inset: 0 8px 10px 0; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.frag > div.on { opacity: 1; visibility: visible; transition: opacity 200ms ease, visibility 0s; }
.card { background: var(--white); padding: 22px 24px; border-top: 6px solid var(--navy); box-shadow: 8px 10px 0 var(--shade-paper); }
.card .h4 { margin: 0 0 12px; font: 700 1.25rem/1.3 var(--font-display); letter-spacing: 0; }
.card .li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: .9375rem; }
.card .li + .li { border-top: 3px solid var(--paper-2); }
.card .li span:last-child { color: var(--ink-soft); text-align: right; }
.card .tag { display: inline-block; flex: none; white-space: nowrap; background: var(--gold); color: var(--ink); padding: 2px 7px; font: 700 .9375rem/1.3 var(--font-display); }
.card .days { display: flex; gap: 4px; margin: 6px 0 14px; }
.card .days span { width: 42px; height: 38px; display: grid; place-items: center; background: var(--paper-2); font-size: .875rem; }
.card .days span.on { background: var(--ink); color: var(--paper); }
.card .msg { background: var(--paper-2); padding: 14px 16px; font-size: .9375rem; }
.card .msg b { display: block; margin-bottom: 6px; }
.card .bar { height: 10px; background: var(--paper-2); margin: 8px 0 4px; position: relative; }
.card .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 74%; background: var(--ink); }
.slider { position: absolute; left: var(--m); right: var(--m); bottom: 48px; }
.slider input { width: 100%; appearance: none; -webkit-appearance: none; height: 32px; background: transparent; margin: 0; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(to right, var(--gold) var(--p, 0%), #c9ced6 var(--p, 0%)); }
.slider input::-moz-range-track { height: 8px; background: #c9ced6; }
.slider input::-moz-range-progress { height: 8px; background: var(--gold); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; background: var(--gold); border: 0; border-radius: 0; }
.slider input::-moz-range-thumb { width: 32px; height: 32px; background: var(--gold); border: 0; border-radius: 0; }
.slider input:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.stops { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; font-size: 1rem; }
.stops button { font: 600 1rem/1.3 var(--font-sans); background: none; border: 0; padding: 4px 0; text-align: left; color: #8d9bb0; cursor: pointer; }
.stops button:nth-child(n+3) { color: #5d6573; }
.stops button.cur { color: var(--gold); }
.stops button:nth-child(n+3).cur { color: var(--ink); }

/* ---------- Pro: one plan as a sentence ---------- */
.pro { background: var(--gold); padding: clamp(110px, 16vh, 190px) var(--m); }
.pro .sent { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 1rem + 3.3vw, 4rem); line-height: 1; letter-spacing: -0.02em; max-width: 22ch; }
.pro .sent .blk { display: inline-block; background: var(--ink); color: var(--gold); padding: 0 .15em; line-height: 1.02; }
.pro-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; margin-top: 64px; align-items: end; }
.pro-row p { font-size: 1.1875rem; max-width: 44ch; }
.pro-row .acts { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.inc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 72px; }
.inc div { background: var(--white); padding: 26px 24px 28px; border-top: 6px solid var(--navy); box-shadow: 8px 10px 0 var(--navy); }
.inc h3 { font-size: 1.5rem; line-height: 1.1; }
.inc p { margin-top: 10px; font-size: 1rem; color: var(--ink-soft); }

/* ---------- questions ---------- */
.faq { background: var(--white); padding: clamp(110px, 16vh, 180px) var(--m); }
.faq h2 { font-size: clamp(2.75rem, 1rem + 4.4vw, 5.25rem); line-height: .95; }
.qs { margin-top: 80px; margin-left: calc(100% * 4 / 12); max-width: 860px; }
.qs details { transition: background-color 200ms ease; margin: 0 -24px; }
.qs details[open] { background: var(--paper-2); }
.qs summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 14px 24px; font-size: 1.3125rem; cursor: pointer; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary svg { flex: none; width: 20px; height: 20px; margin-top: 6px; transition: transform 220ms var(--ease-out); }
.qs details[open] summary svg { transform: rotate(180deg); }
.qs details p { padding: 0 24px 22px; max-width: 52ch; font-size: 1rem; color: var(--ink-soft); }
.qs details + details { margin-top: 14px; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--paper); min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding: clamp(80px, 12vh, 130px) var(--m) 0; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.foot-top > div { grid-column: 1 / span 7; }
.foot h2 { font-size: clamp(2.75rem, 1rem + 4vw, 5rem); line-height: .95; max-width: 16ch; }
.foot .btn { margin-top: 32px; }
.foot-links { grid-column: 10 / span 3; display: grid; gap: 12px; align-content: start; font-size: 1.0625rem; }
.foot-links a { text-decoration: none; color: var(--white-soft); }
.foot-links a:hover { color: var(--paper); text-decoration: underline; }
.foot-langs { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9375rem; }
.word { margin: auto 0 clamp(28px, 5vh, 48px); padding-top: clamp(56px, 9vh, 110px); line-height: 0; user-select: none; }
.word svg { display: block; width: 100%; height: auto; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .875rem; color: var(--white-soft); padding-bottom: 14px; }

/* entrance: only when motion is welcome, and only when the script that reveals it is running */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(22px); }
  .js .rise.in { opacity: 1; transform: none; transition: opacity 520ms ease, transform 640ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
}

@media (max-width: 1100px) {
  .top nav { display: none; }
}
@media (max-width: 860px) {
  .sub { grid-template-columns: 1fr; }
  .kiosk { grid-template-columns: 1fr; }
  .kiosk .btn { min-height: 56px; }
  .stages { grid-template-columns: 1fr; min-height: 0; }
  .stages .right { order: -1; min-height: 46svh; padding: 32px var(--m) 120px; }
  .stages .left { padding: 48px var(--m) 64px; }
  .slider { top: calc(46svh - 96px); bottom: auto; }
  .stops { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .stops button, .stops button:nth-child(n+3) { color: #4b5563; }
  .stops button.cur, .stops button:nth-child(n+3).cur { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--gold); }
  .pro-row { grid-template-columns: 1fr; }
  .pro-row .acts { justify-self: start; align-items: flex-start; }
  .inc { grid-template-columns: 1fr; }
  .qs { margin-left: 0; }
  .qs details { margin: 0 calc(-1 * var(--m)); }
  .qs summary { padding: 14px var(--m); }
  .qs details p { padding: 0 var(--m) 20px; }
  .foot-top > div, .foot-links { grid-column: 1 / -1; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .9375rem; }
  .foot-langs { flex-basis: 100%; }
}
@media (max-width: 520px) {
  .lang, .top .btn-line { display: none; }
  .top .btn { min-height: 42px; padding: 0 14px; font-size: 1rem; }
  .sentence { font-size: 2.125rem; }
  .sentence .l { flex-wrap: wrap; gap: .18em; }
  .foot h2 { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .quick button:active { transform: none; }
}
