/* Website styles, Phase 3 Traditional Chinese pages */

:root {
  --ink: #111111;
  --ink-soft: #2b2b2b;
  --paper: #ffffff;
  --paper-soft: #f6f6f4;
  --paper-warm: #eee9df;
  --line: #d7d3ca;
  --line-dark: #363636;
  --muted: #66645f;
  --accent: #c4b07d;
  --accent-dark: #8f7747;
  --navy: #0b2844;
  --navy-soft: #183a58;
  --success: #197b44;
  --danger: #b13d34;
  --font-sans: "Inter", "Noto Sans TC", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-serif: "Playfair Display", "Noto Serif TC", Georgia, serif;
  --font-mono: "JetBrains Mono", "Noto Sans TC", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1160px;
  --radius: 8px;
}

html[lang="ja"] {
  --font-sans: "Inter", "Noto Sans JP", "Noto Sans TC", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-serif: "Playfair Display", "Noto Serif JP", "Noto Serif TC", Georgia, serif;
  --font-mono: "JetBrains Mono", "Noto Sans JP", "Noto Sans TC", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 30px);
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-links .nav-cta {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.footer-lang a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.footer-lang a:hover,
.footer-lang a:focus-visible {
  color: var(--ink);
}

.footer-lang a[aria-current="true"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button-primary {
  color: #171307;
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary:hover {
  background: #d4c28f;
}

.button-secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  background: var(--paper);
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.94) 0%, rgba(13, 18, 22, 0.84) 48%, rgba(10, 20, 31, 0.70) 100%),
    url("../assets/og-banner.png") center / cover no-repeat,
    #111111;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(196, 176, 125, 0.45);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  padding-top: clamp(72px, 9vw, 112px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-system {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(13, 13, 13, 0.62);
}

.hero-banner {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.system-diagram {
  padding: clamp(18px, 3vw, 28px);
}

.system-core {
  border: 1px solid rgba(196, 176, 125, 0.58);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 6px;
}

.system-core strong {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.system-core span:last-child,
.small-label {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 12px;
}

.system-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.system-paths div {
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
}

.system-paths span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.system-paths strong {
  font-size: 15px;
  line-height: 1.35;
}

.intro-band {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  padding-top: 38px;
  padding-bottom: 38px;
}

.intro-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 21px);
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-head p:last-child,
.contact-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.8;
}

.deployment-grid,
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.deployment-card,
.workflow-card {
  min-height: 100%;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.deployment-card {
  display: flex;
  flex-direction: column;
}

.card-number {
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 13px;
}

.deployment-card h3,
.workflow-card h3,
.process-list h3 {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.18;
}

.deployment-card p,
.workflow-card p,
.process-list p {
  color: var(--muted);
  margin: 16px 0 0;
}

.deployment-card ul {
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 10px;
}

.deployment-card li {
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}

.deployment-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--accent-dark);
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-head.inverse p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.governance-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.governance-map {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.map-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.map-row span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.map-row strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.workflow-card {
  background: var(--paper-soft);
}

.process-section {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.process-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.process-list > li > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-dark);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 14px;
}

.process-list h3 {
  margin-top: 0;
}

.contact-section {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--ink);
  color: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.demo-form {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  color: var(--paper);
  padding: 12px 13px;
}

.demo-form textarea {
  min-height: 116px;
  resize: vertical;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.form-status.ok {
  color: #70c994;
}

.form-status.err {
  color: #ff9b92;
}

.demo-form.is-submitting button {
  opacity: 0.68;
  pointer-events: none;
}

/* Omni Edge service pages */

.service-brand {
  min-width: 248px;
}

.service-brand span,
.service-footer-brand span {
  letter-spacing: 0;
}

.service-hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(246, 246, 244, 0.94), rgba(238, 233, 223, 0.72)),
    var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 78px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.service-hero h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.service-lede {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.9;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button-outline {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.button-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.strategy-board {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.board-topline {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(196, 176, 125, 0.38);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-topline img {
  width: 42px;
  height: 42px;
}

.board-core {
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.board-core strong {
  display: block;
  max-width: 420px;
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.18;
}

.board-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.board-tracks div {
  min-height: 152px;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.board-tracks div:nth-child(2n) {
  border-right: 0;
}

.board-tracks div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.board-tracks span,
.challenge-card span,
.scope-card span,
.experience-grid span,
.service-strip-grid span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-tracks strong {
  display: block;
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.25;
}

.board-tracks p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

.service-strip {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.service-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-strip-grid div {
  min-height: 132px;
  padding: 28px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.service-strip-grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.service-strip-grid strong {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.45;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.challenge-card,
.scope-card,
.experience-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.challenge-card {
  min-height: 280px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper);
}

.challenge-card h3,
.scope-card h3,
.method-list h3 {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.18;
}

.challenge-card p,
.scope-card p,
.method-list p,
.experience-grid p,
.faq-list p {
  margin: 16px 0 0;
  color: var(--muted);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scope-card {
  min-height: 260px;
  padding: clamp(22px, 2.8vw, 32px);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.16);
}

.scope-card p {
  color: rgba(255, 255, 255, 0.68);
}

.scope-card h3 {
  color: var(--paper);
}

.method-section {
  background: var(--paper-soft);
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(380px, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.method-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.method-list > li > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-dark);
  color: var(--accent-dark);
  font-family: var(--font-mono);
}

.method-list h3 {
  margin-top: 0;
}

.experience-section {
  background: var(--ink);
  color: var(--paper);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.experience-layout h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.15;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.experience-grid article {
  min-height: 176px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.16);
}

.experience-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(420px, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

/* Footer layout (Tammy 2026-07-03 spec via Release e98770c0):
   left column = brand (top) + tagline (below); right = Other Services menu (top);
   full-width bottom band = language switch, copyright, then contact/email last. */
.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand    services"
    "tagline  services"
    "lang     lang"
    "copy     copy"
    "links    links";
  column-gap: 64px;
  row-gap: 16px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-tagline {
  grid-area: tagline;
  max-width: 420px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-services {
  grid-area: services;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-services-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--muted);
}

.footer-services a:hover,
.footer-services a:focus-visible {
  color: var(--ink);
}

.footer-lang {
  grid-area: lang;
  margin-top: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-layout > p:last-child {
  grid-area: copy;
  margin: 0;
}

@media (max-width: 720px) {
  .footer-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tagline"
      "services"
      "lang"
      "copy"
      "links";
    column-gap: 0;
  }
}

/* ===== CTA gate (pre-diagnostic) ===== */
.gate-benefits {
  margin: 18px 0 6px;
  padding-left: 0;
  list-style: none;
}

.gate-benefits li {
  position: relative;
  padding: 5px 0 5px 24px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.gate-benefits li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent, #c4b07d);
  font-weight: 700;
}

.gate-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 14px;
}

.gate-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gate-field span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.gate-field input {
  font: inherit;
  padding: 9px 10px;
  border: 1px solid var(--line, #d7d3ca);
  border-radius: var(--radius, 8px);
  background: var(--paper, #fff);
  color: var(--ink, #111);
  width: 100%;
  max-width: 100%;
}

.gate-submit {
  margin-top: 6px;
}

@media (max-width: 600px) {
  .gate-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .service-hero-grid,
  .governance-layout,
  .process-layout,
  .contact-layout,
  .method-layout,
  .experience-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-hero {
    min-height: auto;
  }

  .hero-system {
    max-width: 640px;
  }

  .strategy-board {
    max-width: 680px;
  }

  .deployment-grid,
  .workflow-grid,
  .challenge-grid,
  .scope-grid,
  .service-strip-grid,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .service-strip-grid div,
  .service-strip-grid div:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 16px;
    white-space: nowrap;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 8px 10px;
    flex-wrap: wrap;
  }

  .nav-links > a:not(.nav-cta) {
    display: none;
  }

  .nav-links .nav-cta {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .system-paths {
    grid-template-columns: 1fr;
  }

  .board-tracks {
    grid-template-columns: 1fr;
  }

  .board-tracks div,
  .board-tracks div:nth-child(2n),
  .board-tracks div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .board-tracks div:last-child {
    border-bottom: 0;
  }

  .map-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    padding: 18px 0;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .method-list li {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

/* === Homepage Phase 4 (2026-06-26): A2/A3 market-proof band + A4 lead magnet === */
.market-band {
  background: var(--paper-soft);
}
.market-grid {
  margin-top: 1.5rem;
}
.stat-card .stat-figure {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.6rem;
  line-height: 1.1;
}
.stat-card .stat-source {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.market-cta {
  margin-top: 2rem;
  text-align: center;
}
.market-cta .market-note {
  margin: 1rem auto 0;
  max-width: 720px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* === Why-us trust band (2026-06-30): Tammy 1bbd302b A — proven scale === */
.why-us-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.why-us-figure {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}
.why-us-figure .unit {
  font-size: 0.46em;
  color: var(--accent-dark);
  margin-left: 0.4rem;
  letter-spacing: 0.02em;
}
.why-us-label {
  flex: 1 1 280px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--muted);
  line-height: 1.65;
}

.lead-magnet {
  background: var(--navy);
  color: var(--paper);
}
.lead-magnet-layout {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}
.lead-magnet .section-head h2 {
  color: var(--paper);
}
.lead-magnet .section-head p:last-child {
  color: var(--paper-warm);
}
.lead-magnet .eyebrow {
  color: var(--accent);
}
.lead-magnet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* ===== Header language switcher (Bofu d19a96a6) ===== */
/* Desktop-only: resolves "must scroll to footer" without re-bloating the
   compact mobile header kept per the 2026-07-05 footer-only decision. */
.header-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.header-lang a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.header-lang a:hover,
.header-lang a:focus-visible {
  color: var(--ink);
}

.header-lang a[aria-current="true"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (max-width: 720px) {
  .header-lang {
    display: none;
  }
}

/* ===================================================================
   Blog system (2026-07-06, Sahil harness-dev blog sprint)
   Scoped .blog-* classes. Light theme, brand tokens only, no dark override.
   Index (.blog-hero/.blog-list/.blog-card/.blog-empty) + article
   (.blog-breadcrumb/.blog-article/.blog-prose/.blog-faq/.blog-article-cta).
   =================================================================== */
.blog-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.blog-hero .eyebrow { margin-bottom: 14px; }
.blog-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.14;
  color: var(--ink);
  text-wrap: balance;
}
.blog-lede {
  margin: 16px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 3vw, 28px);
  padding: clamp(40px, 6vw, 72px) 0;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-card-cover { aspect-ratio: 1200 / 630; background: var(--paper-soft); }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body {
  padding: clamp(20px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.blog-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.blog-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}
.blog-card-more {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.blog-empty {
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
  color: var(--muted);
}
.blog-empty p {
  margin: 0 auto;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.7;
}

/* ---- Article page (Phase 3) ---- */
.blog-breadcrumb {
  padding: 24px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.blog-breadcrumb a { color: var(--muted); }
.blog-breadcrumb a:hover { color: var(--ink); }
.blog-breadcrumb .sep { color: var(--line); margin: 0 8px; }
.blog-article { padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 8vw, 96px); }
.blog-article-header {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}
.blog-article-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.blog-article-header h1 {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 600;
  line-height: 1.16;
  color: var(--ink);
  text-wrap: balance;
}
.blog-cover {
  max-width: 900px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-cover img { width: 100%; height: auto; display: block; }
.blog-prose {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.8;
}
.blog-prose > p:first-of-type { font-size: clamp(17px, 2vw, 20px); color: var(--ink); }
.blog-prose h2 {
  margin: clamp(36px, 5vw, 52px) 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.blog-prose h3 { margin: 28px 0 10px; font-size: clamp(18px, 2vw, 21px); font-weight: 700; color: var(--ink); }
.blog-prose p { margin: 0 0 18px; }
.blog-prose ul, .blog-prose ol { margin: 0 0 20px; padding-left: 24px; }
.blog-prose li { margin: 0 0 10px; line-height: 1.7; }
.blog-prose li strong { color: var(--ink); }
.blog-prose blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--paper-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
}
.blog-faq { max-width: 720px; margin: clamp(40px, 6vw, 64px) auto 0; }
.blog-faq h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
}
.blog-faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin: 0 0 12px;
  background: var(--paper);
}
.blog-faq summary { padding: 16px 0; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.blog-faq summary::-webkit-details-marker { display: none; }
.blog-faq details[open] summary { border-bottom: 1px solid var(--line); }
.blog-faq details p { margin: 14px 0; color: var(--muted); line-height: 1.7; }
.blog-article-cta {
  max-width: 720px;
  margin: clamp(44px, 6vw, 72px) auto 0;
  padding: clamp(32px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
  text-align: center;
}
.blog-article-cta h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.blog-article-cta p { margin: 0 auto 22px; max-width: 520px; color: var(--muted); line-height: 1.65; }

/* Article share row (fires share_click via data-omni-event) */
.blog-share {
  max-width: 720px;
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.blog-share-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-share-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.blog-share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 720px) {
  .blog-list { grid-template-columns: 1fr; }
}

/* ===================================================================
   Homepage blog entry (2026-07-07, Sahil harness-dev)
   Editorial strip (.home-blog*) + mobile-only floating pill.
   Light theme, brand tokens only, no dark override.
   =================================================================== */
.home-blog .section-head { margin-bottom: clamp(24px, 4vw, 36px); }
.home-blog-feature {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  background: var(--paper);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.home-blog-media {
  display: block;
  margin: calc(-1 * clamp(24px, 4vw, 40px)) calc(-1 * clamp(24px, 4vw, 40px)) clamp(20px, 3vw, 28px);
  aspect-ratio: 1200 / 500;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: var(--paper-soft);
}
.home-blog-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-blog-feature:hover,
.home-blog-feature:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.home-blog-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.home-blog-headline {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}
.home-blog-excerpt {
  display: block;
  color: var(--muted);
  line-height: 1.7;
  font-size: clamp(15px, 1.7vw, 17px);
  max-width: 640px;
}
.home-blog-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.home-blog-all {
  display: inline-block;
  margin-top: clamp(18px, 3vw, 24px);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
}
.home-blog-all:hover,
.home-blog-all:focus-visible { color: var(--ink); }
.home-blog-note { color: var(--muted); font-weight: 600; }

/* Mobile-only floating blog pill (hidden on desktop; CSS-gated) */
.home-blog-pill { display: none; }
@media (max-width: 720px) {
  .home-blog-pill {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(17, 17, 17, 0.18);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .home-blog-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
  }
  .home-blog-pill.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
  }
}
