/* Landing-page styling for the entry-point marketing pages (lp/*.html).
 *
 * 2026-09 — these pages now run on the SAME design system as the top page
 * (botviewer/public/styles-new.css): Shippori Mincho headlines over Noto Sans
 * JP, one 880px column, square blue CTA, hairline rules instead of cards, and
 * the 問/Q exchange in place of chat bubbles. A visitor arriving from a case on
 * the apex should not feel they landed on a different product.
 *
 * Tokens below are lifted from the apex sheet, not invented here. The one thing
 * that stays per-page is the marker colour: --accent still comes from
 * theme.css's data-brand (support blue / expert orange / persona purple), and
 * it is used ONLY for the eyebrow, the speaker name and rules — never for the
 * CTA, which is the apex blue on every page.
 *
 * The overrides use :root[data-brand] so they beat theme.css's own
 * [data-brand="…"] blocks (equal-specificity :root would silently lose). */
:root, :root[data-brand] {
  --ink:#17191d; --ink-muted:#5b6068; --ink-subtle:#5b6068; --ink-tertiary:#9c9fa5;
  --canvas:#ffffff; --surface:#f5f6f8; --surface-2:#eceef1;
  --hairline:#e3e5e9; --hairline-soft:#e3e5e9;
  --cta:#0b6bcb;                 /* the apex CTA blue, every page */
  --c:var(--accent);             /* this entry point's marker colour */
  --sans:'Noto Sans JP',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --min:'Shippori Mincho B1','Hiragino Mincho ProN','Yu Mincho',serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--canvas); color: var(--ink);
       line-height: 1.95; font-size: 15px; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

/* One measure for the whole page, matching the apex's .wrap. */
.lp-header, .hero, .steps-inner, .features-inner, .pricing-inner, .closing-inner, .lp-footer {
  max-width: 880px; margin: 0 auto; padding-left: 28px; padding-right: 28px;
}

/* ── header ────────────────────────────────────────────────────────────── */
.lp-header { padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.wordmark { font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
.wordmark .dot { color: #ff5600; }          /* the logo dot is orange on every page */
.nav-right { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; }
.lang-link { font-size: 14px; color: var(--ink); text-decoration: none; }
.console-link { font-size: 14px; font-weight: 700; color: var(--cta); text-decoration: none; }
.lang-link:hover, .console-link:hover { text-decoration: underline; }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { display: block; padding-top: 64px; padding-bottom: 24px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--c); }
h1 { margin: 8px 0 0; font-family: var(--min); font-weight: 800;
     font-size: clamp(32px, 5.4vw, 52px); line-height: 1.5; letter-spacing: .02em; }
.sub { margin: 22px 0 0; color: var(--ink-muted); max-width: 36em; }
.cta { display: inline-block; margin-top: 30px; background: var(--cta); color: #fff;
       text-decoration: none; font-weight: 700; font-size: 15px; padding: 14px 32px; border-radius: 0; }
.cta:hover { background: #0a5cb0; }
.cta-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-muted); }

/* ── the exchange (markup is still .chat/.msg) ─────────────────────────────
 * The bubbles are gone — this is the apex's 問/答 setting — but the LP keeps
 * its one piece of motion: the turns arrive in order, once, on load. */
.chat { background: var(--surface); border: 0; border-radius: 0; padding: 22px 26px; margin-top: 34px; max-width: 40em; }
.chat-label { display: none; }
.msg { max-width: none; padding: 0; border-radius: 0; margin-top: 0; opacity: 0; animation: rise 0.5s ease forwards; }
.msg.user { margin-left: 0; background: none; font-size: 14px; color: var(--ink-muted); }
.msg.user::before { content: '問　'; font-weight: 700; color: var(--ink); }
html[lang="en"] .msg.user::before { content: 'Q.  '; }
.msg.bot { background: none; border: 0; font-family: var(--min); font-weight: 600;
           font-size: 17px; line-height: 2; margin-top: 10px; }
.msg.bot .who { display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 700;
                color: var(--c); margin-bottom: 2px; }
.msg.user + .msg.bot + .msg.user { margin-top: 18px; }
.msg:nth-child(2) { animation-delay: 0.1s; }
.msg:nth-child(3) { animation-delay: 0.65s; }
.msg:nth-child(4) { animation-delay: 1.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; opacity: 1; } }

/* ── steps: a real sequence, so it keeps the apex's dark band ──────────── */
.steps { background: var(--ink); color: #f4f5f7; margin-top: 88px; }
.steps-inner { padding-top: 64px; padding-bottom: 64px; }
.steps h2 { margin: 0; font-family: var(--min); font-weight: 700; font-size: 26px; }
.steps ol { list-style: none; margin: 28px 0 0; padding: 0; display: block; max-width: 40em; counter-reset: step; }
/* Each <li> holds THREE grid items — the ::before counter, <b> and <p> — in two
 * columns, so the column of every item after the first has to be stated. Left
 * to auto-placement the <p> lands in row 2 of the 2.2em counter column and
 * wraps one word per line (prod, all eight LPs, #581 → fixed here). Row gap
 * stays 0 for the same reason <p> keeps its own 2px margin: the title and its
 * description are one block, not two rows of a list. */
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2em 1fr; gap: 0 14px;
            padding: 16px 0; border-top: 1px solid #3c4046; }
.steps li::before { content: counter(step); grid-column: 1; grid-row: 1;
                    font-family: var(--min); font-weight: 700; font-size: 22px;
                    color: #7db8ec; font-variant-numeric: tabular-nums;
                    display: block; width: auto; height: auto; border: 0; border-radius: 0; margin: 0; }
.steps b { grid-column: 2; display: block; font-size: 15.5px; font-weight: 700; margin: 0; }
.steps p { grid-column: 2; margin: 2px 0 0; font-size: 13.5px; color: #a9adb4; }

/* ── features: hairline term/description list, not cards ──────────────── */
.features { border-top: 0; }
.features-inner { padding-top: 80px; padding-bottom: 8px; }
.features h2 { margin: 0; font-family: var(--min); font-weight: 700; font-size: 26px; line-height: 1.6; }
.features ul { list-style: none; margin: 26px 0 0; padding: 0; display: block;
               max-width: 44em; border-top: 1px solid var(--ink); }
.features li { display: grid; grid-template-columns: 13em 1fr; column-gap: 16px;
               border-bottom: 1px solid var(--hairline); padding: 14px 0; font-size: 14px; }
.features b { font-size: 14px; font-weight: 700; margin: 0; }
.features p { margin: 0; font-size: 14px; color: var(--ink-muted); }

/* ── pricing: the apex pricing block, same markup as before ───────────── */
.pricing { border-top: 0; background: var(--canvas); }
.pricing-inner { padding-top: 72px; padding-bottom: 8px; }
.pricing h2 { margin: 0; font-family: var(--min); font-weight: 700; font-size: 26px; letter-spacing: 0; }
.pricing .plan-lead { margin: 12px 0 0; font-size: 14px; color: var(--ink-muted); max-width: 40em; }
.plan-card { display: block; border: 0; border-radius: 0; padding: 0; background: none; margin-top: 16px; }
.plan-price { margin: 0; font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.6; }
.plan-price [data-price] { font-family: var(--min); font-size: 40px; font-weight: 800;
                           font-variant-numeric: tabular-nums; }
.plan-price .unit { font-size: 16px; font-weight: 400; color: var(--ink); }
.plan-trial { display: inline-block; margin-top: 6px; background: none; color: var(--c);
              border-radius: 0; padding: 0; font-size: 13px; font-weight: 700; }
.plan-points { list-style: none; margin: 18px 0 0; padding: 0; display: block; max-width: 42em; }
.plan-points li { position: static; padding: 10px 0; border-top: 1px solid var(--hairline);
                  font-size: 13.5px; color: var(--ink-muted); }
.plan-points li::before { content: none; }
.plan-points b { color: var(--ink); font-weight: 700; }
.plan-fine { margin: 10px 0 0; font-size: 12px; color: var(--ink-muted); max-width: 44em; }

/* ── closing + footer ──────────────────────────────────────────────────── */
.closing { border-top: 0; background: var(--canvas); text-align: left; }
.closing-inner { max-width: 880px; padding-top: 64px; padding-bottom: 88px; }
.closing h2 { margin: 0; font-family: var(--min); font-weight: 700;
              font-size: clamp(24px, 4vw, 34px); line-height: 1.7; letter-spacing: 0; }
.closing .cta { margin-top: 26px; }

.lp-footer { border-top: 1px solid var(--ink); padding-top: 24px; padding-bottom: 40px;
             display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
             align-items: baseline; font-size: 12.5px; color: var(--ink-muted); }
.lp-footer .lp-legal { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-footer a { color: var(--ink-muted); }
.lp-footer a:hover { color: var(--ink); }

/* ── phones ────────────────────────────────────────────────────────────────
 * Body copy steps up ~1px; DISPLAY type is deliberately untouched, because the
 * JA headlines carry hand-placed <br /> and growing them produces ragged extra
 * breaks (the reason this rule was written in the first place). */
@media (max-width: 780px) {
  .lp-header, .hero, .steps-inner, .features-inner, .pricing-inner, .closing-inner, .lp-footer {
    padding-left: 20px; padding-right: 20px;
  }
  .hero { padding-top: 40px; padding-bottom: 20px; }
  .steps { margin-top: 56px; }
  .features-inner { padding-top: 56px; }
  .pricing-inner { padding-top: 56px; }
  .features li { grid-template-columns: 1fr; row-gap: 2px; }
  body { font-size: 16px; }
  .sub { font-size: 17px; line-height: 1.85; }
  .eyebrow { font-size: 13px; }
  .cta { font-size: 16px; }
  .cta-note { font-size: 13px; }
  .msg.user { font-size: 14.5px; }
  .msg.bot { font-size: 17px; }
  .steps b, .features b { font-size: 15.5px; }
  .steps p, .features p { font-size: 14.5px; }
  .pricing .plan-lead, .plan-points li { font-size: 14.5px; }
  .plan-fine { font-size: 12.5px; }
  .lp-footer { font-size: 13px; }
  .lang-link, .console-link { font-size: 14px; }
}

/* Very narrow phones (≤360px). The headlines carry hand-placed <br /> —
 * editorial breaks, not accidents — and CJK has no word-boundary fallback, so a
 * headline that outgrows the line re-wraps mid-phrase and reads as broken. The
 * mincho face plus its .02em tracking is wider than the sans this rule was
 * first measured against, so the ceiling dropped from 26px to 25px: measured at
 * 320px, every JA hero headline (self / expert / support / mimic) holds its
 * intended two lines at 25px and self spills to three at 26px. */
@media (max-width: 360px) {
  h1 { font-size: 25px; }
  .closing h2 { font-size: 20px; }
  .plan-price [data-price] { font-size: 34px; }
}
