/* Pando Surgical website
   Two themes: "cold" (Website Ver2) and "warm" (Website Ver1, cream).
   The theme is set on <html data-theme="..."> and saved in localStorage. */

:root { --pad: 120px; --ease-soft: cubic-bezier(0.22, 1, 0.36, 1); }

:root,
:root[data-theme="cold"] {
  --dark: #2e3135;
  --light: #ffffff;
  /* Corner radius of buttons, nav pills, dropdowns and form fields (Figma: 3 in cold, 8 in warm) */
  --radius-ui: 3px;
  --soft: #e6eaef;
  --card: #ffffff;
  --on-dark: #ffffff;
  --on-dark-rgb: 255, 255, 255;
  --login-grad: linear-gradient(180deg, #f7feff 0%, #eef1f1 100%);
  --hero-fade: linear-gradient(180deg, rgba(46, 49, 53, 0) 0%, #2e3135 60%, #2e3135 100%);
  --text: #2e3135;
  --text-rgb: 46, 49, 53;
  --accent: #e7ab03;
  --gold: #b07c00;
  --contrast: #321b49;
  --grey: #7d7772;
  --grey-2: #a09a96;
  --red: #d55d36;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="warm"] {
  --dark: #2a2723;
  --light: #fffcf2;
  --radius-ui: 8px;
  --soft: #e8e3db;
  --card: #fffae9;
  --on-dark: #fffcf2;
  --on-dark-rgb: 255, 252, 242;
  --login-grad: linear-gradient(180deg, #fffcf2 0%, #ece3d1 100%);
  --hero-fade: linear-gradient(180deg, rgba(46, 49, 53, 0) 0%, #2a2723 60%, #2a2723 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  opacity: 0;
  transition: opacity 300ms ease-out, background-color 300ms ease-out;
}
body.is-ready { opacity: 1; }
body.is-leaving { opacity: 0; }
body.modal-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; font-weight: 500; }
p { font-weight: 400; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #2e3135; padding: 10px 16px; border-radius: 3px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: var(--radius-ui);
  font-size: 18px; font-weight: 500; white-space: nowrap;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, opacity 150ms ease-out;
}
.btn-primary { background: var(--accent); color: #2e3135; }
.btn-primary:hover { background: #f2b90f; }
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-dark:hover { background: #3c4046; }
:root[data-theme="warm"] .btn-dark:hover { background: #3a3631; }
.btn-outline { border: 1.5px solid rgba(var(--on-dark-rgb), 0.8); color: var(--on-dark); }
.btn-outline:hover { background: rgba(var(--on-dark-rgb), 0.1); border-color: var(--on-dark); }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 60px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad) 0 100px;
  pointer-events: none;
  transition: transform 300ms ease-out, opacity 300ms ease-out;
}
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-140px); opacity: 0; }

.glass {
  background: rgba(46, 49, 53, 0.15);
  border: 1px solid rgba(255, 252, 242, 0.18);
  border-radius: var(--radius-ui);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
/* On light pages the glass is a little darker so the white links stay readable */
.page-light .nav .glass { background: rgba(46, 49, 53, 0.42); }

.nav-left {
  display: flex; align-items: center; gap: 56px;
  height: 52px; padding: 0 28px 0 20px;
}
.nav-logo { color: #fff; display: flex; }
/* Figma Nav: 20px Pando mark */
.nav-logo svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 36px; height: 100%; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-util { display: flex; align-items: center; gap: 32px; height: 52px; padding: 0 20px; }

.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 100%;
  font-size: 17px; color: #fff; opacity: 0.85;
  transition: opacity 150ms ease-out;
}
.nav-link:hover, .nav-link.is-current, .dd.is-open > .nav-link { opacity: 1; }
.nav-link svg { width: 14px; height: 14px; transition: transform 200ms ease-out; }
.dd.is-open > .nav-link svg { transform: rotate(180deg); }
.dd.is-open > .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--accent);
}

.dd { position: relative; height: 52px; display: flex; align-items: center; }
.dd-panel {
  position: absolute; top: 66px; left: -32px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 32px;
  white-space: nowrap;
  /* Links stack vertically and the panel unfolds downward from the nav (Figma "Product open" / "About open") */
  opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0 round var(--radius-ui));
  transition: clip-path 280ms var(--ease-soft), opacity 200ms ease-out, visibility 0s linear 280ms;
}
/* bridge so the panel stays open while the pointer moves down to it */
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd.is-open .dd-panel {
  opacity: 1; visibility: visible; clip-path: inset(-16px 0 0 0 round var(--radius-ui));
  transition: clip-path 280ms var(--ease-soft), opacity 200ms ease-out;
}
.dd-panel a { font-size: 18px; color: #fff; opacity: 0.85; transition: opacity 150ms ease-out; }
.dd-panel a:hover, .dd-panel a.is-current { opacity: 1; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: #fff; opacity: 0.85;
  transition: opacity 150ms ease-out;
}
.theme-toggle:hover { opacity: 1; }
.theme-toggle .swatch {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, #e6eaef 50%, #e8e3db 50%);
}
:root[data-theme="cold"] .theme-toggle .swatch { background: #e6eaef; }
:root[data-theme="warm"] .theme-toggle .swatch { background: #f3e9d2; }

.mobile-extra { display: none; }
.nav-burger { display: none; width: 52px; height: 52px; align-items: center; justify-content: center; color: #fff; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; position: relative;
}
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

/* ---------- Simple footer (Figma "Footer", every page except Home) ---------- */
.footer-simple { background: var(--dark); color: var(--on-dark); padding: 96px var(--pad); display: flex; flex-direction: column; gap: 96px; }
.fs-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 56px; }
.fs-brand { border-top: 1px solid var(--on-dark); padding: 10px 0; display: flex; flex-direction: column; gap: 20px; width: 427px; max-width: 100%; }
.fs-brand p { font-size: 40px; font-weight: 500; line-height: 1.2; }
.fs-right { display: flex; align-items: flex-start; gap: 56px; }
.footer-simple .footer-cols { gap: 56px; }
.footer-simple .footer-col { width: 170px; }
.fs-mark { display: flex; color: var(--on-dark); flex: none; }
.fs-mark svg { width: 40px; height: 40px; }
.fs-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; padding-top: 32px; border-top: 1px solid rgba(var(--on-dark-rgb), 0.2); flex-wrap: wrap; }
.fs-bottom small { font-size: 16px; opacity: 0.7; }
.fs-legal { display: flex; gap: 40px; flex-wrap: wrap; font-size: 16px; }
.fs-legal a, .fs-legal button { opacity: 0.85; transition: opacity 150ms ease-out; }
.fs-legal a:hover, .fs-legal button:hover, .fs-legal button:focus-visible { opacity: 1; }
.fs-legal button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---------- Footer (gradient version with the Pando wordmark) ---------- */
.footer {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--dark); color: var(--on-dark);
  padding: 129px var(--pad) 89px;
}
/* Soft blurred color blobs, matching the Figma footer */
.footer-glow { position: absolute; inset: 0; pointer-events: none; }
/* Layer order follows Figma: blue and orange glow, then the wordmark,
   then the yellow glow over the wordmark, then text and links on top */
.footer-glow span { position: absolute; border-radius: 50%; z-index: 0; }
.footer-glow .g3 { z-index: 2; }
.footer-wordmark { position: relative; z-index: 1; }
.footer-top, .socials, .footer-right { position: relative; z-index: 3; }
.footer-glow .g1 { left: -507px; bottom: -1227px; width: 1638px; height: 1638px; background: rgba(186, 225, 226, 0.75); filter: blur(100px); }
.footer-glow .g2 { left: -494px; bottom: -1201px; width: 1468px; height: 1468px; background: #d55d36; filter: blur(75px); }
.footer-glow .g3 { left: -557px; bottom: -1248px; width: 1423px; height: 1423px; background: #e7ab03; filter: blur(60px); }

/* Spacing follows the Figma footer (724px tall at 1512px): top row 215px, wordmark at 409px, socials at 605px */
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 56px; min-height: 215px; }
.footer-brand {
  border-top: 1px solid var(--on-dark);
  padding: 10px 0; width: 374px; max-width: 100%;
}
.footer-brand p { font-size: 36px; font-weight: 500; line-height: 1.2; }
.footer-cols { display: flex; gap: 100px; }
.footer-col { display: flex; flex-direction: column; gap: 24px; }
.footer-col h2 { font-size: 20px; font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-col a { font-size: 18px; opacity: 0.6; transition: opacity 150ms ease-out; }
.footer-col a:hover { opacity: 1; }

.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 65px; }
.footer-left { display: flex; flex-direction: column; gap: 46px; flex: 0 1 auto; min-width: 0; width: 822px; max-width: 100%; }
.footer-wordmark { display: block; width: 100%; max-width: 822px; color: var(--on-dark);
}
.footer-wordmark svg { width: 100%; height: auto; }
.socials { display: flex; gap: 12px; }
.social { width: 30px; height: 30px; display: block; flex: none; }
.social svg { width: 30px; height: 30px; }
.social .bg { fill: #868686; fill-opacity: 0.15; transition: fill 150ms ease-out, fill-opacity 150ms ease-out; }
.social:hover .bg { fill: #b07c00; fill-opacity: 1; }
/* Legal links start at 494px and the copyright line at 620px, ending 5px below the social icons */
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 35px; text-align: right; font-size: 16px; margin-bottom: -6px; }
.footer-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
.footer-legal a, .footer-legal button { opacity: 0.7; transition: opacity 150ms ease-out; }
.footer-legal a:hover, .footer-legal button:hover, .footer-legal button:focus-visible { opacity: 1; }
.footer-legal button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer-right small { font-size: 16px; }

/* ---------- Shared layout ---------- */
.section { padding-left: var(--pad); padding-right: var(--pad); }
.label { font-size: 17px; }
.on-dark { background: var(--dark); color: var(--on-dark); }

/* ---------- Landing ---------- */
/* Like Figma: the first screen shows the headline and button, and the logo
   bar starts right below it (131px more of hero), so it only appears on scroll.
   The first screen is the viewport height, between 600px and 852px. */
.hero {
  position: relative; height: calc(max(600px, 100vh) + 131px); height: calc(max(600px, 100svh) + 131px);
  /* 46% shows Figma's crop at 1512x983; taller screens reveal more of the photo */
  background: var(--dark) url("../assets/img/hero-bg.jpg") center 46% / cover no-repeat;
  color: var(--on-dark); overflow: hidden;
}
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 440px; background: var(--hero-fade); }
.hero-content {
  position: absolute; left: var(--pad); bottom: 251px;
  display: flex; flex-direction: column; gap: 28px; align-items: flex-start;
}
.hero h1 { font-size: 75px; line-height: 79px; font-weight: 500; }
.rolling { display: block; height: 92px; overflow: hidden; position: relative; }
.rolling-track { display: block; transition: transform 600ms cubic-bezier(.65, 0, .35, 1); }
.rolling-track span { display: block; height: 92px; line-height: 79px; color: var(--accent); }
.hero-sub { font-size: 26px; line-height: 1.35; opacity: 0.9; max-width: 539px; }
.hero .btn { height: auto; padding: 14px 28px; margin-top: 12px; }
.trust {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 59px; height: 72px;
  display: flex; align-items: center; gap: 72px;
}
.trust p { font-size: 16px; font-weight: 500; opacity: 0.8; width: 222px; flex: none; line-height: 1.4; }
.marquee {
  position: relative; flex: 1; max-width: 957px; overflow: hidden; height: 72px;
  display: flex; align-items: center; margin-left: auto;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 200px; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--dark), rgba(46, 49, 53, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--dark), rgba(46, 49, 53, 0)); }
.marquee-track { display: flex; align-items: center; gap: 100px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track img { height: auto; flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 50px)); } }

.mission {
  background: var(--light); padding: 180px var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.mission .label { font-size: 24px; color: var(--contrast); }
.mission h2 { font-size: 48px; line-height: 1.2; max-width: 1180px; color: #2e3135; }
.mission em { font-style: normal; color: var(--accent); }

.why { padding: 140px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 96px; }
.why-text { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.why .label { color: var(--accent); }
.why h2 { font-size: 52px; line-height: 1.15; }
.why-text p.body { font-size: 20px; line-height: 1.5; opacity: 0.75; max-width: 562px; }
.stat {
  border-left: 2px solid rgba(255, 252, 242, 0.25); padding-left: 48px;
  display: flex; flex-direction: column; gap: 12px; flex: none;
}
.stat-num { font-size: 160px; font-weight: 600; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-text { font-size: 22px; line-height: 1.4; max-width: 420px; }
.stat-src { font-size: 14px; line-height: 1.5; opacity: 0.45; }
.stat-src a { text-decoration: underline; text-underline-offset: 2px; }

.product {
  background: linear-gradient(180deg, var(--light) 71.6%, var(--soft) 100%);
  padding: 120px var(--pad) 120px 160px;
  display: flex; justify-content: space-between; align-items: center; gap: 60px;
}
.product h2 { font-size: 64px; line-height: 1.12; letter-spacing: -1.6px; }
.product .btn { margin-top: 63px; height: 55px; padding: 15px 28px 16px; }
.proof { display: flex; gap: 44px; margin-top: 90px; }
.proof-item {
  border-left: 1px solid rgba(160, 154, 150, 0.6); padding-left: 18px;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 15px; line-height: 1.4; color: var(--grey);
}
.proof-item img { width: 24px; height: 24px; }
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed rgba(160, 154, 150, 0.6); border-radius: 4px;
  color: var(--grey); font-size: 16px; line-height: 1.5; padding: 32px;
}
/* LapRotator 3D model (js/model.js). Spins around the scope; stops on hover or keyboard focus.
   The box fills the right side out to the page edge. The canvas reaches --lr-bleed further left,
   under the text gap, so the scope can trail off and fade like the product render. */
.lr-model {
  --lr-bleed: 240px;
  position: relative; flex: 1 1 0; min-width: 0; height: 540px;
  margin-right: calc(-1 * var(--pad)); outline-offset: -4px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.lr-model.is-live { cursor: grab; }
.lr-model.is-dragging { cursor: grabbing; }
.lr-model-poster, .lr-model canvas {
  position: absolute; top: 0; right: 0; left: calc(-1 * var(--lr-bleed));
  width: calc(100% + var(--lr-bleed)); height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 calc(var(--lr-bleed) + 120px));
  mask-image: linear-gradient(90deg, transparent, #000 calc(var(--lr-bleed) + 120px));
}
.lr-model-poster { object-fit: cover; object-position: right center; transition: opacity 600ms var(--ease-soft); }
.lr-model canvas { opacity: 0; transition: opacity 600ms var(--ease-soft); }
.lr-model.is-live canvas { opacity: 1; }
.lr-model.is-live .lr-model-poster { opacity: 0; }
.spin { animation: spin 14s linear infinite; }

.grove {
  background: var(--soft); padding: var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 96px;
}
.grove-text { display: flex; flex-direction: column; gap: 24px; max-width: 536px; }
.grove .label { color: var(--contrast); }
.grove h2 { font-size: 56px; line-height: 1.1; }
.grove p.body { font-size: 20px; line-height: 1.55; opacity: 0.75; }
/* Figma crops the photo to its lower part: full width, bottom aligned */
.grove-img { width: 640px; height: 520px; flex: none; object-fit: cover; object-position: center bottom; border-radius: 3px; }

.cta {
  padding: 140px var(--pad); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.cta h2 { font-size: 64px; line-height: normal; }
.cta .btn-row { margin-top: 12px; }
.cta p { font-size: 22px; opacity: 0.75; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- LapRotator ---------- */
/* First screens fit the viewport and center their content below the nav (112px) */
.lr-hero {
  position: relative; height: max(560px, 100vh); height: max(560px, 100svh);
  display: flex; align-items: center; padding: 112px 0 40px 135px;
  background: var(--dark) url("../assets/img/laprotator-hero-bg.jpg") center / cover no-repeat;
  color: var(--on-dark); overflow: hidden;
}
/* The LapRotator render sits on its own layer (Figma "Hero" > "laprotator image"), so it can float.
   Sizes follow the 1512px Figma frame, scaled with the section width. Hover anywhere on the hero
   starts the float (js/main.js, Figma "LapRotator Hover Drift") */
/* Full-size layer so the render scales with the whole section width (cqw), not the padded content */
.lr-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; container-type: inline-size; }
/* Figma: 1241x553 at x 343, y 393 in the 1512x875 hero, so it runs 71px past the bottom */
.lr-float { position: absolute; left: 22.69cqw; bottom: -4.7cqw; width: 82.08cqw; z-index: 0; pointer-events: none; will-change: translate; }
.lr-float img { display: block; width: 100%; height: auto; }
.lr-hero-text { position: relative; z-index: 1; max-width: 760px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.lr-hero h1 { font-size: 80px; line-height: normal; }
.lr-hero p { font-size: 22px; line-height: 1.5; color: rgba(var(--on-dark-rgb), 0.7); }
.lr-hero .btn { margin-top: 28px; }

.overview { padding: var(--pad); display: flex; gap: 80px; background: var(--light); }
.overview h2 { font-size: 44px; width: 340px; flex: none; }
.overview-body { display: flex; flex-direction: column; gap: 22px; }
.overview-body p { font-size: 20px; line-height: 1.65; color: rgba(46, 49, 53, 0.8); }
.text-link { font-size: 18px; font-weight: 500; color: var(--accent); }
.text-link:hover { color: var(--gold); }

.details { padding: 40px var(--pad) 140px; background: var(--light); }
/* Tab bar: fixed height, no scrolling. One gold underline slides to the selected tab */
.tabs { position: relative; display: flex; gap: 48px; border-bottom: 1px solid rgba(46, 49, 53, 0.15); }
.tab {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-size: 19px; color: rgba(46, 49, 53, 0.55); padding: 4px 0 19px; white-space: nowrap; text-align: left;
  transition: color 300ms var(--ease-soft);
}
/* Reserve the width of the bold label so selecting a tab never shifts its neighbours */
.tab::after { content: attr(data-text); font-weight: 500; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; user-select: none; }
.tab:hover { color: #2e3135; }
.tab[aria-selected="true"] { color: #2e3135; font-weight: 500; }
.tab-indicator {
  position: absolute; left: 0; bottom: -1px; width: 0; height: 3px; background: var(--accent); pointer-events: none;
  transition: transform 450ms var(--ease-soft), width 450ms var(--ease-soft);
}
.tab-indicator.no-anim { transition: none; }
/* Without the script, the selected tab still shows its underline */
.tabs:not(.has-indicator) .tab[aria-selected="true"] { box-shadow: inset 0 -3px var(--accent); }
.tab-panel { padding-top: 48px; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering { animation: tab-in 450ms var(--ease-soft); }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-size: 36px; margin-bottom: 32px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.compare figure { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.compare video { display: block; width: 100%; height: 380px; object-fit: cover; border-radius: 5px; background: #111; }
.compare figcaption { font-size: 28px; font-weight: 500; color: rgba(46, 49, 53, 0.55); }
.compare figure:last-child figcaption { color: var(--accent); }
/* Features and Advantages: two equal columns of checklist items, 37px apart (Figma "LapRotator Tabs") */
#panel-feat h3 { margin-bottom: 37px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; row-gap: 37px; }
.features li { display: flex; align-items: center; gap: 16px; font-size: 20px; line-height: 1.45; color: rgba(var(--text-rgb), 0.8); }
.check { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); display: flex; align-items: center; justify-content: center; }
.check img { display: block; }
/* Specifications: compatibility table (Figma "Spec table") */
.spec-head { font-size: 24px; font-weight: 500; color: var(--accent); margin-bottom: 32px; }
.spec-intro { font-size: 18px; font-weight: 400; color: rgba(var(--text-rgb), 0.7); margin-bottom: 32px; }
.spec-table { margin: 0; font-size: 18px; line-height: 1.45; }
.spec-row { display: flex; gap: 40px; padding: 20px 0; border-top: 1px solid rgba(var(--text-rgb), 0.12); }
/* The camera coupler row is set apart from the laparoscopes by a darker rule */
.spec-row:last-child { border-top-color: rgba(var(--text-rgb), 0.3); }
.spec-row dt { flex: none; width: 420px; font-weight: 600; color: var(--text); }
.spec-row dd { flex: 1; min-width: 0; margin: 0; color: rgba(var(--text-rgb), 0.75); }
.spec-row .pn { white-space: nowrap; }

/* ---------- Light pages (ENT, Team, News, Investors, Careers, Legal) ---------- */
.page-main { padding-top: 172px; background: var(--light); }
.page-title { font-size: 64px; line-height: normal; }

.ent { min-height: max(640px, 100vh); min-height: max(640px, 100svh); padding: 132px var(--pad) 40px 100px; display: flex; justify-content: space-between; align-items: center; gap: 64px; }
.ent-text { display: flex; flex-direction: column; gap: 24px; max-width: 651px; }
.ent h1 { font-size: 80px; line-height: 1.1; max-width: 567px; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--gold); letter-spacing: 2.7px; text-transform: uppercase; }
.ent p.body { font-size: 18px; line-height: 1.6; }
.ent img { width: 560px; height: 440px; border-radius: 8px; object-fit: cover; flex: none; }

.team { text-align: center; padding: 172px var(--pad) 140px; background: var(--light); }
.team h2 { font-size: 64px; margin-top: 120px; }
.team-grid { display: flex; justify-content: center; gap: 24px; margin-top: 64px; text-align: left; }
/* Four cards always share one row on desktop; they shrink a little on narrower laptops */
.member { position: relative; flex: 0 1 300px; min-width: 0; background: var(--dark); color: var(--on-dark); border-radius: 8px; overflow: hidden; }
.member .photo { display: block; overflow: hidden; }
.member .photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
/* Hover (Figma "Team Member / Hover"): the card rises 6px and a soft shadow fades in. No border, no photo zoom.
   The lift uses `translate` so it does not fight the reveal animation's `transform` */
.member.reveal { transition: opacity 600ms ease-out, transform 600ms ease-out, translate 400ms var(--ease-soft), box-shadow 400ms var(--ease-soft); }
/* Mouse hover, or keyboard focus on the LinkedIn link. A mouse click on the link does not leave the shadow on */
.member:hover, .member:has(:focus-visible) { translate: 0 -6px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12), 0 18px 40px rgba(0, 0, 0, 0.3); }
.member-info { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.member-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.member h3 { font-size: 28px; letter-spacing: -0.28px; line-height: normal; }
.member .role { font-size: 16px; color: var(--accent); margin-top: 6px; line-height: normal; }
.member hr { border: 0; border-top: 1px solid rgba(160, 154, 150, 0.25); margin: 0; }
.member .edu { font-size: 15px; color: var(--grey-2); line-height: 1.4; }

.news { padding: 172px var(--pad) 160px; background: var(--light); }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 620px)); gap: 56px 32px; justify-content: center; margin-top: 62px; }
.news-head { max-width: 1272px; margin: 0 auto; }
.card {
  position: relative; isolation: isolate; background: none; border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 16px; text-align: left; width: 100%;
}
/* The tinted panel (Figma News Card) sits behind the content. On hover it grows 8px on every side and lifts with a shadow, like the Figma hover variant, while the content stays still */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 12px; background: var(--card);
  box-shadow: 0 16px 40px rgba(46, 49, 53, 0);
  transition: inset 450ms var(--ease-soft), box-shadow 450ms var(--ease-soft);
}
.card:hover::before, .card:focus-visible::before { inset: -8px; box-shadow: 0 16px 40px rgba(46, 49, 53, 0.14); }
.card .img-wrap { display: block; overflow: hidden; border-radius: 5px; }
.card .img-wrap img { display: block; width: 100%; height: 320px; object-fit: cover; border-radius: 5px; }
.card-text { padding: 4px 4px 0; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 24px; line-height: 1.25; }
.author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.avatar img { width: 22px; height: 22px; }
.author b { display: block; font-size: 16px; font-weight: 500; }
.author time { font-size: 14px; color: rgba(46, 49, 53, 0.5); }
.excerpt { font-size: 16px; line-height: 1.5; color: rgba(46, 49, 53, 0.7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-size: 15px; color: var(--gold); }

/* ---------- Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
  background: rgba(46, 49, 53, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 250ms ease-out, visibility 0s linear 250ms;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity 250ms ease-out; }
.modal-card { position: relative; width: 100%; max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); transform: translateY(12px); transition: transform 250ms ease-out; }
.modal.is-open .modal-card { transform: none; }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(46, 49, 53, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 150ms ease-out;
}
.modal-close:hover { background: rgba(46, 49, 53, 0.8); }
.modal-close img { width: 18px; height: 18px; }

.story-card { max-width: 760px; background: var(--light); }
.story-card > img { width: 100%; height: clamp(140px, 30vh, 300px); object-fit: cover; flex: none; }
.story-body { overflow-y: auto; }
.story-body { padding: 36px 48px 44px; display: flex; flex-direction: column; gap: 14px; }
.story-body h2 { font-size: 36px; line-height: 1.18; }
.story-author { gap: 14px; padding: 4px 0 8px; }
.story-author time { font-size: 15px; color: rgba(46, 49, 53, 0.55); }
.story-body p.body { font-size: 18px; line-height: 1.65; color: rgba(46, 49, 53, 0.8); }
.story-body p.body + p.body { margin-top: 16px; } /* 14px gap + 16px = one blank line, as in Figma */

.login-card { max-width: 560px; box-shadow: 0 24px 30px rgba(0, 0, 0, 0.25); }
.login-head { background: var(--dark); color: var(--on-dark); padding: 40px 0 36px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.login-head h2 { font-size: 30px; }
.login-head p { font-size: 17px; color: rgba(var(--on-dark-rgb), 0.75); }
.login-card .modal-close { top: 24px; right: 24px; background: rgba(var(--on-dark-rgb), 0.12); }
.login-card .modal-close:hover { background: rgba(var(--on-dark-rgb), 0.22); }
.login-head { flex: none; }
.login-body { overflow-y: auto; background: var(--login-grad); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.btn-google { background: #fff; border: 1px solid rgba(46, 49, 53, 0.12); color: #2e3135; gap: 12px; font-size: 17px; }
.btn-google:hover { background: #f6f6f6; }
.btn-google svg { width: 22px; height: 22px; }
.or { display: flex; align-items: center; gap: 16px; font-size: 15px; color: rgba(46, 49, 53, 0.5); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid rgba(46, 49, 53, 0.15); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .flabel { font-size: 16px; font-weight: 500; }
.req { color: var(--red); }
.input-icon { position: relative; }
.input-icon > img { position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; pointer-events: none; }
.input-icon input { padding-left: 50px; }
.input-icon .eye { position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.input-icon .eye img { width: 22px; height: 22px; }
.login-body input { background: rgba(255, 255, 255, 0.7); border-color: rgba(46, 49, 53, 0.1); }
.forgot { align-self: flex-end; font-size: 15px; color: var(--gold); margin-top: -8px; }
.login-foot { text-align: center; font-size: 15px; color: rgba(46, 49, 53, 0.7); }
.login-foot a { color: var(--gold); font-weight: 500; }
.form-note { font-size: 15px; line-height: 1.5; color: var(--gold); min-height: 0; }

input, textarea {
  font: inherit; font-size: 17px; color: #2e3135; width: 100%;
  background: #fff; border: 1px solid rgba(46, 49, 53, 0.18); border-radius: var(--radius-ui);
  height: 52px; padding: 0 16px;
  transition: border-color 150ms ease-out;
}
textarea { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: rgba(46, 49, 53, 0.4); }

/* ---------- About ---------- */
.about-hero {
  position: relative; height: max(560px, 100vh); height: max(560px, 100svh); display: flex; align-items: center; justify-content: center;
  background: var(--dark) url("../assets/img/about-hero.jpg") center / cover no-repeat;
  color: var(--on-dark); text-align: center; padding: 0 var(--pad);
}
.about-hero h1 { font-size: 72px; line-height: 1.18; max-width: 1200px; margin-top: 40px; }
.story { background: var(--light); padding: 189px 156px 140px; display: flex; justify-content: space-between; gap: 96px; align-items: flex-start; }
.story-text { max-width: 676px; display: flex; flex-direction: column; gap: 28px; }
.story h2 { font-size: 56px; line-height: 1.15; }
.story p { font-size: 20px; line-height: 1.65; color: rgba(46, 49, 53, 0.8); }
.story img { width: 423px; height: 496px; border-radius: 8px; object-fit: cover; flex: none; }
.values { background: var(--light); padding: 100px var(--pad) 150px; }
.values-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; margin-bottom: 72px; }
.values-head h2 { font-size: 64px; }
.values-head p { font-size: 20px; line-height: 1.5; max-width: 404px; opacity: 0.75; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.value img { width: 100%; height: 498px; object-fit: cover; border-radius: 12px; }
.value-text { padding-top: 36px; }
.value h3 { font-size: 40px; }
.value p.body { font-size: 18px; line-height: 1.55; opacity: 0.75; margin-top: 16px; }
.team-cta { padding: 140px var(--pad) 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.team-cta h2 { font-size: 56px; line-height: 1.15; max-width: 760px; }
.team-cta p { font-size: 20px; line-height: 1.5; color: rgba(var(--on-dark-rgb), 0.7); max-width: 620px; }
.team-cta .btn-row { justify-content: flex-start; margin-top: 8px; }

/* ---------- Investors ---------- */
.investors { min-height: max(640px, 100vh); min-height: max(640px, 100svh); padding: 230px var(--pad) 120px; display: flex; justify-content: space-between; gap: 64px; background: var(--light); }
.inv-intro { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.inv-intro h1 { font-size: 64px; line-height: 1.1; max-width: 520px; }
.inv-intro .sub { font-size: 20px; color: rgba(46, 49, 53, 0.65); }
.inv-intro .body { font-size: 18px; line-height: 1.6; max-width: 500px; }
.resources { width: 560px; flex: none; margin-top: 60px; }
.resources .eyebrow { letter-spacing: normal; text-transform: none; }
.inv-intro .btn { margin-top: 12px; }
.res-row { border-top: 1px solid rgba(46, 49, 53, 0.15); padding: 28px 0; display: flex; align-items: center; gap: 16px; }
.res-row > img { width: 24px; height: 24px; }
.res-row h2 { font-size: 24px; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(46, 49, 53, 0.08); border-radius: 8px; padding: 6px 12px; font-size: 14px; color: rgba(46, 49, 53, 0.7); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Careers ---------- */
.careers { padding: 200px var(--pad) 140px; display: flex; flex-direction: column; gap: 56px; background: var(--light); }
.careers .head { display: flex; flex-direction: column; gap: 16px; }
.careers .head p { font-size: 20px; color: rgba(46, 49, 53, 0.65); }
.app-form { max-width: 1272px; display: flex; flex-direction: column; gap: 28px; }
.app-form .intro { font-size: 18px; line-height: 1.6; }
.app-form .field { gap: 10px; }
.app-form .intro a { color: var(--gold); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hint { font-size: 15px; opacity: 0.6; line-height: 1.5; }
.counter { align-self: flex-end; font-size: 15px; color: rgba(46, 49, 53, 0.45); }
.counter.over { color: var(--red); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: max(720px, 100vh); min-height: max(720px, 100svh); background: var(--light); }
.contact-art {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: #2e3135;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 118px clamp(56px, 12vh, 120px);
}
/* Moving gradient: the blurred Pando mark slowly drifts and breathes,
   while three soft color glows wander over it so the colors keep shifting */
.contact-art::before {
  content: ""; position: absolute; inset: -10%; z-index: -2;
  background: url("../assets/img/contact-bg.jpg") center / cover no-repeat;
  animation: contact-drift 7s ease-in-out infinite alternate;
  will-change: transform;
}
.contact-motion { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact-motion span { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
/* Glows use the brand colors at normal blend so the contrast of the original stays */
.contact-motion .b1 { width: 60%; aspect-ratio: 1; left: 40%; top: 8%; background: #d55d36; opacity: 0.45;
  animation: contact-b1 5.5s ease-in-out infinite alternate; }
.contact-motion .b2 { width: 55%; aspect-ratio: 1; left: -20%; top: 35%; background: #2e3135; opacity: 0.5;
  animation: contact-b2 6.5s ease-in-out infinite alternate; }
.contact-motion .b3 { width: 50%; aspect-ratio: 1; left: 45%; top: 58%; background: #e7ab03; opacity: 0.45;
  animation: contact-b3 4.5s ease-in-out infinite alternate; }
@keyframes contact-drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); filter: saturate(1); }
  50%  { transform: translate(-3%, 2%) scale(1.06) rotate(-2deg); filter: saturate(1.15); }
  100% { transform: translate(2%, -3%) scale(1.1) rotate(1.5deg); filter: saturate(1); }
}
@keyframes contact-b1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-30%, 25%) scale(1.2); }
  100% { transform: translate(10%, 45%) scale(0.9); }
}
@keyframes contact-b2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(45%, -35%) scale(1.15); }
  100% { transform: translate(80%, 10%) scale(0.95); }
}
@keyframes contact-b3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-50%, -40%) scale(1.25); }
  100% { transform: translate(-20%, -70%) scale(1); }
}
.contact-art h1 { font-size: 48px; }
.contact-art p { font-size: 18px; line-height: 1.5; color: rgba(255, 252, 242, 0.75); max-width: 447px; margin-top: 16px; }
.contact-form { padding: 128px 98px 40px; display: flex; align-items: center; }
.contact-form form { width: 100%; }
.contact-form form { max-width: 520px; display: flex; flex-direction: column; gap: clamp(20px, 3.6vh, 40px); }
.contact-form label { font-size: 15px; font-weight: 500; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: transparent; border: 0; border-bottom: 1px solid rgba(46, 49, 53, 0.25); border-radius: 0; padding: 0;
}
.contact-form textarea { height: clamp(100px, 20vh, 180px); padding-top: 12px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-bottom-color: var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; padding: 0; appearance: none; -webkit-appearance: none; border: 1.5px solid rgba(46, 49, 53, 0.4); border-radius: 4px; background: transparent; cursor: pointer; }
.consent input:checked { background: var(--dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--dark); }
.consent a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.contact-form .btn { align-self: flex-start; }

/* ---------- Legal ---------- */
.legal { padding: 230px var(--pad) 140px; background: var(--light); }
.legal .updated { font-size: 18px; color: rgba(46, 49, 53, 0.6); margin-top: 24px; }
.legal-body { margin-top: 56px; max-width: 1272px; display: flex; flex-direction: column; gap: 40px; }
.legal-body section { display: flex; flex-direction: column; gap: 20px; }
.legal-body h2 { font-size: 32px; line-height: 1.1; }
.legal-body p { font-size: 18px; line-height: 1.6; color: rgba(46, 49, 53, 0.8); }
.legal-body a, .mail { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  :root { --pad: 64px; }
  .nav { padding: 0 var(--pad); }
  .product { padding-left: var(--pad); }
  .story { padding-left: var(--pad); padding-right: var(--pad); }
  .ent { padding-left: var(--pad); }
  .lr-hero { padding-left: var(--pad); }
  .footer-top { flex-wrap: wrap; }
  .fs-top { flex-direction: column; gap: 56px; }
  .footer-simple .footer-col { width: auto; min-width: 140px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-right, .footer-legal { align-items: flex-start; text-align: left; }
  .footer-right { margin-bottom: 0; }
  .grove-img { width: 46%; }
  .ent img { width: 44%; height: auto; aspect-ratio: 560 / 440; }
  .contact-art { padding: 0 64px clamp(56px, 10vh, 96px); }
  .contact-form { padding: 128px 64px 40px; }
}

@media (max-width: 1100px) {
  .nav-left { gap: 32px; }
  .nav-links { gap: 24px; }
  .nav-right { gap: 16px; }
  .nav-util { gap: 20px; }
  .hero h1 { font-size: 60px; line-height: 64px; }
  .rolling, .rolling-track span { height: 74px; line-height: 64px; }
  .hero-content { bottom: 220px; }
  .why, .product, .grove, .story, .investors, .ent { flex-direction: column; align-items: flex-start; }
  .grove-img { width: 100%; max-width: 640px; height: 420px; }
  .lr-model {
    --lr-bleed: 0px; flex: none; align-self: stretch;
    height: clamp(260px, 56vw, 480px); margin: 0 calc(-1 * var(--pad));
  }
  .ent img { width: 100%; max-width: 560px; }
  .story img { width: 100%; max-width: 423px; height: auto; }
  .resources { width: 100%; margin-top: 0; }
  .values-grid { grid-template-columns: 1fr; max-width: 560px; }
  .overview { flex-direction: column; gap: 32px; }
  .overview h2 { width: auto; }
  .news-grid { grid-template-columns: minmax(0, 620px); }
  .team-grid { flex-wrap: wrap; }
  .member { flex-basis: calc(50% - 12px); max-width: 300px; }
  .trust { flex-direction: column; align-items: flex-start; gap: 12px; height: auto; top: auto; bottom: 28px; }
  .trust p { width: auto; }
  .marquee { width: 100%; max-width: none; margin: 0; }
  .contact { grid-template-columns: 1fr; height: auto; }
  /* Stacked layout: the gradient panel fills the first screen, the form follows */
  .contact-art { min-height: 100svh; }
  .contact-form { padding: 64px; }
}

@media (max-width: 900px) {
  :root { --pad: 24px; }
  .nav { top: 16px; padding: 0 16px; }
  .nav-left { padding: 0 8px 0 16px; gap: 0; justify-content: space-between; flex: 1; }
  .nav-links, .nav-util, .nav-right > .btn { display: none; }
  .nav-right { display: none; }
  .nav-burger { display: inline-flex; }
  .nav.menu-open .nav-left { flex-wrap: wrap; height: auto; padding-bottom: 16px; background: rgba(46, 49, 53, 0.92); }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: auto; order: 3; padding-top: 8px;
  }
  .nav.menu-open .nav-links .nav-link, .nav.menu-open .nav-links .dd { height: 44px; }
  .nav.menu-open .dd { flex-direction: column; align-items: flex-start; height: auto !important; }
  .nav.menu-open .dd > .nav-link { display: none; }
  .nav.menu-open .dd-panel {
    position: static; opacity: 1; visibility: visible; transform: none; clip-path: none; display: flex; flex-direction: column; gap: 4px;
    padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav.menu-open .dd-panel a { height: 44px; display: flex; align-items: center; font-size: 17px; }
  .mobile-extra { order: 4; width: 100%; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 8px; }
  .nav.menu-open .mobile-extra { display: flex; }
  .mobile-extra .row { display: flex; gap: 24px; align-items: center; }

  .hero { height: calc(100vh + 130px); height: calc(100svh + 130px); min-height: 770px; }
  .hero-content { top: auto; bottom: 190px; right: var(--pad); }
  .hero h1 { font-size: 42px; line-height: 46px; }
  .rolling, .rolling-track span { height: 54px; line-height: 46px; }
  .hero-sub { font-size: 20px; }
  .trust { bottom: 32px; }
  .marquee::before, .marquee::after { width: 60px; }
  .mission { padding: 96px var(--pad); }
  .mission h2, .why h2 { font-size: 32px; }
  .mission br { display: none; }
  .why, .cta, .team-cta { padding-top: 96px; padding-bottom: 96px; }
  .why { gap: 56px; }
  .stat { padding-left: 24px; }
  .stat-num { font-size: 112px; }
  .product, .grove { padding: 80px var(--pad); }
  .product h2, .cta h2, .page-title, .values-head h2, .inv-intro h1 { font-size: 40px; letter-spacing: -0.5px; }
  .proof { flex-direction: column; gap: 24px; margin-top: 56px; }
  .grove h2, .story h2, .team-cta h2 { font-size: 38px; }
  .lr-hero { height: auto; min-height: 100svh; padding: 100px var(--pad) 48px; align-items: flex-end; }
  /* Phones: the render sits larger in the space above the heading, scope trailing off the left */
  .lr-float { left: -18cqw; top: 104px; bottom: auto; width: 115cqw; }
  .lr-hero h1, .ent h1 { font-size: 52px; }
  .lr-hero p { font-size: 18px; }
  .overview { padding: 80px var(--pad); }
  .overview h2 { font-size: 34px; }
  .details { padding: 24px var(--pad) 96px; }
  /* Phones: the three tabs share the width and may wrap to two lines, so the bar never scrolls */
  .tabs { gap: 12px; }
  .tab { flex: 1 1 0; min-width: 0; white-space: normal; font-size: 15px; line-height: 1.25; }
  .compare { grid-template-columns: 1fr; }
  .compare video { height: 240px; }
  .compare figcaption { font-size: 22px; }
  .tab-panel h3 { font-size: 28px; }
  .features { grid-template-columns: 1fr; row-gap: 20px; }
  #panel-feat h3 { margin-bottom: 32px; }
  .features li { font-size: 17px; }
  .spec-head { font-size: 22px; margin-bottom: 20px; }
  .spec-intro { font-size: 16px; margin-bottom: 24px; }
  .spec-table { font-size: 16px; }
  .spec-row { flex-direction: column; gap: 4px; padding: 16px 0; }
  .spec-row dt { width: auto; }
  .ent { padding: 140px var(--pad) 80px; min-height: 100svh; }
  .team, .news { padding: 130px var(--pad) 96px; }
  .team h2 { margin-top: 96px; font-size: 40px; }
  .team-grid { margin-top: 48px; }
  .member { flex-basis: 100%; max-width: 340px; }
  .card .img-wrap img { height: 220px; }
  .about-hero { height: 100svh; min-height: 560px; }
  .about-hero h1 { font-size: 40px; }
  .story { padding: 96px var(--pad); gap: 48px; }
  .values { padding: 72px var(--pad) 96px; }
  .value h3 { font-size: 32px; }
  .value img { height: 380px; }
  .investors { padding: 140px var(--pad) 96px; min-height: 100svh; }
  .res-row { flex-wrap: wrap; }
  .careers { padding: 140px var(--pad) 96px; }
  .row-2 { grid-template-columns: 1fr; }
  .contact-art { padding: 0 var(--pad) 64px; }
  .contact-art h1 { font-size: 38px; }
  .contact-form { padding: 56px var(--pad) 96px; }
  .legal { padding: 140px var(--pad) 96px; }
  .legal-body h2 { font-size: 26px; }
  .story-body { padding: 28px 24px 32px; }
  .story-body h2 { font-size: 28px; }
  .modal { padding: 16px; }
  .modal-card { max-height: calc(100svh - 32px); }
  .login-card { margin-top: 0; }
  .login-body { padding: 24px; }
  .footer { padding: 72px var(--pad) 48px; }
  .footer-simple { padding: 72px var(--pad) 48px; gap: 56px; }
  .fs-brand p { font-size: 30px; }
  .fs-right { flex-direction: column-reverse; gap: 40px; }
  .footer-simple .footer-cols { flex-wrap: wrap; gap: 40px; }
  .fs-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .fs-legal { gap: 16px 24px; }
  .footer-brand p { font-size: 30px; }
  .footer-cols { flex-wrap: wrap; gap: 40px; }
  .footer-col { width: 140px; }
  .footer-bottom { margin-top: 56px; gap: 32px; }
  .footer-left { gap: 32px; }
  .footer-glow span { transform: translateY(-200px) scale(0.6); transform-origin: left top; }
}

/* Short laptop screens: shrink the hero a little so it still fits */
@media (min-width: 901px) and (max-height: 820px) {
  .hero h1 { font-size: 64px; line-height: 68px; }
  .rolling, .rolling-track span { height: 80px; line-height: 68px; }
  .hero-sub { font-size: 22px; }
  .hero-content { gap: 22px; }
}
@media (min-width: 901px) and (max-height: 680px) {
  .hero h1 { font-size: 52px; line-height: 56px; }
  .rolling, .rolling-track span { height: 66px; line-height: 56px; }
  .hero-sub { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.form-note:empty { display: none; }

/* ---------- Backend: spam trap, newsletter, select, log in extras ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
select {
  font: inherit; font-size: 17px; color: #2e3135; width: 100%; height: 52px; padding: 0 16px;
  background: #fff; border: 1px solid rgba(46, 49, 53, 0.18); border-radius: var(--radius-ui);
}
.forgot, .link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.forgot { font-size: 15px; }
.link-btn { color: var(--gold); font-weight: 500; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
[hidden] { display: none !important; }

.newsletter { display: flex; flex-direction: column; gap: 10px; }
.newsletter label { font-size: 16px; font-weight: 500; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { height: 48px; flex: 1; min-width: 0; }
.nl-row .btn { height: 48px; padding: 0 20px; }
.newsletter .form-note { color: var(--accent); }

/* ---------- Team dashboard ---------- */
.dashboard { max-width: 1000px; margin: 0 auto; padding: 160px 24px 100px; min-height: 80vh; }
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.dash-top h1 { font-size: 40px; font-weight: 500; margin: 0; }
.dash-sub { font-size: 15px; opacity: 0.65; margin: 4px 0 0; }
.dash-gate { text-align: center; padding: 60px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dash-gate h1 { font-size: 40px; font-weight: 500; margin: 0; }
.dash-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid rgba(var(--text-rgb), 0.15); margin-bottom: 24px; }
.dash-tabs button { background: none; border: 0; font: inherit; font-size: 16px; font-weight: 500; padding: 12px 16px; cursor: pointer; color: inherit; opacity: 0.6; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dash-tabs button[aria-selected="true"] { opacity: 1; border-bottom-color: var(--accent); }
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--accent); color: #2e3135; font-size: 12px; text-align: center; }
.dash-panel { display: flex; flex-direction: column; gap: 16px; }
.dash-card { background: var(--card); border: 1px solid rgba(var(--text-rgb), 0.1); border-radius: var(--radius-ui); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dash-card.unread { border-left: 4px solid var(--accent); }
.dash-card.slim { padding: 14px 20px; }
.dash-card-head { display: flex; justify-content: space-between; gap: 16px; }
.dash-card-head h3 { margin: 0; font-size: 19px; font-weight: 600; }
.dash-card-head time { font-size: 14px; opacity: 0.6; white-space: nowrap; }
.dash-fields { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 16px; line-height: 1.5; }
.dash-fields dt { font-weight: 600; opacity: 0.7; }
.dash-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dash-fields a { text-decoration: underline; text-underline-offset: 2px; }
.dash-actions { display: flex; gap: 8px; }
.dash-bar { display: flex; justify-content: space-between; align-items: center; }
.dash-empty { opacity: 0.6; }
.dash-h { margin: 12px 0 0; font-size: 18px; font-weight: 600; }
.dash-form { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid rgba(var(--text-rgb), 0.1); border-radius: var(--radius-ui); padding: 20px; }
.dash-form h3 { margin: 0; font-size: 19px; }
.dash-form textarea { height: auto; padding: 12px 16px; }
.dash-form .btn { align-self: flex-start; }
.dash-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-form .row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.dash-file { font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.dash-file input { height: auto; padding: 10px 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 15px; }
.btn-light { background: transparent; color: inherit; border: 1px solid rgba(var(--text-rgb), 0.25); }
.btn-light:hover { background: rgba(var(--text-rgb), 0.06); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-danger:hover { background: rgba(213, 93, 54, 0.1); }
@media (max-width: 700px) {
  .dashboard { padding-top: 120px; }
  .dash-top h1 { font-size: 30px; }
  .dash-form .row-2, .dash-form .row-3 { grid-template-columns: 1fr; }
  .dash-card-head { flex-direction: column; gap: 4px; }
  .dash-fields { grid-template-columns: 1fr; }
}

/* ---------- Languages ---------- */
html:lang(zh)[data-theme] { --font: "Onest", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
html:lang(ja)[data-theme] { --font: "Onest", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-break: strict; word-break: keep-all; overflow-wrap: anywhere; }
:lang(es) h1, :lang(es) h2 { hyphens: auto; }
.lang-dd .dd-panel { left: auto; right: 0; min-width: 140px; }
.lang-dd .dd-toggle { white-space: nowrap; }
.lang-row { flex-wrap: wrap; }
.lang-row .nav-link { padding: 0; }
.lang-note { margin: 8px 0 0; font-size: 15px; font-weight: 500; color: var(--gold); }
