/* ============================================
   Headhunt.AI — Design System v2
   Light theme, emerald brand, SaaS-native
   ============================================ */

/* ---------- Language hiding (must load before content) ---------- */
.lang-en [data-lang="ja"]:not(.lang-toggle *) { display: none !important; }
.lang-ja [data-lang="en"]:not(.lang-toggle *) { display: none !important; }
html:not(.lang-en):not(.lang-ja) [data-lang] { visibility: hidden; }

/* ---------- Tokens ---------- */
:root {
    /* Neutrals */
    --bg: #ffffff;
    --bg-alt: #fafaf9;      /* warm off-white */
    --bg-muted: #f5f5f4;
    --bg-dark: #0a0a0a;     /* for inverse/footer sections */
    --bg-card: #ffffff;
    --fg: #0a0a0a;
    --fg-1: #262626;
    --fg-2: #525252;
    --fg-3: #737373;
    --fg-4: #a3a3a3;
    --fg-inverse: #ffffff;
    --border: #e7e5e4;
    --border-strong: #d6d3d1;

    /* Brand */
    --brand: #059669;           /* emerald 600 */
    --brand-hover: #047857;     /* emerald 700 */
    --brand-deep: #064e3b;      /* emerald 900 */
    --brand-soft: #ecfdf5;      /* emerald 50 */
    --brand-soft-2: #d1fae5;    /* emerald 100 */
    --brand-ring: rgba(5,150,105,0.2);

    /* Semantic */
    --danger: #dc2626;
    --warn: #d97706;
    --info: #0284c7;

    /* Type */
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

    /* Radii */
    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-pill: 999px;

    /* Shadow */
    --shadow-xs: 0 1px 2px 0 rgba(10,10,10,0.04);
    --shadow-sm: 0 1px 3px 0 rgba(10,10,10,0.06), 0 1px 2px 0 rgba(10,10,10,0.04);
    --shadow-md: 0 4px 12px -2px rgba(10,10,10,0.06), 0 2px 4px -2px rgba(10,10,10,0.04);
    --shadow-lg: 0 20px 40px -12px rgba(10,10,10,0.10), 0 8px 16px -8px rgba(10,10,10,0.06);
    --shadow-brand: 0 12px 32px -8px rgba(5,150,105,0.28);

    /* Layout */
    --max-w: 1200px;
    --max-w-narrow: 960px;
    --max-w-text: 680px;

    /* Motion */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --dur: 220ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    /* Anchor links (e.g. #cta) land 80px below viewport top so the sticky nav
       (~74px tall) doesn't cover the target heading. */
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

/* Same effect for JS-driven scrollIntoView() calls — scroll-padding-top is
   honoured by native anchor scrolling, scroll-margin-top is honoured by
   element.scrollIntoView(). Set both so both code paths land cleanly. */
:target,
#cta, #hero-jd-form, #payg-start, #faq {
    scroll-margin-top: 80px;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    text-rendering: optimizeLegibility;
}

.lang-ja body, .lang-ja h1, .lang-ja h2, .lang-ja h3, .lang-ja h4,
.lang-ja p, .lang-ja li, .lang-ja td, .lang-ja th, .lang-ja button,
.lang-ja a, .lang-ja span, .lang-ja input, .lang-ja select, .lang-ja textarea {
    font-family: var(--font-jp), var(--font-sans);
}
/* JP line-break handling */
.lang-ja h1, .lang-ja h2, .lang-ja h3, .lang-ja p, .lang-ja li,
.lang-ja .hero-sub, .lang-ja .section-sub {
    word-break: auto-phrase;
    overflow-wrap: anywhere;
    line-break: strict;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--brand-soft-2); color: var(--brand-deep); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--fg);
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-weight: 600;
}
h1 { font-size: clamp(36px, 5.5vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }

.lang-ja h1 { font-size: clamp(30px, 4.8vw, 52px); line-height: 1.25; letter-spacing: 0; }
.lang-ja h2 { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.3; letter-spacing: 0; }
.lang-ja h3 { font-size: clamp(18px, 2.3vw, 24px); line-height: 1.4; letter-spacing: 0; }

p { color: var(--fg-1); }
.lead { font-size: 19px; line-height: 1.65; color: var(--fg-1); }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0; }
.mono { font-family: var(--font-mono); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
}
.eyebrow-neutral { color: var(--fg-3); }

.brand-text { color: var(--brand); }
.brand-deep { color: var(--brand-deep); }
.underline-brand {
    background-image: linear-gradient(var(--brand), var(--brand));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 3px;
    padding-bottom: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: var(--max-w-narrow); }
.container-text { max-width: var(--max-w-text); }

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-sm { padding: 48px 0; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header h2 { margin-bottom: 16px; }
.section-header .section-sub { font-size: 18px; color: var(--fg-2); line-height: 1.65; }
.section-header .section-footnote {
    display: block;
    margin: 12px auto 0;
    max-width: 640px;
    font-size: 13px;
    color: var(--fg-3);
    line-height: 1.55;
}
.section-header .section-footnote .fn-marker {
    color: var(--fg-3);
    font-weight: 600;
    margin-right: 4px;
}
.section-sub .fn-marker {
    color: var(--brand);
    font-weight: 600;
    margin-left: 1px;
    font-size: 0.85em;
    vertical-align: super;
    line-height: 0;
}

.divider { height: 1px; background: var(--border); width: 100%; }

.bg-alt { background: var(--bg-alt); }
.bg-muted { background: var(--bg-muted); }
.bg-dark { background: var(--bg-dark); color: var(--fg-inverse); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--fg-inverse); }
.bg-dark p { color: rgba(255,255,255,0.72); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}
.btn:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }

.btn-primary {
    background: var(--brand);
    color: var(--fg-inverse);
    border-color: var(--brand);
    box-shadow: var(--shadow-xs);
}
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow-brand); }

.btn-secondary {
    background: var(--bg);
    color: var(--fg);
    border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--fg); background: var(--bg); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--fg);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-muted); }

.btn-dark { background: var(--fg); color: var(--fg-inverse); border-color: var(--fg); }
.btn-dark:hover { background: #1a1a1a; }

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

.btn-arrow::after {
    content: '→';
    font-weight: 400;
    transition: transform var(--dur) var(--ease);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Nav ---------- */
nav.site-nav {
    position: sticky; top: 0; z-index: 100;
    /* 0.92 (was 0.85) so the nav stays clean & legible when the sticky
       header sits over the dark CTA section. The blur still lets a hint
       of underlying content through for the glass effect. */
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 24px;
    gap: 24px;
}
/* Visually hidden but accessible to screen readers (WCAG 2.1) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.logo { display: flex; align-items: center; }
.logo img {
    display: block;
    width: auto;
}
.site-nav .logo img { height: 30px; }
.site-footer .logo img {
    height: 36px;
    margin-top: -4px;  /* compensate for h5 line-height leading so logo top aligns with header visible top */
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a, .nav-links > .nav-segment-group {
    color: var(--fg-1);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    transition: color var(--dur), background var(--dur);
}
.nav-links > a:hover { color: var(--fg); background: var(--bg-muted); }
.nav-links > a.active { color: var(--brand); }

.nav-segment-group {
    display: inline-flex;
    gap: 2px;
    padding: 4px !important;
    background: var(--bg-muted);
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
}
.nav-segment-group a {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--r-pill);
    color: var(--fg-2);
    white-space: nowrap;
    transition: all var(--dur);
}
.nav-segment-group a.active { background: var(--bg); color: var(--fg); box-shadow: var(--shadow-xs); }
html.seg-agency .nav-segment-group a:first-child,
html.seg-inhouse .nav-segment-group a:last-child { background: var(--bg); color: var(--fg); box-shadow: var(--shadow-xs); }
.nav-segment-group a:hover:not(.active) { color: var(--fg); }

.nav-cta { display: flex; align-items: center; gap: 8px; }

.lang-toggle {
    display: inline-flex;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 3px;
    gap: 1px;
}
.lang-toggle button {
    background: transparent;
    border: 0;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-2);
    border-radius: var(--r-pill);
    cursor: pointer;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.lang-toggle button.active { background: var(--bg); color: var(--fg); box-shadow: var(--shadow-xs); }

/* The migration tool replaces the source's two-button toggle with a single
   anchor (<a class="lang-link">) pointing to the other locale on the per-locale
   dist pages. Style it to match the pill aesthetic and — critically — keep the
   text on a single line so 日本語 doesn't wrap vertically inside the pill. */
.lang-toggle a, .lang-toggle .lang-link {
    display: inline-block;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-2);
    border-radius: var(--r-pill);
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.2;
    transition: color 0.15s ease, background 0.15s ease;
}
.lang-toggle a:hover, .lang-toggle .lang-link:hover {
    color: var(--fg);
    background: var(--bg);
}

.mobile-menu-btn { display: none; background: none; border: 1px solid var(--border); padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }

/* ---------- Announcement bar ---------- */
.announce {
    background: var(--fg);
    color: rgba(255,255,255,0.92);
    font-size: 13px;
    padding: 10px 16px;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.005em;
}
.announce a { color: var(--fg-inverse); text-decoration: underline; text-underline-offset: 3px; }
.announce-dot {
    display: inline-block; width: 6px; height: 6px;
    background: var(--brand); border-radius: 50%;
    margin-right: 8px; vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; text-align: center; }
.hero h1 {
    max-width: 960px;
    margin: 16px auto 20px;
    /* Cap at 52px (reduced from global 60px) so the title reliably wraps to
       3 lines on Surface Pro / mid-desktop viewports. The body portion after
       "Paste a JD.<br>" is "Get up to 1,000 ranked candidates and bilingual
       scout mails. In one click." (76 chars), which needs to fit in 2 wrap-
       lines within the 960px container. At 60px, each char is ~28px wide,
       producing line-overflow on the second wrap-line and an orphan
       ("click.") on a 4th line. At 52px (avg ~24px/char), per-line capacity
       is ~40 chars, comfortably fitting both halves of the natural 37/36-char
       wrap. text-wrap: balance distributes the wrap evenly and prevents
       orphan/widow words. */
    font-size: clamp(36px, 5.5vw, 52px);
    text-wrap: balance;
}
.hero-sub { font-size: clamp(17px, 1.8vw, 20px); color: var(--fg-2); line-height: 1.55; max-width: 680px; margin: 0 auto 36px; }
.lang-ja .hero-sub { line-height: 1.75; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-microproof { font-size: 13px; color: var(--fg-3); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.hero-microproof span { display: inline-flex; align-items: center; gap: 6px; }
.check-icon { color: var(--brand); flex-shrink: 0; }

.hero-visual {
    margin: 56px auto 0;
    max-width: 1100px;
    position: relative;
}
.hero-visual-frame {
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--bg);
}
.hero-visual-frame img { width: 100%; display: block; }

/* Hero demo widget (JD -> candidate list) */
.hero-demo {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr;
    gap: 24px;
    align-items: stretch;
    max-width: 1080px;
    margin: 48px auto 0;
    padding: 0 16px;
}
.demo-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 20px;
    text-align: left;
}
.demo-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.demo-card-title {
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-3);
    font-weight: 500;
}
.demo-dot {
    width: 8px; height: 8px;
    background: var(--brand);
    border-radius: 50%;
}
.demo-jd-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--fg-1);
    font-family: var(--font-mono);
    white-space: pre-wrap;
    max-height: 240px;
    overflow: hidden;
    position: relative;
}
.demo-jd-text::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
    background: linear-gradient(transparent, var(--bg));
}
.demo-arrow {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-weight: 700;
    font-size: 24px;
}
.demo-candidate {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.demo-candidate:last-child { border-bottom: none; }
.demo-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-soft-2), var(--brand-soft));
    color: var(--brand-deep);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
.demo-name { font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.3; }
.demo-role { font-size: 12px; color: var(--fg-3); line-height: 1.3; }
.demo-score {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 4px 9px;
    border-radius: var(--r-sm);
    min-width: 40px;
    text-align: center;
}

/* ---------- Proof strip ---------- */
.proof-strip {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
}
.proof-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto repeat(4, 1fr);
    gap: 32px;
    align-items: center;
}
.proof-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-3);
    max-width: 140px;
    line-height: 1.4;
}
.proof-stat { text-align: left; }
.proof-stat .n {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 400;
    color: var(--fg);
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-block;
}
.lang-ja .proof-stat .n { font-family: var(--font-display); font-weight: 600; font-size: 30px; }
.proof-stat .n-prefix, .proof-stat .n-suffix {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.proof-stat .lbl { display: block; font-size: 12px; color: var(--fg-3); margin-top: 6px; line-height: 1.4; }

/* ---------- Stat grids & big numbers ---------- */
.stat-hero {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(56px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--fg);
}
.lang-ja .stat-hero { font-family: var(--font-display); font-weight: 600; }
.stat-hero.brand-color { color: var(--brand); }

/* ---------- Cards (generic) ---------- */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    min-width: 0; /* allow grid children to shrink below min-content */
    transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.card-dark {
    background: var(--bg-dark);
    color: var(--fg-inverse);
    border-color: rgba(255,255,255,0.08);
}
.card-dark:hover { border-color: rgba(255,255,255,0.16); }

.card-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--fg-2); font-size: 15px; line-height: 1.6; }

/* ---------- Problem section (time bars) ---------- */
.time-bars { max-width: 760px; margin: 0 auto; }
.time-row {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    gap: 20px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.time-row:last-child { border-bottom: none; }
.time-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-muted);
    color: var(--fg-2);
}
.time-icon svg { width: 20px; height: 20px; }
.time-body .time-title { font-weight: 600; color: var(--fg); font-size: 16px; margin-bottom: 4px; }
.time-body .time-desc { font-size: 14px; color: var(--fg-3); }
.time-bar-wrap {
    margin-top: 10px;
    height: 8px;
    background: var(--bg-muted);
    border-radius: var(--r-pill);
    overflow: hidden;
    grid-column: 2 / 3;
}
.time-bar {
    height: 100%;
    border-radius: var(--r-pill);
}
.time-bar.red { background: #ef4444; width: 65%; }
.time-bar.amber { background: #f59e0b; width: 65%; }
.time-bar.green { background: var(--brand); width: 65%; }
.time-bar.gray { background: #a3a3a3; width: 30%; }
.time-hours { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--fg-1); text-align: right; white-space: nowrap; }

.time-callout {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-soft-2);
    border-radius: var(--r-md);
    color: var(--brand-deep);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}
.time-callout strong { color: var(--brand-deep); font-weight: 700; }

/* ---------- Grid layouts ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Modules (three features) ---------- */
.module-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--dur);
}
.module-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.module-card .module-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-3);
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}
.module-card h3 { margin-bottom: 10px; }
.module-card > p { color: var(--fg-2); font-size: 15px; flex-grow: 1; }
.module-card .module-stat {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.module-card .module-stat .big {
    font-family: var(--font-serif);
    font-size: 30px;
    color: var(--brand);
    letter-spacing: -0.02em;
}
.lang-ja .module-card .module-stat .big { font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.module-card .module-stat .caption {
    font-size: 13px;
    color: var(--fg-3);
}

/* ---------- Two-column split ---------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}
.split-text, .split-visual { min-width: 0; }
.split-text h2 { margin-bottom: 16px; }
.split-text > p { font-size: 17px; color: var(--fg-2); line-height: 1.7; margin-bottom: 24px; }
.split-visual { position: relative; }

/* ---------- Screening Guidance chips ---------- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--fg-1);
}
.chip-brand { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand-soft-2); }
.chip-amber { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.chip-muted { background: var(--bg-muted); color: var(--fg-2); border-color: var(--border); }
.chip-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; }

.guidance-sample {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--fg-1);
    white-space: pre-wrap;
    position: relative;
}
.guidance-sample::before {
    content: 'SCREENING GUIDANCE';
    position: absolute;
    top: -10px; left: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--fg-3);
    background: var(--bg);
    padding: 0 8px;
}

/* ---------- Score display ---------- */
.score-band {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.score-band:last-child { border-bottom: none; }
.score-range {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    width: 80px;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    text-align: center;
}
.score-range.green { background: var(--brand-soft); color: var(--brand-deep); }
.score-range.amber { background: #fffbeb; color: #92400e; }
.score-range.gray { background: var(--bg-muted); color: var(--fg-2); }
.score-label { font-weight: 600; font-size: 15px; color: var(--fg); }
.score-desc { font-size: 14px; color: var(--fg-3); }

/* ---------- Results (funnel lift) ---------- */
.funnel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.funnel-cell {
    background: var(--bg);
    padding: 32px 24px;
    text-align: center;
}
.funnel-cell .funnel-stage {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.funnel-cell .funnel-n {
    font-family: var(--font-serif);
    font-size: 44px;
    color: var(--brand);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 10px;
}
.lang-ja .funnel-cell .funnel-n { font-family: var(--font-display); font-weight: 700; font-size: 38px; }
.funnel-cell .funnel-desc {
    font-size: 13px;
    color: var(--fg-2);
    line-height: 1.5;
}

.caveat {
    font-size: 12.5px;
    color: var(--fg-3);
    text-align: center;
    margin-top: 16px;
    font-style: italic;
}
.lang-ja .caveat { font-style: normal; }

/* ---------- Workflow ---------- */
.flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}
.flow-step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 22px;
    text-align: center;
    position: relative;
}
.flow-num {
    display: inline-flex;
    width: 32px; height: 32px;
    background: var(--fg);
    color: var(--fg-inverse);
    border-radius: 50%;
    align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
    margin-bottom: 14px;
}
.flow-step h3, .flow-step h4 { margin-bottom: 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }

/* a11y heading-level fixes — preserve h4 visual sizing on h3s in card contexts */
.ats-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 8px; }
.contact-info-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 8px; }
.split-visual .card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
#contact-thank h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.flow-step p { font-size: 13.5px; color: var(--fg-3); margin-bottom: 10px; }
.flow-step .flow-time {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 4px 9px;
    border-radius: var(--r-sm);
    font-weight: 600;
}

/* ---------- Pricing ---------- */
.price-toggle {
    display: inline-flex;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 4px;
    margin: 0 auto 40px;
}
.price-toggle button {
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-2);
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    cursor: pointer;
    transition: all var(--dur);
}
.price-toggle button.active { background: var(--bg); color: var(--fg); box-shadow: var(--shadow-xs); }

.price-panel { margin-top: 24px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.price-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    position: relative;
    display: flex; flex-direction: column;
}
.price-card.featured {
    border: 2px solid var(--fg);
    box-shadow: var(--shadow-lg);
}
.price-card .featured-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--fg);
    color: var(--fg-inverse);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--r-pill);
}
.price-plan-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-amount .n {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
    line-height: 1;
}
.price-amount .per { font-size: 14px; color: var(--fg-3); }
.price-credits { font-size: 14px; color: var(--fg-2); margin-bottom: 4px; }
.price-per-credit { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); margin-bottom: 24px; }
.price-features {
    list-style: none;
    padding: 0; margin: 0 0 28px;
    flex-grow: 1;
}
.price-features li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px;
    color: var(--fg-1);
    padding: 8px 0;
    line-height: 1.5;
}
.price-features .check-icon { margin-top: 3px; }
.price-card .btn { width: 100%; }

/* PAYG table */
.payg-wrap { max-width: 820px; margin: 48px auto 0; }
.payg-wrap h3 { text-align: center; margin-bottom: 8px; font-size: 22px; }
.payg-wrap > p { text-align: center; color: var(--fg-3); margin-bottom: 24px; font-size: 14px; }
.payg-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.payg-table th, .payg-table td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.payg-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--fg-2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.payg-table tbody tr:last-child td { border-bottom: none; }
.payg-table tbody tr:hover { background: var(--bg-alt); }
.payg-table .price-n { font-family: var(--font-mono); font-weight: 600; color: var(--brand); }

/* Pilot banner */
.pilot-banner {
    background: linear-gradient(135deg, var(--brand-deep), #0a0a0a);
    color: var(--fg-inverse);
    border-radius: var(--r-xl);
    padding: 32px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}
.pilot-banner h3 { color: var(--fg-inverse); margin-bottom: 8px; font-size: 22px; }
.pilot-banner p { color: rgba(255,255,255,0.8); font-size: 15px; margin: 0; }
.pilot-banner .badge {
    display: inline-block;
    background: var(--brand);
    color: var(--fg-inverse);
    padding: 4px 10px;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* ---------- Japan / trust cards ---------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.trust-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    transition: all var(--dur);
}
.trust-card:hover { border-color: var(--border-strong); }
.trust-icon {
    width: 40px; height: 40px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-card h3, .trust-card h4 { font-size: 15px; margin-bottom: 6px; font-weight: 600; letter-spacing: -0.005em; }
.trust-card p { font-size: 14px; color: var(--fg-2); line-height: 1.5; }

/* ---------- CTA section ---------- */
.cta-section { background: var(--bg-dark); color: var(--fg-inverse); padding: 96px 0; }
.cta-section h2 { color: var(--fg-inverse); text-align: center; max-width: 720px; margin: 0 auto 16px; }
.cta-section .cta-sub { color: rgba(255,255,255,0.72); text-align: center; font-size: 18px; max-width: 600px; margin: 0 auto 40px; }

.lead-form {
    max-width: 540px;
    margin: 0 auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-lg);
    padding: 28px;
    backdrop-filter: blur(10px);
}
.lead-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.lead-form input, .lead-form select, .lead-form textarea {
    width: 100%;
    padding: 13px 15px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-sm);
    color: var(--fg-inverse);
    font-size: 14px;
    transition: border-color var(--dur);
}
.lead-form input::placeholder, .lead-form textarea::placeholder, .lead-form select { color: rgba(255,255,255,0.5); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(255,255,255,0.08);
}
.lead-form select option { background: var(--bg-dark); color: var(--fg-inverse); }
.lead-form .btn { width: 100%; padding: 15px; font-size: 15px; margin-top: 6px; }

.cta-badges {
    display: flex; gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.cta-badges span { display: inline-flex; align-items: center; gap: 6px; }

.cta-thank {
    display: none;
    max-width: 540px;
    margin: 0 auto;
    background: rgba(5,150,105,0.12);
    border: 1px solid rgba(5,150,105,0.3);
    border-radius: var(--r-lg);
    padding: 32px;
    text-align: center;
}
.cta-thank .check-big {
    width: 48px; height: 48px;
    background: var(--brand);
    color: var(--fg-inverse);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}

/* ---------- Related guides strip (Learn cornerstone+spoke cross-link) ---------- */
.related-guides {
    padding: 56px 0 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}
.related-guides .related-header {
    margin-bottom: 24px;
}
.related-guides .related-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.related-guides h2 {
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--fg-1);
    transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
    min-height: 132px;
}
.related-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.related-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--fg-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.related-title {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--fg);
}
.related-card:hover .related-title { color: var(--brand-deep); }
@media (max-width: 1024px) {
    .related-grid { grid-template-columns: 1fr 1fr; }
    .related-grid .related-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .related-grid { grid-template-columns: 1fr; }
    .related-grid .related-card:last-child { grid-column: auto; }
    .related-card { min-height: auto; }
}

/* ---------- Footer ---------- */
footer.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
}
.footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    /* Brand col + 4 link cols (Platform, Learn, Insights, Company) */
    grid-template-columns: 2fr 1fr 1.15fr 1.15fr 1.15fr;
    gap: 40px;
    margin-bottom: 40px;
}
/* Below 1100px, drop brand col to its own row and tighten link col gap */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 32px;
    }
    .footer-grid > .footer-col:first-child {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }
}
.footer-col h2 {
    /* Footer column headings — kept small/uppercase visually but semantically h2
       (the <footer> landmark is its own region; headings restart at h2). */
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-3);
    margin-bottom: 14px;
    margin-top: 0;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--fg-1);
    padding: 9px 0;
    transition: color var(--dur);
}
.footer-col a:hover { color: var(--brand); }
.footer-col p { font-size: 13.5px; color: var(--fg-3); line-height: 1.6; margin-top: 14px; max-width: 340px; }
.footer-regulatory {
    max-width: var(--max-w);
    margin: 28px auto 0;
    padding: 18px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-muted);
    border-radius: var(--r-sm);
    font-size: 12.5px;
    color: var(--fg-3);
    line-height: 1.65;
}
.footer-regulatory p { margin: 0; }
.footer-regulatory strong { color: var(--fg-2); font-weight: 600; }
.footer-regulatory em { font-style: normal; color: var(--fg-3); opacity: 0.8; }
.footer-regulatory a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.footer-regulatory a:hover { text-decoration-color: var(--fg-2); }
.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 24px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: var(--fg-3);
}
.footer-bottom a { color: var(--fg-3); }
.footer-bottom a:hover { color: var(--fg-1); }

/* ---------- Logo marquee (optional trust strip) ---------- */
.logo-strip {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.logo-strip-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}
.logo-strip .label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--fg-3);
    letter-spacing: 0.1em;
}
.logo-strip .names {
    display: flex; gap: 36px;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--fg-2);
    opacity: 0.85;
}

/* ---------- Content pages (about, privacy, etc.) ---------- */
.page-hero {
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 680px; margin: 0 auto; color: var(--fg-2); }

.prose { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.75; color: var(--fg-1); }
.prose h2 { margin: 40px 0 16px; font-size: 26px; }
.prose h3 { margin: 28px 0 12px; font-size: 20px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--brand-hover); }
.prose strong { color: var(--fg); font-weight: 600; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid-4, .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .funnel-grid, .price-grid, .flow { grid-template-columns: repeat(2, 1fr); }
    .split, .grid-2, .hero-demo, .pilot-banner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .demo-arrow { transform: rotate(90deg); }
    .proof-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .proof-label { grid-column: 1 / -1; text-align: center; max-width: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    /* Mobile navigation — full-width dropdown panel */
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: var(--r-sm);
        cursor: pointer;
        padding: 0;
        color: var(--fg);
    }
    .mobile-menu-btn:active { background: var(--bg-muted); }
    .mobile-menu-btn .icon-close { display: none; }
    .mobile-menu-btn[aria-expanded="true"] .icon-open { display: none; }
    .mobile-menu-btn[aria-expanded="true"] .icon-close { display: inline-flex; }

    /* Hide desktop nav by default */
    .nav-links {
        display: none;
    }
    /* When open, flip into a column panel below the nav bar */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px 20px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }

    /* Segment toggle → full-width pill, large tap targets */
    .nav-links.open .nav-segment-group {
        display: flex;
        width: 100%;
        margin: 8px 0 12px;
        padding: 4px !important;
    }
    .nav-links.open .nav-segment-group a {
        flex: 1;
        text-align: center;
        padding: 12px 12px;
        font-size: 14px;
    }

    /* Plain nav links as generous full-width taps */
    .nav-links.open > a {
        display: block;
        padding: 14px 12px;
        font-size: 15px;
        font-weight: 500;
        border-radius: var(--r-sm);
        color: var(--fg-1);
    }
    .nav-links.open > a:active { background: var(--bg-muted); }

    /* CTA group stacks vertically, full width */
    .nav-links.open .nav-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }
    .nav-links.open .nav-cta .btn {
        width: 100%;
        padding: 14px 18px;
        font-size: 15px;
        justify-content: center;
    }

    /* Lang toggle sits at the bottom, centered */
    .nav-links.open .lang-toggle {
        align-self: center;
        margin-top: 14px;
    }
    .nav-links.open .lang-toggle button {
        padding: 12px 22px;
        font-size: 13px;
    }
    .nav-links.open .lang-toggle a,
    .nav-links.open .lang-toggle .lang-link {
        padding: 12px 22px;
        font-size: 13px;
    }

    /* Prevent body scroll while the menu is open */
    body.nav-open { overflow: hidden; }

    /* Hide desktop segment-group before hamburger is pressed */
    .nav-inner > .nav-links > .nav-segment-group { display: none; }
    .nav-links.open > .nav-segment-group { display: flex; }

    /* Ensure nav stays above announce bar dropdown overlap */
    nav.site-nav { position: sticky; top: 0; z-index: 100; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-tight { padding: 48px 0; }
    .container { padding: 0 20px; }

    .grid-3, .grid-4, .grid-2, .funnel-grid, .price-grid, .flow, .trust-grid { grid-template-columns: minmax(0, 1fr); }

    .hero { padding: 48px 0 40px; }
    .proof-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
    .pilot-banner { padding: 28px 24px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    /* Narrow-screen fixes */
    h1 { font-size: clamp(32px, 8.5vw, 48px); line-height: 1.1; }
    .lang-ja h1 { font-size: clamp(26px, 7vw, 40px); line-height: 1.3; }

    /* Hero demo widget — ensure it fits narrow screens */
    .hero-demo { padding: 0 4px; gap: 16px; }
    .demo-card { padding: 16px; min-width: 0; }
    .demo-jd-text { font-size: 12px; }
    .demo-candidate { gap: 10px; padding: 8px 0; }
    .demo-avatar { width: 32px; height: 32px; font-size: 12px; }
    .demo-name { font-size: 13px; }
    .demo-role { font-size: 11px; }
    .demo-score { font-size: 13px; padding: 3px 7px; min-width: 34px; }

    /* Ensure grid children never overflow their column on narrow screens */
    .grid-2 > *, .grid-3 > *, .grid-4 > *,
    .funnel-grid > *, .price-grid > *, .flow > *,
    .trust-grid > *, .ats-grid > * { min-width: 0; overflow-wrap: anywhere; }

    /* Hyphenated all-caps labels need a break opportunity */
    .card-num, .module-num { overflow-wrap: anywhere; word-break: break-word; }

    /* Announcement bar — comfortable on narrow screens */
    .announce { font-size: 12px; padding: 10px 14px; line-height: 1.5; }
    .announce a { display: inline-block; padding: 2px 4px; }

    /* Pricing toggle — full width so the tap targets are big */
    .price-toggle { display: flex; width: 100%; max-width: 360px; }
    .price-toggle button { flex: 1; }

    /* Pricing cards — more breathable vertical rhythm */
    .price-card { padding: 28px 22px; }

    /* PAYG table — allow horizontal scroll as a last resort if content won't compress */
    .payg-wrap { margin-top: 36px; }
    .payg-table { font-size: 13px; }
    .payg-table th, .payg-table td { padding: 10px 12px; }

    /* Time allocation bars — compact */
    .time-row { grid-template-columns: 32px 1fr 54px; gap: 14px; padding: 14px 0; }
    .time-icon { width: 32px; height: 32px; }
    .time-icon svg { width: 16px; height: 16px; }
    .time-body .time-title { font-size: 15px; }
    .time-body .time-desc { font-size: 13px; }
    .time-hours { font-size: 13px; }

    /* Page hero sections */
    .page-hero { padding: 56px 0 40px; }

    /* Workflow steps — reduce vertical whitespace */
    .flow-step { padding: 22px 18px; }

    /* CTA section form padding */
    .cta-section { padding: 72px 0; }
    .lead-form { padding: 22px; }
    .lead-form .form-row { grid-template-columns: 1fr; gap: 10px; }

    /* Pilot banner stacks cleanly */
    .pilot-banner { grid-template-columns: 1fr; text-align: left; }
    .pilot-banner > a { justify-self: flex-start; }

    /* Footer — left align bottom items on small screens */
    .footer-bottom > * { font-size: 12px; }
}

@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .nav-inner { padding: 12px 16px; gap: 12px; }
    .logo img { width: auto; }
    .site-nav .logo img { height: 26px; }
    .site-footer .logo img { height: 32px; }

    h1 { font-size: clamp(28px, 9vw, 40px); }
    .lang-ja h1 { font-size: clamp(22px, 7.5vw, 34px); }

    .hero-sub, .lang-ja .hero-sub { font-size: 16px; }
    .hero-microproof { gap: 10px 16px; font-size: 12px; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; }

    .pilot-banner { padding: 24px 20px; }
    .pilot-banner h3 { font-size: 19px; }

    /* Announcement bar — allow link to wrap to a new line on very narrow screens */
    .announce { font-size: 11.5px; }
    .announce a { display: inline-block; margin-top: 2px; }

    /* Any button in normal flow (not nav / not hero CTA — those stack full-width already)
       should wrap rather than force horizontal overflow when the label is long */
    .btn {
        white-space: normal;
        max-width: 100%;
        text-align: left;
        padding: 12px 18px;
    }
    /* Keep nav-bar buttons compact and single-line */
    .nav-cta .btn, .lang-toggle button { white-space: nowrap; }
}

/* ---------- Scroll animation (subtle) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================
   V2 — Self-serve purchase flow additions
   ============================================ */

/* Billing cycle toggle refinement */
.price-toggle .save-chip {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border-radius: var(--r-xs);
    letter-spacing: 0.02em;
}

/* Tax disclosure line under every price */
.tax-note {
    font-size: 11px;
    color: var(--fg-3);
    margin-top: 4px;
    letter-spacing: 0.01em;
}

/* Featured badge — brand color instead of black for V2 */
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-brand); }
.price-card.featured .featured-badge { background: var(--brand); color: var(--fg-inverse); }

/* Secondary CTA row under each pricing card (e.g., "not sure? talk to us") */
.price-card-sub {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--fg-3);
}
.price-card-sub a { color: var(--brand); text-decoration: none; font-weight: 500; }
.price-card-sub a:hover { text-decoration: underline; }

/* PAYG — card grid replacing the table */
.payg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1120px;
    margin: 36px auto 0;
}
.payg-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.payg-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.payg-card .size {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
    line-height: 1;
}
.payg-card .size .unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-3);
    margin-left: 4px;
}
.payg-card .price-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}
.payg-card .price-line .big {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--fg);
}
.payg-card .price-line .per {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-3);
}
.payg-card .perk {
    font-size: 12px;
    color: var(--fg-3);
    min-height: 32px;
    margin-bottom: 4px;
}
.payg-card.popular {
    border-color: var(--brand);
    background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 80%);
}
.payg-card.popular .pop-badge {
    display: inline-block;
    background: var(--brand);
    color: var(--fg-inverse);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: var(--r-xs);
    text-transform: uppercase;
    margin-bottom: 4px;
    align-self: flex-start;
}
.payg-card .btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

/* PAYG header */
.payg-wrap-v2 { max-width: 1120px; margin: 64px auto 0; }
.payg-wrap-v2 > .payg-head { text-align: center; margin-bottom: 4px; }
.payg-wrap-v2 > .payg-head h3 { font-size: 24px; margin-bottom: 8px; }
.payg-wrap-v2 > .payg-head p { color: var(--fg-2); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* Trust strip — Stripe + tax + invoice signals */
.trust-strip {
    margin: 56px auto 0;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.trust-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 13px;
    color: var(--fg-1);
    text-align: center;
    min-height: 58px;
}
.trust-pill .t-icon {
    width: 18px; height: 18px;
    color: var(--brand);
    flex-shrink: 0;
}
.trust-pill strong { color: var(--fg); font-weight: 600; }

/* FAQ accordion */
.faq-section { padding: 96px 0 72px; background: var(--bg); }
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-list { margin-top: 32px; }
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
}
.faq-item[open] { background: var(--bg-alt); border-radius: var(--r-md); padding: 4px 16px; margin: 4px -16px; border-bottom: 1px solid transparent; }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    list-style: none;
    gap: 16px;
    line-height: 1.45;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: '';
    width: 14px; height: 14px;
    border-right: 2px solid var(--fg-3);
    border-bottom: 2px solid var(--fg-3);
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 200ms var(--ease);
    flex-shrink: 0;
    margin-right: 4px;
    margin-top: -4px;
}
.faq-item[open] .faq-q::after { transform: rotate(-135deg); margin-top: 2px; }
.faq-a {
    padding: 0 0 20px;
    color: var(--fg-2);
    line-height: 1.7;
    font-size: 15px;
}
.faq-a p + p { margin-top: 10px; }

/* Tokusho (特定商取引法) page styles */
.tokusho-wrap { max-width: 820px; margin: 0 auto; padding: 48px 16px 96px; }
.tokusho-wrap h1 { margin-bottom: 8px; }
.tokusho-wrap .tokusho-sub { color: var(--fg-3); font-size: 14px; margin-bottom: 40px; }
.tokusho-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.tokusho-table tr { border-bottom: 1px solid var(--border); }
.tokusho-table tr:last-child td { border-bottom: none; }
.tokusho-table th, .tokusho-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.7;
    border-bottom: 1px solid var(--border);
}
.tokusho-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--fg);
    width: 220px;
    white-space: nowrap;
}
.tokusho-table tr:last-child th, .tokusho-table tr:last-child td { border-bottom: none; }
.tokusho-table td code {
    font-family: var(--font-mono);
    background: var(--bg-muted);
    padding: 2px 6px;
    border-radius: var(--r-xs);
    font-size: 13px;
}

/* Pricing page standalone header */
.pricing-hero {
    padding: 72px 0 24px;
    text-align: center;
    background: var(--bg);
}
.pricing-hero .eyebrow { margin: 0 auto 12px; display: inline-block; }
.pricing-hero h1 { margin-bottom: 14px; }
.pricing-hero p { color: var(--fg-2); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* Responsive */
@media (max-width: 1024px) {
    .payg-cards { grid-template-columns: repeat(2, 1fr); }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .payg-cards { grid-template-columns: 1fr; }
    .trust-strip { grid-template-columns: 1fr; gap: 10px; }
    .tokusho-table th, .tokusho-table td { display: block; width: 100%; padding: 12px 16px; }
    .tokusho-table th { border-bottom: none; padding-bottom: 4px; font-size: 13px; color: var(--fg-3); }
    .tokusho-table td { padding-top: 0; }
    .faq-q { font-size: 15px; padding: 16px 0; }
    .faq-a { font-size: 14px; }
    .payg-wrap-v2 > .payg-head h3 { font-size: 20px; }
}

/* Signup-link buttons (visual marker, same as existing btn but tracked) */
[data-signup-link] { cursor: pointer; }

/* ============================================
   V2 — Interactive hero JD form + ready strip
   ============================================ */

/* Hero JD input */
.hero-jd-form {
    margin: 32px auto 14px;
    max-width: 620px;
    border: 2px solid var(--brand);
    border-radius: var(--r-lg);
    padding: 18px 20px 16px;
    background: var(--bg);
    box-shadow: var(--shadow-brand);
    transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    text-align: left;
    position: relative;
}
.hero-jd-form:focus-within {
    box-shadow: 0 16px 40px -8px rgba(5,150,105,0.35);
    border-color: var(--brand-hover);
}
.hero-jd-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand-deep);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}
.hero-jd-textarea {
    width: 100%;
    min-height: 110px;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--fg);
    resize: vertical;
    padding: 0;
}
.lang-ja .hero-jd-textarea {
    font-family: var(--font-jp), var(--font-sans);
    font-size: 14.5px;
}
.hero-jd-textarea::placeholder {
    color: var(--fg-4);
    font-style: italic;
}
.hero-jd-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}
.hero-jd-note {
    font-size: 12.5px;
    color: var(--fg-3);
    line-height: 1.5;
    margin: 0;
    max-width: 340px;
}
.hero-jd-note strong {
    color: var(--brand-deep);
    font-weight: 700;
}
.hero-jd-foot .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============================================
   Hero arrow — hand-drawn callout that points at the
   JD textarea on first load. Desktop only; hidden below
   1100px because there's no horizontal room left of the
   form. The label fades in early; the arrow draws itself
   over ~1.4s; the arrowhead pops in last.

   EN uses Caveat (semi-cursive Latin handwriting); JA uses
   Yomogi (casual Japanese handwriting). Both rotated for
   the "personal note in the margin" feel.
   ============================================ */
.hero-arrow {
    position: absolute;
    top: -22px;
    right: 100%;
    width: 200px;
    height: 240px;
    margin-right: 12px;
    color: var(--brand);
    pointer-events: none;
    z-index: 2;
}
.hero-arrow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.hero-arrow-stroke {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: hero-arrow-draw 2s 0.7s linear forwards;
}
.hero-arrow-label {
    position: absolute;
    top: 0;
    right: 0;
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-deep);
    transform: rotate(-7deg);
    transform-origin: right center;
    white-space: nowrap;
    opacity: 0;
    animation: hero-arrow-fade 0.5s 0.4s var(--ease) forwards;
    z-index: 3;
}
.lang-ja .hero-arrow-label {
    font-family: 'Yomogi', 'Hiragino Maru Gothic ProN', var(--font-jp), sans-serif;
    font-weight: 400;
    font-size: 22px;
    transform: rotate(-6deg);
}

@keyframes hero-arrow-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes hero-arrow-fade {
    to { opacity: 1; }
}

/* No room for the arrow at narrower viewports — and on mobile
   it would just clutter the limited space. Desktop-only feature. */
@media (max-width: 1100px) {
    .hero-arrow { display: none; }
}

/* Respect reduced-motion preferences: show end-state immediately. */
@media (prefers-reduced-motion: reduce) {
    .hero-arrow-stroke,
    .hero-arrow-label {
        animation: none;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Hero secondary links row */
.hero-secondary-links {
    text-align: center;
    margin: 0 auto 28px;
    font-size: 13px;
    color: var(--fg-3);
    max-width: 620px;
}
.hero-secondary-links .sec-link {
    color: var(--brand);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.hero-secondary-links .sec-link:hover {
    text-decoration: underline;
}

/* Ready-to-try bridge strip */
.ready-strip {
    padding: 72px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.ready-strip .ready-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.ready-strip h2 {
    margin-bottom: 8px;
    font-size: 28px;
}
.ready-strip p {
    font-size: 16px;
    color: var(--fg-2);
    margin: 0;
    max-width: 540px;
}
.ready-strip .ready-ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 860px) {
    .hero-jd-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .hero-jd-note {
        max-width: none;
    }
    .hero-jd-foot .btn {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .ready-strip .ready-inner {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 20px;
    }
    .ready-strip .ready-ctas {
        flex-direction: column;
    }
    .ready-strip .ready-ctas .btn {
        width: 100%;
    }
}
@media (max-width: 640px) {
    .hero-jd-form { padding: 14px 16px 14px; margin-top: 24px; }
    .hero-jd-textarea { min-height: 90px; font-size: 14.5px; }
    .hero-secondary-links { font-size: 12px; line-height: 1.8; }
}

/* ============================================
   iOS Safari no-zoom fix
   
   On iPhones, Safari auto-zooms the page when a user taps a text
   input/textarea/select with font-size < 16px. Forces ≥16px on all
   user-editable form controls at mobile widths to prevent this.
   !important needed to override inline styles on lead-form elements.
   ============================================ */
@media (max-width: 768px) {
    .hero-jd-textarea,
    .lead-form input,
    .lead-form select,
    .lead-form textarea,
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* PAYG jump link — "Just need a few searches?" strip above the subscription grid.
   Catches small buyers before they see intimidating monthly prices and scroll-bounces them
   straight to the ¥15,000 entry point. Understated by design — doesn't compete with
   the main price grid, but clearly visible. */
.payg-jump {
    text-align: center;
    margin: 0 auto 36px;
    padding: 12px 20px;
    background: var(--brand-soft);
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: var(--r-md);
    font-size: 14px;
    color: var(--fg-2);
    max-width: 720px;
}
.payg-jump a {
    color: var(--brand-deep);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(5, 150, 105, 0.35);
}
.payg-jump a:hover {
    border-bottom-color: var(--brand);
}

/* Highlight the entry-point PAYG card when it's the anchor target */
.payg-card#payg-start:target {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

@media (max-width: 640px) {
    .payg-jump {
        font-size: 13px;
        padding: 10px 14px;
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* ============================================
   PAYG custom-amount slider — ZeroBounce-style
   lets users pick any amount between 100 and 10,000 credits
   with dynamic per-credit pricing that drops at 2,000
   ============================================ */
.payg-custom {
    max-width: 680px;
    margin: 32px auto 0;
    padding: 28px 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    text-align: center;
}
.payg-custom-head h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--fg);
}
.payg-custom-head p {
    color: var(--fg-3);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 auto 24px;
    max-width: 520px;
}

.slider-display {
    margin: 0 0 20px;
}
.slider-display .slider-credits {
    font-size: 13px;
    color: var(--fg-3);
    margin-bottom: 4px;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
.slider-display .slider-credits .n {
    font-size: 24px;
    color: var(--fg);
    font-weight: 700;
    margin-right: 6px;
}
.slider-display .slider-price {
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 4px;
}
.slider-display .slider-price .big {
    font-size: 40px;
    color: var(--brand-deep);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.slider-display .slider-price .per {
    font-size: 12px;
    color: var(--fg-3);
    margin-left: 6px;
    font-weight: 400;
    font-family: var(--font-sans);
}
.slider-display .slider-rate {
    font-size: 12px;
    color: var(--brand-deep);
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Slider control itself */
.slider-wrap {
    padding: 0 4px;
    margin-bottom: 24px;
}
.payg-custom input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    background: var(--border);
    cursor: pointer;
    transition: background 0.1s linear;
}
.payg-custom input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--brand), 0 3px 8px rgba(5,150,105,0.35);
    transition: transform var(--dur) var(--ease);
}
.payg-custom input[type="range"]::-webkit-slider-thumb:hover,
.payg-custom input[type="range"]:focus::-webkit-slider-thumb {
    transform: scale(1.12);
}
.payg-custom input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--brand), 0 3px 8px rgba(5,150,105,0.35);
}
.payg-custom input[type="range"]:focus {
    box-shadow: 0 0 0 3px rgba(5,150,105,0.2);
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 11px;
    color: var(--fg-3);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
.slider-marks .mark-break {
    color: var(--brand-deep);
    font-weight: 500;
}

.payg-custom .btn {
    min-width: 240px;
}

/* Mobile */
@media (max-width: 640px) {
    .payg-custom {
        padding: 22px 18px;
        margin-left: 16px;
        margin-right: 16px;
    }
    .slider-display .slider-price .big { font-size: 32px; }
    .slider-display .slider-credits .n { font-size: 20px; }
    .slider-marks { font-size: 10px; }
    .slider-marks .mark-break { font-size: 10.5px; }
    .payg-custom .btn { width: 100%; min-width: 0; }
}

/* =========================================================
   INSIGHTS — Editorial hub & long-form article system
   Inherits brand tokens. Self-contained namespace below.
   ========================================================= */

/* ---------- Hub ---------- */
.insights-hero {
    padding: 64px 0 32px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.insights-hero + .section { padding-top: 64px; }
.insights-hero h1 { margin-bottom: 18px; }
.insights-hero h1 .nowrap { display: inline-block; white-space: nowrap; }
.insights-hero .lead { max-width: 720px; margin: 0 auto; color: var(--fg-2); }
.insights-hero .insights-meta {
    margin-top: 26px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-3);
    letter-spacing: 0.04em;
}
.insights-hero .insights-meta span {
    padding: 5px 10px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    text-transform: uppercase;
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
@media (max-width: 880px) { .insights-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Featured card — first article */
.insight-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px;
    transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.insight-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.insight-card::before {
    /* subtle brand accent stripe at top */
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-deep) 100%);
    opacity: 0;
    transition: opacity var(--dur);
}
.insight-card:hover::before { opacity: 1; }

.insight-card.is-featured {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 60%);
    border-color: var(--brand-soft-2);
    padding: 40px 36px;
}
.insight-card.is-featured::before { opacity: 1; }

.insight-card .insight-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.insight-card .insight-meta .pill {
    padding: 4px 9px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border-radius: var(--r-pill);
    font-weight: 600;
    letter-spacing: 0.06em;
}
.insight-card .insight-meta .dot {
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--fg-4);
    display: inline-block;
}

.insight-card h2,
.insight-card h3 {
    color: var(--fg);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.insight-card.is-featured h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 16px;
}
.lang-ja .insight-card.is-featured h2 { font-family: var(--font-display); font-weight: 600; }

.insight-card h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}

.insight-card .insight-dek {
    color: var(--fg-2);
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.insight-card.is-featured .insight-dek {
    font-size: 17px;
    max-width: 640px;
}

.insight-card .insight-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 18px;
    align-self: flex-start;
}
.insight-card.is-featured .insight-stat {
    background: var(--bg);
    border-color: var(--brand-soft-2);
}
.insight-card .insight-stat .num {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--brand);
    line-height: 1;
    font-weight: 400;
    white-space: nowrap;
}
.lang-ja .insight-card .insight-stat .num { font-family: var(--font-display); font-weight: 600; }
.insight-card .insight-stat .lbl {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.insight-card .insight-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
}
.insight-card .insight-cta::after {
    content: '→';
    transition: transform var(--dur) var(--ease);
}
.insight-card:hover .insight-cta::after { transform: translateX(3px); }

.insight-card .insight-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--fg-3);
}
.insight-card .insight-author img {
    width: 28px; height: 28px; border-radius: 50%;
    object-fit: cover;
}
.insight-card .insight-author strong { color: var(--fg-1); font-weight: 600; }

/* ---------- Article (single insight) ---------- */
.article-page { background: var(--bg); }

.article-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.article-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--fg-3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.article-hero .breadcrumb a { color: var(--fg-3); transition: color var(--dur); }
.article-hero .breadcrumb a:hover { color: var(--brand); }
.article-hero .breadcrumb .sep { color: var(--fg-4); }

.article-hero .eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.article-hero .eyebrow-row .pill {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 11px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border-radius: var(--r-pill);
}
.article-hero .eyebrow-row .pill-neutral {
    background: var(--bg-muted);
    color: var(--fg-2);
    border: 1px solid var(--border);
}

.article-hero h1 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-size: clamp(40px, 6vw, 68px);
    color: var(--fg);
    max-width: 18ch;
    margin-bottom: 22px;
}
.lang-ja .article-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    font-size: clamp(30px, 5vw, 52px);
    max-width: none;
}

.article-hero .article-dek {
    font-size: 20px;
    line-height: 1.55;
    color: var(--fg-2);
    max-width: 720px;
    margin-bottom: 30px;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.article-byline img {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    border: 1px solid var(--border);
}
.article-byline .byline-meta { display: flex; flex-direction: column; gap: 2px; }
.article-byline .by {
    font-size: 14px; color: var(--fg-1); font-weight: 600;
}
.article-byline .role {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.article-byline .by-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--fg-3);
}
.article-byline .by-meta span { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 640px) {
    .article-byline { flex-wrap: wrap; }
    .article-byline .by-meta { margin-left: 0; width: 100%; padding-top: 8px; border-top: 1px solid var(--border); }
}

/* Sticky-ish actions row */
.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 8px;
}
.article-actions .actions-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--fg-1);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all var(--dur);
    text-decoration: none;
    font-family: inherit;
}
.share-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}
.share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.share-btn.copied { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }
.article-actions .download-btn {
    margin-left: auto;
}
@media (max-width: 720px) {
    .article-actions .download-btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* ---------- Cover-art download (top-of-article PDF CTA) ----------
   Replaces the bland "Download PDF" pill with a tactile card showing the
   actual briefing cover. Locale-aware via the EN/JA anchors (data-lang). */
.cover-download {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 14px 8px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--fg);
    margin-left: auto;
    position: relative;
    max-width: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.cover-download:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -10px rgba(15, 60, 35, 0.22), 0 2px 6px rgba(0, 0, 0, 0.05);
    background-color: var(--bg-soft, #fafaf7);
}
.cover-download-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 68px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--bg-alt);
    box-shadow:
        0 4px 10px -2px rgba(0, 0, 0, 0.18),
        0 1px 2px rgba(0, 0, 0, 0.10),
        inset 1px 0 0 rgba(255, 255, 255, 0.5),
        inset -1px 0 0 rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.5, 1), box-shadow 0.3s ease;
    transform-origin: bottom center;
}
.cover-download:hover .cover-download-thumb {
    transform: translateY(-3px) rotate(-2.5deg);
    box-shadow:
        0 12px 22px -4px rgba(0, 0, 0, 0.26),
        0 3px 6px rgba(0, 0, 0, 0.12),
        inset 1px 0 0 rgba(255, 255, 255, 0.6),
        inset -1px 0 0 rgba(0, 0, 0, 0.05);
}
.cover-download-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cover-download-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
    text-align: left;
}
.cover-download-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.25;
    letter-spacing: -0.005em;
    transition: color 0.2s ease;
}
.cover-download:hover .cover-download-title { color: var(--brand-deep); }
.cover-download-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.04em;
    line-height: 1.3;
}
.cover-download-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--fg-2);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}
.cover-download-icon svg { width: 15px; height: 15px; transition: transform 0.3s ease; }
.cover-download:hover .cover-download-icon {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.cover-download:hover .cover-download-icon svg { animation: cover-download-bounce 0.6s ease; }
@keyframes cover-download-bounce {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(3px); }
    70% { transform: translateY(-1px); }
}
.cover-download:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .cover-download {
        margin-left: 0;
        width: 100%;
        max-width: none;
    }
}
@media (max-width: 420px) {
    .cover-download { gap: 12px; padding: 6px 12px 6px 6px; }
    .cover-download-thumb { width: 42px; height: 60px; }
    .cover-download-icon { width: 30px; height: 30px; }
    .cover-download-title { font-size: 13px; }
    .cover-download-meta { font-size: 10.5px; }
}

/* ---------- Article body ---------- */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 48px;
    font-size: 17.5px;
    line-height: 1.72;
    color: var(--fg-1);
}
.lang-ja .article-body { font-size: 16px; line-height: 1.85; }

.article-body > * + * { margin-top: 1.1em; }

.article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.4vw, 34px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 56px 0 18px;
    color: var(--fg);
    scroll-margin-top: 80px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h2 .num {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--brand);
    letter-spacing: 0.06em;
    margin-right: 12px;
    vertical-align: 0.18em;
}
.article-body h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 36px 0 12px;
    color: var(--fg);
}
.article-body p { margin-bottom: 18px; }
.article-body p strong { color: var(--fg); font-weight: 600; }
.article-body p em { font-style: italic; color: var(--fg-1); }

.article-body a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: rgba(5,150,105,0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--dur);
}
.article-body a:hover { text-decoration-color: var(--brand); }

/* Buttons inside the article body (e.g. .inline-cta CTAs) must NOT inherit
   the article-body link styles — otherwise we get green text on a green
   background and a stray underline. Restore the proper button surfaces. */
.article-body a.btn { text-decoration: none; }
.article-body a.btn:hover { text-decoration: none; }
.article-body a.btn-primary,
.article-body a.btn-dark { color: var(--fg-inverse); }
.article-body a.btn-primary:hover,
.article-body a.btn-dark:hover { color: var(--fg-inverse); }
.article-body a.btn-secondary { color: var(--fg); }
.article-body a.btn-ghost { color: var(--fg); }

.article-body ul, .article-body ol { margin: 0 0 22px 1.4em; }
.article-body li { margin-bottom: 8px; }
.article-body ul li::marker { color: var(--brand); }

.article-body blockquote {
    border-left: 3px solid var(--brand);
    padding: 6px 0 6px 22px;
    margin: 28px 0;
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--fg);
    letter-spacing: -0.005em;
}
.lang-ja .article-body blockquote {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 19px;
    letter-spacing: 0;
}
.article-body blockquote p { margin: 0; }
.article-body blockquote cite {
    display: block;
    margin-top: 12px;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 12px;
    color: var(--fg-3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* "Stat block" — a piece of inline data */
.article-body .stat-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
    padding: 24px 22px;
    margin: 32px 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.article-body .stat-block .stat-cell .num {
    display: block;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 38px);
    color: var(--brand);
    line-height: 1;
    letter-spacing: -0.02em;
}
.lang-ja .article-body .stat-block .stat-cell .num { font-family: var(--font-display); font-weight: 700; }
.article-body .stat-block .stat-cell .num { white-space: nowrap; }
.article-body .stat-block .stat-cell .num .unit { font-size: 0.6em; font-weight: inherit; letter-spacing: 0; margin-left: 0.04em; }
.article-body .stat-block .stat-cell .lbl {
    display: block;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Editorial callout ("aside") */
.article-body .callout {
    padding: 22px 24px;
    margin: 30px 0;
    background: var(--brand-soft);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}
.article-body .callout .callout-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-deep);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.article-body .callout p { margin-bottom: 0; color: var(--fg-1); }
.article-body .callout p + p { margin-top: 10px; }

/* Data table inside article */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 14.5px;
}
.article-body table th,
.article-body table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}
.article-body table th {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-strong);
}
.article-body table tr:last-child td { border-bottom: none; }
.article-body table .num-cell { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--fg); }
.article-body table .delta-pos { color: var(--brand); font-weight: 600; }
.article-body table .delta-neg { color: var(--danger); font-weight: 600; }

/* Tighten article tables on narrow viewports so 4-column tables don't overflow.
   Without this, the 8-stage / maturity tables push content past the right edge. */
@media (max-width: 640px) {
    .article-body table { font-size: 13px; }
    .article-body table th,
    .article-body table td { padding: 9px 8px; }
    .article-body table th { font-size: 10px; letter-spacing: 0.04em; }
}

/* Numbered "list of points" — used heavily in briefings */
.article-body .points-list { list-style: none; margin: 24px 0; padding: 0; counter-reset: pl; }
.article-body .points-list > li {
    position: relative;
    padding: 18px 0 18px 56px;
    border-top: 1px solid var(--border);
    counter-increment: pl;
}
.article-body .points-list > li:last-child { border-bottom: 1px solid var(--border); }
.article-body .points-list > li::before {
    content: counter(pl, decimal-leading-zero);
    position: absolute;
    left: 0; top: 18px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.04em;
}
.article-body .points-list > li strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    color: var(--fg);
    font-weight: 600;
}
/* In-paragraph emphasis inside a points-list item should remain inline,
   not inherit the block treatment used for the item's leading title. */
.article-body .points-list > li p strong {
    display: inline;
    margin: 0;
    font-size: inherit;
    color: inherit;
    font-weight: 700;
}
.article-body .points-list > li p { font-size: 15px; color: var(--fg-2); margin: 0; }

/* "Pull number" — large standalone hero number used inside an article */
.article-body .pull-number {
    margin: 36px 0;
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-dark);
    color: var(--fg-inverse);
    border-radius: var(--r-lg);
}
.article-body .pull-number .n {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(40px, 10vw, 96px);
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.lang-ja .article-body .pull-number .n { font-family: var(--font-display); font-weight: 700; }
.article-body .pull-number .lbl {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Q&A block — for "common pushback" sections */
.article-body .qa-block {
    margin: 30px 0;
    padding: 0;
}
.article-body .qa-block .qa-q {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 19px;
    line-height: 1.4;
    color: var(--fg);
    margin: 0 0 12px;
    font-weight: 400;
}
.lang-ja .article-body .qa-block .qa-q { font-family: var(--font-display); font-weight: 600; font-style: normal; font-size: 17px; }
.article-body .qa-block .qa-a { font-size: 16px; line-height: 1.7; color: var(--fg-1); }
.article-body .qa-block + .qa-block { padding-top: 22px; border-top: 1px solid var(--border); }

/* Inline CTA — encourages signup mid-article */
.article-body .inline-cta {
    margin: 36px 0;
    text-align: center;
    padding: 32px 24px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-soft-2);
    border-radius: var(--r-lg);
}
.article-body .inline-cta .inline-cta-hook {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.35;
    color: var(--brand-deep);
    margin: 0 0 20px;
    font-weight: 400;
}
.lang-ja .article-body .inline-cta .inline-cta-hook {
    font-family: var(--font-display);
    font-weight: 600;
    font-style: normal;
}
.article-body .inline-cta .btn { margin: 0; }
.article-body .inline-cta .inline-cta-mini {
    margin: 14px 0 0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--fg-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
@media (max-width: 600px) {
    .article-body .inline-cta { padding: 24px 18px; margin: 28px 0; }
    .article-body .inline-cta .inline-cta-mini { font-size: 10.5px; letter-spacing: 0.04em; }
}

/* End-of-article CTA — drives signup */
.article-cta {
    background: var(--bg-dark);
    color: var(--fg-inverse);
    padding: 64px 24px;
    margin-top: 0;
    text-align: center;
}
.article-cta .container { max-width: 760px; }
.article-cta .eyebrow { color: var(--brand); }
.article-cta h2 {
    color: var(--fg-inverse);
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.lang-ja .article-cta h2 { font-family: var(--font-display); font-weight: 600; }
.article-cta p {
    color: rgba(255,255,255,0.78);
    font-size: 17px;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto 28px;
}
.article-cta .btn-primary { padding: 16px 30px; font-size: 16px; }
.article-cta .cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.article-cta .cta-row .btn-ghost {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.2);
}
.article-cta .cta-row .btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    color: var(--fg-inverse);
}
.article-cta .cta-mini {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Related articles strip */
.related-articles {
    border-top: 1px solid var(--border);
    padding: 56px 0;
    background: var(--bg-alt);
}
.related-articles h3 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 14px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--fg-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid .insight-card { padding: 24px; }
.related-grid .insight-card h4 {
    font-size: 17px;
    line-height: 1.3;
    color: var(--fg);
    margin-bottom: 8px;
    font-weight: 600;
}

/* PDF preview block — "what's in the PDF" inline thumbnail/teaser */
.pdf-preview {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    align-items: center;
    padding: 22px;
    margin: 32px 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.pdf-preview .pdf-icon {
    width: 100%;
    aspect-ratio: 8.5/11;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand);
    font-weight: 600;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-xs);
    flex-direction: column;
    gap: 6px;
}
.pdf-preview .pdf-icon::before {
    content: '';
    width: 32px; height: 32px;
    border-radius: var(--r-sm);
    background: var(--brand);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 3v5h5M19 12v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h8z"/></svg>') no-repeat center / contain;
            mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 3v5h5M19 12v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h8z"/></svg>') no-repeat center / contain;
}
.pdf-preview .pdf-meta h4 { margin: 0 0 4px; font-size: 16px; }
.pdf-preview .pdf-meta p { margin: 0 0 12px; font-size: 13.5px; color: var(--fg-2); line-height: 1.55; }
.pdf-preview .pdf-meta .pdf-info {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .pdf-preview { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
    .pdf-preview .pdf-icon { max-width: 100px; aspect-ratio: 1.4; }
}

/* Toast for "link copied" */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--fg);
    color: var(--fg-inverse);
    padding: 10px 18px;
    border-radius: var(--r-pill);
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 1000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   PDF download card — the artifact, on the page
   Editorial download moment with real cover thumbnails.
   Used at the bottom of each insight article.
   ============================================ */
/* Outer wrapper provides horizontal page padding on mobile */
.pdf-download-section {
    padding: 24px 24px 8px;
}

.pdf-download-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 44px;
    background:
        radial-gradient(circle at 0% 0%, rgba(5,150,105,0.04) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-alt) 0%, #f4f4f3 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 44px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Thin emerald rail at left edge — editorial signature */
.pdf-download-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
}

/* The cover stack — wraps the two language editions */
.pdf-covers-stack {
    position: relative;
    width: 200px;
    height: 283px; /* A4 ratio: 200 * 1.414 */
    flex-shrink: 0;
}

.pdf-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1/1.414; /* A4 — covers stay this ratio regardless of stack padding */
    border-radius: 4px;
    overflow: hidden;
    background: #0a0a0a; /* matches PDF cover bg — prevents flash */
    box-shadow:
        0 1px 1px rgba(10,10,10,0.05),
        0 4px 8px -2px rgba(10,10,10,0.10),
        0 16px 32px -10px rgba(10,10,10,0.18);
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pdf-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Back card — JP edition. Offset down + right + slight rotation.
   Generous offset at rest so the bilingual nature is visible without hovering. */
.pdf-cover.is-back {
    transform: translate(22px, 18px) rotate(3.2deg);
    z-index: 1;
}
/* Front card — EN edition. Sits flat. */
.pdf-cover.is-front {
    z-index: 2;
}

/* On hover: splay the stack — back card slides further out, front card lifts */
.pdf-download-card:hover .pdf-cover.is-front {
    transform: translate(-3px, -5px);
    box-shadow:
        0 1px 1px rgba(10,10,10,0.05),
        0 8px 16px -4px rgba(10,10,10,0.12),
        0 28px 56px -16px rgba(10,10,10,0.24);
}
.pdf-download-card:hover .pdf-cover.is-back {
    transform: translate(34px, 24px) rotate(5deg);
    box-shadow:
        0 1px 1px rgba(10,10,10,0.05),
        0 6px 12px -4px rgba(10,10,10,0.10),
        0 18px 36px -14px rgba(10,10,10,0.20);
}

/* Right side — meta + CTAs */
.pdf-meta-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pdf-meta-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}

.pdf-meta-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 400;
    color: var(--fg);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
}
.lang-ja .pdf-meta-title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pdf-meta-desc {
    font-size: 14.5px;
    color: var(--fg-2);
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 520px;
}

/* CTAs row — two side-by-side downloads, EN + 日本語 */
.pdf-download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    color: var(--fg);
    text-decoration: none;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-xs);
}

.pdf-download-btn:hover {
    background: var(--fg);
    color: var(--fg-inverse);
    border-color: var(--fg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pdf-download-btn svg {
    flex-shrink: 0;
    color: var(--brand);
    transition: color var(--dur) var(--ease);
}
.pdf-download-btn:hover svg { color: #34d399; }

.pdf-download-btn .btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}
.pdf-download-btn .lang-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
}
.pdf-download-btn .file-meta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--fg-3);
    letter-spacing: 0.05em;
    margin-top: 2px;
    transition: color var(--dur) var(--ease);
}
.pdf-download-btn:hover .file-meta { color: rgba(255,255,255,0.65); }

.pdf-meta-footnote {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--fg-3);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pdf-meta-footnote .sep {
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--fg-4);
    display: inline-block;
}

/* Mobile: stack vertically, center the cover */
@media (max-width: 720px) {
    .pdf-download-section { padding: 16px 16px 8px; }
    .pdf-download-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 22px;
        text-align: center;
    }
    /* Stack box sized to width=168 (front A4 cover ≈ 168×238) but with extra
       vertical room (262px total) to fully contain the back card's offset+rotation
       overhang. Front card stays A4 via aspect-ratio; back card translates within
       the now-roomier stack without breaking the layout below. */
    .pdf-covers-stack {
        margin: 4px auto 0;
        width: 168px;
        height: 262px;
    }
    /* Reduce rotation/offset on mobile to keep the splay graceful in a tight column */
    .pdf-cover.is-back {
        transform: translate(14px, 12px) rotate(2.4deg);
    }
    .pdf-meta-desc { max-width: none; margin-left: auto; margin-right: auto; }
    /* Full-width tap targets — easier on touch, more equal visual weight */
    .pdf-download-buttons {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    .pdf-download-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 18px; /* taller for thumb-friendly tap */
    }
    .pdf-meta-footnote {
        justify-content: center;
        gap: 8px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }
}

/* Very narrow screens (≤380px) — older / smaller phones.
   Stack the footnote vertically so we never get an orphan separator. */
@media (max-width: 380px) {
    .pdf-download-card { padding: 24px 18px; }
    .pdf-covers-stack { width: 152px; height: 240px; }
    .pdf-meta-footnote {
        flex-direction: column;
        gap: 4px;
    }
    .pdf-meta-footnote .sep { display: none; }
}

/* ============================================
   Insight-card cover thumb — visual recognition
   Small thumbnail in card corner. Lifts/tilts on hover.
   ============================================ */
.insight-cover-thumb {
    position: absolute;
    top: 26px;
    right: 26px;
    width: 76px;
    height: 107px;
    border-radius: 4px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow:
        0 1px 2px rgba(10,10,10,0.06),
        0 6px 14px -4px rgba(10,10,10,0.12);
    transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}
.insight-cover-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* On card hover — tilt + lift (additive to existing card hover translateY) */
.insight-card:hover .insight-cover-thumb {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow:
        0 2px 4px rgba(10,10,10,0.08),
        0 12px 24px -6px rgba(10,10,10,0.18);
}

/* Featured card gets a larger thumb */
.insight-card.is-featured .insight-cover-thumb {
    top: 32px;
    right: 36px;
    width: 100px;
    height: 141px;
}

/* On wider featured card, push the headline / dek away from the thumb */
.insight-card.is-featured h2,
.insight-card.is-featured .insight-dek {
    padding-right: 130px;
}
.insight-card:not(.is-featured) h3,
.insight-card:not(.is-featured) .insight-dek,
.insight-card:not(.is-featured) .insight-meta {
    padding-right: 96px;
}

/* Mobile — drop into the flow, smaller, no absolute positioning */
@media (max-width: 600px) {
    .insight-cover-thumb,
    .insight-card.is-featured .insight-cover-thumb {
        position: static;
        width: 64px;
        height: 90px;
        margin-bottom: 14px;
    }
    .insight-card h2, .insight-card h3,
    .insight-card .insight-dek,
    .insight-card.is-featured h2,
    .insight-card.is-featured .insight-dek {
        padding-right: 0;
    }
}

/* ---------- Related guides strip (post-article cluster cohesion) ---------- */
.related-guides {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 56px 0;
    margin-top: 32px;
}
.related-guides .related-header {
    margin-bottom: 28px;
}
.related-guides .related-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--fg-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.related-guides h2 {
    font-size: clamp(22px, 2.4vw, 28px);
    margin: 0;
    letter-spacing: -0.01em;
}
.related-guides .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-guides .related-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px 26px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-decoration: none;
    color: var(--fg-1);
    transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
    min-height: 140px;
}
.related-guides .related-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.related-guides .related-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--fg-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.related-guides .related-card:hover .related-tag {
    color: var(--brand-deep);
}
.related-guides .related-title {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--fg);
}
.related-guides .related-card::after {
    content: "Read →";
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand);
    letter-spacing: 0.06em;
    margin-top: auto;
    align-self: flex-start;
}
.lang-ja .related-guides .related-card::after { content: "読む →"; }

@media (max-width: 900px) {
    .related-guides .related-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .related-guides .related-card { min-height: 0; }
    .related-guides { padding: 44px 0; }
}

/* ---------- Trust-verify line (post trust-grid, conversion pages) ---------- */
.trust-verify {
    margin-top: 28px;
    text-align: center;
    font-size: 13.5px;
    color: var(--fg-3);
    line-height: 1.7;
    letter-spacing: 0.005em;
}
.trust-verify a {
    color: var(--fg-2);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
    transition: color var(--dur), text-decoration-color var(--dur);
}
.trust-verify a:hover {
    color: var(--brand-deep);
    text-decoration-color: var(--brand);
}
/* On dark background sections */
.trust-verify-dark {
    color: rgba(255,255,255,0.55);
}
.trust-verify-dark a {
    color: rgba(255,255,255,0.85);
    text-decoration-color: rgba(255,255,255,0.25);
}
.trust-verify-dark a:hover {
    color: var(--brand);
    text-decoration-color: var(--brand);
}
@media (max-width: 720px) {
    .trust-verify { font-size: 13px; line-height: 1.85; }
}

/* ============================================
   REFER & EARN — referral program
   v13 addition · 2026-05-04
   Marketing-only surfaces; sharing happens in-app.
   New section + page styles. Does not modify any
   existing component.
   ============================================ */

/* ----- Inline strip (used on index, for-companies, pricing) ----- */
.refer-strip {
    padding: 64px 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(5,150,105,0.06) 0%, transparent 55%),
        linear-gradient(180deg, var(--brand-soft) 0%, #f4fcf7 100%);
    border-top: 1px solid var(--brand-soft-2);
    border-bottom: 1px solid var(--brand-soft-2);
}
.refer-strip .refer-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}
.refer-strip .refer-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-deep);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.refer-strip .refer-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--brand);
}
.refer-strip h2 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--fg);
}
.refer-strip h2 .brand-text { color: var(--brand-deep); }
.refer-strip .refer-sub {
    font-size: 16px;
    color: var(--fg-1);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
}
.refer-strip .refer-sub strong { color: var(--fg); font-weight: 600; }
.refer-strip .refer-math {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--brand-deep);
    letter-spacing: 0.02em;
}
.refer-strip .refer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.refer-strip .refer-actions .btn { width: 100%; justify-content: center; }
.refer-strip .refer-secondary {
    font-size: 13px;
    color: var(--fg-2);
    text-align: center;
    text-decoration: underline;
    text-decoration-color: var(--brand-soft-2);
    text-underline-offset: 3px;
    font-weight: 500;
}
.refer-strip .refer-secondary:hover {
    text-decoration-color: var(--brand);
    color: var(--brand-deep);
}
@media (max-width: 860px) {
    .refer-strip { padding: 48px 0; }
    .refer-strip .refer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .refer-strip h2 { font-size: 26px; }
}

/* ----- /refer.html page-specific styles ----- */
.refer-hero {
    padding: 80px 0 64px;
    background:
        radial-gradient(circle at 100% 0%, rgba(5,150,105,0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 70%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.refer-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}
.refer-hero h1 .brand-text { color: var(--brand); }
.refer-hero .lead {
    max-width: 640px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: var(--fg-1);
    line-height: 1.6;
}
.refer-hero .lead strong { color: var(--fg); font-weight: 600; }

/* The 50 + 50 visual moment */
.refer-pair {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 22px;
    padding: 22px 36px;
    background: var(--bg);
    border: 1px solid var(--brand-soft-2);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    margin: 0 auto 28px;
}
.refer-pair .pair-side { text-align: center; min-width: 130px; }
.refer-pair .pair-n {
    font-family: var(--font-serif);
    font-size: 56px;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 4px;
}
.lang-ja .refer-pair .pair-n { font-family: var(--font-display); font-weight: 700; }
.refer-pair .pair-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-3);
}
.refer-pair .pair-plus {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--fg-3);
    line-height: 1;
}
.refer-hero .refer-microproof {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--fg-2);
}
.refer-hero .refer-microproof span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.refer-hero .refer-microproof svg { color: var(--brand); flex-shrink: 0; }

/* How it works — 3 numbered steps */
.refer-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.refer-step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    position: relative;
}
.refer-step .step-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--brand);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}
.refer-step h3 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.refer-step p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--fg-2);
    margin: 0;
}
@media (max-width: 760px) {
    .refer-steps { grid-template-columns: 1fr; }
}

/* Suggested-recipients block — soft list */
.refer-recipients {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 30px;
    max-width: 720px;
    margin: 0 auto;
}
.refer-recipients h3 {
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.refer-recipients ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}
.refer-recipients li {
    font-size: 14.5px;
    color: var(--fg-1);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
}
.refer-recipients li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--brand);
    border-radius: 50%;
}
@media (max-width: 600px) {
    .refer-recipients ul { grid-template-columns: 1fr; }
    .refer-pair { padding: 18px 24px; gap: 14px; }
    .refer-pair .pair-side { min-width: 100px; }
    .refer-pair .pair-n { font-size: 44px; }
}

/* === Item 4 (Wave 2): Responsive table wrapper for mobile horizontal-scroll === */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}
.table-scroll > table {
  min-width: 100%;
  margin: 0;
}
.table-scroll > table th,
.table-scroll > table td {
  white-space: nowrap;
}
/* Tokusho table on mobile flips to block layout — restore wrapping there */
@media (max-width: 640px) {
  .table-scroll > .tokusho-table th,
  .table-scroll > .tokusho-table td {
    white-space: normal;
  }
}

/* === Skip-to-content link (a11y) === */
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  z-index: 10000;
  transition: top 0.18s ease-out;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--bg);
  outline-offset: -4px;
}

/* === Cornerstone callout — insight → learn cornerstone signpost === */
.cornerstone-callout {
  margin: 48px auto;
  padding: 0 24px;
}
.cornerstone-callout-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  margin: 0 0 12px;
  font-weight: 600;
}
.cornerstone-callout-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 24px;
  align-items: center;
  padding: 24px 28px;
  background: var(--bg-2, #f8f9f7);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-left-width 0.15s ease, transform 0.15s ease;
}
.cornerstone-callout-card:hover {
  background: var(--bg, #fff);
  border-left-width: 6px;
  transform: translateX(2px);
}
.cornerstone-callout-title {
  grid-column: 1;
  grid-row: 1;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.cornerstone-callout-dek {
  grid-column: 1;
  grid-row: 2;
  font-size: 14px;
  color: var(--fg-2, var(--fg-3));
  line-height: 1.5;
}
.cornerstone-callout-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 22px;
  color: var(--brand);
  font-weight: 400;
  transition: transform 0.18s ease;
}
.cornerstone-callout-card:hover .cornerstone-callout-arrow {
  transform: translateX(4px);
}
@media (max-width: 640px) {
  .cornerstone-callout { margin: 36px auto; padding: 0 16px; }
  .cornerstone-callout-card { padding: 18px 20px; gap: 4px 16px; }
  .cornerstone-callout-title { font-size: 17px; }
  .cornerstone-callout-dek { font-size: 13px; }
}
