/* =====================================================================
   ExecutiveSearch.AI — site stylesheet
   Dark IBM Plex theme. Per-locale monolingual delivery.
===================================================================== */

:root {
  --bg:         #0A0B0D;
  --bg-raised:  #111317;
  --bg-card:    #14171B;
  --bg-hover:   #1A1E24;

  --border:         rgba(255,255,255,0.06);
  --border-strong:  rgba(255,255,255,0.14);
  --border-hover:   rgba(255,255,255,0.22);

  --fg:    #F5F5F4;
  --fg-2:  #A1A1AA;
  --fg-3:  #71717A;
  --fg-4:  #52525B;

  --accent:       #10B981;
  --accent-high:  #34D399;
  --accent-deep:  #047857;
  --accent-tint:  rgba(16, 185, 129, 0.08);
  --accent-ring:  rgba(16, 185, 129, 0.35);

  --font-sans: 'IBM Plex Sans', 'IBM Plex Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-jp:   'IBM Plex Sans JP', 'IBM Plex Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-serif:'IBM Plex Serif', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --page-pad: clamp(22px, 5vw, 56px);
  --max-w:    1200px;
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); font-weight: 400; line-height: 1.55; font-size: 16px; }
html.lang-ja, html.lang-ja body { font-family: var(--font-jp); }

::selection { background: var(--accent-deep); color: var(--fg); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--fg); }
html.lang-ja h1, html.lang-ja h2, html.lang-ja h3, html.lang-ja h4 { font-family: var(--font-jp); }

h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 600; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); font-weight: 500; }
p  { color: var(--fg-2); margin: 0 0 1em; }

.wrap         { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-pad); }
.wrap-narrow  { max-width: 760px;        margin: 0 auto; padding: 0 var(--page-pad); }

.meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3); display: inline-block;
}

.dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-4); vertical-align: middle; }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10,11,13,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 14px var(--page-pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.brand-mark { color: var(--accent); flex-shrink: 0; }
.brand-row { display: inline-flex; align-items: center; gap: 8px; }
.brand-word { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--fg-2); font-size: 14px; transition: color 0.15s var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
.nav-cta { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 14px; color: var(--fg); transition: all 0.15s var(--ease); }
.nav-cta:hover, .nav-cta[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.lang-toggle { display: inline-flex; gap: 0; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; }
.lang-toggle a { padding: 6px 10px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.lang-toggle a.active { background: var(--fg); color: var(--bg); }
.lang-toggle a:hover:not(.active) { color: var(--fg-2); }

.nav-toggle { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--page-pad) 16px;
    background: var(--bg-raised); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all 0.2s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link, .nav-cta { padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-cta { border: 0; padding: 14px 0; color: var(--accent); }
  .lang-toggle { align-self: flex-start; margin-top: 12px; }
}

/* ---------- SECTIONS ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: 0; }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 56px; }
.section-head .meta { color: var(--accent); }
.section-title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.section-lede { color: var(--fg-2); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; max-width: 720px; }
.section-lede strong { color: var(--fg); font-weight: 500; }

/* ---------- MASTHEAD ---------- */
.masthead { padding: clamp(80px, 12vw, 160px) 0 clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--border); }
.masthead-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-pad); }
.masthead-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 32px; flex-wrap: wrap; }
.masthead-meta .meta { color: var(--fg-3); }
.masthead-headline { font-size: clamp(48px, 8vw, 96px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 600; max-width: 1000px; }
.masthead-headline .soft { color: var(--fg-3); font-weight: 600; }
.masthead-lead { margin-top: 32px; max-width: 720px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--fg-2); }
.masthead-lead strong { color: var(--fg); font-weight: 500; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: all 0.15s var(--ease); cursor: pointer; border: 1px solid transparent; line-height: 1; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-high); border-color: var(--accent-high); }
.btn-ghost { color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--fg); }

.link-arrow { color: var(--accent); font-family: var(--font-mono); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { color: var(--accent-high); }

/* ---------- PROOF STRIP ---------- */
.proof-strip { padding: 56px 0; background: var(--bg-raised); border-bottom: 1px solid var(--border); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-pad); }
.proof-stat { display: flex; flex-direction: column; gap: 6px; }
.proof-stat .num { font-family: var(--font-serif); font-size: clamp(32px, 4vw, 48px); font-weight: 500; color: var(--fg); line-height: 1; letter-spacing: -0.02em; }
.proof-stat .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-3); }
@media (max-width: 760px) { .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ---------- COMPANIES (homepage cards) ---------- */
.companies-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.company {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 36px; display: flex; flex-direction: column; gap: 18px;
  transition: all 0.2s var(--ease); position: relative; min-height: 320px;
}
.company:hover { border-color: var(--border-hover); background: var(--bg-hover); transform: translateY(-2px); }
.company-header { display: flex; align-items: center; justify-content: space-between; }
.company-index { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.company-index .num { color: var(--accent); font-weight: 600; }
.company-index .bar { display: inline-block; width: 14px; height: 1px; background: var(--fg-4); }
.company-url { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.company h2 { font-size: 30px; margin-bottom: 0; }
.company-tag { font-family: var(--font-serif); font-size: 18px; font-style: italic; color: var(--fg); margin-bottom: 0; }
.company-for { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.company p { color: var(--fg-2); font-size: 15px; line-height: 1.6; flex: 1; margin-bottom: 0; }
.company-operator { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); padding-top: 12px; border-top: 1px solid var(--border); }
.company-cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 8px; }
.company-cta .arrow { transition: transform 0.15s var(--ease); }
.company:hover .company-cta .arrow { transform: translate(2px, -2px); }
@media (max-width: 760px) { .companies-grid { grid-template-columns: 1fr; } }

/* ---------- ABOUT (homepage about block) ---------- */
.about { background: var(--bg-raised); }
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.about-grid > .meta { padding-top: 6px; color: var(--accent); }
.about-body h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 16px; max-width: 600px; line-height: 1.3; }
.about-body p { font-size: 16px; color: var(--fg-2); line-height: 1.65; max-width: 700px; }
.about-body p strong { color: var(--fg); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.fact { padding: 18px; border: 1px solid var(--border); border-radius: 8px; }
.fact-key { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-3); margin-bottom: 6px; }
.fact-val { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--fg); margin-bottom: 4px; line-height: 1.1; }
.fact-note { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 16px; } .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- INSIGHTS TEASER (homepage) ---------- */
.insights-teaser { background: var(--bg); }
.insights-grid-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.ins-mini {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: all 0.2s var(--ease);
}
.ins-mini:hover { border-color: var(--accent); transform: translateY(-2px); }
.ins-mini .meta { color: var(--fg-3); }
.ins-mini h3 { font-size: 17px; line-height: 1.3; }
.ins-mini p { font-size: 13px; color: var(--fg-2); line-height: 1.55; margin: 0; }
.insights-cta-row { margin-top: 32px; display: flex; gap: 16px; }
@media (max-width: 880px) { .insights-grid-mini { grid-template-columns: 1fr; } }

/* ---------- HOMEPAGE CONTACT BLOCK ---------- */
.contact { background: var(--bg-raised); }
.contact-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-pad); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-lede h3 { font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 38px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.contact-lede p { color: var(--fg-2); font-size: 16px; line-height: 1.6; }
.contact-redirect { margin-top: 32px; padding: 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.contact-redirect .r-label { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 8px; }
.contact-redirect p { font-size: 14px; color: var(--fg-2); margin: 0; line-height: 1.55; }
.contact-redirect a { color: var(--accent); border-bottom: 1px solid var(--accent-tint); }
.contact-redirect a:hover { color: var(--accent-high); border-bottom-color: var(--accent-high); }
.contact-cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact-side-note { font-size: 13px; color: var(--fg-3); margin-top: 12px; margin-bottom: 0; }
.contact-side-note a { color: var(--accent); }

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- PAGE HEAD (used on subpages) ---------- */
.page-head { padding: clamp(72px, 11vw, 140px) 0 clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--border); }
.page-head .crumbs { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-bottom: 16px; }
.page-head .crumbs a { color: var(--fg-3); }
.page-head .crumbs a:hover { color: var(--accent); }
.page-title { font-size: clamp(36px, 5.5vw, 60px); letter-spacing: -0.025em; margin-bottom: 24px; max-width: 960px; line-height: 1.05; }
.page-lede { max-width: 720px; font-size: clamp(17px, 1.6vw, 19px); color: var(--fg-2); line-height: 1.6; }
.page-lede strong { color: var(--fg); font-weight: 500; }
.page-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- PROSE ---------- */
.prose { padding: clamp(64px, 9vw, 120px) 0; }
.prose-loose { padding: clamp(64px, 9vw, 96px) 0; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--fg-2); margin-bottom: 1.4em; max-width: 720px; }
.prose-loose p { font-size: 17px; line-height: 1.7; color: var(--fg-2); margin-bottom: 1.4em; max-width: 720px; }
.prose strong, .prose-loose strong { color: var(--fg); font-weight: 500; }
.prose a:not(.btn), .prose-loose a:not(.btn) { color: var(--accent); border-bottom: 1px solid var(--accent-tint); }
.prose a:not(.btn):hover, .prose-loose a:not(.btn):hover { color: var(--accent-high); border-bottom-color: var(--accent-high); }
.prose h2, .prose-loose h2 { margin-top: 2em; margin-bottom: 0.6em; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.01em; }
.prose h3, .prose-loose h3 { margin-top: 1.6em; margin-bottom: 0.4em; font-size: clamp(18px, 2vw, 22px); }
.prose ul, .prose ol, .prose-loose ul, .prose-loose ol { padding-left: 22px; color: var(--fg-2); max-width: 720px; }
.prose li, .prose-loose li { margin-bottom: 0.6em; line-height: 1.6; }
.prose em, .prose-loose em { color: var(--fg-3); font-style: italic; }

.prose-cta { margin-top: 48px; padding: 24px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 10px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.prose-cta p { margin: 0; flex: 1; min-width: 240px; color: var(--fg-2); font-size: 15px; }

.feature-list { list-style: none; padding: 0; margin: 1em 0 1.4em; display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.feature-list li { padding-left: 22px; position: relative; color: var(--fg-2); font-size: 16px; line-height: 1.55; }
.feature-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 500; }

/* ---------- TIMELINE ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 32px; max-width: 760px; }
.timeline > div, .timeline-row {
  display: grid; grid-template-columns: 100px 1fr; gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--border);
}
.timeline > div:last-child, .timeline-row:last-child { border-bottom: 1px solid var(--border); }
.t-year, .timeline-year { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; padding-top: 2px; }
.timeline h4 { font-family: var(--font-sans); font-size: 16px; color: var(--fg); text-transform: none; letter-spacing: -0.005em; font-weight: 500; margin-bottom: 6px; }
html.lang-ja .timeline h4 { font-family: var(--font-jp); }
.timeline p { font-size: 14px; color: var(--fg-2); margin-bottom: 0; line-height: 1.55; }
@media (max-width: 640px) {
  .timeline > div, .timeline-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
}

/* ---------- TEAM ---------- */
.team-grid-section { padding: clamp(64px, 9vw, 96px) 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
  transition: all 0.2s var(--ease);
}
.team-card:hover { border-color: var(--border-hover); }
.team-card .team-photo-img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); margin-bottom: 6px; }
.team-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 0; }
.role { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.team-card .bio { color: var(--fg-2); font-size: 14px; line-height: 1.6; margin-bottom: 0; }
.team-card .team-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); padding-top: 12px; border-top: 1px solid var(--border); margin-top: 8px; }
.team-card .team-links { display: flex; gap: 14px; margin-top: 8px; }
.team-card .team-links a { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.team-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.team-stats .stat { text-align: center; }
.team-stats .stat-num { font-family: var(--font-serif); font-size: 28px; font-weight: 500; color: var(--accent); display: block; line-height: 1; margin-bottom: 4px; }
.team-stats .stat-label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; }
.team-photo { margin-top: 56px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.team-photo img { width: 100%; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } .team-stats { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- INSIGHTS INDEX ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.ins-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: all 0.2s var(--ease);
}
.ins-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ins-card .meta { color: var(--fg-3); }
.ins-card h3 { font-size: 19px; line-height: 1.3; }
.ins-card p { font-size: 14px; color: var(--fg-2); line-height: 1.55; flex: 1; }
.ins-card .link-arrow { font-size: 12px; margin-top: auto; }
@media (max-width: 760px) { .ins-grid { grid-template-columns: 1fr; } }

.learn-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: all 0.2s var(--ease);
}
.learn-card:hover { border-color: var(--accent); }
.learn-card h3 { font-size: 17px; line-height: 1.3; }
.learn-card p { font-size: 13px; color: var(--fg-2); line-height: 1.55; flex: 1; margin: 0; }

/* ---------- FACTS TABLE (Press) ---------- */
.facts-table { display: grid; grid-template-columns: 200px 1fr; gap: 12px 32px; margin-top: 24px; padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; max-width: 880px; }
.facts-table dt { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 4px; }
.facts-table dd { margin: 0; color: var(--fg); font-size: 15px; }
.facts-table dd a { color: var(--accent); border-bottom: 1px solid var(--accent-tint); }
@media (max-width: 760px) {
  .facts-table { grid-template-columns: 1fr; gap: 4px 0; padding: 24px; }
  .facts-table dt { padding-top: 14px; border-top: 1px solid var(--border); padding-bottom: 4px; }
  .facts-table dt:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- CONTACT PAGE FORM ---------- */
.contact-form-wrap { padding: clamp(64px, 9vw, 96px) 0; }
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; }
.field input, .field textarea, .field select {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 12px 14px; color: var(--fg); font-family: var(--font-sans); font-size: 14px;
  transition: border-color 0.15s var(--ease); width: 100%;
}
html.lang-ja .field input, html.lang-ja .field textarea, html.lang-ja .field select { font-family: var(--font-jp); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.thankyou { padding: 32px; background: var(--bg-card); border: 1px solid var(--accent); border-radius: 10px; max-width: 640px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-raised); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-pad); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .brand-row { margin-bottom: 16px; }
.footer-brand p { color: var(--fg-3); font-size: 14px; line-height: 1.55; max-width: 320px; }
.footer-col h4 { margin-bottom: 16px; }
.footer-col a { display: block; color: var(--fg-2); font-size: 14px; margin-bottom: 10px; transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.ext { color: var(--fg-4); font-size: 11px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-bottom p { color: var(--fg-4); font-size: 12px; margin: 0; font-family: var(--font-mono); }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; padding: 80px 0; }
.notfound-inner { text-align: center; max-width: 560px; margin: 0 auto; padding: 0 var(--page-pad); }
.notfound .code { font-family: var(--font-mono); font-size: 14px; color: var(--accent); margin-bottom: 16px; }
.notfound h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.notfound p { color: var(--fg-2); font-size: 17px; margin-bottom: 32px; }
.notfound .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- DEFENSIVE ---------- */
[hidden] { display: none !important; }

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

/* ---------- Targeted fixes for body-emitted markup ---------- */
.team-card > img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); margin-bottom: 6px; }
.team-card .team-meta a { color: var(--accent); }

/* When .team-card uses .bio class for paragraphs */
.team-card > p, .team-card > .bio { color: var(--fg-2); font-size: 14px; line-height: 1.6; margin: 0 0 0.6em; }

/* Soft-color treatment for headlines (used in masthead .soft) */
.soft-2 { color: var(--fg-3); }

/* Make all <a class="company"> hover preserve internal anchor color */
a.company { text-decoration: none; }

/* In-text strong inside lists */
.feature-list li strong { color: var(--fg); font-weight: 500; }

/* Ensure nav-cta correctly styled when current */
.nav-cta[aria-current="page"] { background: var(--accent-tint); }

/* ---------- Section variants used in body markup ---------- */
section.companies { background: var(--bg); }
section.prose-loose.alt { background: var(--bg-raised); }

/* ============================================================
   Above-the-fold CTAs + free trial hype
   (added in marketing pass)
   ============================================================ */

/* Masthead CTA row */
.masthead-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.masthead-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}
.masthead-note a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.masthead-note a:hover {
  border-bottom-color: var(--accent);
}

/* Large two-line CTA buttons */
.btn-lg {
  padding: 14px 22px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  line-height: 1.2;
}
.btn-lg .btn-main {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.btn-lg .btn-sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  font-family: var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.01em;
}

/* Outline button variant — ghost with emerald border */
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline.btn-lg .btn-sub {
  color: var(--fg-2);
  opacity: 1;
}

/* Featured company card with free-credits badge ribbon */
.company.company-featured {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  position: relative;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
              0 8px 24px -8px color-mix(in srgb, var(--accent) 18%, transparent);
}
.company.company-featured:hover {
  border-color: var(--accent);
}
.company-badge {
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--font-mono, ui-monospace, monospace);
  text-transform: none;
  white-space: nowrap;
}

/* Bullet lists inside company cards */
.company-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: grid;
  gap: 8px;
}
.company-bullets li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  padding-left: 18px;
  position: relative;
}
.company-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}
.company-bullets li strong {
  color: var(--fg);
  font-weight: 600;
}

/* Bolder CTA on featured card */
.company-cta.company-cta-bold {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.005em;
}

/* Final CTA section before footer */
.final-cta {
  padding: 64px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.final-cta-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 8%, var(--bg-raised)),
    var(--bg-raised));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: 12px;
}
.final-cta-text .meta.accent {
  color: var(--accent);
}
.final-cta-text h3 {
  margin: 8px 0 12px;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--fg);
}
.final-cta-text p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.5;
}
.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.final-cta-actions .btn { justify-content: flex-start; }
.final-cta-actions .btn-outline {
  font-size: 13px;
  padding: 10px 18px;
  text-align: center;
  justify-content: center;
}
@media (max-width: 760px) {
  .final-cta-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }
}

/* Tighter mobile CTA stacking */
@media (max-width: 640px) {
  .masthead-cta { flex-direction: column; align-items: stretch; }
  .masthead-cta .btn-lg { width: 100%; }
}

/* Section variants used in body markup */
section.companies { background: var(--bg); }
section.prose-loose.alt { background: var(--bg-raised); }
