/* BusyAnt Autopilot landing: the brand palette and type (start.mjs brand, refined), the type per script, and
   page CSS for what sits inside the visuals. Everything else is the kit's (system.css and friends). */

/* ---------------------------------------------------------------- palette: brand blue on cool paper
   From start.mjs brand --page software --bg #f6f7f9 --surface #eceff4 --ink #0f1a36 --accent #1D4ED8 (the logo
   blue), then refined by hand: white on the blue buttons (6.7:1), muted text a step darker (6.4:1 on the
   surface), and the one dark band a deep brand navy rather than the ink, with a light brand blue for its
   accents (7.7:1). The band's button stays paper on navy: the logo blue is 2.3:1 there. */
:root {
  --p-bg: #f6f7f9; --p-surface: #eceff4; --p-ink: #0f1a36; --p-muted: #4b5670;
  --p-accent: #1d4ed8; --p-accent-ink: #ffffff; --p-action: #1d4ed8; --p-action-ink: #ffffff;
  --p-inv-bg: #0f2257; --p-inv-surface: #1a2d63; --p-inv-ink: #f6f7f9; --p-inv-muted: #aab7d6;
  --p-inv-accent: #9db8ff; --p-inv-accent-ink: #0f2257; --p-inv-action: #f6f7f9; --p-inv-action-ink: #0f2257;
  --font-display: var(--font-sora), var(--font-pyidaungsu), var(--font-noto-thai), system-ui, sans-serif;
  --font-text: var(--font-mona), var(--font-pyidaungsu), var(--font-noto-thai), system-ui, sans-serif;
  --font-mono: var(--font-geist-mono), ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --ly-scale: 0.96;
}
/* the lit ground behind the product windows, the hero's grain and the closing band: the kit's sky, tuned to
   the brand hue so no second hue enters the page (muted 6.0:1, the blue 5.2:1 on it) */
html[data-ground="sky"] { --ground-bg: #dde4f0; --ground-surface: #e9eef6; --ground-ink: #0f1a36; --ground-muted: #47536d; --ground-accent: #1d4ed8; }
/* the drawn windows the page paints itself (the hero's, the menu previews): white paper, navy ink */
:root {
  --w-bg: #ffffff; --w-ink: #10172e; --w-muted: #4d5670; --w-line: rgb(15 26 54 / .08); --w-dot: #dfe2ea;
  --w-fill: #f1f3f7; --w-sel: #eef1f8; --w-bubble: #f0f1f4; --w-tint: #dbe5fb; --w-blue: #1d4ed8; --w-link: #1d4ed8;
  --w-edge: 0 0 0 1px rgb(15 26 54 / .12); --w-drop: 0 30px 60px -30px rgb(15 26 54 / .4);
  --av-s: 70%; --av-l: 86%; --av-ink: #10172e;
}

/* ---------------------------------------------------------------- dark: the night shift
   The shop is shut and Autopilot is still answering. The page goes to the brand's own navy (the ink's hue,
   never a neutral near-black), the windows are a lit step above it, and the one band that was navy turns
   to the logo blue: on a dark page it is the one bright thing. Ink 15.6:1 on the bg, muted 7.4:1; white
   on the button blue 5.3:1; the light blue the wordmark and links use 8.0:1. Set on <html data-theme>
   (the visitor's choice, else the system setting). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --p-bg: #0d1630; --p-surface: #152042; --p-ink: #eef1f8; --p-muted: #a2adc8;
  --p-accent: #3563e9; --p-accent-ink: #ffffff; --p-action: #3563e9; --p-action-ink: #ffffff;
  --p-inv-bg: #1d43b8; --p-inv-surface: #2a52c8; --p-inv-ink: #ffffff; --p-inv-muted: #d5def8;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #1d43b8; --p-inv-action: #ffffff; --p-inv-action-ink: #1d43b8;
  --brand-text: #8eaaff;
  --w-bg: #1b2850; --w-ink: #eef1f8; --w-muted: #a9b4d0; --w-line: rgb(255 255 255 / .08); --w-dot: #34416a;
  --w-fill: #223059; --w-sel: #26386b; --w-bubble: #26335e; --w-tint: #2f4787; --w-blue: #3563e9; --w-link: #8eaaff;
  --w-edge: 0 0 0 1px rgb(255 255 255 / .09); --w-drop: 0 30px 60px -30px rgb(0 0 0 / .7);
  --av-s: 38%; --av-l: 34%; --av-ink: #eef1f8;
  --tg-from: #7fb8e8; --panel-glow: #2c4790;
}
html[data-theme="dark"][data-ground="sky"] { --ground-bg: #16224a; --ground-surface: #1d2b57; --ground-ink: #eef1f8; --ground-muted: #a9b4d0; --ground-accent: #5b7fe0; }
/* every drawn window is the same lit navy on a dark page: the kit's own step above a dark card goes grey */
:root[data-theme="dark"] :is(.stage, .app.ui) { --frag: var(--w-bg); --fx-bg: var(--w-bg); }

/* ---------------------------------------------------------------- type per script
   Sora carries Latin headings and Mona Sans Latin text. Burmese and Thai glyphs fall through to Pyidaungsu and
   Noto Sans Thai in the same stack. Both scripts stack marks above and below the line and have no use for
   negative tracking: on a Burmese or Thai page the display tracking goes to zero, headings open their leading so stacked
   vowels never touch the line above, and running text gets the taller leading those scripts read at. */
html:is([lang="my"], [lang="th"]) {
  --display-tracking: 0em;
  --display-tracking-xl: 0em;
}
html[lang="my"] :is(h1, h2, h3) { line-height: 1.42; letter-spacing: 0; }
html[lang="th"] :is(h1, h2, h3) { line-height: 1.3; letter-spacing: 0; }
html[lang="my"] :is(p, li, dd, label, .t-lead, .hero__lead) { line-height: 1.85; }
html[lang="th"] :is(p, li, dd, label, .t-lead, .hero__lead) { line-height: 1.7; }
/* Burmese words run long and the script sits large on the body: the display sizes step down one notch so
   the hero still holds its three lines */
html[lang="my"] { --t-h1: clamp(34px, 3.4vw + 8px, 56px); --ly-h1: clamp(34px, 3.4vw + 8px, 56px); --t-h2: clamp(26px, 1.6vw + 14px, 38px); }
html[lang="my"] .close__word, html[lang="th"] .close__word { letter-spacing: -0.045em; }
/* a Burmese sample inside an English page keeps its own leading */
:lang(my) .ui-msg__text, :lang(my) .ui-chat__answer { line-height: 1.75; }
/* figures inside the drawn windows: tabular, so totals line up */
.ui :is(.report__value, .report__rows b, .ui-meta, time, .ui-win__age) { font-variant-numeric: tabular-nums; }
h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------------------------------------------------------------- nav: the client's logo, the language switch */
.nav__logo { display: inline-flex; align-items: center; gap: var(--s-2); }
.nav__logo .logo-mark { width: 28px; height: 28px; flex: none; }
/* the language menu: a quiet button (globe, the current code, a chevron) and a small card of the three
   languages under it, each in its own script */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 var(--s-2); border-radius: var(--r-sm, 8px);
  font: 500 13px/1 var(--font-text); color: var(--muted); cursor: pointer; list-style: none; user-select: none; }
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn:hover, .lang[open] > .lang__btn { color: var(--ink); }
.lang__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.lang__btn svg:first-child { width: 18px; height: 18px; }
.lang__btn .chev { width: 12px; height: 12px; opacity: .6; transition: transform var(--dur, 200ms) var(--ease, ease); }
.lang[open] > .lang__btn .chev { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; display: grid; min-width: 176px; padding: 6px;
  border-radius: 12px; background: var(--w-bg); box-shadow: var(--w-edge), 0 16px 32px -16px rgb(15 26 54 / .35); }
.lang__opt { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 44px; padding: 0 12px;
  border-radius: 8px; color: var(--w-ink); text-decoration: none; font: 400 15px/1.2 var(--font-text); }
.lang__opt:hover { background: var(--w-fill); }
.lang__opt:focus-visible { outline: 2px solid var(--w-blue); outline-offset: -2px; }
.lang__code { font-size: 12px; font-weight: 500; color: var(--w-muted); }
.lang__opt[aria-current="true"] { background: var(--w-sel); font-weight: 500; }
.lang__opt[aria-current="true"] .lang__code { color: var(--w-link); }
/* the theme switch: the moon on a light page, the sun on a dark one */
.theme { display: inline-flex; }
.theme__opt { display: inline-grid; place-items: center; width: 40px; height: 44px; color: var(--muted); border-radius: var(--r-sm, 8px); }
.theme__opt:hover { color: var(--ink); }
.theme__opt:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.theme__opt svg { width: 20px; height: 20px; }
:root:not([data-theme="dark"]) .theme__opt--light, :root[data-theme="dark"] .theme__opt--dark { display: none; }
/* a phone keeps the switch beside the button when the menu is shut */
@media (max-width: 1023px) { .nav:not(.is-open) .nav__actions > .theme { display: inline-flex; } }
.nav.is-open .nav__actions .theme { order: 3; justify-self: center; }
/* the phone sheet: no button, the three languages open in a row */
.nav.is-open .nav__actions .lang { order: 3; justify-self: center; }
.nav.is-open .lang__btn { display: none; }
.nav.is-open .lang__menu { position: static; display: flex; gap: 4px; min-width: 0; padding: 0; background: none; box-shadow: none; }
.nav.is-open .lang__opt { min-height: 44px; padding: 0 12px; }
.nav.is-open .lang__code { display: none; }
/* The currency switch under the pilot terms: its first figure lines up with the text above. */
.currency { margin-top: var(--s-2); margin-inline-start: calc(-1 * var(--s-1)); }
/* the full name is 17 characters: on a phone the bar shows the mark and "BusyAnt" */
@media (max-width: 639px) { .nav .logo-rest { display: none; } .nav__logo .logo-mark { width: 22px; height: 22px; } }

/* ---------------------------------------------------------------- hero: the window over the grain ground */
.d-win { background: var(--w-bg); color: var(--w-ink); border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text);
  box-shadow: var(--w-edge), var(--w-drop); text-align: left; }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--w-line); font-size: 13px; color: var(--w-muted); }
.d-win__bar b { font-weight: 500; color: var(--w-ink); }
.d-win__bar .sp { flex: 1; }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--w-dot); }
.d-win__app { width: 16px; height: 16px; }
.d-win__on { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--w-ink); }
.d-win__on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1d9e5a; }
.d-win__body { display: grid; grid-template-columns: 250px 1fr; min-height: 420px; }
.inbox { border-right: 1px solid var(--w-line); padding: 10px; display: grid; align-content: start; gap: 2px; }
.inbox .q { height: 34px; margin-bottom: 6px; border-radius: 9px; background: var(--w-fill); display: flex; align-items: center; padding: 0 10px; color: var(--w-muted); font-size: 13px; }
.inbox .t { display: grid; grid-template-columns: 30px 1fr auto; gap: 1px 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; }
.inbox .t.is-on { background: var(--w-sel); }
.inbox .t i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--font-text); font-style: normal; color: var(--av-ink); background: hsl(calc(var(--h, 40) * 1deg) var(--av-s) var(--av-l)); }
.inbox .t i[data-tone="1"] { --h: 40; } .inbox .t i[data-tone="2"] { --h: 150; } .inbox .t i[data-tone="3"] { --h: 210; } .inbox .t i[data-tone="4"] { --h: 20; } .inbox .t i[data-tone="5"] { --h: 90; }
.inbox .t b { font-weight: 500; } .inbox .t time { color: var(--w-muted); font-size: 12px; }
.inbox .t span { grid-column: 2 / -1; color: var(--w-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo { display: grid; min-width: 0; align-content: start; }
.d-chat { display: grid; gap: 10px; align-content: start; padding: 16px 18px; font-size: 14px; }
.d-msg { max-width: 80%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.d-msg--me { justify-self: end; background: var(--w-blue); color: #fff; border-bottom-right-radius: 6px; }
.d-msg--bot { max-width: 86%; background: var(--w-bubble); color: var(--w-ink); border-bottom-left-radius: 6px; }
.d-msg small { display: block; margin-top: 6px; font-size: 12px; color: var(--w-muted); }
.d-tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--w-muted); }
.d-tool::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #1d9e5a; border-right-color: transparent; flex: none; }
.acts { display: flex; gap: 8px; }
.acts span { height: 30px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--w-link); color: var(--w-link); }
@media (max-width: 639px) {
  .d-win__body { grid-template-columns: 1fr; } .inbox { display: none; }
  .d-chat { font-size: 13px; padding: 12px 14px; }
  .d-tool, .d-msg small, .d-win__on { display: none; }
}

/* ---------------------------------------------------------------- the app frame (kit recipe, verbatim) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.app .ui-chat__body { gap: 14px; }
/* the frame is a fixed window on a desktop: the ticket list runs off its foot under the fade, the open chat
   fills its pane with the input on the bottom line (no fade over the input) */
#inbox .app.fill { flex: none; height: clamp(460px, 36vw, 540px); }
.app > .app__pane--open > .ui-chat { height: 100%; }
.app > .app__pane--open::after { display: none; }
/* the conversation sits on the input, as a real chat does: the free room stays above it, under the head */
.app > .app__pane--open .ui-chat__body { align-content: end; gap: 12px; padding: 20px 24px 16px; min-height: 0; }
.app > .app__pane--open .ui-msg--bot { max-width: 420px; }
.app > .app__pane--open .ui-chat__input { margin: 0 24px 20px; }
/* the side labels keep one line in every language: the column takes the longest label's width */
@media (min-width: 1024px) {
  .app .ui-win__body { grid-template-columns: minmax(168px, max-content) minmax(0, 1fr); }
  .app .ui-win__side { padding: 10px; gap: 2px; }
  .app .ui-win__nav { white-space: nowrap; height: 34px; padding: 0 10px; }
  .app .ui-win__nav em { padding-left: 16px; font-variant-numeric: tabular-nums; }
}
@media (max-width: 1023px) { #inbox .app.fill { height: auto; } }

/* ---------------------------------------------------------------- inside the fragments */
/* the shop's AI wears the BusyAnt ant, the one mark the page owns */
.ui-agent--ant { background: #fff url("/logos/logo.svg") center / 78% no-repeat; box-shadow: inset 0 0 0 1px var(--u-line, rgb(0 0 0 / .1)); }
.ui-agent--ant::before, .ui-agent--ant::after { content: none; }
.ui-head__app { width: 18px; height: 18px; flex: none; }
/* the customer's bubble is the brand blue in every window, as in the hero's (white on it 6.7:1) */
.ui-msg--me { background: var(--u-accent); color: var(--u-accent-ink); box-shadow: none; }
.ui-msg--me .vn__play::after { border-left-color: var(--u-accent); }
.ui-msg--staff { background: var(--u-ink); color: var(--u-bg); }
/* a voice note: play, wave, length, then what it said */
.ui-msg--voice .ui-msg__text { display: grid; gap: 8px; }
.vn { display: flex; align-items: center; gap: 8px; }
.vn__play { width: 22px; height: 22px; border-radius: 50%; background: currentColor; flex: none; position: relative; opacity: .9; }
.vn__play::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid var(--u-bg, #fff); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.vn__wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.vn__wave i { width: 3px; height: calc(var(--h) * 1px); border-radius: 2px; background: currentColor; opacity: .7; }
.vn__time { font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
.vn__text { font-size: 12px; opacity: .85; padding-top: 6px; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.ui-msg--photo { padding: 0; overflow: hidden; border-radius: 14px; background: none; }
.ui-msg--photo img { display: block; width: 200px; height: 134px; object-fit: cover; }
/* Telegram inline keys and the staff group's sender line */
.tg__from { font-size: 12px; font-weight: 500; color: var(--tg-from, #236da6); }
.tg__keys { display: flex; flex-wrap: wrap; gap: 6px; }
.tg__key { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; background: color-mix(in srgb, var(--u-ink) 7%, transparent); color: var(--u-ink); }
.tg__key.is-on { background: var(--u-ink); color: var(--u-bg); }
/* the back office answers: a sales report, a proposal waiting for a tap, a notice */
.report, .proposal { display: grid; align-content: start; gap: 12px; padding: 18px; font-size: 13px; }
.report__label { font-size: 12px; font-weight: 500; color: var(--u-text-2); }
.report__value { font: 500 24px/1.1 var(--font-text); color: var(--u-ink); letter-spacing: -0.01em; }
.report__value small { font-size: 13px; color: var(--u-text-2); font-weight: 400; }
.report__rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.report__rows li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.report__rows b { font-weight: 500; color: var(--u-ink); }
.report__rows i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--u-ink) 10%, transparent); position: relative; overflow: hidden; }
.report__rows i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--share) * 100%); background: var(--u-ink); border-radius: inherit; }
.report__rows li:first-child i::after { background: var(--u-accent, var(--u-ink)); }
.proposal__body { margin: 0; color: var(--u-ink); line-height: 1.5; }

/* a check that passed: ticked, in full ink (the kit's is-done strikes the label through, a to-do look) */
.ui-check.is-ok .ui-check__box { background: var(--u-ink); box-shadow: none; }
.ui-check.is-ok .ui-check__box path { stroke-dashoffset: 0; stroke: var(--u-bg); }
.ui-check.is-ok .ui-check__label { color: var(--u-ink); }

/* ---------------------------------------------------------------- sections: as tall as their content
   The kit locks every section to the screen's height, so on a tall screen the cards stretch and the drawn
   windows run on as empty white. Here a section is its content plus one even padding; only the hero keeps
   the first screen. A two-screen (.g2) section is its two card rows stacked. */
:root { --sec-y: clamp(72px, 7vw, 120px); }
main > :is(section, .section):not(.hero, .section--hero), footer.closing { height: auto; min-height: 0; padding: var(--sec-y) 0; }
main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { height: auto; }
main > :is(section, .section).g2 > :is(.wrap, .container) { display: flex; flex-direction: column; row-gap: var(--s-7); }
main > :is(section, .section).g2 > :is(.wrap, .container) > :last-child { margin-block: 0; }
html { scroll-padding-top: var(--nav); }

/* ---------------------------------------------------------------- a drawn window on its ground
   .stage--hug: the window keeps its own height and sits centred on the ground with even room round it, so
   a short chat is a short card, never a tall white sheet. Cards in one row share the tallest one's height. */
.stage.stage--hug { position: relative; inset: auto; display: grid; place-items: center; width: 100%; padding: clamp(28px, 3.2vw, 44px) clamp(16px, 3vw, 40px); --chat-body: 0px; }
.stage.stage--hug > .at-rise { position: relative; inset: auto; width: 100%; max-width: var(--fit-max, 400px); }
.stage.stage--hug > .at-rise > :is([data-ui], .ui) { width: 100%; max-width: none; height: auto; }
.panel:has(> .stage--hug) { display: grid; min-height: 0; }
.frame:has(> .stage--hug) { --ratio: 0px; align-items: stretch; }
/* the ground's lit corner stays a hint of the brand blue, not a smudge */
.panel { --ground-accent: var(--panel-glow, #b9c7e6); }

/* ---------------------------------------------------------------- pricing */
.plans { margin-top: var(--s-7); }
.plan__who { color: var(--muted); }
.price .t-stat { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); white-space: nowrap; }
.plan__lines { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.plan__lines li { padding-left: 24px; position: relative; }
.plan__lines li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
/* a tablet keeps the three short plans side by side (one screen); a phone stacks them over two */
@media (min-width: 640px) and (max-width: 1023px) {
  #pricing .plans > .card { grid-column: auto / span 4; }
  #pricing .price { flex-wrap: wrap; }
  #pricing .price .t-stat { white-space: normal; }
}

/* ---------------------------------------------------------------- short fact lists beside a split */
.facts { display: grid; gap: var(--s-3); margin-inline: 0; margin-bottom: 0; padding: 0; list-style: none; }   /* no margin-top: the stack above spaces it */
.facts li { padding-top: var(--s-3); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- the setup form on the alt ground */
.form-card { padding: var(--s-7); border-radius: var(--r-lg); background: var(--surface); }
@media (max-width: 639px) { .form-card { padding: var(--s-5); } }

/* ---------------------------------------------------------------- the live demo page (/demo)
   One screen, no page scroll: the chat log is the only scroll area. The page speaks the landing's language:
   Sora heading and Mona text on the sand ground, the two sample businesses as a quiet choice beside it,
   and the chat as the same white window the landing draws (dots, the shop, a green "online" dot), standing
   on the lit sky ground. The customer's starter questions wait on the customer's side as outlined drafts;
   a tap sends one. One hue: the brand blue; amber only says a limit is near. */
.demo-page { background: var(--p-bg); color: var(--ink); }
.demo-main { box-sizing: border-box; height: 100dvh; padding: calc(var(--nav) + var(--s-5)) 0 var(--s-5); }
.demo-main--off { height: auto; min-height: 100dvh; display: grid; align-content: center; }

.dm { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 72px); height: 100%; }
.dm__side { display: flex; flex-direction: column; gap: var(--s-5); padding-top: var(--s-4); min-height: 0; }
.dm__title { margin: 0; font: var(--display-weight) clamp(30px, 1.6vw + 18px, 44px)/1.08 var(--font-display); letter-spacing: var(--display-tracking); text-wrap: balance; }
html[lang="my"] .dm__title { line-height: 1.42; }
html[lang="th"] .dm__title { line-height: 1.3; }
.dm__lead { margin: 0; max-width: 34ch; font-size: var(--t-body); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.dm__cta { align-self: flex-start; margin-top: var(--s-2); }
.dm-off { display: grid; justify-items: start; gap: var(--s-5); max-width: 640px; }

/* the two sample businesses: one row each, the chosen one on white paper with the blue ring */
.dm-pick { display: grid; gap: var(--s-2); }
.dm-biz { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 64px; margin: 0; padding: 10px 14px 10px 10px;
  border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.dm-biz:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.dm-biz[aria-pressed="true"] { background: var(--w-bg); border-color: transparent; box-shadow: inset 0 0 0 2px var(--accent), 0 8px 24px -16px rgb(15 26 54 / .35); }
.dm-biz:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dm-biz__text { display: grid; gap: 2px; min-width: 0; }
.dm-biz__text b { font-weight: 500; font-size: 15px; line-height: 1.3; }
.dm-biz__text small { font-size: 13px; line-height: 1.35; color: var(--muted); }
.dm-mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--w-tint); color: var(--w-link); }
.dm-mark svg { width: 20px; height: 20px; }
.dm-mark--sm { width: 24px; height: 24px; border-radius: 7px; }
.dm-mark--sm svg { width: 14px; height: 14px; }

/* the lit ground the window stands on */
.dm__stage { display: flex; min-height: 0; padding: clamp(16px, 2.4vw, 36px); border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--ground-surface) 80%, #fff 20%) 0%, transparent 70%), var(--ground-bg); }
.dm-chat { display: flex; flex: 1; min-width: 0; min-height: 0; }
.dm-chat[hidden] { display: none; }

/* the window */
.dm-win { display: flex; flex-direction: column; width: 100%; max-width: 780px; min-height: 0; margin-inline: auto; overflow: hidden;
  background: var(--w-bg); color: var(--w-ink); border-radius: 14px; box-shadow: var(--w-edge), var(--w-drop); font: 400 15px/1.45 var(--font-text); }
.dm-win__bar { display: flex; align-items: center; gap: 10px; flex: none; min-height: 52px; padding: 8px 14px 8px 16px; border-bottom: 1px solid var(--w-line); font-size: 14px; color: var(--w-muted); }
.dm-win__bar .sp { flex: 1; }
.dm-win__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-win__who b { font-weight: 500; color: var(--w-ink); }
.dm-win__on { font-size: 13px; white-space: nowrap; }
.dm-count { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--w-fill); color: var(--w-muted); font-size: 12px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 1279px) { .dm-win__where { display: none; } }
@media (max-width: 1151px) { .dm-win__bar .d-win__dots { display: none; } }
.dm-count.is-low { background: #fbecc8; color: #7a4f00; }
:root[data-theme="dark"] .dm-count.is-low { background: #4a3a14; color: #f3d58b; }

/* the conversation */
.dm-log { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 24px 16px; scrollbar-width: thin; scrollbar-color: var(--w-dot) transparent; }
.dm-log:focus-visible { outline: 2px solid var(--w-blue); outline-offset: -2px; }
.dm-log p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.dm-hello { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-block: auto; padding-block: 8px; }
.dm-hello__ant { width: 48px; height: 48px; }
.dm-hello__title { margin: 0 0 6px; font: 500 clamp(19px, .5vw + 16px, 22px)/1.3 var(--font-display); letter-spacing: -0.01em; text-align: center; color: var(--w-ink); text-wrap: balance; }
html[lang="my"] .dm-hello__title { line-height: 1.6; }
.dm-drafts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 100%; }

/* a starter question: the customer's bubble, outlined, waiting to be sent */
.dm-draft { max-width: min(85%, 460px); margin: 0; padding: 9px 14px; border: 1.5px solid color-mix(in oklab, var(--w-blue) 45%, transparent);
  border-radius: 16px 16px 6px 16px; background: transparent; color: var(--w-link); font: 500 14px/1.45 var(--font-text); text-align: start; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease; }
.dm-draft:hover:not(:disabled) { background: var(--w-blue); border-color: var(--w-blue); color: #fff; }
.dm-draft:active:not(:disabled) { transform: scale(.98); }
.dm-draft:focus-visible { outline: 2px solid var(--w-ink); outline-offset: 2px; }
.dm-draft:disabled { opacity: .45; cursor: default; }

.dm-msg { max-width: 80%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; }
.dm-msg--me { align-self: flex-end; background: var(--w-blue); color: #fff; border-bottom-right-radius: 6px; }
.dm-row { display: flex; align-items: flex-end; gap: 10px; max-width: 86%; }
.dm-row .dm-msg { max-width: none; min-width: 0; }
.dm-row__ant { width: 28px; height: 28px; margin-bottom: 2px; }
.dm-msg--bot { background: var(--w-bubble); color: var(--w-ink); border-bottom-left-radius: 6px; }
.dm-msg__who { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; color: var(--w-muted); }
.dm-staff { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-bottom: 2px; border-radius: 50%; background: var(--w-ink); color: var(--w-bg); font-size: 12px; font-weight: 500; }
.dm-msg__img { display: block; width: 100%; max-height: 280px; margin-top: 8px; border-radius: 10px; object-fit: cover; }

.dm-typing { display: flex; gap: 5px; padding: 14px 16px; }
.dm-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--w-muted); opacity: .5; animation: dm-dot 1.1s ease-in-out infinite; }
.dm-typing i:nth-child(2) { animation-delay: .15s; }
.dm-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dm-dot { 0%, 60%, 100% { opacity: .35; translate: 0 0; } 30% { opacity: 1; translate: 0 -3px; } }

.dm-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-block: auto; font-size: 14px; color: var(--w-muted); }
.dm-spin { width: 16px; height: 16px; animation: dm-spin 900ms linear infinite; }
.dm-send .dm-spin { width: 20px; height: 20px; }
@keyframes dm-spin { to { rotate: 360deg; } }

.dm-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--w-fill); color: var(--w-muted); font-size: 13px; }
.dm-note--warn { background: #fbecc8; color: #5c3b00; }
:root[data-theme="dark"] .dm-note--warn { background: #4a3a14; color: #f3d58b; }
.dm-note__act { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 32px; margin: 0; padding: 0 4px; border: 0; background: none; color: inherit; font: 500 13px/1 var(--font-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dm-note__act svg { width: 14px; height: 14px; }

.dm-notice { display: grid; justify-items: center; gap: 14px; margin-top: auto; padding: 22px 20px; border-radius: 14px; background: var(--w-fill); text-align: center; }
.dm-notice p { max-width: 46ch; font-size: 14px; color: var(--w-ink); }

.dm-quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; padding: 0 24px 12px; }
.dm-quick .dm-draft { font-size: 13px; padding: 7px 12px; }

/* the input: the landing's chat input, a soft field and the navy send key */
.dm-input { display: flex; gap: 10px; flex: none; margin: 0; padding: 12px 16px 16px; border-top: 1px solid var(--w-line); }
.dm-input input { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 16px; border: 1px solid var(--w-line); border-radius: 12px; background: var(--w-fill); color: var(--w-ink); font: 400 15px/1 var(--font-text); }
.dm-input input::placeholder { color: var(--w-muted); opacity: .85; }
.dm-input input:focus { outline: none; border-color: var(--w-blue); box-shadow: 0 0 0 3px color-mix(in oklab, var(--w-blue) 22%, transparent); }
.dm-input input:disabled { opacity: .6; }
.dm-send { display: grid; place-items: center; flex: none; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: var(--w-ink); color: var(--w-bg); cursor: pointer; transition: background-color 160ms ease, transform 120ms ease; }
.dm-send svg { width: 20px; height: 20px; }
.dm-send:hover:not(:disabled) { background: var(--w-blue); color: #fff; }
.dm-send:active:not(:disabled) { transform: scale(.96); }
.dm-send:focus-visible { outline: 2px solid var(--w-blue); outline-offset: 2px; }
.dm-send:disabled { opacity: .3; cursor: default; }

@media (prefers-reduced-motion: reduce) { .dm-typing i, .dm-spin { animation: none; } .dm-typing i { opacity: .6; } }

/* below 1024 the page stacks: the heading and the choice on top, the window takes the rest of the screen */
@media (max-width: 1023px) {
  .demo-main { padding: calc(var(--nav) + var(--s-4)) 0 var(--s-3); }
  .dm { display: flex; flex-direction: column; gap: var(--s-4); }
  .dm__side { gap: var(--s-3); padding-top: 0; flex: none; }
  .dm__title { font-size: clamp(24px, 2vw + 16px, 32px); }
  .dm__lead, .dm__cta { display: none; }
  .dm-pick { grid-template-columns: 1fr 1fr; }
  .dm__stage { flex: 1; padding: clamp(8px, 2vw, 20px); }
}
@media (max-width: 639px) {
  .demo-main { padding-bottom: var(--s-2); }
  .dm { width: calc(100% - 2 * 16px); gap: var(--s-3); }
  .dm__title { font-size: 22px; }
  .dm-biz { min-height: 52px; padding: 6px 10px 6px 6px; gap: 10px; border-radius: 12px; }
  .dm-biz small { display: none; }
  .dm-biz__text b { font-size: 14px; }
  .dm-mark { width: 36px; height: 36px; border-radius: 10px; }
  .dm-mark svg { width: 18px; height: 18px; }
  .dm__stage { padding: 0; background: none; border-radius: 14px; overflow: visible; }
  .dm-win { border-radius: 14px; box-shadow: var(--w-edge); }
  .dm-win__bar .d-win__dots, .dm-win__where, .dm-win__on { display: none; }
  .dm-log { padding: 16px 14px 12px; }
  .dm-msg { max-width: 88%; }
  .dm-row { max-width: 92%; }
  .dm-draft { max-width: 92%; }
  .dm-quick { padding: 0 14px 10px; }
  .dm-input { padding: 10px 12px 12px; gap: 8px; }
  .dm-input input { height: 46px; font-size: 16px; }
  .dm-send { width: 46px; height: 46px; }
}

/* the name in the close: room for the descender of the y */
.close__word { font-size: clamp(64px, 11vw, 168px); line-height: 1.05; overflow-x: clip; overflow-y: visible; }
/* the reply check on the band: a navy frame one step up from the band, and on it the same white window as
   every other section (the page's light UI tokens, not the band's inverted ones) */
#checks .frame { background: var(--p-inv-surface); border-color: rgb(255 255 255 / .08); }
#checks .stage { --frag: var(--w-bg); --fx-surface: var(--p-surface); --fx-ink: var(--p-ink); --fx-muted: var(--p-muted); --fx-accent: var(--p-accent); --fx-accent-ink: var(--p-accent-ink); }
#checks .ui-checks { box-shadow: 0 0 0 1px rgb(0 0 0 / .2), 0 24px 48px -24px rgb(0 0 0 / .5); }
.ui-checks__head { gap: 10px; }
/* a label that wraps on a narrow window gets the room of two lines, not 40px */
.ui-check { height: auto; min-height: 40px; padding-block: 8px; }
/* below 1280 a plan's price and its "/ month" may take two lines */
@media (max-width: 1279px) { #pricing .price { flex-wrap: wrap; } }
/* what every plan includes: four items on the page's columns */
.plans__includes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: var(--s-3); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.plans__includes li { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.plans__every { margin-top: var(--s-4); }
@media (max-width: 639px) { .section-head--split > .btn { width: 100%; } }
@media (max-width: 1023px) { .plans__includes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the channels it answers on, beside the questions */
.channels { display: flex; gap: var(--s-4); margin-inline: 0; margin-bottom: 0; padding: 0; list-style: none; }
.channels li { display: flex; align-items: center; gap: var(--s-3); font-weight: 500; }
.channels img { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--w-bg); box-shadow: inset 0 0 0 1px var(--line); }

/* card lines in full ink: the kit's 84% mix reads 6.2:1 on the sand ground, under the 7:1 body text needs */
.card { --c-text: var(--ink); }

/* a phone: each plan on one compact card (name and price on a line, its two lines under), so the head and the
   three plans hold the first of pricing's two phone screens */
@media (max-width: 639px) {
  #pricing .card--plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); padding: var(--s-4) var(--s-5); }
  #pricing .plan__lines { gap: 0; font-size: var(--t-small); }
  #pricing .section-head--split > .btn { display: none; }
  #pricing .plans__includes { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-5); font-size: var(--t-small); }
  #pricing .card--plan > h3 { align-self: baseline; }
  #pricing .card--plan > .price { justify-self: end; }
  #pricing .card--plan > .plan__lines { grid-column: 1 / -1; }
  #pricing .price .t-stat { font-size: 24px; }
  #pricing .plans { margin-top: var(--s-5); row-gap: var(--s-3); }
  /* the four shared features are each shown in their own section above; the phone keeps the prices */
  #pricing .plans__includes { display: none; }
}
/* the hero's halo stays a quiet wash behind the headline (the palette's contrast headroom would let it run strong) */
.hero.bg-halo { --g-k: .45; }

/* ---------------------------------------------------------------- the wordmark: Ant in the logo's blue */
.logo-ant { color: var(--brand-text, var(--p-accent)); }

/* ---------------------------------------------------------------- the product menu's drawn previews
   The shape of each screen in the brand's colours (no words, the same in every language): a white window
   on the lit ground, the selected ticket tinted, the customer's bubble blue, the bot's grey. */
.menu-card .panel { display: grid; place-items: center; padding: 18px 22px 0; align-items: end;
  flex: none; height: clamp(176px, 15vw, 220px); min-height: 0; overflow: hidden; }
.mp { width: min(100%, 300px); height: calc(100% - 4px); align-self: end; display: grid; align-content: start; gap: 8px;
  padding: 14px; border-radius: 10px 10px 0 0; background: var(--w-bg); box-shadow: var(--w-edge), 0 12px 28px -14px rgb(15 26 54 / .3); }
.mp b { display: block; height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--w-ink) 14%, transparent); }
.mp__row { display: grid; grid-template-columns: 22px 1fr 34px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.mp__row.is-sel { background: var(--w-sel); }
.mp__av { width: 22px; height: 22px; border-radius: 50%; background: hsl(calc(var(--h, 40) * 1deg) var(--av-s) var(--av-l)); }
.mp__av[data-tone="1"] { --h: 40; } .mp__av[data-tone="2"] { --h: 150; } .mp__av[data-tone="3"] { --h: 210; } .mp__av[data-tone="4"] { --h: 20; }
.mp__lines { display: grid; gap: 5px; }
.mp__lines b:first-child { background: color-mix(in oklab, var(--w-ink) 32%, transparent); }
.mp__pill { height: 14px; border-radius: 7px; background: color-mix(in oklab, var(--w-ink) 8%, transparent); }
.mp__pill.is-blue { background: var(--w-tint); }
.mp--chat { gap: 10px; padding-top: 16px; }
.mp__bubble { display: grid; gap: 5px; padding: 9px 11px; border-radius: 12px; }
.mp__bubble.is-in { background: var(--w-bubble); border-bottom-left-radius: 4px; width: 78%; }
.mp__bubble.is-out { justify-self: end; width: 56%; background: var(--w-blue); border-bottom-right-radius: 4px; }
.mp__bubble.is-out b { background: rgb(255 255 255 / .7); }
.mp__bot { display: flex; gap: 8px; align-items: flex-start; }
.mp__ant { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #fff url("/logos/logo.svg") center / 78% no-repeat; box-shadow: inset 0 0 0 1px rgb(15 26 54 / .1); }
.mp__keys { display: flex; gap: 6px; padding-left: 26px; }
.mp__keys i { width: 46px; height: 18px; border-radius: 6px; background: color-mix(in oklab, var(--w-ink) 8%, transparent); }
.mp__keys i.is-on { background: var(--w-ink); }

/* ---------------------------------------------------------------- hero: the window whole above the fade
   The kit pins the window absolutely in a frame that fills what the first screen leaves, so a longer
   headline (Burmese, Thai) pushed the window past the section and the next section cut it flat. Here the
   window is in the flow, the frame is as tall as the window, and the hero grows past the first screen
   when it needs to. The chat keeps an empty strip at its foot as tall as the fade, so the fade only ever
   dissolves empty window, never the answer or its two actions. */
main > .hero { height: auto; min-height: 100vh; min-height: 100svh; }
main > .hero > .wrap { height: auto; }
.hero--centred .hero__window { flex: none; min-height: 0; padding-top: var(--s-6); --fade: 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent); }
.hero--centred .hero__window > .ly-piece { position: relative; left: auto; top: auto; transform: none; margin-inline: auto; width: min(880px, calc(100% - 2 * var(--s-6))); }
.hero .d-win__body { min-height: 0; }
.hero .d-chat { padding-bottom: calc(var(--fade) + 20px); }
@media (max-width: 639px) {
  .hero--centred .hero__window { padding-top: var(--s-4); --fade: 40px; }
  .hero--centred .hero__window > .ly-piece { left: auto; width: calc(100% - 2 * var(--s-4)); }
}
/* the price check: a ring that turns while it works, then a tick once the answer is in */
@keyframes d-spin { to { transform: rotate(360deg); } }
.d-tool::before { animation: d-spin 800ms linear infinite; }
.d-chat:has(> .d-msg--bot:not(.is-off)) .d-tool::before { animation: none; border: 0; border-radius: 50%; background: #1d9e5a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (prefers-reduced-motion: reduce) { .d-tool::before { animation: none; } }

/* "Replies in the customer's language": the same question in English, Burmese and Thai, each chat on screen
   for 4 s, stacked in one cell so the window keeps the tallest chat's height and never jumps. Still motion
   shows the first chat only. */
.langs { display: grid; }
.langs__chat { grid-area: 1 / 1; display: grid; gap: inherit; align-content: start; opacity: 0; animation: langs 12s infinite; }
.langs__chat:nth-child(2) { animation-delay: 4s; }
.langs__chat:nth-child(3) { animation-delay: 8s; }
@keyframes langs {
  0% { opacity: 0; translate: 0 6px; }
  4%, 30% { opacity: 1; translate: 0 0; }
  34%, 100% { opacity: 0; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .langs__chat { animation: none; }
  .langs__chat:first-child { opacity: 1; }
  .langs__chat:not(:first-child) { visibility: hidden; }
}
html[data-motion="off"] .langs__chat { animation: none; }
html[data-motion="off"] .langs__chat:first-child { opacity: 1; }
html[data-motion="off"] .langs__chat:not(:first-child) { visibility: hidden; }

/* No pause buttons: the drawn windows and grounds just play. The kit's scripts (ui.js, motion.js,
   backgrounds.js) still add their disc; it is hidden here, and the title gives back the 44px it kept for it.
   Reduced motion still holds every loop still. */
button.ui-pause.ui-pause, button.loop-pause { display: none; }
.ui-pause-beside { padding-right: 0; }

/* the section on screen (assets/nav-current.js): the kit's current-page underline under its nav item */
.nav__link[aria-current="location"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px; height: 2px; border-radius: 2px; background: currentColor; }
@media (min-width: 1024px) and (max-width: 1279px) { .nav__link[aria-current="location"]::after { left: var(--s-2); right: var(--s-2); } }
/* the phone sheet: the current item is underlined across its whole word, not the kit's 24px stub */
@media (max-width: 1023px) {
  .nav.is-open .nav__link:is([aria-current="location"], [aria-current="page"])::after { content: none; }
  .nav.is-open .nav__link:is([aria-current="location"], [aria-current="page"]) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
  html[lang="my"] .nav.is-open .nav__link:is([aria-current="location"], [aria-current="page"]) { text-underline-offset: 14px; }   /* under the vowels below the line */
}

/* a laptop (1024-1439): five section links, the language menu, the theme and the button share the bar, so
   the logo keeps its name and drops "Autopilot" (the page says it everywhere else) */
@media (min-width: 1024px) and (max-width: 1439px) { .nav__logo .logo-rest { display: none; } }
