/* BizStaff marketing site. Cool paper, navy ink, ultramarine for the agent's voice, name-tag yellow for the team.
   The one loud thing is the hero: a 3D field of conversation cards you fly through as you scroll.
   Everything else is quiet, start-aligned, set in Rubik. Shared by the home page and the business-type pages;
   build.py publishes it as /assets/site.<hash>.css. */
:root {
  --paper: #eef1f6; --card: #ffffff; --ink: #101a3a; --muted: #4b5574;
  --brand: #3b34e8; --on-brand: #ffffff; --brand-text: #3b34e8; --brand-soft: #e4e3ff;
  --tag: #ffd54a; --on-tag: #101a3a; --soft: #e3e7f0;
  --line: rgba(16, 26, 58, .12); --line-strong: rgba(16, 26, 58, .24);
  --deep: #101a3a; --on-deep: #eef1f8; --deep-muted: #b9c1da;
  --ok: #13804a; --err: #b42318;
  --f: "Rubik", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-s: 10px; --r-m: 14px; --r-l: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1029; --card: #121a3d; --ink: #eef1f8; --muted: #a3adc9;
    --brand: #8f8bff; --on-brand: #0a1029; --brand-text: #aeabff; --brand-soft: #262b72;
    --soft: #1d2652; --line: rgba(238, 241, 248, .13); --line-strong: rgba(238, 241, 248, .26);
    --deep: #182258; --on-deep: #eef1f8; --deep-muted: #b9c1da; --ok: #3ddc84; --err: #ff8a80; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a1029; --card: #121a3d; --ink: #eef1f8; --muted: #a3adc9;
  --brand: #8f8bff; --on-brand: #0a1029; --brand-text: #aeabff; --brand-soft: #262b72;
  --soft: #1d2652; --line: rgba(238, 241, 248, .13); --line-strong: rgba(238, 241, 248, .26);
  --deep: #182258; --on-deep: #eef1f8; --deep-muted: #b9c1da; --ok: #3ddc84; --err: #ff8a80; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(100% - 32px, 74rem); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(100% - 80px, 74rem); } }
.skip { position: absolute; z-index: 50; inset-inline-start: 12px; top: -60px; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: var(--r-s); font-weight: 600; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---- top bar ---- */
.topbar {
  position: fixed; z-index: 10; top: 0; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  padding-block: calc(10px + env(safe-area-inset-top, 0px)) 10px; border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s;
}
.topbar.scrolled { background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
@media (min-width: 900px) { .topbar { padding-inline: 40px; padding-block: calc(16px + env(safe-area-inset-top, 0px)) 12px; } }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; direction: ltr; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; min-height: 44px; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo .dim { color: var(--muted); font-weight: 500; }
.top-end { display: flex; align-items: center; gap: 8px; }
.on-shift { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; height: 34px; border-radius: 999px; background: var(--tag); color: var(--on-tag); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.on-shift i { width: 7px; height: 7px; border-radius: 50%; background: #13804a; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(19, 128, 74, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(19, 128, 74, 0); } }
.chipbtn {
  appearance: none; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--paper) 78%, transparent); color: var(--ink); border-radius: 999px;
  padding: 0 14px; font: 600 .84rem/1 var(--f); text-decoration: none; white-space: nowrap; cursor: pointer;
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chipbtn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 600px) { .on-shift .lbl { display: none; } .topbar .solid { display: none; } }

/* ---- buttons and the website form ---- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r-m); font: 600 1rem/1.15 var(--f); text-decoration: none; cursor: pointer; text-align: center; }
.btn.primary { background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); }
.btn[disabled] { opacity: .6; cursor: progress; }
.site-form { display: grid; gap: 8px; }
.site-form label { font-weight: 600; font-size: .92rem; }
.site-row { display: flex; flex-wrap: wrap; gap: 8px; }
.site-form input {
  flex: 1 1 15rem; min-width: 0; height: 54px; padding-inline: 16px; border-radius: var(--r-m); border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); font: 500 1.02rem/1 var(--f); text-align: left;
}
.site-form input::placeholder { color: var(--muted); opacity: .85; }
.site-form input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.site-form input[aria-invalid="true"] { border-color: var(--err); }
.site-form .btn.primary { height: 54px; flex: 0 1 auto; }
.site-err { font-size: .9rem; font-weight: 600; color: var(--err); }
.site-err:empty { display: none; }
.consent { font-size: .82rem; color: var(--muted); }
.consent a { color: inherit; text-underline-offset: 2px; }

/* ---- hero: the card cloud ----
   html.field (set before first paint when WebGL can run and motion is allowed): the hero is a tall scroll track,
   and its first screen stays pinned while scrolling flies the camera through the cards. Without it (no WebGL,
   reduced motion, no JavaScript) the hero is a plain block and the same conversations follow as a static list. */
.hero { position: relative; }
.hero-pin { position: relative; display: flex; align-items: center; min-height: min(100svh, 760px); padding-block: calc(104px + env(safe-area-inset-top, 0px)) 40px; }
html.field .hero { height: 210svh; }
html.field .hero.trade { height: 185svh; }
html.field .hero-pin { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; padding-block: calc(84px + env(safe-area-inset-top, 0px)) 36px; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: none; touch-action: pan-y; cursor: grab; -webkit-tap-highlight-color: transparent; }
html.field #field { display: block; }
#field.dragging { cursor: grabbing; }
#field.hovering { cursor: pointer; }
.scrim { display: none; position: absolute; inset: 0; pointer-events: none; }
html.field .scrim {
  display: block;
  background:
    linear-gradient(to bottom, var(--paper) 0, color-mix(in srgb, var(--paper) 0%, transparent) 130px),
    linear-gradient(to right, var(--paper) 0, color-mix(in srgb, var(--paper) 96%, transparent) max(32%, 640px), color-mix(in srgb, var(--paper) 78%, transparent) max(44%, 760px), color-mix(in srgb, var(--paper) 36%, transparent) max(55%, 880px), color-mix(in srgb, var(--paper) 0%, transparent) max(67%, 1000px));
}
html.field[dir="rtl"] .scrim {
  background:
    linear-gradient(to bottom, var(--paper) 0, color-mix(in srgb, var(--paper) 0%, transparent) 130px),
    linear-gradient(to left, var(--paper) 0, color-mix(in srgb, var(--paper) 96%, transparent) max(32%, 640px), color-mix(in srgb, var(--paper) 78%, transparent) max(44%, 760px), color-mix(in srgb, var(--paper) 36%, transparent) max(55%, 880px), color-mix(in srgb, var(--paper) 0%, transparent) max(67%, 1000px));
}
.hero-in { position: relative; z-index: 2; }
html.field .hero-in { pointer-events: none; }
.hero-text { display: grid; gap: 18px; max-width: 35rem; pointer-events: auto; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: .98; letter-spacing: -.012em; text-wrap: balance; }
.hero.trade h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.02; }
:lang(en) .hero h1 { letter-spacing: -.035em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 33rem; text-wrap: pretty; }
.langs { font-size: .92rem; font-weight: 500; }
.hero-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hero-ctl .chipbtn { background: var(--card); }
.hero-list { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .92rem; text-underline-offset: 3px; }
.hero-hint { font-size: .84rem; color: var(--muted); }
@media (max-width: 719px) {
  html.field .hero-pin { align-items: flex-end; padding-block-end: 20px; }
  /* on a phone the text sits at the bottom: a backdrop that grows with the text block, so the cloud stays clear above it */
  html.field .scrim, html.field[dir="rtl"] .scrim { background: linear-gradient(to bottom, var(--paper) 0, color-mix(in srgb, var(--paper) 0%, transparent) 110px); }
  html.field .hero-text { position: relative; }
  html.field .hero-text::before {
    content: ""; position: absolute; z-index: -1; inset-inline: -16px; top: -84px; bottom: -24px; pointer-events: none;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 0%, transparent), color-mix(in srgb, var(--paper) 92%, transparent) 70px, var(--paper) 110px);
  }
  html.field .hero .langs { display: none; }
  .hero-text { gap: 12px; }
  .hero h1, .hero.trade h1 { font-size: 2.3rem; line-height: 1.04; }
  .lead { font-size: 1rem; line-height: 1.5; }
  .site-form input, .site-form .btn.primary { height: 50px; }
  .site-form .btn.primary { flex: 1 1 100%; }
  .langs { font-size: .86rem; }
  /* the lead is shown in full: a clamped sentence reads as broken copy */
}
@media (max-width: 719px) and (max-height: 700px) { html.field .hero .consent, html.field .hero .hero-hint { display: none; } }
@media (min-width: 720px) and (max-height: 720px) { .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); } .hero-text { gap: 12px; } }
/* without the cloud (no WebGL, reduced motion): a few of the same conversations, still, beside the text; the full list follows */
@media (max-width: 959px) { html:not(.field) .hero-pin { min-height: 0; padding-block: calc(96px + env(safe-area-inset-top, 0px)) 0; } }
.hero-stack { display: none; }
@media (min-width: 960px) {
  html:not(.field) .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 64px; align-items: center; }
  html:not(.field) .hero-stack { display: grid; gap: 12px; }
  .hero-stack .cv:nth-child(2) { margin-inline-start: 36px; }
  .hero-stack .cv { box-shadow: 0 24px 60px -40px rgba(16, 26, 58, .45); }
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink); text-underline-offset: 3px; display: inline-flex; min-height: 32px; align-items: center; }

/* ---- sections ---- */
.sec { padding-block: clamp(64px, 9vw, 124px); }
.sec + .sec { padding-block-start: 0; }
.sec h2 { font-size: clamp(1.85rem, 3.7vw, 2.9rem); line-height: 1.08; letter-spacing: -.012em; max-width: 24ch; text-wrap: balance; }
:lang(en) .sec h2 { letter-spacing: -.028em; }
.intro { margin-block-start: 14px; color: var(--muted); font-size: 1.12rem; max-width: 40rem; text-wrap: pretty; }
.sec .sec-body { margin-block-start: clamp(28px, 4.5vw, 52px); }
.sec h3 { font-size: 1.14rem; line-height: 1.3; font-weight: 600; }
.convos-sec { padding-block-start: clamp(56px, 7vw, 96px); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.steps li { display: grid; gap: 10px; align-content: start; }
.num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tag); color: var(--on-tag); font-weight: 700; font-size: 1.15rem; }
.steps p, .chans p, .never p, .pains p { color: var(--muted); }

.chans { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.chans li { display: grid; gap: 8px; align-content: start; padding-block-start: 18px; border-top: 2px solid var(--ink); }
.chans svg { width: 28px; height: 28px; color: var(--brand-text); }

.team { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .team { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; } }
.team-pts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.team-pts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.team-pts li::before { content: ""; width: 10px; height: 10px; margin-block-start: .55em; border-radius: 3px; background: var(--tag); outline: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.phone { margin: 0; width: min(100%, 380px); justify-self: center; background: var(--card); border: 1px solid var(--line); border-radius: 30px; overflow: hidden; box-shadow: 0 40px 80px -48px rgba(16, 26, 58, .45); }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; background: var(--deep); color: var(--on-deep); }
.phone-head .av { width: 34px; height: 34px; border-radius: 50%; background: var(--tag); color: var(--on-tag); display: grid; place-items: center; font-weight: 700; flex: none; }
.phone-head b { display: block; font-weight: 600; font-size: .98rem; }
.phone-head small { color: var(--deep-muted); font-size: .8rem; }
.phone-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 20px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.msg.agent { align-self: flex-start; background: var(--brand); color: var(--on-brand); border-end-start-radius: 5px; }
.msg.staff { align-self: flex-end; background: var(--tag); color: var(--on-tag); border-end-end-radius: 5px; }
.msg small { display: block; font-size: .72rem; font-weight: 600; opacity: .85; margin-block-end: 2px; }
.saved { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 11px; }

/* business types on the home page: each one opens its own page */
.types { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.type { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); min-width: 0; }
.type:hover { border-color: var(--line-strong); }
.type h3 { font-size: 1.02rem; margin-block-end: 4px; }
.type h3 a { text-decoration: none; }
.type h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.type h3 a:focus-visible { outline: none; }
.type:has(h3 a:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
.type .go-on { margin-block-start: auto; padding-block-start: 4px; font-size: .86rem; font-weight: 600; color: var(--brand-text); }
.q, .a { max-width: 92%; padding: 9px 12px; border-radius: 15px; font-size: .92rem; line-height: 1.45; }
.q { align-self: flex-end; background: var(--soft); border-end-end-radius: 5px; }
.a { align-self: flex-start; background: var(--brand); color: var(--on-brand); border-end-start-radius: 5px; }
.more { margin-block-start: 22px; color: var(--muted); }

.never-wrap { background: var(--card); border-block: 1px solid var(--line); }
.sec + .sec.never-wrap, .sec.never-wrap + .sec { padding-block-start: clamp(64px, 9vw, 124px); }
.never { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px 48px; }
@media (min-width: 820px) { .never { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.never li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-content: start; }
.never svg { grid-row: span 2; width: 34px; height: 34px; color: var(--ink); }
.never h3 { padding-block-start: 4px; }

/* ---- the conversations as readable cards (home list, and each trade page's questions) ---- */
.convos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); align-items: start; }
.convos.collapsed > li:nth-child(n + 7) { display: none; }
.cv, .cv-btn {
  display: grid; gap: 9px; width: 100%; padding: 14px 15px 15px; text-align: start; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; min-width: 0;
}
.cv-btn { appearance: none; cursor: pointer; }
.cv-btn:hover { border-color: var(--line-strong); }
.cv-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; font-size: .8rem; color: var(--muted); }
.cv-meta b { grid-column: 1; } .cv-meta time { grid-column: 2; grid-row: 1; } .cv-meta .ch { grid-column: 1 / -1; grid-row: 2; }
.cv-meta b { color: var(--ink); font-size: .95rem; font-weight: 600; }
.cv-meta .ch { display: inline-flex; align-items: center; gap: 6px; }
.cv-meta .ch::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-text); }
.cv.wa .cv-meta .ch::before, .cv-btn.wa .cv-meta .ch::before { background: #25a45a; }
.cv-meta time { font-variant-numeric: tabular-nums; direction: ltr; }
.bub { max-width: 88%; padding: 8px 12px; border-radius: 15px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.bub.g { justify-self: end; background: var(--soft); border-end-end-radius: 5px; }
.bub.b { justify-self: start; background: var(--brand); color: var(--on-brand); border-end-start-radius: 5px; }
.bub.t { justify-self: start; background: var(--tag); color: var(--on-tag); border-end-start-radius: 5px; }
.bub small { display: block; font-size: .72rem; font-weight: 600; opacity: .85; }
.cv-btn .bub > span { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 4; }
.cv-btn .bub.g > span { -webkit-line-clamp: 2; }
.cv.call, .cv-btn.call { background: #101a3a; color: #eef1f8; border-color: rgba(238, 241, 248, .16); }
.call .cv-meta { color: #c9cfe2; } .call .cv-meta b { color: #ffffff; } .call .cv-meta .ch::before { background: #ffd54a; }
.call .bub.g { background: #24305e; color: #eef1f8; }
.call .bub.b { background: #ffd54a; color: #101a3a; }
.cv-line { font-size: .86rem; color: #c9cfe2; }
.cv-line bdi { font-weight: 600; color: #ffffff; font-variant-numeric: tabular-nums; }
.cv-rooms { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .9rem; }
.cv-rooms > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.cv-rooms > div:first-child { border-top: 0; font-weight: 600; }
.cv-rooms b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cv-tiles span { aspect-ratio: 1 / .8; border-radius: 9px; display: flex; align-items: flex-end; padding: 6px 7px; color: #fff; font-size: .74rem; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.cv-tiles span:nth-child(1) { background: linear-gradient(160deg, #e2c9a6, #9a7650); }
.cv-tiles span:nth-child(2) { background: linear-gradient(160deg, #8a5a3c, #4a2c1c); }
.cv-tiles span:nth-child(3) { background: linear-gradient(160deg, #4b4f5c, #1d2029); }
.cv-out { justify-self: start; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tag); color: var(--on-tag); }
.call .cv-out { background: #eef1f8; color: #101a3a; }
.cv-did { list-style: none; margin: 2px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.cv-did li { font-size: .78rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.cv-did li:first-child { background: var(--tag); color: var(--on-tag); border-color: var(--tag); font-weight: 600; }
.call .cv-did { border-top-color: rgba(238, 241, 248, .16); }
.call .cv-did li { color: #c9cfe2; border-color: rgba(238, 241, 248, .3); }
.call .cv-did li:first-child { color: #101a3a; border-color: #ffd54a; }
.convos-more { margin-block-start: 18px; }

/* ---- a trade page ---- */
.pains-wrap { display: grid; gap: 28px 64px; }
@media (min-width: 900px) { .pains-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.pains { list-style: none; margin: 0; padding: 0; display: grid; }
.pains li { display: grid; gap: 6px; padding-block: 20px; border-top: 1px solid var(--line-strong); }
.pains li:first-child { padding-block-start: 0; border-top: 0; }
@media (min-width: 900px) { .pains li:first-child { padding-block-start: 4px; } }
.systems { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.systems li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.systems b { font-weight: 600; font-size: 1.02rem; }
.systems span { color: var(--muted); font-size: .92rem; }
.sys-note { margin-block-start: 16px; color: var(--muted); max-width: 46rem; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; }

.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); min-width: 0; }
.plan[data-picked] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.plan.quote { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.plan-name { font-weight: 600; font-size: 1.02rem; }
.amt { margin-block-start: 8px; font-size: clamp(2.4rem, 4.2vw, 3rem); line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: start; }
[dir="rtl"] .amt[dir="ltr"] { text-align: right; }
.amt.word { font-size: 1.6rem; letter-spacing: -.01em; line-height: 1.15; }
.per { color: var(--muted); font-size: .92rem; }
.plan .facts { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .95rem; }
.plan .facts bdi { font-weight: 600; font-variant-numeric: tabular-nums; }
.plan .btn { margin-block-start: auto; align-self: flex-start; min-height: 44px; padding-inline: 18px; }
.plan > :nth-last-child(2) { margin-block-end: 18px; }
.qd { color: var(--muted); font-size: .95rem; margin-block-start: 8px; }
.fine { margin-block-start: 18px; font-size: .9rem; color: var(--muted); max-width: 52rem; }
.go-live { display: grid; gap: 18px; margin-block-start: 34px; }
@media (min-width: 960px) { .go-live { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.box { padding: clamp(20px, 3vw, 30px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); min-width: 0; display: grid; gap: 16px; align-content: start; }
.box h3 { font-size: 1.2rem; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.incl li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; line-height: 1.5; }
.incl li::before { content: ""; width: 13px; height: 7px; margin-block-start: .4em; border-left: 2.5px solid var(--brand-text); border-bottom: 2.5px solid var(--brand-text); transform: rotate(-45deg); }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.mini li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; counter-increment: s; }
.mini li::before { content: counter(s); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--tag); color: var(--on-tag); font-weight: 700; font-size: .9rem; }
.act { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.act .f { display: grid; gap: 6px; min-width: 0; }
.act .wide { grid-column: 1 / -1; }
.act label { font-size: .86rem; font-weight: 600; }
.act input, .act select { width: 100%; height: 48px; padding-inline: 12px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font: 400 1rem/1 var(--f); text-overflow: ellipsis; }
.act input[dir="ltr"] { text-align: left; }
.act input[aria-invalid="true"], .act select[aria-invalid="true"] { border-color: var(--err); }
.act-row { display: flex; flex-wrap: wrap; gap: 10px; }
.act-msg { font-weight: 600; }
.act-msg:empty { display: none; }
.act-msg.ok { color: var(--ok); } .act-msg.err { color: var(--err); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { font-size: .88rem; color: var(--muted); }

.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: 44px; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-block-start: -6px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-block-start: 4px; }
.faq .ans { padding-block-end: 20px; color: var(--muted); max-width: 44rem; }
.faq .ans a { color: var(--ink); }

.closing { background: var(--deep); color: var(--on-deep); }
.closing .wrap { padding-block: clamp(64px, 9vw, 112px); display: grid; gap: 18px; }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.015em; max-width: 20ch; text-wrap: balance; }
:lang(en) .closing h2 { letter-spacing: -.03em; }
.closing .sub { color: var(--deep-muted); font-size: 1.15rem; }
.closing .site-form { max-width: 40rem; margin-block-start: 8px; }
.closing .site-form input { border-color: transparent; background: #ffffff; color: #101a3a; }
.closing .site-form input::placeholder { color: #5a6380; }
.closing .btn.primary { background: var(--tag); color: var(--on-tag); border-color: var(--tag); }
.closing .consent, .closing .small { color: var(--deep-muted); }
.closing .site-err { color: #ffb4ab; }
.closing :focus-visible { outline-color: var(--tag); }

.foot { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 14px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.foot .logo { color: var(--ink); }
.foot a { color: var(--ink); text-underline-offset: 3px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 32px; }
.foot-types { padding-block: 16px; border-block: 1px solid var(--line); }
.foot-types h2 { font-size: .92rem; font-weight: 600; color: var(--ink); margin-block-end: 6px; }
.foot-types ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.foot-types a { display: inline-flex; align-items: center; min-height: 32px; }
.foot-types a[aria-current="page"] { font-weight: 600; text-decoration: none; }

/* ---- one conversation, in a modal dialog ---- */
.convo { width: min(460px, calc(100vw - 24px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(10, 16, 41, .55); }
.convo[open] { display: flex; flex-direction: column; animation: pop .22s cubic-bezier(.2, .8, .2, 1); }
.convo::backdrop { background: rgba(10, 16, 41, .5); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.convo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; padding-inline-start: 18px; border-bottom: 1px solid var(--line); }
.convo-head .ttl { min-width: 0; display: grid; gap: 2px; }
.convo-head h2 { font-size: 1.02rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-head .meta { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.x { appearance: none; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; line-height: 1; cursor: pointer; flex: none; }
.convo-body { overflow: auto; padding: 16px 18px; display: grid; gap: 18px; align-content: start; flex: 1; overscroll-behavior: contain; }
.thread { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.thread .bub { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: .95rem; }
.thread .bub.g { align-self: flex-end; }
.thread .bub.b, .thread .bub.t { align-self: flex-start; }
.tr { display: grid; gap: 2px; }
.tr small { color: var(--muted); font-weight: 600; font-size: .74rem; }
.callbox { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: #101a3a; color: #eef1f8; }
.callbox.out { background: #ffd54a; color: #101a3a; }
.callbox .big { font-size: 1.9rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.callbox .reason { font-size: .9rem; line-height: 1.45; }
.callbox .status { justify-self: start; background: #101a3a; color: #ffd54a; border-radius: 999px; padding: 5px 10px; font-weight: 600; font-size: .8rem; }
.wave { display: flex; gap: 3px; align-items: center; height: 36px; }
.wave i { flex: 1; border-radius: 2px; background: #ffd54a; }
.rooms { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rooms .dates { padding: 11px 14px; font-weight: 600; }
.room { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.room b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.book { margin: 10px 14px 14px; text-align: center; background: var(--brand); color: var(--on-brand); font-weight: 600; padding: 10px; border-radius: 10px; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-self: stretch; }
.swatch { aspect-ratio: 1 / .86; border-radius: 10px; position: relative; overflow: hidden; }
.swatch span { position: absolute; inset-inline-start: 7px; bottom: 6px; color: #fff; font-size: .74rem; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.badge { align-self: flex-start; border-radius: 999px; padding: 6px 11px; font-size: .82rem; font-weight: 600; background: var(--tag); color: var(--on-tag); }
.badge.link { background: var(--brand-soft); color: var(--brand-text); }
.did h3 { margin: 0 0 8px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.did ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.did li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 11px; font-size: .84rem; }
.convo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.convo-foot small { color: var(--muted); font-size: .78rem; }
.convo-foot .btns { display: flex; gap: 8px; }
.convo-foot .btn { min-height: 44px; padding-inline: 14px; font-size: .92rem; }
@media (max-width: 640px) {
  .convo { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
}

/* Rubik has no Vietnamese letters (ạ, ế, ộ …): a Vietnamese conversation is set in Noto Sans as a whole, not letter by letter */
:lang(vi) { font-family: "Noto Sans", var(--f); }

@media (prefers-reduced-motion: reduce) { .on-shift i, .convo[open] { animation: none; } .faq summary::after, .topbar { transition: none; } }
