/* MyFerry public site (landing, sign-in, legal): the app's look on the web.
   Brand black and yellow; Montserrat for headlines, Inter for text, Noto Sans Myanmar for Burmese.
   Motion is short and purposeful, and everything stands still for people who ask for less motion. */
:root {
  --ink: #121212;
  --ink-2: #1c1c1a;
  --ink-3: #2a2a27;
  --yellow: #ffd400;
  --yellow-press: #e6bf00;
  --yellow-soft: #fff6c2;
  --paper: #faf8f2;
  --white: #ffffff;
  --surface: #f6f6f3;
  --line: #e4e4e0;
  --line-dark: #2e2e2b;
  --text: #121212;
  --sub: #5e5e58;
  --sub-dark: #b3b2aa;
  --green: #1b8a4e;
  --green-soft: #e3f5ea;
  --red: #c62828;
  --red-soft: #fde7e7;
  --amber: #b85c00;
  --amber-soft: #fff0dc;
  --blue: #2457c5;

  --font-display: "Montserrat", "Noto Sans Myanmar", system-ui, sans-serif;
  --font-text: "Inter", "Noto Sans Myanmar", "Myanmar Text", "Pyidaungsu", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(18, 18, 18, 0.06), 0 1px 1px rgba(18, 18, 18, 0.04);
  --shadow-md: 0 8px 24px rgba(18, 18, 18, 0.08), 0 2px 6px rgba(18, 18, 18, 0.05);
  --shadow-lg: 0 24px 60px rgba(18, 18, 18, 0.18), 0 8px 18px rgba(18, 18, 18, 0.08);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 560ms;

  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(my) body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 800; }
:lang(my) h1, :lang(my) h2, :lang(my) h3, :lang(my) h4 { font-family: "Noto Sans Myanmar", var(--font-display); letter-spacing: 0; line-height: 1.55; font-weight: 700; }
p { margin: 0; }

/* Keyboard focus is always visible: a black ring on light, a yellow ring on dark. */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .on-dark:focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber);
}
:lang(my) .kicker { letter-spacing: 0; text-transform: none; font-size: 15px; }
.dark .kicker { color: var(--yellow); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--sub); max-width: 62ch; }
.dark .lead { color: var(--sub-dark); }
.dark { background: var(--ink); color: var(--white); }
.paper { background: var(--paper); }

/* ---------- icons (inline SVG, Lucide-style strokes) ---------- */
.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; }
.ic-lg { width: 28px; height: 28px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 36px; height: 36px; }
.brand b { font-family: "Montserrat", sans-serif; font-size: 23px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.brand b i { font-style: normal; color: var(--yellow); }
.light-nav .brand b i, .on-light .brand b i { color: var(--ink); background: var(--yellow); padding: 0 4px; border-radius: 5px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--r-md); border: 2px solid transparent;
  font-family: var(--font-text); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
:lang(my) .btn { white-space: normal; text-align: center; line-height: 1.5; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 212, 0, 0.28); }
.btn-primary:hover { background: #ffdc26; box-shadow: 0 10px 26px rgba(255, 212, 0, 0.36); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #262624; }
.btn-line { background: transparent; border-color: var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--ink); }
.dark .btn-line { border-color: rgba(255, 255, 255, 0.22); color: var(--white); }
.dark .btn-line:hover { border-color: var(--white); }
.dark-nav .btn-line { border-color: rgba(255, 255, 255, 0.24); color: var(--white); }
.dark-nav .btn-line:hover { border-color: var(--white); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: 0.45; cursor: default; transform: none; }

/* ---------- top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background-color var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.nav.dark-nav { background: rgba(18, 18, 18, 0); color: var(--white); }
.nav.dark-nav.scrolled { background: rgba(18, 18, 18, 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: rgba(255, 255, 255, 0.08); }
.nav.light-nav { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-links { display: none; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: inherit; opacity: 0.82; transition: opacity var(--t-fast), background-color var(--t-fast); }
.nav-links a:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.light-nav .nav-links a:hover { background: var(--surface); }
.nav-side { display: flex; align-items: center; gap: 10px; }
.nav-side .btn { white-space: nowrap; }
@media (max-width: 420px) { .nav-side .nav-signin { display: none; } }
.nav-cta { display: none; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.light-nav .lang, .on-light .lang { background: var(--surface); }
.lang button[data-lang="my"] { font-family: "Noto Sans Myanmar", var(--font-text); }
.lang button { min-height: 36px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 14px; opacity: 0.75; transition: background-color var(--t-fast), color var(--t-fast), opacity var(--t-fast); }
.lang button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); opacity: 1; }

.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, 0.1); }
.light-nav .menu-btn { background: var(--surface); }
.menu {
  position: fixed; inset: 72px 0 auto 0; z-index: 49; background: var(--ink); color: var(--white);
  padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line-dark);
  transform-origin: top; animation: menu-in var(--t-med) var(--ease-out);
}
.menu a.m-link { display: flex; align-items: center; min-height: 52px; font-weight: 700; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.menu .btn { width: 100%; margin-top: 16px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: -72px; padding: 120px 0 72px; }
.hero::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 212, 0, 0.16), rgba(255, 212, 0, 0) 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
:lang(my) .hero h1 { font-size: clamp(32px, 4.6vw, 54px); }
.hero .lead { margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; list-style: none; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--sub-dark); }
.chips .ic { color: var(--yellow); width: 18px; height: 18px; }
.invite-card {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 34px; max-width: 520px;
  padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.invite-card .ic { color: var(--yellow); margin-top: 2px; }
.invite-card b { display: block; font-size: 16px; }
.invite-card p { color: var(--sub-dark); font-size: 15px; }
.invite-card .btn { margin-top: 10px; }
@media (min-width: 960px) {
  .hero { padding: 150px 0 110px; }
  .hero .wrap { grid-template-columns: 1.2fr 0.8fr; gap: 48px; }
}

/* the phone in the hero: a live map drawn in SVG, the ferry driving to the rider's stop */
.stage { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.phone {
  position: relative; width: min(340px, 82vw); aspect-ratio: 9 / 18.6; border-radius: 46px; padding: 11px;
  background: #050505; box-shadow: 0 0 0 1.5px #3a3a36, var(--shadow-lg), 0 40px 120px rgba(255, 212, 0, 0.12);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #050505; z-index: 3; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #eef0ea; color: var(--text); }
.screen svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-casing { stroke: #121212; stroke-width: 11; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-line { stroke: var(--yellow); stroke-width: 6.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-done { stroke: #9a9a92; stroke-width: 6.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stop-pin { fill: #fff; stroke: #121212; stroke-width: 3; transition: fill var(--t-med); }
.stop-pin.passed { fill: #9a9a92; }
.me-dot { fill: var(--blue); stroke: #fff; stroke-width: 3.5; }
.me-halo { fill: rgba(36, 87, 197, 0.18); transform-box: fill-box; transform-origin: center; animation: halo 2.4s var(--ease-out) infinite; }
@keyframes halo { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.ferry { transition: transform 80ms linear; }
.ferry circle { fill: var(--yellow); stroke: #121212; stroke-width: 3; }
.ferry path { stroke: #121212; }

.scr-top { position: absolute; top: 52px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.live-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border-radius: 999px; padding: 6px 12px 6px 8px; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.live-chip b { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.02em; }
.live-chip b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font: 800 12px/1 "Montserrat", sans-serif; }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: #fff; border-radius: 24px 24px 0 0;
  padding: 10px 16px 18px; box-shadow: 0 -8px 24px rgba(18, 18, 18, 0.1);
}
.sheet::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 10px; }
.sheet .eta { font: 800 25px/1.15 var(--font-text); letter-spacing: -0.02em; }
:lang(my) .sheet .eta { font: 700 20px/1.6 "Noto Sans Myanmar", sans-serif; }
.sheet .eta span { display: inline-block; min-width: 1ch; }
.sheet small { display: block; color: var(--sub); font-size: 12.5px; margin-top: 2px; }
.sheet .s-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin-top: 10px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.sheet .s-leave { background: var(--yellow-soft); border: 1.5px solid var(--yellow); }
.sheet .s-board { background: var(--yellow); }
.sheet .driver { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.sheet .driver .avatar { width: 30px; height: 30px; font-size: 11px; }
.sheet .driver small { margin: 0; }
.eta-flash { animation: eta-flash 600ms var(--ease-out); }
@keyframes eta-flash { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* notifications that slide in beside the phone */
.toasts { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.toast {
  position: absolute; display: flex; align-items: center; gap: 10px; width: 250px; padding: 11px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.97); color: var(--text); box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.35;
  opacity: 0; transform: translateY(10px) scale(0.97); transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.toast.show { opacity: 1; transform: none; }
.toast b { display: block; font-size: 13.5px; }
.toast .t-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--yellow); }
.toast .t-ic.green { background: var(--green-soft); color: var(--green); }
.toast .t-ic.red { background: var(--red-soft); color: var(--red); }
.toast.t1 { top: 16%; left: -6%; }
.toast.t2 { top: 47%; right: -8%; }
.toast.t3 { bottom: 12%; left: -10%; }
@media (max-width: 959px) {
  .toast { width: 220px; font-size: 12px; }
  .toast.t1 { left: 0; top: 4%; }
  .toast.t2 { right: 0; }
  .toast.t3 { left: 0; bottom: 2%; }
}
@media (max-width: 520px) { .toasts { display: none; } }

/* ---------- strips and sections ---------- */
.strip { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.strip ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.strip li { display: flex; gap: 12px; align-items: center; }
.strip .ic { color: var(--yellow); }
.strip b { display: block; font-size: 15px; }
.strip small { color: var(--sub-dark); font-size: 13.5px; }
@media (max-width: 520px) { .strip ul { grid-template-columns: 1fr; gap: 16px; } }
@media (min-width: 960px) { .strip ul { grid-template-columns: repeat(4, 1fr); } }

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); margin: 12px 0 16px; }
:lang(my) .section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin: 0 auto; }

/* how it works */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step { position: relative; padding: 28px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--yellow); font: 800 17px/1 "Montserrat", sans-serif; }
.step h3 { font-size: 22px; margin: 18px 0 8px; }
.step p { color: var(--sub); }
.step-art { margin-top: 22px; height: 132px; border-radius: var(--r-lg); background: var(--surface); display: grid; place-items: center; overflow: hidden; position: relative; }
.code-art { display: flex; gap: 6px; }
.code-art span { width: 30px; height: 42px; border-radius: 9px; background: var(--white); border: 2px solid var(--line); display: grid; place-items: center; font: 800 20px/1 "Montserrat", sans-serif; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.code-art span.on { border-color: var(--ink); transform: translateY(-2px); }
.code-art .gap { width: 10px; border: 0; background: none; }
.setup-art { width: 78%; display: grid; gap: 8px; }
.setup-art div { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); }
.setup-art i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; transition: background-color var(--t-med), border-color var(--t-med); }
.setup-art i.on { background: var(--green); border-color: var(--green); }
.setup-art i.on::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.mini-map { position: absolute; inset: 0; }
.mini-map .route-line { stroke-width: 5; }
.mini-map .route-casing { stroke-width: 9; }

/* roles: tabs with the app's own screens */
.roles { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .roles { grid-template-columns: 0.95fr 1.05fr; gap: 64px; } }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); margin-bottom: 26px; }
@media (max-width: 520px) { .tabs { display: flex; flex-wrap: nowrap; width: 100%; } .tabs button { flex: 1 1 auto; padding: 0 8px !important; font-size: 14px !important; } }
.tabs button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: var(--sub-dark); font-weight: 700; font-size: 15px; transition: background-color var(--t-fast), color var(--t-fast); }
.tabs button[aria-selected="true"] { background: var(--yellow); color: var(--ink); }
.panel h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .tick { width: 26px; height: 26px; flex: none; border-radius: 8px; background: rgba(255, 212, 0, 0.14); color: var(--yellow); display: grid; place-items: center; margin-top: 1px; }
.paper .ticks .tick, .on-light .ticks .tick { background: var(--yellow-soft); color: var(--ink); }
.ticks li span { color: var(--sub-dark); }
.panel-in { animation: panel-in 420ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.shots { position: relative; height: clamp(440px, 52vw, 600px); display: flex; justify-content: center; align-items: flex-start; }
.shots::before { content: ""; position: absolute; top: 12%; left: 50%; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 212, 0, 0.2), rgba(255, 212, 0, 0)); pointer-events: none; }
.shots img {
  position: absolute; top: 0; width: min(300px, 70vw); height: auto; border-radius: 34px 34px 0 0;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
  opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out);
}
.shots img.on { opacity: 1; transform: none; }

/* safety bento */
.bento { display: grid; gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .wide { grid-column: span 2; } .bento .tall { grid-row: span 2; } }
.tile { position: relative; overflow: hidden; padding: 26px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile .t-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow-soft); color: var(--ink); margin-bottom: 18px; }
.tile .t-icon.red { background: var(--red-soft); color: var(--red); }
.tile .t-icon.green { background: var(--green-soft); color: var(--green); }
.tile .t-icon.amber { background: var(--amber-soft); color: var(--amber); }
.tile h3 { font-size: 21px; margin-bottom: 8px; }
.tile p { color: var(--sub); }
.tile.ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tile.ink p { color: var(--sub-dark); }
.tile .sos-shot { margin: 22px auto -26px; width: min(250px, 80%); max-height: 300px; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.free-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 14px; }

/* companies and schools */
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 16px; background: var(--surface); margin-bottom: 28px; }
.seg button { position: relative; z-index: 1; min-height: 46px; padding: 0 22px; border: 0; background: transparent; font-weight: 700; font-size: 15px; color: var(--sub); transition: color var(--t-med); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease-out); }
.seg[data-on="school"] .thumb { transform: translateX(100%); }
.compare { display: grid; gap: 12px; }
@media (min-width: 640px) { .compare { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .compare { grid-template-columns: repeat(4, 1fr); } }
.compare b { display: block; transition: opacity var(--t-fast); }
.compare b.swap { opacity: 0; }
.compare div { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
.compare small { display: block; font-weight: 700; color: var(--sub); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
:lang(my) .compare small { text-transform: none; letter-spacing: 0; font-size: 14px; }
.compare b { font-size: 17px; line-height: 1.45; }

/* built for Myanmar */
.why { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-xl); overflow: hidden; }
@media (min-width: 720px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why div { background: var(--ink); padding: 28px; transition: background-color var(--t-med); }
.why div:hover { background: var(--ink-2); }
.why .ic { color: var(--yellow); width: 28px; height: 28px; margin-bottom: 16px; }
.why h3 { font-size: 19px; margin-bottom: 6px; }
.why p { color: var(--sub-dark); font-size: 15.5px; }

/* free pilot */
.pilot { position: relative; overflow: hidden; border-radius: 36px; background: var(--yellow); color: var(--ink); padding: clamp(32px, 6vw, 72px); display: grid; gap: 36px; }
.pilot::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(18, 18, 18, 0.06); pointer-events: none; }
@media (min-width: 960px) { .pilot { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.pilot h2 { font-size: clamp(34px, 4.6vw, 56px); margin: 10px 0 16px; }
:lang(my) .pilot h2 { font-size: clamp(26px, 3.4vw, 40px); }
.pilot .kicker { color: var(--ink); opacity: 0.7; }
.pilot .lead { color: rgba(18, 18, 18, 0.78); }
.pilot .cta-row { margin-top: 28px; }
.timeline { position: relative; display: grid; gap: 14px; }
.timeline > div { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, 0.55); border-radius: var(--r-lg); padding: 16px 18px; }
.timeline .day { flex: none; min-width: 74px; font: 800 13px/1.3 "Montserrat", sans-serif; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 6px 10px; text-align: center; }
:lang(my) .timeline .day { font: 700 13px/1.6 "Noto Sans Myanmar", sans-serif; }
.timeline b { display: block; }
.timeline p { color: rgba(18, 18, 18, 0.72); font-size: 15px; }

/* questions */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color var(--t-fast), box-shadow var(--t-med); }
.faq details[open] { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 20px; cursor: pointer; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform var(--t-med) var(--ease-out); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 20px; color: var(--sub); }
.faq .ans a { color: var(--text); font-weight: 600; }

/* footer */
.foot { padding: 64px 0 40px; }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot h4 { font-family: var(--font-text); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub-dark); margin-bottom: 14px; }
:lang(my) .foot h4 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: rgba(255, 255, 255, 0.82); transition: color var(--t-fast); }
.foot ul a:hover { color: var(--yellow); }
.foot .tag { color: var(--sub-dark); margin-top: 14px; max-width: 34ch; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--sub-dark); font-size: 14px; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- forms and cards on sign-in and legal pages ---------- */
.auth { min-height: calc(100vh - 72px); display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-side { display: none; position: relative; overflow: hidden; padding: 64px; }
@media (min-width: 960px) { .auth-side { display: flex; flex-direction: column; justify-content: center; } }
.auth-side h2 { font-size: clamp(34px, 3.4vw, 46px); margin: 14px 0 16px; }
.auth-side h2 em { font-style: normal; color: var(--yellow); }
:lang(my) .auth-side h2 { font-size: clamp(26px, 2.6vw, 34px); }
.auth-side .ticks { margin-top: 28px; }
.auth-side::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 212, 0, 0.16), rgba(255, 212, 0, 0)); }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 40px var(--gutter) 64px; background: var(--paper); }
@media (min-width: 960px) { .auth-main { align-items: center; } }
.card { width: 100%; max-width: 460px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-md); }
.card h1, .card h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 8px; }
:lang(my) .card h1, :lang(my) .card h2 { font-size: 24px; }
.card .muted { color: var(--sub); }
.card-in { animation: panel-in 420ms var(--ease-out); }
.field { margin-top: 20px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field input {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface);
  font: 500 17px/1.3 var(--font-text); color: var(--text); transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.45); }
.field input.code { letter-spacing: 0.4em; font: 800 26px/1 "Montserrat", sans-serif; text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.actions .btn { flex: 1 1 auto; }
.msg { min-height: 1.4em; margin-top: 12px; font-weight: 600; font-size: 15px; }
.msg.bad { color: var(--red); }
.msg.good { color: var(--green); }
.org-list { display: grid; gap: 10px; margin-top: 18px; }
.org-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast); }
.org-item:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.org-item .o-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; flex: none; }
.org-item b { display: block; }
.org-item small { color: var(--sub); }
.org-item .ic:last-child { margin-left: auto; color: var(--sub); }
.small-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 22px; font-size: 14px; }
.small-links a { color: var(--sub); text-decoration: none; }
.small-links a:hover { color: var(--text); text-decoration: underline; }
.app-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: var(--r-md); background: var(--yellow-soft); font-size: 15px; }
.app-note .ic { flex: none; margin-top: 2px; }

/* legal pages */
.doc-hero { padding: 120px 0 48px; margin-top: -72px; }
.doc-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin-top: 12px; }
:lang(my) .doc-hero h1 { font-size: clamp(28px, 3.4vw, 40px); }
.doc { padding: 48px 0 96px; }
.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: 96px; align-self: start; } }
.toc b { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); margin-bottom: 10px; }
:lang(my) .toc b { letter-spacing: 0; text-transform: none; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--sub); text-decoration: none; font-size: 14.5px; line-height: 1.45; transition: color var(--t-fast), border-color var(--t-fast); }
.toc a:hover, .toc a.on { color: var(--text); border-left-color: var(--yellow); }
.legal { max-width: 74ch; }
.legal .updated { color: var(--sub); margin-bottom: 8px; }
.legal h1 { display: none; }
.legal h2 { font-size: 23px; margin: 40px 0 12px; scroll-margin-top: 96px; }
:lang(my) .legal h2 { font-size: 21px; }
.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); text-underline-offset: 3px; }
.legal .box { border: 1.5px solid var(--ink); border-radius: var(--r-lg); 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; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .rv { opacity: 1; transform: none; }
  .btn:hover, .step:hover, .tile:hover { transform: none; }
}
