/* OLOBBY redesign 2026-11 — shared base: reset, type, controls, header, mega menu, footer, primitives.
   Concept stylesheets layer on top of this file only (tokens → base → concept). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.68;
  font-feature-settings: "ss06";
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:where(h1, h2, h3, h4) { color: var(--ink); font-weight: 740; letter-spacing: var(--track-h2); text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible { outline-color: #9DBCFF; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-control);
  background: var(--ink); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- layout ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section + .section.is-continuation { padding-top: 0; }

/* ---------- type primitives ---------- */
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 780; letter-spacing: var(--track-tight); color: var(--ink); }
.t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 740; letter-spacing: var(--track-h2); color: var(--ink); }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.t-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--body); max-width: 34em; }
.t-small { font-size: var(--fs-small); line-height: 1.57; }
.t-ui { font-family: var(--font-ui); letter-spacing: 0; }
.on-night { color: #C7D2E8; }
.on-night :where(h1, h2, h3, h4, .t-display, .t-h2, .t-h3) { color: #fff; }

/* Section header: kicker is a quadrant marker + plain-language category, never all-caps */
.sec-head { display: grid; gap: 18px; max-width: 760px; }
.sec-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 24px 64px; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 860px) { .sec-head--split { grid-template-columns: 1fr; } }

/* ---------- quadrant mark (logo O-ring motif) ---------- */
.qmark { /* clockwise from 12 o'clock, matching the logo O: yellow, orange, green, blue */
  --qa: var(--q-org); --qb: var(--q-do); --qc: var(--q-share); --qd: var(--q-plan);
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--qa) 0 25%, var(--qb) 0 50%, var(--qc) 0 75%, var(--qd) 0 100%);
  -webkit-mask: radial-gradient(circle, transparent 3.2px, #000 3.6px); mask: radial-gradient(circle, transparent 3.2px, #000 3.6px);
}
/* single-quadrant marker: shows which category a block belongs to */
.qdot { width: 12px; height: 12px; border-radius: 12px 0 0 0; flex: none; background: var(--q, var(--q-plan)); }
.q-plan { --q: var(--q-plan); --q-ink: var(--q-plan-ink); --q-soft: var(--q-plan-soft); }
.q-do { --q: var(--q-do); --q-ink: var(--q-do-ink); --q-soft: var(--q-do-soft); }
.q-share { --q: var(--q-share); --q-ink: var(--q-share-ink); --q-soft: var(--q-share-soft); }
.q-org { --q: var(--q-org); --q-ink: var(--q-org-ink); --q-soft: var(--q-org-soft); }

/* module icon badge: original product icon on a quadrant-tinted tile */
.mod-ico { --size: 40px; width: var(--size); height: var(--size); flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--q-soft, var(--paper-blue)); box-shadow: inset 0 0 0 1px rgba(23, 36, 61, .06); }
.mod-ico img { width: calc(var(--size) * .5); height: calc(var(--size) * .5); }
.mod-ico--sm { --size: 32px; border-radius: 8px; }
.mod-ico--lg { --size: 52px; border-radius: 13px; }

/* ---------- icons (sprite) ---------- */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 24px; height: 24px; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-control); border: 1px solid transparent; font-size: .9375rem; font-weight: 640; letter-spacing: -.01em;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); white-space: nowrap; }
.btn--primary { background: var(--action); color: #fff; }
.btn--primary:hover { background: var(--action-hover); }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--night { background: #fff; color: var(--night); }
.btn--night:hover { background: #DCE6FF; }
.btn--quiet { background: transparent; color: var(--action); padding-inline: 4px; }
.btn--quiet:hover { color: var(--action-hover); text-decoration: underline; text-underline-offset: 4px; }
.btn:active { transform: translateY(1px); }
@media (max-width: 640px) { .btn { min-height: 48px; } }

.link { color: var(--action); font-weight: 620; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--action) 35%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-color: currentColor; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-chip);
  font-size: var(--fs-micro); font-weight: 600; color: var(--ink); background: var(--paper-soft); border: 1px solid var(--line); }

/* ---------- product frame ---------- */
.frame { position: relative; border-radius: var(--r-frame); background: #fff; box-shadow: var(--shadow-frame); overflow: hidden; isolation: isolate; }
.frame__bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #FBFCFE; font-size: 12px; color: var(--muted); }
.frame__dots { display: flex; gap: 6px; }
.frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: #DDE3EE; }
.frame__url { flex: 1; max-width: 360px; margin-inline: auto; height: 22px; border-radius: 6px; background: #EEF1F7; display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-size: 12px; color: var(--body); }
/* crop helper: show a region of a 1360×800 product scene.
   Set --x --y --w --h in scene CSS px (1360×800 space). Image keeps original pixels; nothing is redrawn. */
.crop { position: relative; overflow: hidden; aspect-ratio: var(--w) / var(--h); background: #fff; }
.crop > img { position: absolute; max-width: none; width: calc(1360 / var(--w) * 100%); left: calc(var(--x) / var(--w) * -100%); top: calc(var(--y) / var(--h) * -100%); }

/* status pill used in UI fragments (product vocabulary only) */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-family: var(--font-ui); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill--blue { background: #E8EFFD; color: #1E4FB3; }
.pill--green { background: #E3F6EF; color: #0F6C4D; }
.pill--orange { background: #FEEEE6; color: #A64218; }
.pill--gray { background: #EEF1F6; color: #4A5874; }

/* floating UI fragment that sits over a product frame */
.frag { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-pop); font-size: 13px; color: var(--ink); line-height: 1.35; backdrop-filter: blur(6px); }
.frag strong { font-weight: 680; }
.frag small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t-fast); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand-logo { display: inline-flex; align-items: center; flex: none; }
.brand-logo img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav__item { position: static; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; background: none; border-radius: var(--r-control); font-size: .9375rem; font-weight: 580; color: var(--ink); }
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--paper-soft); }
.nav__link .ico { transition: transform var(--t-fast) var(--ease); }
.nav__link[aria-expanded="true"] .ico { transform: rotate(180deg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn { min-height: 38px; padding-inline: 14px; font-size: .875rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--r-control); place-items: center; color: var(--ink); }
.menu-toggle:hover { background: var(--paper-soft); }

/* mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(23, 36, 61, .22); }
.mega[hidden] { display: none; }
.mega__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.05fr); gap: 0; padding-block: 28px 32px; }
.mega__col { padding-right: 20px; }
.mega__col + .mega__col { padding-left: 20px; border-left: 1px solid var(--line); }
.mega__cat { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: var(--fs-micro); font-weight: 680; color: var(--q-ink); }
.mega__list { display: grid; gap: 2px; }
.mega__mod { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 8px; margin-inline: -8px; border-radius: var(--r-control); }
.mega__mod:hover { background: var(--paper-soft); }
.mega__mod .mod-ico { grid-row: span 2; }
.mega__name { font-family: var(--font-ui); font-size: .875rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.mega__desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.mega__feature { margin-left: 20px; padding: 18px; border-radius: 16px; background: var(--paper-blue); display: grid; gap: 12px; align-content: start; }
.mega__feature .crop { border-radius: 10px; box-shadow: 0 0 0 1px rgba(23, 36, 61, .08); }
.mega__feature strong { color: var(--ink); font-size: .9375rem; }
.mega__feature p { font-size: 13px; line-height: 1.5; }

/* mobile drawer */
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff; overflow-y: auto; padding: 8px var(--gutter) 40px; }
.drawer[hidden] { display: none; }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-weight: 640; color: var(--ink); cursor: pointer; }
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group[open] > summary .ico { transform: rotate(180deg); }
.drawer__mods { display: grid; gap: 4px; padding-bottom: 16px; }
.drawer__cat { margin: 12px 0 4px; display: flex; gap: 8px; align-items: center; font-size: var(--fs-micro); font-weight: 680; color: var(--q-ink); }
.drawer__link { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font-weight: 640; color: var(--ink); }
.drawer__cta { display: grid; gap: 10px; margin-top: 24px; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1040px) {
  .nav, .header-actions .btn--ghost, .header-actions .header-login { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { gap: 4px; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; cursor: pointer; font-size: 1.0625rem; font-weight: 650; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform var(--t-fast) var(--ease); color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--ink); }
.faq details > div { padding: 0 48px 24px 0; max-width: 46em; }

/* ---------- tabs (shared behaviour in site.js) ---------- */
[role="tablist"] { display: flex; gap: 4px; }
[role="tab"] { border: 0; background: none; }

/* ---------- video ---------- */
.vplayer { position: relative; }
.vplayer video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--night); }
.vplayer__toggle { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(15, 27, 51, .78); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); }
.vplayer__toggle:hover { background: rgba(15, 27, 51, .92); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding-block: 72px 36px; font-size: var(--fs-small); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr) 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 18em; }
.footer-col h3 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--body); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-company { display: grid; gap: 4px; margin-top: 18px; color: var(--muted); font-size: var(--fs-micro); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-micro); }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 1040px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }

/* ---------- final CTA panel (structure; concepts restyle) ---------- */
.cta-panel { position: relative; overflow: hidden; border-radius: var(--r-panel); }

/* ---------- utilities ---------- */
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footnote { font-size: var(--fs-micro); color: var(--muted); }

/* reveal: only used for one orchestrated moment per page (set by concept JS) */
.will-reveal { opacity: 0; transform: translateY(12px); }
.is-revealed { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .will-reveal { opacity: 1; transform: none; } }

/* Public navigation. Keep the three entry points together at every width. */
.site-header--public .site-header__in { gap: clamp(10px, 1.5vw, 22px); }
.site-header--public .nav__link { padding-inline: 9px; white-space: nowrap; }
.site-header--public .header-actions { gap: 5px; white-space: nowrap; }
.account-link, .language-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px;
  padding-inline: 9px; border-radius: 6px; color: var(--ink); font-size: .875rem; font-weight: 640;
}
.language-link { color: var(--body); font: 500 .78rem var(--font-ui); text-decoration: underline; text-underline-offset: 4px; }
.account-link--signup { box-shadow: inset 0 0 0 1px var(--line-strong); }
.account-link:hover, .language-link:hover { background: var(--paper-soft); color: var(--action-hover); }
@media (min-width: 1041px) and (max-width: 1100px) {
  html[lang="en"] .site-header--public .nav__link { padding-inline: 6px; }
}
@media (max-width: 690px) {
  .site-header--public .site-header__in { width: 100%; padding-inline: 12px; gap: 3px; }
  .site-header--public .brand-logo img { width: clamp(67px, 19vw, 104px); height: auto; }
  .site-header--public .header-actions { gap: 2px; }
  .site-header--public .header-contact, .site-header--public .account-link, .site-header--public .language-link {
    min-height: 36px; font-size: .79rem; padding: 0 7px;
  }
  .site-header--public .menu-toggle { width: 33px; height: 40px; }
}
@media (max-width: 359px) {
  .site-header--public .site-header__in { padding-inline: 8px; }
  .site-header--public .header-contact, .site-header--public .account-link, .site-header--public .language-link { padding-inline: 5px; }
  .site-header--public .header-actions { gap: 1px; }
}
html[lang="en"] body { word-break: normal; overflow-wrap: break-word; }
html[lang="en"] .nav__link { font-size: .875rem; }
html[lang="en"] .mega__name, html[lang="en"] .mega__desc { min-width: 0; }
html[lang="en"] .mega__desc { line-height: 1.35; }
