/* MyFerry public site (landing, sign-in, legal): the app's world on the web. The night town from the app's
   first screen, white app sheets with 24px corners, yellow only for the route, the ferry and the one main
   action in view; amber warns, red is danger, green is done. Overpass for headlines, Inter for text, Noto
   Sans Myanmar for Burmese. */
:root {
  --night: #161616;
  --night-2: #1f1f1f;
  --night-line: #2e2e2e;
  --on-night: #f2f2f2;
  --on-night-sub: #a3a39d;
  --ink: #121212;
  --yellow: #ffd400;
  --yellow-hover: #ffde33;
  --yellow-press: #e6bf00;
  --white: #ffffff;
  --surface: #f6f6f3;
  --line: #e4e4e0;
  --text: #121212;
  --sub: #5e5e58;
  --placeholder: #6f6f69;
  --green: #1b8a4e;
  --green-soft: #e3f5ea;
  --red: #c62828;
  --amber: #b85c00;
  --d-green: #5bd08f;
  --d-green-bg: #16261c;
  --d-red: #f27a7a;
  --d-red-bg: #2a1717;
  --d-amber: #ffb547;
  --d-amber-bg: #2b2210;

  --font-display: "Overpass", "Noto Sans Myanmar", system-ui, sans-serif;
  --font-text: "Inter", "Noto Sans Myanmar", "Myanmar Text", system-ui, sans-serif;

  /* the app's corners: 12 controls, 16 cards, 20 hero card, 24 sheets */
  --r-ctl: 12px;
  --r-card: 16px;
  --r-big: 20px;
  --r-sheet: 24px;

  /* one control transition everywhere (site and admin): 160ms on this curve */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* one disabled look for every control: faded, never below 3:1 for its text (solid red is the floor) */
  --disabled: 0.65;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --nav-h: 72px;
  --section: clamp(80px, 9vw, 128px);
  --focus: var(--ink);
  color-scheme: light;
  accent-color: var(--ink);
  scrollbar-color: #4a4a46 var(--night);
}
@media (max-width: 899px) { :root { --nav-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--night); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(my) body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; caret-color: var(--ink); }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
:lang(my) h1, :lang(my) h2, :lang(my) h3 { font-weight: 700; letter-spacing: 0; line-height: 1.5; }

/* the parts of the browser we did not draw */
::selection { background: var(--yellow); color: var(--ink); }
/* one focus ring: 2px with a 2px gap, ink on light grounds, yellow on dark */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.night, .nav, .menu, .hero-scene, .auth-page, .skip { --focus: var(--yellow); }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: #4a4a46; border-radius: 999px; border: 3px solid var(--night); }
.screens::-webkit-scrollbar-track { background: transparent; }
.screens::-webkit-scrollbar-thumb { background: var(--line); border-color: var(--white); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.night { background: var(--night); color: var(--on-night); }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--sub); max-width: 58ch; }
.night .lead { color: var(--on-night-sub); }
:lang(my) .lead { line-height: 1.85; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--r-ctl); background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 22px; border: 1.5px solid transparent; border-radius: var(--r-ctl);
  font: 700 16px/1.2 var(--font-text); text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
:lang(my) .btn { white-space: normal; text-align: center; line-height: 1.5; padding-block: 10px; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: var(--yellow-hover); }
.btn-primary:active:not(:disabled) { background: var(--yellow-press); }
.btn-line { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.btn-line:hover { border-color: currentColor; }
.btn-quiet { background: transparent; color: var(--on-night); border-color: rgba(255, 255, 255, 0.22); }
.btn-quiet:hover { border-color: var(--on-night); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-wide { width: 100%; }
/* disabled: faded and not-allowed; busy is not disabled-looking: it keeps Pressed Yellow and a progress cursor */
:is(button, input, select, textarea):disabled:not([aria-busy="true"]) { opacity: var(--disabled); cursor: not-allowed; }
[aria-busy="true"] { cursor: progress; }
.btn-primary[aria-busy="true"] { background: var(--yellow-press); }

/* ---------- top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h); color: var(--on-night);
  background: rgba(22, 22, 22, 0); border-bottom: 1px solid transparent;
  transition: background-color 280ms var(--ease), border-color 280ms var(--ease);
}
.nav.scrolled { background: var(--night); border-bottom-color: var(--night-line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
/* the wordmark, as in the app: the pin mark, then "My" + "Ferry" in Inter 800; "Ferry" is yellow on dark
   grounds and ink on light. The mark is 1.5x the text; the yellow is part of the logo, not a main action. */
.brand { --wm: 21px; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; text-decoration: none; color: inherit; }
.brand img { width: calc(var(--wm) * 1.5); height: calc(var(--wm) * 1.5); }
.brand b { font: 800 var(--wm)/1 "Inter", system-ui, sans-serif; letter-spacing: -0.5px; white-space: nowrap; }
.brand i { font-style: normal; color: var(--wm-ferry, currentColor); }
.night, .nav, .menu { --wm-ferry: var(--yellow); }
.nav-links { display: none; gap: 2px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--on-night-sub); transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav-links a:hover { color: var(--on-night); background: rgba(255, 255, 255, 0.06); }
.nav-side { display: flex; align-items: center; gap: 10px; }
.nav-signin { display: none; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.lang button { min-height: 38px; min-width: 46px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--on-night-sub); font-weight: 700; font-size: 14px; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.lang button[data-lang="my"] { font-family: "Noto Sans Myanmar", var(--font-text); }
.lang button[aria-pressed="true"] { background: var(--on-night); color: var(--ink); }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-ctl); background: rgba(255, 255, 255, 0.08); color: var(--on-night); }
.menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49; display: grid; padding: 4px var(--gutter) 20px;
  background: var(--night); color: var(--on-night); border-bottom: 1px solid var(--night-line);
}
.menu a:not(.btn) { display: flex; align-items: center; min-height: 52px; font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--night-line); }
.menu .btn { margin-top: 16px; }
@media (min-width: 1080px) {
  .nav-links, .nav-signin { display: inline-flex; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- hero: the app's first screen ---------- */
.hero { position: relative; background: var(--night); margin-top: calc(-1 * var(--nav-h)); }
.hero-scene { position: absolute; inset: 0; overflow: hidden; color: var(--on-night); }
.scene, .scene-map { position: absolute; inset: 0; }
.scene-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scene::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.9) 0, rgba(22, 22, 22, 0) 150px),
    linear-gradient(90deg, rgba(22, 22, 22, 0.95) 0%, rgba(22, 22, 22, 0.88) 30%, rgba(22, 22, 22, 0.45) 42%, rgba(22, 22, 22, 0) 52%);
}
.mf-name { fill: #b5b5b0; font-weight: 700; font-family: var(--font-text); }
.mf-office { fill: var(--yellow); font-weight: 800; font-family: var(--font-text); }
.mf-badge-n { fill: #fff; font-weight: 800; font-family: var(--font-text); }
.mf-ppl { transition: opacity 500ms ease; }
.mf-pulse { transform-box: fill-box; transform-origin: center; animation: mf-pulse 2s ease-in-out infinite; }
.paused .mf-pulse { animation-play-state: paused; }
@keyframes mf-pulse { 0%, 100% { transform: scale(0.57); opacity: 1; } 50% { transform: scale(1.29); opacity: 0; } }

/* the app's status card: what the app is telling people right now */
.run-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-card); background: var(--white); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.run-card.pop { animation: card-pop 320ms var(--ease); }
@keyframes card-pop { 40% { transform: scale(1.04); } }
.rc-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--yellow); color: var(--ink); transition: background-color 300ms, color 300ms; }
.rc-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.run-card.ok .rc-ic { background: var(--green); color: var(--white); }
.rc-tx { flex: 1; min-width: 0; }
.rc-tx b { display: block; font-size: 15px; line-height: 1.45; }
.rc-tx small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--sub); }
.rc-n { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--yellow); font-size: 12.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }

.play {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: rgba(22, 22, 22, 0.78); color: var(--on-night);
  font-weight: 700; font-size: 14px; transition: border-color 160ms var(--ease);
}
.play:hover { border-color: rgba(255, 255, 255, 0.6); }
.play .ic { width: 16px; height: 16px; fill: currentColor; stroke: none; }

.hero h1 { font-size: clamp(44px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.03em; }
:lang(my) .hero h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.4; letter-spacing: 0; }
.hero .lead { margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.invite-line { margin-top: 20px; font-size: 15px; color: var(--sub); }
.invite-line a { font-weight: 700; color: inherit; }

@media (min-width: 900px) {
  .hero { height: min(100svh, max(640px, 56.25vw)); min-height: 640px; }
  .hero-copy {
    position: absolute; z-index: 2; color: var(--on-night); --focus: var(--yellow);
    left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    bottom: clamp(56px, 9vh, 104px); width: min(560px, 41%);
  }
  .hero-copy .lead, .hero-copy .invite-line { color: var(--on-night-sub); }
  .run-card { top: calc(var(--nav-h) + 28px); right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); width: 440px; padding: 12px 14px; gap: 12px; }
  .rc-ic { width: 40px; height: 40px; }
  .rc-tx b { font-size: 16px; }
  .rc-tx small { font-size: 13.5px; }
  .play { right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); bottom: 48px; }
}
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; min-height: 100svh; }
  /* the town starts under the status card (landing.js measures it), so the card never hides the route */
  .hero-scene { position: relative; flex: 1 0 auto; min-height: max(400px, 54svh, calc(var(--scene-top, 0px) + 320px)); }
  .scene { top: var(--scene-top, 0px); bottom: 20px; }
  .hero-scene::before { background: linear-gradient(180deg, var(--night) 0, var(--night) var(--scene-top, 0px), rgba(22, 22, 22, 0) calc(var(--scene-top, 0px) + 36px)); }
  .run-card { top: calc(var(--nav-h) + 8px); left: 14px; right: 14px; max-width: 520px; margin: 0 auto; }
  .play { right: 12px; bottom: 32px; padding: 0; width: 44px; justify-content: center; }
  .play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero-copy {
    position: relative; z-index: 3; margin-top: -20px; padding: 24px var(--gutter) 24px;
    border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--white); color: var(--ink);
  }
  .hero h1 { font-size: clamp(28px, 7.4vw, 44px); line-height: 1.08; }
  :lang(my) .hero h1 { font-size: clamp(24px, 6.4vw, 36px); line-height: 1.5; }
  .hero .lead { margin-top: 8px; font-size: 15.5px; }
  .cta-row { flex-direction: column; gap: 8px; margin-top: 20px; }
  .cta-row .btn { width: 100%; }
  .invite-line { margin-top: 14px; font-size: 14px; text-align: center; }
}

/* ---------- sections ---------- */
section h2 { font-size: clamp(34px, 3.8vw, 54px); }
:lang(my) section h2 { font-size: clamp(26px, 2.8vw, 38px); }
.head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.head .lead { margin-top: 16px; }

/* each role's real screen, no device frame: the screenshot's own edge is cut away */
.shot { position: relative; overflow: hidden; border-radius: var(--r-big); background: var(--surface); border: 1px solid var(--line); aspect-ratio: 400 / 640; box-shadow: 0 18px 40px -22px rgba(18, 18, 18, 0.35); }
.shot img { width: 107.6%; max-width: none; height: auto; margin: -3.8% 0 0 -3.8%; }

.roles { position: relative; z-index: 3; background: var(--white); padding: clamp(64px, 7vw, 96px) 0 var(--section); }
@media (min-width: 900px) { .roles { margin-top: -20px; border-radius: var(--r-sheet) var(--r-sheet) 0 0; } }
.screens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.screens h3 { font-size: 24px; margin-top: 24px; }
:lang(my) .screens h3 { font-size: 21px; }
.promise { margin-top: 4px; font-weight: 600; font-size: 17px; line-height: 1.4; }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.facts li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.5; color: var(--sub); }
:lang(my) .facts li { line-height: 1.8; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; background: var(--ink); }
@media (max-width: 1079px) and (min-width: 720px) { .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } .screens .shot { max-width: 320px; } }
@media (max-width: 719px) {
  .screens {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 16px; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  }
  .screens > li { scroll-snap-align: start; }
  .screens h3 { margin-top: 18px; }
}

/* safety: an evening on a manager's phone */
.safety { padding: var(--section) 0; }
.safety-grid { display: grid; gap: 48px; }
.shot-sos { max-width: 320px; margin-top: 40px; aspect-ratio: 400 / 520; border-color: var(--night-line); background: var(--night-2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8); }
.log { margin: 0; }
.log ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-line); }
.log li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--night-line); }
.log time { padding-top: 4px; font-size: 15px; font-weight: 600; color: var(--on-night-sub); font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.lg-ok .tag { background: var(--d-green-bg); color: var(--d-green); }
.lg-bad .tag { background: var(--d-red-bg); color: var(--d-red); }
.lg-warn .tag { background: var(--d-amber-bg); color: var(--d-amber); }
.log b { display: block; margin-top: 10px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.35; color: var(--on-night); }
:lang(my) .log b { line-height: 1.7; }
.log p { margin-top: 6px; font-size: 15.5px; color: var(--on-night-sub); max-width: 56ch; }
.log figcaption { margin-top: 16px; font-size: 14px; color: var(--on-night-sub); }
@media (min-width: 1000px) {
  .safety-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
  .log { padding-top: 8px; }
}
@media (max-width: 999px) { .shot-sos { display: none; } }

/* built for Yangon: four facts, once each */
.yangon { background: var(--surface); padding: var(--section) 0; }
.yangon-grid, .faq-grid { display: grid; gap: 40px; }
.facts-list { margin: 0; border-top: 1px solid var(--line); }
.facts-list > div { display: grid; gap: 8px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.facts-list dt { font: 800 clamp(24px, 2.4vw, 34px)/1.12 var(--font-display); letter-spacing: -0.02em; }
:lang(my) .facts-list dt { font-weight: 700; font-size: clamp(21px, 2vw, 27px); line-height: 1.55; letter-spacing: 0; }
.facts-list dd { margin: 0; font-size: 17px; color: var(--sub); max-width: 48ch; }
@media (min-width: 760px) { .facts-list > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: baseline; } }
@media (min-width: 1000px) {
  .yangon-grid, .faq-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
}

/* questions */
.faq { background: var(--white); padding: var(--section) 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 16px 0; cursor: pointer; font-weight: 700; font-size: 18px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 280ms var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq summary:hover span { text-decoration: underline; text-decoration-color: var(--line); }
.faq details p { padding: 0 0 24px; font-size: 16.5px; color: var(--sub); max-width: 62ch; }
.faq details a { color: var(--ink); font-weight: 600; }

/* the close: the pilot and its form */
.close { padding: var(--section) 0; }
.close-grid { display: grid; gap: 48px; }
.close h2 { font-size: clamp(36px, 4.4vw, 64px); }
.close .lead { margin-top: 20px; }
.days { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--night-line); max-width: 560px; }
.days li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--night-line); color: var(--on-night-sub); }
.days .day { font-weight: 600; font-variant-numeric: tabular-nums; }
.days b { color: var(--on-night); }
.close-more { margin-top: 28px; }
.close-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--on-night); text-decoration-color: rgba(255, 255, 255, 0.35); }
.close-more a:hover { text-decoration-color: var(--on-night); }
@media (min-width: 1000px) { .close-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }

.form-sheet { --focus: var(--ink); background: var(--white); color: var(--ink); border-radius: var(--r-sheet); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8); }
.field + .field, .field + .field-pair, .field-pair + .field { margin-top: 18px; }
.field-pair { display: grid; gap: 18px; }
.field-pair > .field { margin-top: 0; }
section h2 + .lead { margin-top: 20px; }
@media (min-width: 560px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14.5px; }
.field .opt { font-weight: 500; color: var(--sub); }
.field input, .field textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--text); font-size: 16px; line-height: 1.4;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: #c9c9c3; }
/* focus: the fill turns white with an ink edge, plus the one focus ring (2px ink, 2px gap) */
.field input:focus, .field textarea:focus { border-color: var(--ink); background: var(--white); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field [aria-invalid="true"], .field [aria-invalid="true"]:focus { border-color: var(--red); background: #fffafa; }
.f-err { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--red); }
.f-err:empty, .form-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-sheet .btn-wide { margin-top: 24px; }
.form-msg { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--red); }
.form-alt { margin-top: 16px; font-size: 14.5px; color: var(--sub); }
.form-alt a { color: var(--ink); font-weight: 600; }
.sent { outline: none; }
.sent-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.sent h3 { margin-top: 18px; font-size: 26px; }
:lang(my) .sent h3 { font-size: 22px; }
.sent p { margin-top: 8px; color: var(--sub); }
.sent .btn { margin-top: 24px; }

/* ---------- footer ---------- */
.foot { padding: 64px 0 32px; border-top: 1px solid var(--night-line); }
.foot-grid { display: grid; gap: 40px; }
.foot-tag { margin-top: 18px; font: 800 22px/1.2 var(--font-display); letter-spacing: -0.01em; }
:lang(my) .foot-tag { font-weight: 700; line-height: 1.6; letter-spacing: 0; }
.foot-sub { margin-top: 6px; color: var(--on-night-sub); max-width: 40ch; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot-links h2 { font: 700 14px/1.5 var(--font-text); letter-spacing: 0; color: var(--on-night-sub); margin-bottom: 8px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--on-night); }
.foot-links a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--night-line); color: var(--on-night-sub); font-size: 14px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.3fr 1fr; } }

/* ---------- sign-in: one card on the night town ---------- */
.auth-page { background: var(--night); }
.auth-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.auth-scene::after { content: ""; position: absolute; inset: 0; background: rgba(22, 22, 22, 0.76); }
/* behind the sign-in card the town carries no words: nothing to read next to the card's own text */
.auth-scene .mf-name, .auth-scene .mf-office { display: none; }
.auth { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: calc(100svh - var(--nav-h)); padding: 24px var(--gutter) 40px; }
.auth-card { --focus: var(--ink); width: 100%; max-width: 440px; padding: clamp(24px, 4vw, 36px); border-radius: var(--r-sheet); background: var(--white); color: var(--ink); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.85); }
.auth-card h1 { font-size: clamp(26px, 3vw, 32px); line-height: 1.1; }
:lang(my) .auth-card h1 { font-size: 23px; line-height: 1.5; }
.auth-card .muted { margin-top: 8px; color: var(--sub); }
.auth-card .field { margin-top: 22px; }
.auth-card .btn-wide { margin-top: 16px; }
.code-input { text-align: center; font-size: 28px !important; font-weight: 700; letter-spacing: 0.35em; font-variant-numeric: tabular-nums; padding-left: calc(14px + 0.35em) !important; }
.msg { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--sub); }
.msg:empty { display: none; }
.msg.bad { color: var(--red); }
.msg.good { color: var(--green); }
.links-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 10px; }
.text-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.25em; font-variant-numeric: tabular-nums; }
.text-btn:hover:not([disabled]) { text-decoration-color: var(--ink); }
.org-list { display: grid; gap: 10px; margin-top: 20px; }
.org-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-card); background: var(--white); text-align: left; transition: border-color 160ms var(--ease); }
.org-item:hover { border-color: var(--ink); }
.org-item .o-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-ctl); background: var(--surface); }
.org-item b { display: block; font-size: 16px; line-height: 1.4; }
.org-item small { display: block; color: var(--sub); font-size: 14px; }
.org-item > .ic:last-child { margin-left: auto; color: var(--sub); }
.who-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 8px; color: var(--sub); }
.auth-note { max-width: 440px; text-align: center; color: var(--on-night); font-size: 15px; }
.small-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; font-size: 14px; }
.small-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-night-sub); text-decoration: none; }
.small-links a:hover { color: var(--on-night); text-decoration: underline; }
@media (min-width: 900px) {
  .auth-scene::after { background: linear-gradient(90deg, rgba(22, 22, 22, 0.94) 0%, rgba(22, 22, 22, 0.86) 34%, rgba(22, 22, 22, 0.3) 50%, rgba(22, 22, 22, 0.1) 70%); }
  .auth { align-items: flex-start; padding-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
  .auth-note { text-align: left; }
  .small-links { justify-content: flex-start; }
}

/* ---------- legal pages ---------- */
.doc-hero { margin-top: calc(-1 * var(--nav-h)); padding: calc(var(--nav-h) + 56px) 0 48px; }
.doc-hero h1 { font-size: clamp(34px, 4.4vw, 54px); }
:lang(my) .doc-hero h1 { font-size: clamp(27px, 3.4vw, 40px); }
.doc-hero .lead { margin-top: 12px; }
.doc { padding: 48px 0 96px; background: var(--white); }
.doc .wrap { display: grid; gap: 40px; }
@media (min-width: 1000px) { .doc .wrap { grid-template-columns: 240px 1fr; } }
.toc { display: none; }
@media (min-width: 1000px) { .toc { display: block; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; } }
.toc b { display: block; font-size: 14px; color: var(--sub); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 1px solid var(--line); color: var(--sub); text-decoration: none; font-size: 14.5px; line-height: 1.45; transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.toc a:hover, .toc a.on { color: var(--text); border-left-color: var(--ink); }
.legal { max-width: 74ch; }
.legal .updated { color: var(--sub); margin-bottom: 8px; }
.legal h1 { display: none; }
.legal h2 { font-size: 23px; line-height: 1.25; margin: 40px 0 12px; scroll-margin-top: calc(var(--nav-h) + 24px); }
:lang(my) .legal h2 { font-size: 21px; line-height: 1.6; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.75; color: #2b2b28; }
:lang(my) .legal p, :lang(my) .legal li { line-height: 2; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; margin: 6px 0 16px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--text); font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }
.legal .box { border: 1.5px solid var(--ink); border-radius: var(--r-card); padding: 18px 20px; margin: 16px 0; background: var(--white); }
.legal .muted { color: var(--sub); }

/* ---------- less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mf-pulse { animation: none; opacity: 0; }
  .run-card.pop { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
/* headings that take focus after a step changes are not controls */
[tabindex="-1"]:focus { outline: none; }
/* the support address is shown as text to copy, not a mail link: the pilot form is the way to write */
.addr { user-select: all; -webkit-user-select: all; font-weight: 600; overflow-wrap: anywhere; }
.form-alt .addr { color: var(--ink); }
.foot-links .addr { display: inline-flex; align-items: center; min-height: 40px; font-weight: 400; color: var(--on-night); }
