/* Quriva's own layer on top of the kit (assets/): the language switch, the logo and what sits inside a visual. */
html.i18n-wait body { visibility: hidden; }
:root { --ground-bg: #e4e8f1; --ground-surface: #eef1f6; --ground-ink: #0e1b3d; --ground-muted: #5e6b83; --ground-accent: #16295a; }
html[data-l="zh"] body { font-family: "Noto Sans TC", "Inter", system-ui, sans-serif; }
.nav__logo { font: 500 24px/1 "Space Grotesk", sans-serif; letter-spacing: -0.03em; }
.nav__logo i { font-style: normal; color: var(--p-accent); }
.lang { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 14px/1 var(--font-text); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.footer--dark .footer__lede { max-width: 22ch; }

/* ---- inside visuals: Quriva's own screens, drawn as live HTML ---- */
.qv { --qv-navy: #0e1b3d; --qv-red: #d23339; --qv-green: #1f7f55; --qv-amber: #f0a72b; --qv-line: #dde2ec; --qv-soft: #f5efe3;
  background: #fff; color: var(--qv-navy); border: 1px solid var(--qv-line); border-radius: 16px; padding: 20px; font: 400 14px/20px var(--font-text); text-align: left; }
.ground-inverse .qv { border-color: transparent; }
.qv b, .qv strong { font-weight: 500; }
.qv__label { display: flex; justify-content: space-between; gap: 12px; font: 500 13px/16px var(--font-text); color: #5e6b83; margin-bottom: 12px; }
.qv__tag { font: 500 13px/16px var(--font-text); color: #5e6b83; border: 1px solid var(--qv-line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.qv__stem { font: 500 24px/30px var(--font-display); letter-spacing: -0.02em; margin: 0 0 14px; }
.qv__opts { display: grid; gap: 8px; }
.qv__opt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--qv-line); border-radius: 12px; background: #fff; color: inherit; font: 500 16px/24px var(--font-text); text-align: left; cursor: pointer; width: 100%; }
.qv__opt i { font-style: normal; width: 24px; height: 24px; border-radius: 999px; background: var(--qv-soft); display: grid; place-items: center; font: 500 13px/1 var(--font-text); color: #5e6b83; flex: none; }
button.qv__opt:hover { border-color: var(--qv-navy); }
.qv__opt.is-wrong { border-color: var(--qv-red); background: #fdf1f1; }
.qv__opt.is-wrong i { background: var(--qv-red); color: #fff; }
.qv__opt.is-right { border-color: var(--qv-green); background: #eef7f2; }
.qv__opt.is-right i { background: var(--qv-green); color: #fff; }
.qv__note { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--qv-soft); font-size: 14px; line-height: 21px; }
.qv__note b { display: block; font-size: 16px; line-height: 24px; margin-bottom: 2px; }
.qv__rows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.qv__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--qv-line); font-size: 14px; }
.qv__rows li span:last-child { color: #5e6b83; white-space: nowrap; }
.qv__big { font: 500 44px/1 var(--font-display); letter-spacing: -0.03em; }
.qv__big small { font-size: 20px; color: #5e6b83; }
.qv__bar { display: flex; height: 36px; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--qv-navy); margin: 6px 0; }
.qv__bar span { flex: 1; border-right: 1.5px solid var(--qv-navy); display: grid; place-items: center; font: 500 13px/1 var(--font-text); }
.qv__bar span:last-child { border-right: 0; }
.qv__bar .on-r { background: var(--qv-red); color: #fff; } .qv__bar .on-n { background: #16295a; color: #fff; }
.qv__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qv__chips > span { font: 500 13px/16px var(--font-text); padding: 6px 10px; border-radius: 999px; background: var(--qv-soft); }
.qv__chips > span.on { background: var(--qv-navy); color: #fff; }
.qv__map { display: grid; grid-template-columns: 76px repeat(6, 1fr); gap: 4px; align-items: center; font-size: 13px; color: #5e6b83; }
.qv__map i { display: block; height: 22px; border-radius: 5px; background: var(--qv-soft); }
.qv__map i.g { background: var(--qv-green); } .qv__map i.a { background: var(--qv-amber); } .qv__map i.r { background: var(--qv-red); }
.qv__map em { font-style: normal; text-align: center; font-size: 13px; }
.qv__meter { height: 10px; border-radius: 999px; background: var(--qv-soft); overflow: hidden; margin-top: 6px; }
.qv__meter b { display: block; height: 100%; background: var(--qv-red); border-radius: 999px; }
.qv__src { margin-top: 12px; font-size: 13px; line-height: 18px; color: #5e6b83; }
.qv__dip { display: block; width: 100%; height: auto; margin: 4px 0 10px; }

/* the hero's collage pieces are the cards themselves */
.ly-collage .ly-piece.qv { border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(14,27,61,.04), 0 12px 32px rgba(14,27,61,.10); }

/* a screen inside a split frame: the card starts 40px in and is cut by the frame's bottom */
.frame .qv-screen { position: absolute; inset: 40px 40px 0 40px; }
.frame .qv-screen > .qv { border-radius: 16px 16px 0 0; border-bottom: 0; min-height: 100%; box-shadow: 0 12px 32px rgba(14,27,61,.10); }
.frame .qv-screen[hidden] { display: none; }
.panel > .qv-screen { position: absolute; inset: 24px 24px 0 24px; }
.panel > .qv-screen > .qv { border-radius: 16px 16px 0 0; border-bottom: 0; min-height: 100%; }
@media (min-width: 1024px) { .frame--split.ui { --ratio: 104%; } }
/* tablet and phone: a screen is shown whole in its frame, never cut */
@media (max-width: 1023px) {
  .frame--split.ui { --ratio: 0px; display: block; padding: 24px; }
  .frame .qv-screen, .panel > .qv-screen { position: static; }
  .frame .qv-screen > .qv, .panel > .qv-screen > .qv { border-radius: 16px; border-bottom: 1px solid var(--qv-line); min-height: 0; }
  .panel:has(> .qv-screen) { min-height: 0; padding: 16px; border-radius: 12px; }
}
@media (max-width: 639px) {
  .frame--split.ui { padding: 12px; } .panel:has(> .qv-screen) { padding: 12px; }
  .qv { padding: 16px; } .qv__stem { font-size: 20px; line-height: 26px; }
  .ly-collage .ly-piece.qv:not(:first-child) { display: none; }
  .ly-collage .ly-piece.qv:first-child { left: 0 !important; top: 0 !important; width: 100% !important; }
}
.qv, .qv-screen { min-width: 0; } .qv__rows li span:first-child { min-width: 0; }
@media (max-width: 639px) { .qv__rows li span:last-child { white-space: normal; text-align: right; } .close__word { line-height: 1.1; } }

/* older two-language text (data.json, Privacy, Terms): both languages are in the page */
html[data-l="en"] [data-lang-zh], html[data-l="zh"] [data-lang-en] { display: none !important; }
.qv-facts { list-style: none; padding: 0; margin: 0; } .qv-facts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hero--split .frame--split.ui { align-self: stretch; }
.qv__sw { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--qv-line); }
.qv__sw i { width: 40px; height: 24px; border-radius: 999px; background: var(--qv-line); position: relative; flex: none; }
.qv__sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.qv__sw i.on { background: var(--qv-green); } .qv__sw i.on::after { left: 19px; }
.qv__pill { display: inline-block; font: 500 13px/16px var(--font-text); padding: 3px 10px; border-radius: 999px; background: var(--qv-soft); white-space: nowrap; }
.qv__pill.g { background: #e3f1ea; color: #14573a; } .qv__pill.a { background: #fdf0d5; color: #7a4b00; } .qv__pill.r { background: #fbe4e5; color: #9c1f25; }

/* reading pages */
.doc { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
.doc h1 { font-size: var(--t-h2); max-width: 22ch; } .doc > .wrap > .t-lead { max-width: 62ch; margin-top: var(--s-4); }
.doc__body { max-width: 72ch; margin-top: var(--s-7); }
.doc__body h2 { font-size: var(--t-h3); margin: var(--s-7) 0 var(--s-3); } .doc__body h3 { font: 500 var(--t-lead)/1.4 var(--font-text); letter-spacing: 0; margin: var(--s-5) 0 var(--s-2); }
.doc__body p, .doc__body li { margin-bottom: var(--s-3); line-height: 1.7; } .doc__body ul, .doc__body ol { padding-left: 1.2em; }
.doc__body a, .doc a.inl { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.doc__body table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; } .doc__body th, .doc__body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.doc__card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); } .doc__card h3 { font: 500 var(--t-lead)/1.3 var(--font-display); margin-bottom: var(--s-3); }
.doc__card p { margin-bottom: var(--s-3); } .doc__card b { display: block; font-weight: 500; font-size: 14px; color: var(--muted); } .doc__card .src { font-size: 14px; color: var(--muted); } .doc__card a { color: inherit; }
.cmp { width: 100%; border-collapse: collapse; margin-top: var(--s-7); } .cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.cmp thead th { font-weight: 500; } .cmp th[scope="row"] { font-weight: 500; width: 24%; } .cmp .cmp-q { background: var(--p-surface); padding-left: 16px; font-weight: 500; } .cmp .cmp-l { display: none; }
@media (max-width: 859px) {
  .doc__grid { grid-template-columns: 1fr; }
  .cmp thead { display: none; } .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tr { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); } .cmp th[scope="row"] { width: auto; border: 0; padding: 0 0 8px; font-size: var(--t-lead); }
  .cmp td { border: 0; padding: 6px 0; } .cmp .cmp-q { padding: 10px 12px; border-radius: 8px; margin-top: 6px; } .cmp .cmp-l { display: block; font-size: 13px; color: var(--muted); }
}
/* the demo request form */
.qv-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.qv-form .field { display: grid; gap: 6px; margin-bottom: var(--s-4); } .qv-form label { font: 500 14px/20px var(--font-text); }
.qv-form input, .qv-form select { height: 48px; border: 1px solid var(--line-strong, #c5ccda); border-radius: var(--r-sm); padding: 0 12px; font: 400 16px/1 var(--font-text); color: var(--ink); background: #fff; width: 100%; }
.qv-form .btn { width: 100%; } .qv-form [role="alert"] { color: #9c1f25; margin-bottom: var(--s-3); }
.qv-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; } .qv-steps li { counter-increment: s; padding: 10px 0; border-bottom: 1px solid var(--line); } .qv-steps li::before { content: counter(s) ". "; font-weight: 500; }

/* pills inside rows keep their own colour; a navy card (the share card) */
.qv__rows li span.qv__pill.g, .qv__rows li span.qv__pill.g span { color: #14573a; } .qv__rows li span.qv__pill.a, .qv__rows li span.qv__pill.a span { color: #7a4b00; } .qv__rows li span.qv__pill.r, .qv__rows li span.qv__pill.r span { color: #9c1f25; }
.qv--dark { background: #0e1b3d; border-color: #0e1b3d; color: #fff; }
.qv--dark .qv__rows li, .qv--dark .qv__tag { border-color: #3a4a73; }
.qv--dark .qv__rows li span, .qv--dark .qv__big small { color: #fff; }
.qv--dark .qv__label, .qv--dark .qv__src, .qv--dark .qv__tag { color: #c3cbdc; }

/* Dropdown menus as a floating card (2 Dec 2026, after thinka.ai): two columns, tinted icon, title and one line. */
.mi__label { margin: 0 0 12px 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5e6b83; }
.mi__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.mi { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 16px; color: #0e1b3d; text-decoration: none; min-height: 44px;
  transition: background-color .2s cubic-bezier(.22, 1, .36, 1); }
.mi:hover, .mi:focus-visible { background: #f5efe3; }
.mi:focus-visible { outline: 2px solid #0e1b3d; outline-offset: 2px; }
.mi__ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.mi__ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mi--v { background: #ecebfb; color: #4b45b8; }
.mi--b { background: #e5eefb; color: #1f5fbf; }
.mi--r { background: #fbe9ea; color: #b4262c; }
.mi--a { background: #fdf2dc; color: #a35d00; }
.mi--g { background: #e2f3ea; color: #1f7f55; }
.mi__tx { display: grid; gap: 2px; padding-top: 2px; }
.mi__tx b { font-size: 16px; line-height: 22px; font-weight: 600; }
.mi__tx small { font-size: 14px; line-height: 20px; color: #5e6b83; }
@media (min-width: 1024px) {
  .nav__item { position: relative; }
  .nav__menu--card { left: -8px; right: auto; top: calc(100% - 4px); width: 640px; padding: 20px 16px 16px;
    border: 1px solid #e7e0d2; border-radius: 24px; background: #fff;
    box-shadow: 0 24px 48px -16px rgba(14, 27, 61, .22), 0 2px 6px rgba(14, 27, 61, .05); }
}
@media (max-width: 1023px) {
  .nav.is-open .nav__menu--card { padding: 0 0 12px; }
  .mi__label { display: none; }
  .mi__grid { grid-template-columns: 1fr; gap: 0; }
  .mi { padding: 10px 0; }
  .mi:hover { background: none; }
  .mi__ic { width: 40px; height: 40px; }
}
