/* ==========================================================================
   Go!Gosling — Page composition
   Product-first / editorial: flat surfaces, one row primitive, no slop gradients.
   ========================================================================== */

main { display: block; }

.section--inset { background: var(--bg-end); }

/* --- HERO (centered, mascot-led, Marvis-style) --------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 104px));
  padding-bottom: clamp(72px, 9vw, 128px);
  background: var(--bg-start);
  border-bottom: 1px solid var(--line);
}
.hero--center .hero__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mascot app-icon hero (App Store-style big rounded square on a soft glow) */
.hero__art {
  position: relative;
  margin: 0 0 var(--space-8);
  display: grid;
  place-items: center;
}
.hero__art-glow { display: none; }
.hero__icon {
  position: relative;
  z-index: 1;
  width: clamp(132px, 22vw, 200px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 23%;
  box-shadow: var(--elev-device);
}

.hero__app {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.hero h1 {
  margin-bottom: var(--space-5);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
}
.hero__lead {
  max-width: 32ch;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  font-size: var(--fs-lead);
  color: var(--text-secondary);
}
.hero__tagline {
  font-size: var(--fs-meta);
  color: var(--text-muted);
  margin-bottom: var(--space-10);
  max-width: 44ch;
}
.hero__pmquote {
  display: inline-block;
  margin: calc(-1 * var(--space-6)) auto var(--space-8);
  max-width: 48ch;
  font-size: var(--fs-chip);
  line-height: 1.5;
  color: var(--text-muted);
  transition: color var(--dur-standard) var(--ease-standard);
}
.hero__pmquote:hover { color: var(--brand-ink); }
.hero__hook {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: var(--space-2);
  line-height: 1.5;
  max-width: 42ch;
}
.hero__actions {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.hero__actions .waitlist { width: 100%; }
.hero__note {
  justify-content: center;
  margin-top: 0;
}
.hero__greet {
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}
.hero__prompts {
  width: 100%;
  max-width: 520px;
  margin: 0 auto var(--space-8);
  text-align: center;
}
.hero__prompts-label {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.prompt-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}
.prompt-chip {
  display: inline-block;
  padding: 10px 14px;
  font-size: var(--fs-chip);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  line-height: 1.35;
  max-width: 100%;
}
.hero__prompts-note {
  margin-top: var(--space-3);
  font-size: var(--fs-chip);
  color: var(--text-muted);
}

/* --- Dual mode (Marvis-style panels, flat) -------------------------------- */
.home-modes { padding-block: var(--section-y); }
.mode-duo {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  max-width: var(--container-narrow);
  margin-inline: auto;
}
@media (min-width: 720px) {
  .mode-duo { grid-template-columns: 1fr 1fr; }
}
.mode-card {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.mode-card--on {
  border-color: var(--brand-200);
  background: var(--brand-50);
}
.mode-card__tag {
  display: inline-block;
  font-size: var(--fs-chip);
  font-weight: 600;
  color: var(--brand-ink);
  margin-bottom: var(--space-3);
}
.mode-card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.mode-card__body {
  font-size: var(--fs-meta);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Scene grid (Yuanbao/Marvis use-case matrix, text-only) --------------- */
.scene-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  max-width: var(--container);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
@media (min-width: 640px) {
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
}
.scene-tile {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.scene-tile:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 639px) {
  .scene-tile:last-child { border-bottom: 0; }
}
@media (min-width: 640px) {
  .scene-tile:nth-child(odd) { border-inline-end: 1px solid var(--line); }
  .scene-tile:nth-child(n+5) { border-bottom: 0; }
}
.scene-tile h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.scene-tile p {
  font-size: var(--fs-meta);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Capabilities: stacked rows (not icon-card grid) --------------------- */
.cap-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--container-narrow);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
.cap-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px var(--space-4);
  align-items: start;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
}
.cap-card:last-child { border-bottom: 0; }
.cap-card--live {
  border-inline-start: 3px solid var(--brand);
  padding-inline-start: calc(var(--space-6) - 3px);
  background: var(--surface);
}
.cap-card__icon { display: none; }
.cap-card__badge { display: none; }
.cap-card h3 {
  grid-column: 1;
  grid-row: 1;
  font-size: var(--fs-body);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.cap-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: var(--fs-meta);
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.cap-card__soon {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin: 0;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-chip);
  font-weight: 500;
  white-space: nowrap;
}
.cap-card--live .cap-card__soon { display: none; }
.feat-live {
  max-width: 56ch;
  margin: var(--space-6) auto 0;
  text-align: left;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.55;
}
@media (min-width: 640px) {
  .cap-card { padding: var(--space-6) var(--space-8); }
}
.cap-disclaimer {
  margin-top: var(--space-10);
  text-align: center;
  font-size: var(--fs-chip);
  color: var(--text-muted);
}
/* --- Section heading block ----------------------------------------------- */
.sec-head { max-width: 680px; margin-bottom: var(--space-16); }
.sec-head.center { margin-inline: auto; text-align: center; }
.subhero .sec-head.center {
  margin-inline: 0;
  text-align: left;
}
.subhero .sec-head.center .lead.mx-auto {
  margin-inline: 0;
}
.subhero .sec-head .lead {
  max-width: 56ch;
  color: var(--text-secondary);
  line-height: 1.55;
}
.sec-head .section-title { margin-bottom: var(--space-5); }

/* --- How it works (plain steps) ------------------------------------------ */
.steps { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.steps--plain {
  max-width: var(--container-narrow);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.steps--plain .step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-6);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.steps--plain .step:last-child { border-bottom: 0; }
.steps--plain .step__num {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: var(--fs-meta);
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-secondary);
  margin: 0;
  border: 1px solid var(--line);
}
.steps--plain .step__copy {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}
.steps--plain .step__copy h3 {
  font-size: var(--fs-body);
  margin: 0 0 var(--space-2);
  font-weight: 600;
}
.steps--plain .step__copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-meta);
  line-height: 1.55;
  text-wrap: pretty;
}
.step h3 { font-size: var(--fs-body); margin-bottom: var(--space-2); font-weight: 600; }
.step p { color: var(--text-secondary); font-size: var(--fs-meta); line-height: 1.55; }

.how-hook {
  margin-top: var(--space-10);
  text-align: center;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 52ch;
  margin-inline: auto;
}
.how-links {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
  font-size: var(--fs-meta);
}
.how-links a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}
.how-links a:hover { text-decoration: underline; }
.how-links__sep { color: var(--text-muted); user-select: none; }
.subhero .sec-head.center .eyebrow + .section-title { margin-top: var(--space-4); }

/* --- Privacy section ----------------------------------------------------- */
.priv-tagline {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--brand-ink);
  margin-top: var(--space-4);
}
.privacy__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--container-narrow);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.privacy__grid .card {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: var(--space-6) var(--space-6);
}
.privacy__grid .card:last-child { border-bottom: 0; }
.privacy__never {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--line);
}
.privacy__never h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--space-5);
  text-align: center;
}
.never-list--light {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-inline: auto;
}
.never-list--light li {
  font-size: var(--fs-meta);
  color: var(--text-secondary);
  padding-left: 1.1em;
  position: relative;
}
.never-list--light li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 700;
}
@media (min-width: 720px) {
  .never-list--light { grid-template-columns: repeat(2, 1fr); max-width: none; }
}

/* --- Home explore: index rows (not 3×2 card wall) ------------------------ */
.home-explore__list {
  max-width: var(--container-narrow);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
.home-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background var(--dur-standard);
}
.home-row:last-child { border-bottom: 0; }
.home-row:hover { background: var(--surface-2); }
.home-row__main { min-width: 0; flex: 1; }
.home-row__title {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.home-row__desc {
  display: block;
  font-size: var(--fs-meta);
  color: var(--text-secondary);
  line-height: 1.45;
}
.home-row__chev {
  flex: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  font-weight: 400;
}
.home-row:hover .home-row__chev { color: var(--brand-ink); }

/* --- Roadmap ------------------------------------------------------------- */
.roadmap__chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.roadmap__group { margin-bottom: var(--space-8); }
.roadmap__group:last-child { margin-bottom: 0; }
.roadmap__group h4 {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

/* --- FAQ ----------------------------------------------------------------- */
.faq__grid { display: grid; gap: var(--space-12); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-16); } }

/* --- Final CTA (light, calm closing panel) ------------------------------- */
.final-cta {
  background: var(--bg-end);
  border-top: 1px solid var(--line);
}
.final-cta__inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}
.final-cta h2 {
  font-size: var(--fs-h1);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
}
.final-cta p {
  color: var(--text-secondary);
  font-size: var(--fs-lead);
  margin-bottom: var(--space-10);
  max-width: 42ch;
  margin-inline: auto;
}
.final-cta .waitlist { margin-inline: auto; }
.final-cta .form-note { justify-content: center; }

/* --- State gallery — the animated Gosli (动图 showcase) ------------------- */
/* Faithful to Marvis's character grid: a calm white field, generous gutters,
   one charming line-art mascot per tile. The mascot GIFs are transparent
   256² line art, so each sits on a soft radial well with a gentle drop-shadow.
   prefers-reduced-motion swaps every GIF to its first-frame PNG (see main.js). */
.state-gallery { background: var(--bg-start); }
.state-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}
.state-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: none;
}
.state-tile__media {
  width: clamp(104px, 30vw, 140px);
  aspect-ratio: 1;
  margin-bottom: var(--space-2);
  display: grid;
  place-items: center;
  border-radius: var(--radius-compact);
  background: var(--surface-2);
}
.state-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.state-tile__cap {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.state-tile__sub {
  font-size: var(--fs-chip);
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 24ch;
}
@media (min-width: 600px) { .state-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
@media (min-width: 980px) { .state-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Spotlight — flat product panel (no glass / gradient slop) ------------ */
.spotlight { background: var(--bg-start); }
.spotlight__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4.5vw, 56px);
  background: var(--surface);
  box-shadow: none;
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
  align-items: center;
}
.spotlight__eyebrow { margin-bottom: var(--space-4); }
.spotlight__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-5);
}
.spotlight__lead {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-8);
  max-width: 38ch;
}
.spotlight__list { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
.spotlight__feat { display: flex; gap: var(--space-4); align-items: flex-start; }
.spotlight__feat-ic { display: none; }
.spotlight__feat h3 { font-size: var(--fs-body); font-weight: 600; margin-bottom: 3px; letter-spacing: -0.01em; }
.spotlight__feat p { font-size: var(--fs-meta); color: var(--text-secondary); line-height: 1.55; max-width: 40ch; }

.spotlight__stage {
  position: relative;
  margin-inline: auto;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.spotlight__pet {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: none;
}
.spotlight__float { display: none; }
@media (min-width: 900px) {
  .spotlight__panel { grid-template-columns: 1.04fr 0.96fr; gap: var(--space-16); }
}

/* --- Legal pages --------------------------------------------------------- */
.legal { padding-top: calc(var(--nav-h) + var(--space-16)); }
.legal__doc { max-width: var(--container-narrow); margin-inline: auto; }
.legal__doc h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; margin-bottom: var(--space-3); }
.legal__meta { color: var(--text-muted); font-size: var(--fs-meta); margin-bottom: var(--space-10); }
.legal__doc h2 { font-size: var(--fs-h3); margin: var(--space-10) 0 var(--space-4); }
.legal__doc p, .legal__doc li { color: var(--text-secondary); margin-bottom: var(--space-4); }
.legal__doc ul { padding-left: 1.2em; }
.legal__callout {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-compact);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
  font-size: var(--fs-meta);
  color: var(--text-secondary);
}

/* --- Built in Canada · AI for All ---------------------------------------- */
.canada {
  position: relative;
  isolation: isolate;
  background: var(--bg-start);
  border-bottom: 1px solid var(--line);
}
/* Faded Canadian flag watermark, fading out downward */
.canada::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url(../img/ca-flag.png) no-repeat center 8%;
  background-size: min(760px, 88%) auto;
  opacity: 0.05;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 72%);
}
.canada > .container { position: relative; z-index: 1; }
.canada__eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.canada__flag {
  width: 22px; height: auto; border-radius: 2px; display: inline-block;
  vertical-align: middle; box-shadow: 0 0 0 1px var(--line);
}
/* small flag chip in place of the maple emoji on text lines */
.footer__canada::before, .hero__pmquote::before {
  content: ""; display: inline-block; width: 19px; height: 12px;
  margin-right: 7px; vertical-align: -1px; border-radius: 2px;
  background: url(../img/ca-flag.png) center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--line);
}
.canada__quote {
  max-width: 640px;
  margin: var(--space-10) auto var(--space-12);
  text-align: center;
}
.canada__quote blockquote {
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.canada__quote figcaption {
  margin-top: var(--space-4);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--brand-ink);
}
.canada__k {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.canada__note {
  max-width: 680px;
  margin: var(--space-10) auto 0;
  text-align: center;
  font-size: var(--fs-chip);
  line-height: 1.6;
  color: var(--text-muted);
}
.canada__note a {
  color: var(--brand-ink);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__canada {
  margin-top: var(--space-4);
  font-size: var(--fs-chip);
  font-weight: 600;
  color: var(--text-secondary);
}
.canada__grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.canada__card {
  background: var(--surface);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: var(--space-6);
  box-shadow: none;
}
.canada__card:last-child { border-bottom: 0; }
@media (min-width: 860px) {
  .canada__grid { grid-template-columns: repeat(3, 1fr); }
  .canada__card { border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .canada__card:last-child { border-inline-end: 0; }
}

/* ==========================================================================
   Sub-pages (Careers, About) — share the fixed nav, so add top offset
   ========================================================================== */
.subhero { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 84px)); }
.subhero--canada {
  position: relative; isolation: isolate;
  background: var(--bg-start);
}

/* --- Careers: job list + cards ------------------------------------------- */
.careers-roles__head { margin-bottom: var(--space-6); }
.careers-roles__hint {
  margin-top: var(--space-3); max-width: 52ch;
  font-size: var(--fs-meta); color: var(--text-secondary); line-height: 1.5;
}
.jobs-list { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.jobs-loading {
  color: var(--text-muted); font-size: var(--fs-meta);
  padding: var(--space-8); text-align: center;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-card);
}
.job-card {
  display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: var(--space-6);
  box-shadow: var(--elev-raised);
  transition: border-color var(--dur-standard), box-shadow var(--dur-standard), transform var(--dur-standard) var(--ease-emphasized);
}
.job-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.job-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-card__tag {
  font-size: var(--fs-chip); font-weight: 600; padding: 5px 10px;
  border-radius: var(--radius-pill); background: var(--brand-50); color: var(--brand-ink);
}
.job-card__tag--muted { background: var(--surface-2); color: var(--text-muted); }
.job-card__head {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--space-4);
}
.job-card__intro { min-width: 0; }
.job-card__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; }
.job-card__meta { font-size: var(--fs-chip); color: var(--text-muted); margin-top: 6px; line-height: 1.45; }
.job-card__apply { width: 100%; }
.job-card__summary {
  color: var(--text-secondary); font-size: var(--fs-meta); line-height: 1.55;
  padding-top: var(--space-2); border-top: 1px solid var(--line);
}
.job-card__details { margin-top: auto; }
.job-card__details > summary {
  cursor: pointer; font-size: var(--fs-meta); font-weight: 600; color: var(--brand-ink);
  list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
}
.job-card__details > summary::-webkit-details-marker { display: none; }
.job-card__details > summary::before {
  content: "+"; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  font-size: 14px; font-weight: 700; line-height: 1;
}
.job-card__details[open] > summary::before { content: "–"; background: var(--brand-50); border-color: var(--brand-100); }
.job-card__body { padding-top: var(--space-3); color: var(--text-secondary); font-size: var(--fs-meta); line-height: 1.55; }
.job-card__body h4 { font-size: var(--fs-meta); color: var(--text-primary); margin: var(--space-4) 0 6px; }
.job-card__body ul { padding-left: 1.15em; display: grid; gap: 5px; }
.jobs-empty {
  text-align: center; padding: var(--space-10) var(--space-6);
  color: var(--text-secondary); background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--radius-card);
}
.jobs-empty h3 { font-size: var(--fs-h3); margin-bottom: var(--space-3); color: var(--text-primary); }
.jobs-empty p { margin-bottom: var(--space-6); max-width: 40ch; margin-inline: auto; }
.jobs-empty a:not(.btn) { color: var(--brand-ink); font-weight: 600; }
.careers-inquiry { margin-top: var(--space-8); }
.careers-inquiry__inner {
  display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start;
  padding: var(--space-6); border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.careers-inquiry__title { font-size: var(--fs-h3); letter-spacing: -0.01em; margin-bottom: 8px; }
.careers-inquiry__body { color: var(--text-secondary); font-size: var(--fs-meta); line-height: 1.55; max-width: 48ch; }
.careers-inquiry__btn { align-self: stretch; text-align: center; }
@media (min-width: 720px) {
  .jobs-list { grid-template-columns: repeat(2, 1fr); }
  .job-card__head { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .job-card__apply { width: auto; min-width: 132px; }
  .careers-inquiry__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .careers-inquiry__btn { align-self: center; flex: none; }
}

/* --- Apply dialog -------------------------------------------------------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Global * { margin: 0 } removes dialog UA centering — restore margin: auto */
.apply-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 0;
  padding: 0;
  border-radius: var(--radius-card);
  width: min(640px, calc(100vw - 2 * var(--space-5)));
  max-height: min(90vh, 900px);
  height: fit-content;
  overflow: hidden;
  box-shadow: var(--elev-floating);
  color: var(--text-primary);
  background: var(--surface);
}
.apply-dialog:not([open]) { display: none; }
.apply-dialog::backdrop { background: rgba(20, 18, 30, 0.5); backdrop-filter: blur(2px); }
.apply-dialog__inner {
  display: flex; flex-direction: column;
  max-height: min(90vh, 900px); overflow: hidden;
}
.apply-dialog__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-6) var(--space-6) var(--space-5);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.apply-dialog__eyebrow {
  font-size: var(--fs-chip); font-weight: 600; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--brand-ink); margin-bottom: 6px;
}
.apply-dialog__title { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.25; }
.apply-dialog__for { display: block; font-size: var(--fs-chip); font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.apply-dialog__role { display: block; color: var(--text-primary); }
.apply-dialog__x {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-secondary);
  transition: border-color var(--dur-standard), color var(--dur-standard), background var(--dur-standard);
}
.apply-dialog__x:hover { border-color: var(--brand-200); color: var(--brand-ink); background: var(--brand-50); }
.apply-dialog__x svg { width: 18px; height: 18px; }
.apply-form {
  padding: var(--space-5) var(--space-6) var(--space-6);
  overflow: auto; flex: 1;
}
.apply-form__section {
  border: 0; margin: 0 0 var(--space-5); padding: 0;
}
.apply-form__legend {
  font-size: var(--fs-chip); font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--space-3); padding: 0;
}
.apply-form__grid { display: grid; gap: var(--space-4); }
.apply-form__grid--2 { grid-template-columns: 1fr; }
@media (min-width: 520px) { .apply-form__grid--2 { grid-template-columns: 1fr 1fr; } }
.field-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; font-size: var(--fs-meta); font-weight: 600; color: var(--text-secondary); }
.field-row input, .field-row textarea {
  font: inherit; font-weight: 400; color: var(--text-primary);
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color var(--dur-standard), box-shadow var(--dur-standard);
}
.field-row textarea { resize: vertical; min-height: 96px; }
.field-row input:focus-visible, .field-row textarea:focus-visible {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100);
}
.field-row--file .field-row__label { margin-bottom: var(--space-2); }
.file-upload { position: relative; }
.file-upload__input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.file-upload__zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-2); min-height: 148px; padding: var(--space-6) var(--space-5);
  border: 2px dashed var(--line-strong); border-radius: var(--radius-card);
  background: var(--surface-2); text-align: center; cursor: pointer;
  transition: border-color var(--dur-standard), background var(--dur-standard), box-shadow var(--dur-standard);
}
.file-upload__zone:hover,
.file-upload__zone:focus-visible {
  border-color: var(--brand); background: var(--brand-50);
  box-shadow: 0 0 0 4px var(--brand-100);
  outline: none;
}
.file-upload.is-dragover .file-upload__zone {
  border-color: var(--brand); background: var(--brand-50);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.file-upload__icon {
  width: 44px; height: 44px; border-radius: var(--radius-compact);
  display: grid; place-items: center; background: var(--surface);
  color: var(--brand-ink); border: 1px solid var(--line);
}
.file-upload__icon svg { width: 22px; height: 22px; }
.file-upload__prompt { font-size: var(--fs-meta); font-weight: 600; color: var(--text-primary); }
.file-upload__hint { font-size: var(--fs-chip); color: var(--text-muted); line-height: 1.4; }
.file-upload__browse {
  margin-top: var(--space-2); font-size: var(--fs-chip); font-weight: 600;
  color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px;
}
.file-upload__picked {
  display: none; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  margin-top: var(--space-3); padding: var(--space-4);
  border: 1px solid var(--brand-100); border-radius: var(--radius-sm);
  background: var(--brand-50);
}
.file-upload.is-filled .file-upload__zone { min-height: 112px; }
.file-upload.is-filled .file-upload__picked { display: flex; }
.file-upload__picked-icon {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius-compact);
  display: grid; place-items: center; background: var(--surface); color: var(--brand-ink);
}
.file-upload__picked-icon svg { width: 20px; height: 20px; }
.file-upload__picked-info { flex: 1; min-width: 0; text-align: left; }
.file-upload__name {
  display: block; font-size: var(--fs-meta); font-weight: 600; color: var(--text-primary);
  word-break: break-all;
}
.file-upload__meta { display: block; font-size: var(--fs-chip); color: var(--text-muted); margin-top: 2px; }
.file-upload__clear {
  flex: none; font-size: var(--fs-chip); font-weight: 600; color: var(--text-secondary);
  padding: 8px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: var(--surface);
}
.file-upload__clear:hover { border-color: var(--text-muted); color: var(--text-primary); }
.field-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--fs-chip); color: var(--text-secondary);
  margin: var(--space-4) 0 var(--space-5); line-height: 1.45;
}
.field-check input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--brand); }
.apply-consent__link { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.apply-error {
  color: #b44a3f; font-size: var(--fs-chip); margin-bottom: var(--space-3);
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(176, 74, 63, 0.08); border: 1px solid rgba(176, 74, 63, 0.2);
}
.apply-actions {
  display: flex; flex-direction: column-reverse; gap: var(--space-3);
  padding-top: var(--space-4); margin-top: var(--space-2);
  border-top: 1px solid var(--line);
  position: sticky; bottom: 0; background: var(--surface);
}
.apply-actions__submit { width: 100%; }
@media (min-width: 480px) {
  .apply-actions { flex-direction: row; justify-content: flex-end; align-items: center; }
  .apply-actions__submit { width: auto; min-width: 200px; }
}
.apply-done {
  text-align: center; padding: var(--space-10) var(--space-6);
  overflow: auto;
}
.apply-done__badge {
  width: 56px; height: 56px; margin: 0 auto var(--space-5);
  border-radius: 50%; display: grid; place-items: center;
  background: var(--health-50); color: var(--tint-health);
}
.apply-done__badge svg { width: 28px; height: 28px; }
.apply-done h3 { font-size: var(--fs-h3); margin-bottom: var(--space-3); letter-spacing: -0.01em; }
.apply-done p { color: var(--text-secondary); margin-bottom: var(--space-6); line-height: 1.55; max-width: 36ch; margin-inline: auto; }
.apply-done .btn { min-width: 160px; }
.apply-done__mail { color: var(--brand-ink); font-weight: 600; }

/* --- About --------------------------------------------------------------- */
.about-mission { max-width: 720px; margin-inline: auto; text-align: center; }
.about-mission .section-title { margin: var(--space-4) 0; }
.about-mission p { color: var(--text-secondary); font-size: var(--fs-lead); line-height: 1.6; }
.contact-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; max-width: 820px; margin: 0 auto var(--space-8); }
.contact-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: var(--space-6);
  transition: border-color var(--dur-standard), transform var(--dur-standard) var(--ease-emphasized);
}
.contact-card:hover { border-color: var(--brand-200); transform: translateY(-2px); }
.contact-card__ic {
  width: 44px; height: 44px; border-radius: var(--radius-compact); display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-ink); margin-bottom: var(--space-4);
}
.contact-card__ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.contact-card p { color: var(--text-secondary); font-size: var(--fs-meta); margin-bottom: var(--space-4); }
.contact-card__mail { font-weight: 600; color: var(--brand-ink); font-size: var(--fs-meta); }
.about-foot-cta { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- Cookie consent banner ----------------------------------------------- */
body.has-cookie-banner { padding-bottom: var(--cookie-banner-h, 0px); }
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(20, 18, 30, 0.08);
  transform: translateY(110%);
  opacity: 0;
  transition: transform var(--dur-standard) var(--ease-emphasized), opacity var(--dur-standard);
  pointer-events: none;
}
.cookie-banner.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
}
.cookie-banner__title {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.cookie-banner__desc {
  font-size: var(--fs-chip);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 62ch;
}
.cookie-banner__desc a {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.footer__cookie-btn {
  font: inherit;
  font-size: inherit;
  color: var(--text-muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__cookie-btn:hover { color: var(--brand-ink); }
@media (min-width: 720px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-6);
  }
  .cookie-banner__actions { flex: none; }
}
