/* Localized and engineering pages.
   The canonical Ruzayo primitives come from ruzayo.css; this file owns only
   the composition required by the generated routes. It deliberately avoids
   glass, generic elevation stacks, and a second token system. */

:root {
  color-scheme: light;
  --global-on-moss-quiet: rgba(243, 237, 227, 0.74);
  --global-on-moss-rule: rgba(243, 237, 227, 0.18);
}

html {
  scroll-behavior: smooth;
}

body.global-site {
  min-width: 0;
  margin: 0;
  color: var(--rz-ink);
  background: var(--rz-oat);
  font-family: var(--rz-font-ui);
  font-size: var(--rz-size-body);
  line-height: 1.7;
  overflow-x: clip;
}

body.global-site :where(a, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--rz-terracotta);
  outline-offset: 2px;
}

.global-shell {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--rz-space-5);
}

.global-skip {
  position: fixed;
  z-index: 400;
  top: var(--rz-space-2);
  left: var(--rz-space-3);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: var(--rz-space-2) var(--rz-space-3);
  border-radius: var(--rz-radius-capsule);
  color: var(--rz-bone);
  background: var(--rz-moss);
  font-weight: 700;
  transform: translateY(-96px);
  transition: transform var(--rz-dur-settle) var(--rz-ease-settle);
}

.global-skip:focus {
  transform: translateY(0);
}

.global-header {
  position: sticky;
  z-index: 200;
  top: 0;
  border-bottom: 1.5px solid var(--rz-rule);
  background: var(--rz-oat);
}

.global-header__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--rz-space-4);
}

.global-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.global-brand img {
  width: 126px;
  height: auto;
}

.global-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: safe flex-end;
  gap: var(--rz-space-3);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.global-nav a,
.global-language summary,
.global-language__panel a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rz-slate);
  font-size: var(--rz-size-fact);
  font-weight: 600;
  white-space: nowrap;
}

.global-nav a {
  flex: 0 0 auto;
}

.global-nav a:hover,
.global-language summary:hover,
.global-language__panel a:hover,
.global-language__panel a[aria-current="true"] {
  color: var(--rz-moss);
}

.global-language {
  position: relative;
}

.global-language summary {
  gap: var(--rz-space-2);
  padding-inline: var(--rz-space-3);
  border: 1.5px solid var(--rz-rule-strong);
  border-radius: var(--rz-radius-capsule);
  color: var(--rz-moss);
  cursor: pointer;
  list-style: none;
}

.global-language summary::-webkit-details-marker {
  display: none;
}

.global-language summary::after {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate var(--rz-dur-leave) var(--rz-ease-settle);
}

.global-language[open] summary::after {
  rotate: 225deg;
  translate: 0 2px;
}

.global-language__panel {
  position: absolute;
  top: calc(100% + var(--rz-space-2));
  right: 0;
  width: min(296px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  gap: var(--rz-space-1);
  padding: var(--rz-space-2);
  border: 1.5px solid var(--rz-rule-strong);
  border-radius: var(--rz-radius-tile);
  background: var(--rz-shell);
}

.global-language:not([open]) > .global-language__panel {
  display: none;
}

.global-language__panel a {
  border-radius: var(--rz-radius-capsule);
}

.global-language__panel a[aria-current="true"] {
  background: var(--rz-tint-sage);
}

.global-hero {
  position: relative;
  padding-block: clamp(72px, 9vw, var(--rz-space-6));
  overflow: hidden;
}

.global-hero::before {
  position: absolute;
  top: -380px;
  left: 50%;
  width: min(1180px, 132vw);
  height: 760px;
  border-radius: var(--rz-radius-vessel);
  background: var(--rz-pool-amber);
  content: "";
  pointer-events: none;
  translate: -50% 0;
}

.global-hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(var(--rz-space-5), 7vw, var(--rz-space-6));
}

.global-hero__copy {
  max-width: 720px;
}

.global-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--rz-space-2);
  min-height: 34px;
  margin: 0 0 var(--rz-space-4);
  padding: var(--rz-space-1) var(--rz-space-3);
  border-radius: var(--rz-radius-capsule);
  color: var(--rz-slate);
  background: var(--rz-tint-moss);
}

.global-eyebrow::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rz-terracotta);
  content: "";
}

.global-hero h1,
.global-article h1 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--rz-font-display);
  font-size: var(--rz-size-display);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.global-lede {
  max-width: 66ch;
  margin: var(--rz-space-4) 0 0;
  color: #3c4740;
  font-size: var(--rz-size-lead);
  line-height: 1.62;
}

.global-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rz-space-2);
  margin-block: var(--rz-space-4);
}

.global-proof {
  margin: 0;
  color: var(--rz-slate);
  font-size: var(--rz-size-fact);
  font-weight: 600;
}

.global-vessel {
  width: min(100%, 490px);
  justify-self: end;
}

.global-vessel .rz-vessel__body {
  justify-content: center;
  gap: var(--rz-space-4);
}

.global-vessel__title {
  margin: 0;
  color: var(--rz-bone);
}

.global-vessel__rows {
  display: grid;
  gap: var(--rz-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-vessel__rows li {
  min-height: 44px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: var(--rz-space-2);
  padding-block: var(--rz-space-2);
  border-bottom: 1px solid var(--global-on-moss-rule);
  color: var(--global-on-moss-quiet);
  font-size: var(--rz-size-fact);
  font-weight: 600;
}

.global-vessel__rows li::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rz-sage);
  content: "";
}

.global-vessel__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rz-space-3);
}

.global-vessel__figure {
  margin: 0;
}

.global-vessel__figure strong,
.global-vessel__figure span {
  display: block;
}

.global-vessel__figure strong {
  color: var(--rz-amber); /* canon-ok: amber text is on moss */
  font-family: var(--rz-font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.global-vessel__figure:last-child strong {
  font-size: clamp(18px, 2.2vw, 26px);
  overflow-wrap: anywhere;
}

.global-vessel__figure span {
  margin-top: var(--rz-space-1);
  color: var(--global-on-moss-quiet);
  font-size: 13px;
  line-height: 1.45;
}

.global-section {
  padding-block: clamp(var(--rz-space-5), 8vw, var(--rz-space-6));
}

.global-section + .global-section {
  border-top: 1.5px solid var(--rz-rule);
}

.global-section__surface {
  padding: clamp(var(--rz-deep-min-padding), 7vw, 88px);
  border: 1.5px solid var(--rz-rule);
  border-radius: var(--rz-radius-deep-a);
  background: var(--rz-shell);
}

.global-section__surface--reverse {
  border-radius: var(--rz-radius-deep-b);
}

.global-section h2,
.global-article h2,
.global-post-list h2 {
  margin: 0;
  font-family: var(--rz-font-display);
  font-size: var(--rz-size-title);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.global-card-grid,
.global-meter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rz-space-3);
  margin-top: var(--rz-space-5);
}

.global-card {
  min-width: 0;
  padding-top: var(--rz-space-3);
  border-top: 1.5px solid var(--rz-rule-strong);
}

.global-card h3 {
  margin: 0;
  font-family: var(--rz-font-display);
  font-size: var(--rz-size-section);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.global-card p {
  margin: var(--rz-space-2) 0 0;
  color: var(--rz-slate);
}

.global-matrix {
  margin-top: var(--rz-space-4);
  border: 1.5px solid var(--rz-rule-strong);
  border-radius: var(--rz-radius-panel);
  background: var(--rz-shell);
  overflow: hidden;
}

.global-matrix > summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: var(--rz-space-2) var(--rz-space-4);
  color: var(--rz-moss);
  font-weight: 700;
  cursor: pointer;
}

.global-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.global-scroll-cue {
  display: none;
  margin: 0;
  padding: 0 var(--rz-space-4) var(--rz-space-2);
  color: var(--rz-slate);
  font-size: var(--rz-size-fact);
}

.global-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.global-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.global-table :where(th, td) {
  padding: var(--rz-space-3);
  border-top: 1px solid var(--rz-rule);
  text-align: left;
  vertical-align: top;
}

.global-table th {
  color: var(--rz-slate);
  font-size: var(--rz-size-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.global-section--moss {
  border-top: 0;
  color: var(--rz-bone);
  background: var(--rz-moss);
}

.global-section--moss h2 {
  color: var(--rz-bone);
}

.global-guarantees {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rz-space-2);
  margin-top: var(--rz-space-5);
}

.global-guarantee {
  min-height: 96px;
  padding: var(--rz-space-3) var(--rz-space-4);
  border: 1px solid var(--global-on-moss-rule);
  border-radius: var(--rz-radius-tile);
  color: var(--global-on-moss-quiet);
}

.global-guarantee strong {
  display: block;
  margin-bottom: var(--rz-space-1);
  color: var(--rz-bone);
}

.global-meter {
  padding: var(--rz-space-4);
  border: 1.5px solid var(--rz-rule);
  border-radius: var(--rz-radius-panel);
  background: var(--rz-shell);
}

.global-meter__price {
  margin-top: var(--rz-space-2);
  font-family: var(--rz-font-display);
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.global-meter p:last-child {
  color: var(--rz-slate);
}

.global-status {
  margin: var(--rz-space-3) 0 0;
  padding: var(--rz-space-3) var(--rz-space-4);
  border-radius: var(--rz-radius-tile);
  color: var(--rz-moss);
  background: var(--rz-tint-sage);
}

.global-faq {
  margin-top: var(--rz-space-4);
}

.global-faq details {
  border-top: 1.5px solid var(--rz-rule);
}

.global-faq summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  color: var(--rz-moss);
  font-weight: 700;
  cursor: pointer;
}

.global-faq p {
  max-width: 74ch;
  margin-top: 0;
  color: var(--rz-slate);
}

.global-article {
  max-width: 920px;
  padding-block: clamp(var(--rz-space-5), 8vw, var(--rz-space-6));
}

.global-article h1 {
  font-size: var(--rz-size-title);
}

.global-article h2 {
  margin-top: var(--rz-space-5);
  font-size: var(--rz-size-section);
}

.global-article :where(p, li) {
  color: var(--rz-slate);
}

.global-article pre {
  max-width: 100%;
  padding: var(--rz-space-4);
  border-radius: var(--rz-radius-tile);
  color: var(--rz-bone);
  background: var(--rz-moss);
  overflow: auto;
}

.global-post-list {
  margin: var(--rz-space-5) 0 0;
  padding: 0;
  list-style: none;
}

.global-post-list li {
  border-top: 1.5px solid var(--rz-rule);
}

.global-post-list a {
  min-height: 116px;
  display: grid;
  gap: var(--rz-space-2);
  padding-block: var(--rz-space-4);
}

.global-post-list h2 {
  font-size: var(--rz-size-section);
}

.global-post-list span {
  color: var(--rz-slate);
}

.global-footer {
  color: var(--global-on-moss-quiet);
  background: var(--rz-moss);
}

.global-footer__inner {
  min-height: 132px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--rz-space-5);
  padding-block: var(--rz-space-4);
  font-size: var(--rz-size-fact);
}

.global-footer__status {
  max-width: 70ch;
  justify-self: end;
  text-align: right;
}

.global-section--moss :focus-visible,
.global-footer :focus-visible,
.global-article pre:focus-visible {
  outline-color: var(--rz-cream);
}

html:where([lang="ja"], [lang="zh"]) body.global-site {
  line-height: 1.78;
}

html:where([lang="ja"], [lang="zh"]) body.global-site :where(h1, h2, h3) {
  line-height: 1.34;
  letter-spacing: 0;
}

@media (max-width: 1023px) {
  .global-shell {
    padding-inline: var(--rz-space-4);
  }

  .global-hero__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .global-vessel {
    justify-self: start;
  }

  .global-card-grid,
  .global-meter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 787px) {
  .global-scroll-cue {
    display: block;
  }
}

@media (max-width: 599px) {
  .global-shell {
    padding-inline: var(--rz-space-3);
  }

  .global-brand img {
    width: 112px;
  }

  .global-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--rz-space-2);
    padding-block: var(--rz-space-1);
  }

  .global-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: var(--rz-space-1);
    border-top: 1px solid var(--rz-rule);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .global-nav a {
    flex: 0 0 auto;
  }

  .global-hero {
    padding-block: var(--rz-space-5);
  }

  .global-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .global-vessel {
    width: 100%;
    aspect-ratio: auto;
  }

  .global-vessel .rz-vessel__body {
    height: auto;
    padding: 22% 22% 24%;
  }

  .global-section__surface,
  .global-section__surface--reverse {
    padding: var(--rz-space-4);
    border-radius: var(--rz-radius-panel);
  }

  .global-card-grid,
  .global-meter-grid,
  .global-guarantees,
  .global-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .global-footer__status {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 359px) {
  .global-shell {
    padding-inline: var(--rz-space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .global-hero::before,
  .rz-vessel::before {
    display: none;
  }

  .global-language__panel,
  .global-section__surface,
  .global-meter,
  .global-guarantee,
  .global-matrix,
  .rz-vessel {
    border: 2px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  :where(a, summary, [tabindex]):focus-visible {
    outline: 3px solid Highlight;
  }
}
