/* withgemba.com — one stylesheet for all three pages.
   Values come from design_handoff_gemba_landing/README.md. Do not invent new
   colors or sizes here; every token below is listed in that handoff. */

:root {
  --ground: #FFFFFF;
  --ink: #0A0A0A;
  --ink-800: #262626;
  --ink-600: #525252;
  --muted: #737373;
  --muted-light: #A3A3A3;
  --line: #E5E5E5;
  --hairline: #F0F0F0;
  --hairline-light: #F5F5F5;
  --hover-fill: #FAFAFA;
  --border-hover: #D4D4D4;
  --signal: #B45309;
  --signal-wash: #FEF6E7;
  --signal-line: #F0DCB4;
  --signal-dark: #92400E;

  --sans: 'Geist', 'Helvetica Neue', Helvetica, sans-serif;
  --mono: 'Geist Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--signal-dark); }

/* padding-left/right only: the `padding` shorthand would beat
   `section { padding-top: 96px }` on specificity and flatten every section. */
.wrap { max-width: 1000px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ── header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.wordmark {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
a.wordmark:hover { color: var(--signal); }
.spacer { flex: 1; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  border-radius: 3px;
}
.btn-solid {
  color: #FFFFFF;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.btn-solid:hover { color: #FFFFFF; background: var(--ink-800); border-color: var(--ink-800); }
.btn-sm { font-size: 11.5px; padding: 4px 10px; }
.btn-lg { font-size: 12.5px; padding: 9px 16px; }
.btn-ghost {
  font-size: 11.5px;
  padding: 4px 9px;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); background: var(--hover-fill); border-color: var(--border-hover); }

/* ── shared type ──────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}
.statement {
  margin: 18px 0 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.026em;
  text-wrap: pretty;
}
.body {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 56ch;
}
.signal { color: var(--signal); }

section { padding-top: 96px; }
.problem { padding-top: 110px; }

/* ── hero ─────────────────────────────────────────────── */
.hero { padding-top: 96px; padding-bottom: 40px; }
.hero .eyebrow { font-size: 11.5px; }
.hero h1 {
  margin: 22px 0 0;
  font-size: 62px;
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1.03;
  max-width: 15ch;
  text-wrap: pretty;
}
.hero-sub {
  margin: 20px 0 0;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-600);
}
.hero-row {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-light);
}

/* ── the film ─────────────────────────────────────────── */
.film { padding-top: 26px; }
.film-box {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.film-box mux-player, .film-box video { width: 100%; height: 100%; display: block; }
.film-box mux-player {
  --controls-backdrop-color: transparent;
  --media-object-fit: cover;
}

/* ── what gemba does ──────────────────────────────────── */
.lead {
  margin: 18px 0 0;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 60ch;
}
.lead + .body { margin-top: 14px; }

.rows { margin-top: 36px; border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.row-key {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}
.row-val { font-size: 17px; color: var(--ink-800); }

/* ── what comes out ───────────────────────────────────── */
.two-col {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}
.source-intro { font-size: 17px; color: var(--ink-800); margin: 0; }
.chips {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chip-line { display: flex; gap: 10px; align-items: baseline; }
.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  border-radius: 2px;
  padding: 1px 5px;
  white-space: nowrap;
}
.chip-head {
  color: var(--signal);
  background: var(--signal-wash);
  border: 1px solid var(--signal-line);
}
.chip-system {
  color: var(--muted);
  border: 1px solid var(--line);
}
.chip-gloss { font-size: 15.5px; color: var(--ink-600); }
.chip-note { margin: 22px 0 0; font-size: 17px; color: var(--ink); }

.sample { border: 1px solid var(--line); }
.sample-bar {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
}
.sample-bar .name { color: var(--ink); }
.sample-bar .tag { color: var(--muted); }
.sample-body {
  padding: 18px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-800);
}
.sample-head { color: var(--ink); font-weight: 500; margin-bottom: 12px; }

/* ── IT list ──────────────────────────────────────────── */
.list-plain { margin-top: 20px; border-top: 1px solid var(--ink); }
.list-plain div {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-800);
}

/* ── the name ─────────────────────────────────────────── */
.name-block {
  border-top: 1px solid var(--line);
  padding-top: 34px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.kanji { font-size: 52px; font-weight: 500; line-height: 1; letter-spacing: 0.02em; }
.kanji-label {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-light);
}
.name-gloss { font-size: 18px; color: var(--ink-600); margin: 0; }
.name-point {
  margin: 16px 0 0;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.016em;
  color: var(--ink);
  max-width: 50ch;
}

/* ── founder ──────────────────────────────────────────── */
.founder { display: flex; gap: 26px; align-items: flex-start; }
.founder img {
  flex: none;
  width: 150px;
  height: 180px;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 2px;
  display: block;
}
.founder-name {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.018em;
}
.facts {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-600);
  max-width: 52ch;
}

/* ── close ────────────────────────────────────────────── */
.close { padding-top: 88px; }
.close-inner {
  border-top: 1px solid var(--ink);
  padding-top: 40px;
}
.close h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.036em;
  line-height: 1.05;
}
.close p {
  margin: 16px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-600);
  max-width: 48ch;
}
.close .btn { margin-top: 28px; }

/* ── footer ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 60px;
}
.site-footer .wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer a.here { color: var(--ink); }
.landing .site-footer { margin-top: 90px; }

/* ── legal pages ──────────────────────────────────────── */
.legal .col { max-width: 820px; padding-bottom: 80px; }
.legal-head {
  padding: 64px 0 22px;
  border-bottom: 1px solid var(--ink);
}
.legal-head h1 {
  margin: 12px 0 0;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.036em;
  line-height: 1.05;
}
.legal-head p {
  margin: 12px 0 0;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 60ch;
}

.lrow {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--hairline);
}
.lrow:last-child { border-bottom: 0; }
.lrow > .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  padding-top: 3px;
}
.lrow.has-title > .label { padding-top: 5px; }
.lrow p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-800); }
.lrow p + p { margin-top: 12px; }
.org { font-size: 20px; font-weight: 500; letter-spacing: -0.016em; }
.org-sm { font-size: 18px; font-weight: 500; letter-spacing: -0.016em; }
.addr { margin-top: 8px; font-size: 16.5px; line-height: 1.6; color: var(--ink-600); }

.kv {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 8px 16px;
}
.kv dt, .kv .k {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-light);
}
.kv dd, .kv .v {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.kv-narrow { grid-template-columns: 110px minmax(0, 1fr); }
.kv-wide { grid-template-columns: 190px minmax(0, 1fr); }
.kv-ruled .k, .kv-ruled .v {
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline-light);
}

/* privacy sections */
.psec {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding-top: 48px;
}
.psec:first-of-type { padding-top: 40px; }
.psec .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 9px;
}
.psec h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.psec p {
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-800);
}
.psec .lrow { padding: 24px 0; }
.sub-title { margin: 28px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -0.016em; }

.hairlist { margin-top: 18px; border-top: 1px solid var(--line); }
.hairlist div {
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
  color: var(--ink-800);
}
.rights { margin-top: 18px; }
.rights .r {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.rights .r span:first-child { font-size: 16.5px; color: var(--ink-800); }
.rights .r span:last-child { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .hero h1 { font-size: 40px; }
  .statement, .close h2, .legal-head h1 { font-size: 24px; }
  .close h2, .legal-head h1 { font-size: 32px; }
  .two-col, .name-block { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .lrow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kv, .kv-narrow, .kv-wide { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv-ruled .k { border-bottom: 0; padding-bottom: 0; }
  .founder { flex-direction: column; }
}

/* copy-as-markdown, footer right */
.copy-md {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 1px;
  cursor: pointer;
}
.copy-md:hover { color: var(--ink); border-bottom-color: var(--ink); }
/* in the header the button sits next to the CTA, so no underline there */
.site-header .copy-md { border-bottom: 0; }
@media (max-width: 640px) { .site-header .copy-md { display: none; } }
