/* Keiei Innovation Partners demo — visual system inspired by Carbon-style enterprise design.
   White canvas + charcoal ink + one blue accent, square corners everywhere,
   1px hairline tiles instead of shadows, light-weight (300) display type. */

:root {
  --blue: #0f62fe;           /* single brand accent */
  --blue-hover: #0050e6;     /* hovered primary */
  --blue-active: #002d9c;    /* pressed primary */
  --blue-60: #0043ce;        /* hovered link */
  --ink: #161616;            /* headlines, body emphasis */
  --ink-muted: #525252;      /* secondary text */
  --ink-subtle: #8c8c8c;     /* captions, helper text */
  --canvas: #ffffff;
  --surface-1: #f4f4f4;      /* gray band, inputs */
  --surface-2: #e0e0e0;
  --hairline: #e0e0e0;
  --hairline-strong: #8d8d8d;/* input bottom rule */
  --inverse-canvas: #161616; /* footer */
  --inverse-surface: #262626;
  --inverse-ink: #ffffff;
  --inverse-ink-muted: #c6c6c6;
  --success: #24a148;
  --font-sans: "IBM Plex Sans", "IBM Plex Sans JP", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.16px;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; letter-spacing: inherit; cursor: pointer; }
em { font-style: normal; }

.container { max-width: 1312px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

section { scroll-margin-top: 96px; }

/* ---------- typography helpers ---------- */

.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: 0.16px;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
}
@media (min-width: 768px) { .section-title { font-size: 42px; } }

.section-lead {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 640px;
  margin-top: 16px;
}

.section-head { margin-bottom: 48px; }
@media (min-width: 768px) { .section-head { margin-bottom: 64px; } }

/* ---------- buttons: Carbon squares ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: 0.16px;
  padding: 13px 15px;
  min-height: 48px;
  transition: background 0.11s ease, border-color 0.11s ease, color 0.11s ease;
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-primary:active { background: var(--blue-active); border-color: var(--blue-active); }

.btn-secondary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-secondary:hover { background: #353535; border-color: #353535; }

.btn-tertiary { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-tertiary:hover { background: var(--blue); color: #fff; }

.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--blue);
}
.link-arrow:hover { color: var(--blue-60); text-decoration: underline; }

/* ---------- utility bar + header ---------- */

.utility-bar {
  display: none;
  background: var(--surface-1);
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: 0.32px;
}
.utility-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  height: 32px;
  align-items: center;
}
.utility-bar a:hover { color: var(--ink); }
@media (min-width: 768px) { .utility-bar { display: block; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
@media (min-width: 768px) { .header-bar { height: 64px; } }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .en {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16px;
  color: var(--ink);
}
.brand-name .sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.main-nav { display: none; align-items: center; gap: 0; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav > a:not(.btn) {
  font-size: 14px;
  letter-spacing: 0.16px;
  color: var(--ink-muted);
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
}
.main-nav > a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--blue); }
.main-nav .btn { margin-left: 16px; min-height: 40px; padding: 9px 15px; gap: 16px; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  background: none;
  border: 0;
  color: var(--ink);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav { border-top: 1px solid var(--hairline); padding: 8px 0 16px; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav a {
  padding: 13px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--surface-1);
}
.mobile-nav a:not(.btn):hover { color: var(--blue); }
.mobile-nav .btn { margin-top: 16px; border-bottom: 0; justify-content: space-between; color: #fff; }
.hidden { display: none; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, #edf5ff 0%, var(--canvas) 68%);
  border-bottom: 1px solid var(--hairline);
}
.hero-grid {
  display: grid;
  gap: 40px;
  padding: 48px 0 56px;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 64px;
    padding: 80px 0 88px;
  }
}
.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.16px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.hero-title {
  font-size: 40px;
  font-weight: 300;
  line-height: 1.17;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin-bottom: 24px;
}
@media (min-width: 768px) { .hero-title { font-size: 56px; } }
@media (min-width: 1200px) { .hero-title { font-size: 64px; } }
.hero-title em { color: var(--blue); }
.hero-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-actions .btn { min-width: 200px; }
@media (max-width: 479px) { .hero-actions .btn { width: 100%; } }

.hero-media { border: 1px solid var(--hairline); }
.hero-media img { width: 100%; height: auto; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.hero-stats > div { border-left: 2px solid var(--blue); padding-left: 16px; }
.hero-stats dt {
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.hero-stats dd {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.17;
  color: var(--ink);
}
@media (min-width: 768px) { .hero-stats dd { font-size: 36px; } }
.hero-stats dd .unit { font-size: 14px; color: var(--ink-muted); margin-left: 2px; }

.hero-clients { border-top: 1px solid var(--hairline); background: var(--canvas); }
.hero-clients-inner { padding: 20px 0 24px; }
.hero-clients p {
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--ink-subtle);
  margin-bottom: 12px;
}
.hero-clients-row {
  display: flex;
  align-items: center;
  gap: 40px;
  overflow-x: auto;
}
.hero-clients-row span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16px;
  color: var(--ink-subtle);
  white-space: nowrap;
}

/* ---------- section rhythm ---------- */

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-gray { background: var(--surface-1); }
.section-hairline { border-top: 1px solid var(--hairline); }

/* ---------- concerns ---------- */

.concern-grid {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (min-width: 768px) { .concern-grid { grid-template-columns: repeat(2, 1fr); } }
.concern-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--canvas);
  padding: 24px;
}
@media (min-width: 768px) { .concern-item { padding: 32px; } }
.concern-item .num {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: var(--blue);
  flex-shrink: 0;
}
.concern-item p { font-size: 15px; color: var(--ink); padding-top: 4px; }

.concern-close {
  margin-top: 48px;
  border-left: 3px solid var(--blue);
  padding: 8px 0 8px 24px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 720px;
}
@media (min-width: 768px) { .concern-close { font-size: 22px; } }
.concern-close strong { font-weight: 400; color: var(--ink); }

/* ---------- services ---------- */

.service-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 672px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  transition: border-color 0.15s ease;
}
.service-card:hover { border-color: var(--ink); }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-1); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.service-meta .cat { font-size: 14px; letter-spacing: 0.16px; color: var(--blue); }
.service-meta .term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--ink-muted);
}
.service-body h3 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.service-sub { font-size: 12px; letter-spacing: 0.32px; color: var(--ink-subtle); margin-bottom: 16px; }
.service-desc { font-size: 14px; line-height: 1.5; color: var(--ink-muted); margin-bottom: 24px; flex: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.service-tags li {
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--ink-muted);
  background: var(--surface-1);
  padding: 4px 8px;
}
.service-price {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
}
.service-price .lbl { display: block; font-size: 12px; letter-spacing: 0.32px; color: var(--ink-subtle); margin-bottom: 4px; }
.service-note { margin-top: 32px; font-size: 12px; letter-spacing: 0.32px; color: var(--ink-subtle); }

/* ---------- cases ---------- */

.case-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }

.case-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--blue);
  padding: 24px;
}
@media (min-width: 768px) { .case-card { padding: 32px; } }
.case-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.case-meta .industry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32px;
  color: var(--ink);
  background: var(--surface-1);
  padding: 4px 10px;
}
.case-meta .term { font-size: 12px; letter-spacing: 0.32px; color: var(--ink-subtle); }
.case-card h3 { font-size: 22px; font-weight: 400; line-height: 1.33; margin-bottom: 20px; }
.case-block { margin-bottom: 20px; }
.case-block .lbl {
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--ink-subtle);
  margin-bottom: 6px;
}
.case-block p { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.case-block.outcome .lbl { color: var(--blue); }
.case-block.outcome p { color: var(--ink); }
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  margin-top: 24px;
}
.case-metrics dd {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.17;
  color: var(--blue);
  margin-bottom: 4px;
}
@media (min-width: 768px) { .case-metrics dd { font-size: 26px; } }
.case-metrics dt { font-size: 12px; letter-spacing: 0.32px; color: var(--ink-muted); }

/* ---------- clients ---------- */

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (min-width: 672px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .client-grid { grid-template-columns: repeat(6, 1fr); } }
.client-tile {
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  padding: 16px;
  text-align: center;
}
.client-tile span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16px;
  line-height: 1.3;
  color: var(--ink-subtle);
}
.client-tile:hover span { color: var(--ink); }

/* ---------- approach ---------- */

.approach-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .approach-grid { grid-template-columns: repeat(2, 1fr); } }
.approach-card {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 24px;
}
@media (min-width: 768px) { .approach-card { padding: 32px; } }
.approach-card .num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: var(--surface-2);
}
.approach-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf5ff;
  color: var(--blue);
  margin-bottom: 24px;
}
.approach-card h3 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.33;
  margin-bottom: 12px;
  padding-right: 56px;
}
.approach-card p { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

/* ---------- staff ---------- */

.staff-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .staff-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.staff-card { background: var(--canvas); border: 1px solid var(--hairline); }
.staff-media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-1); position: relative; }
.staff-media img { width: 100%; height: 100%; object-fit: cover; }
.staff-body { padding: 24px; }
.staff-en { font-size: 12px; letter-spacing: 0.32px; color: var(--ink-subtle); margin-bottom: 4px; }
.staff-body h3 { font-size: 24px; font-weight: 400; line-height: 1.33; margin-bottom: 4px; }
.staff-role { font-size: 14px; letter-spacing: 0.16px; color: var(--blue); margin-bottom: 16px; }
.staff-bio { font-size: 14px; line-height: 1.5; color: var(--ink-muted); margin-bottom: 24px; }
.staff-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.staff-stats > div { padding: 0 12px; }
.staff-stats > div:first-child { padding-left: 0; }
.staff-stats > div + div { border-left: 1px solid var(--hairline); }
.staff-stats dt { font-size: 11px; letter-spacing: 0.32px; color: var(--ink-subtle); margin-bottom: 4px; }
.staff-stats dd { font-size: 20px; font-weight: 300; color: var(--ink); }
.staff-stats dd .unit { font-size: 12px; color: var(--ink-muted); }

/* ---------- flow ---------- */

.flow-list { max-width: 800px; }
.flow-item {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
}
.flow-item:last-child { padding-bottom: 0; }
.flow-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}
.flow-item:last-child::before { display: none; }
.flow-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.16px;
}
.flow-body { padding-top: 6px; }
.flow-body h3 { font-size: 20px; font-weight: 400; line-height: 1.4; margin-bottom: 8px; }
.flow-body p { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 800px; border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--blue-60); }
.faq-list summary .chev { color: var(--blue); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-list details[open] summary .chev { transform: rotate(180deg); }
.faq-list details[open] summary { font-weight: 600; }
.faq-answer { padding: 0 0 24px; }
.faq-answer p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  border-left: 3px solid var(--blue);
  padding-left: 16px;
}

/* ---------- CTA banner + form ---------- */

.cta-banner { background: var(--blue); color: #fff; padding: 48px 0; }
@media (min-width: 768px) { .cta-banner { padding: 64px 0; } }
.cta-banner .eyebrow { color: #d0e2ff; }
.cta-banner h2 {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .cta-banner h2 { font-size: 42px; } }
.cta-banner p { font-size: 16px; color: #d0e2ff; max-width: 640px; }

.form-section { padding: 48px 0 64px; }
@media (min-width: 768px) { .form-section { padding: 64px 0 96px; } }
.form-wrap {
  max-width: 800px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 24px;
}
@media (min-width: 768px) { .form-wrap { padding: 48px; } }
.form-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 24px;
}
.form-heading svg { color: var(--blue); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 672px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: block; }
.field.span-2 { grid-column: 1 / -1; }
.field-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.field-label .req { color: var(--blue); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.16px;
  color: var(--ink);
  background: var(--surface-1);
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
  padding: 12px 16px;
  min-height: 48px;
  transition: border-color 0.11s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23161616'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-subtle); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  border-bottom-color: transparent;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--ink-muted);
}
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); }
.consent a { color: var(--blue); text-decoration: underline; }
.consent a:hover { color: var(--blue-60); }

.form-success { text-align: center; padding: 48px 0; }
.form-success .success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-1);
  color: var(--success);
}
.form-success h3 { font-size: 24px; font-weight: 400; margin-bottom: 12px; }
.form-success p { font-size: 14px; color: var(--ink-muted); }

.contact-row {
  max-width: 800px;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 672px) { .contact-row { grid-template-columns: repeat(3, 1fr); } }
.contact-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--hairline);
  font-size: 14px;
  letter-spacing: 0.16px;
  color: var(--ink);
  padding: 12px 16px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact-pill:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--inverse-canvas);
  color: var(--inverse-ink-muted);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; gap: 40px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }

.footer-brand .brand-name .en { color: var(--inverse-ink); }
.footer-brand .brand-name .sub { color: var(--inverse-ink-muted); }
.footer-brand > p { font-size: 14px; line-height: 1.5; margin-top: 16px; max-width: 280px; }
.footer-social { display: flex; gap: 8px; margin-top: 24px; }
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--inverse-surface);
  color: var(--inverse-ink-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { border-color: var(--inverse-ink); color: var(--inverse-ink); }

.footer-col h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16px;
  color: var(--inverse-ink);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col a:hover { color: var(--inverse-ink); text-decoration: underline; }
.footer-col .with-icon { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .with-icon svg { flex-shrink: 0; margin-top: 3px; color: var(--inverse-ink-muted); }
.footer-col .small { display: block; font-size: 12px; letter-spacing: 0.32px; color: var(--ink-subtle); margin-top: 6px; }

.footer-bottom {
  border-top: 1px solid var(--inverse-surface);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.32px;
  color: var(--ink-subtle);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom .wordmark { font-weight: 600; letter-spacing: 0.16px; color: var(--inverse-ink-muted); }
.footer-disclaimer {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.32px;
  line-height: 1.5;
  color: var(--ink-subtle);
}

/* ---------- floating CTA ---------- */

.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.16px;
  padding: 13px 16px;
  min-height: 48px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.11s ease;
}
.floating-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.floating-cta:hover { background: var(--blue-hover); }

/* ---------- legal pages ---------- */

.legal-main { padding: 48px 0 64px; }
@media (min-width: 768px) { .legal-main { padding: 64px 0 96px; } }
.legal-wrap { max-width: 800px; }
.legal-head { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.legal-title { font-size: 32px; font-weight: 300; line-height: 1.2; }
@media (min-width: 768px) { .legal-title { font-size: 42px; } }
.legal-card > p { font-size: 15px; color: var(--ink-muted); margin-bottom: 32px; }
.legal-card section { margin-bottom: 32px; }
.legal-card h2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
}
.legal-card section p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.legal-card section ul { display: flex; flex-direction: column; gap: 8px; }
.legal-card section ul li {
  font-size: 14px;
  color: var(--ink-muted);
  padding-left: 16px;
  position: relative;
}
.legal-card section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 2px;
  background: var(--blue);
}
.legal-updated { font-size: 12px; letter-spacing: 0.32px; color: var(--ink-subtle); margin-top: 40px; }

.legal-table { border-top: 1px solid var(--hairline); }
.legal-table > div {
  display: grid;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 672px) { .legal-table > div { grid-template-columns: 220px 1fr; } }
.legal-table dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16px;
  background: var(--surface-1);
  padding: 14px 16px;
}
.legal-table dd { font-size: 14px; color: var(--ink-muted); padding: 14px 16px; }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.05s; }
.reveal.delay-2 { transition-delay: 0.1s; }
.reveal.delay-3 { transition-delay: 0.15s; }
.reveal.delay-4 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
