/* TalkBridge landing page.
   Direction: calm enterprise with colour per section. Every section has its own flat tint from the logo palette
   (white, ice, soft sky, light cobalt tint, one deep navy band), full-bleed, overlapping with soft rounded tops.
   One ink, one blue accent. No warm sand/yellow. Imagery and large icon tiles carry the page. */
/* Brand palette sampled from the app icon (mobile/assets/icon.png, 1024px master):
   navy #062D5B (background), cobalt #0065F4 (the 文 glyph), sky #46A8FF (bright bubble), ice #B9DCFF (light bubble), white (the A).
   Section fills are light tints of that set only. */
:root {
  --navy: #062D5B; --cobalt: #0065F4; --sky: #46A8FF; --ice: #B9DCFF;
  --bg: #FFFFFF; --ink: #062D5B; --mute: #4C6889; --faint: #7F93B0; --line: #D6E6F8;
  --acc: #0065F4; --acc-text: #0057D6; --on-acc: #FFFFFF; --inv: #062D5B; --on-inv: #FFFFFF;
  /* section tints — logo family only (no sand/yellow) */
  --c-white: #FFFFFF; --c-ice: #EAF4FF; --c-sky: #DCEEFF; --c-cob: #E4EDFD; --c-navy: #062D5B;
  /* Deep cobalt for readable accents/glyphs on light tints (eyebrow ≥4.5:1). */
  --deep: #0057D6;
  --card: #F1F8FF; --tile: #FFFFFF; --ph: rgba(255, 255, 255, .55);
  --band-mute: #A9C3E3; --band-acc: #7CC0FF;
  /* aurora glow: logo hues only */
  --au1: rgba(70, 168, 255, .36); --au2: rgba(0, 101, 244, .20); --au3: rgba(185, 220, 255, .95);
  --shadow-phone: 0 30px 60px -28px rgba(6, 45, 91, .45);
  --r-lg: 32px; --r-md: 24px; --r-sec: 40px; --pad: 112px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
a { color: var(--acc-text); text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
p, li, summary { text-wrap: pretty; word-break: auto-phrase; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

/* Japanese is the primary audience: looser leading, proportional kana in headings, strict line breaking, no negative tracking. */
:lang(ja) { line-break: strict; }
:lang(ja) body, body:lang(ja) { line-height: 1.95; letter-spacing: .03em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-weight: 700; letter-spacing: .01em; line-height: 1.4; font-feature-settings: "palt"; }
:lang(vi) h1, :lang(vi) h2, :lang(vi) h3 { line-height: 1.28; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); line-height: 1.5; }
:lang(ja) .eyebrow { letter-spacing: .14em; text-transform: none; }
@media (min-width: 1024px) { .eyebrow { font-size: 16px; letter-spacing: .095em; } :lang(ja) .eyebrow { letter-spacing: .11em; } }

/* ---------- Coloured sections with rounded overlaps ---------- */
.sec { position: relative; background: var(--s, var(--bg)); color: var(--ink); padding: var(--pad) 0 calc(var(--pad) + var(--r-sec)); }
.sec ~ .sec, .foot { margin-top: calc(var(--r-sec) * -1); padding-top: calc(var(--pad) + var(--r-sec)); border-radius: var(--r-sec) var(--r-sec) 0 0; }
.hero { padding-top: 72px; }
.bg-white { --s: var(--c-white); }
.bg-ice { --s: var(--c-ice); }
.bg-sky { --s: var(--c-sky); }
.bg-cob { --s: var(--c-cob); }
.bg-navy { --s: var(--c-navy); --ink: #FFFFFF; --mute: var(--band-mute); --line: rgba(185, 220, 255, .2); --acc-text: var(--band-acc); --tile: rgba(185, 220, 255, .1); --ph: rgba(185, 220, 255, .07); --au1: rgba(70, 168, 255, .42); --au2: rgba(0, 101, 244, .6); --au3: rgba(185, 220, 255, .16); overflow: hidden; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 14px; }
:lang(ja) .section-head h2 { font-size: clamp(25px, 3.2vw, 38px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }

/* Google Material Symbols Outlined, wght 300, FILL 0, GRAD 0. SVG masks are self-hosted. */
.ms { display: inline-block; width: 24px; height: 24px; flex: none; background-color: currentColor; color: var(--icon-ink, var(--navy)); -webkit-mask: var(--ms24) center / contain no-repeat; mask: var(--ms24) center / contain no-repeat; }
.ms-translate { --ms24: url(assets/icons/material/translate-24.svg); }
.ms-widgets { --ms24: url(assets/icons/material/widgets-24.svg); }
.ms-format_list_numbered { --ms24: url(assets/icons/material/format_list_numbered-24.svg); }
.ms-shield { --ms24: url(assets/icons/material/shield-24.svg); }
.ms-help { --ms24: url(assets/icons/material/help-24.svg); }
.ms-download { --ms24: url(assets/icons/material/download-24.svg); }
.ms-graphic_eq { --ms24: url(assets/icons/material/graphic_eq-24.svg); }
.ms-voice_over_off { --ms24: url(assets/icons/material/voice_over_off-24.svg); --ms48: url(assets/icons/material/voice_over_off-48.svg); }
.ms-move_down { --ms24: url(assets/icons/material/move_down-24.svg); --ms48: url(assets/icons/material/move_down-48.svg); }
.ms-hourglass_empty { --ms24: url(assets/icons/material/hourglass_empty-24.svg); --ms48: url(assets/icons/material/hourglass_empty-48.svg); }
.ms-person_off { --ms24: url(assets/icons/material/person_off-24.svg); --ms48: url(assets/icons/material/person_off-48.svg); }
.ms-forum { --ms24: url(assets/icons/material/forum-24.svg); --ms48: url(assets/icons/material/forum-48.svg); }
.ms-sync_alt { --ms24: url(assets/icons/material/sync_alt-24.svg); }
.ms-mic { --ms24: url(assets/icons/material/mic-24.svg); }
.ms-subtitles { --ms24: url(assets/icons/material/subtitles-24.svg); }
.ms-language { --ms24: url(assets/icons/material/language-24.svg); }
.ms-summarize { --ms24: url(assets/icons/material/summarize-24.svg); }
.ms-menu_book { --ms24: url(assets/icons/material/menu_book-24.svg); }
.ms-history { --ms24: url(assets/icons/material/history-24.svg); }
.ms-smartphone { --ms24: url(assets/icons/material/smartphone-24.svg); }
.ms-check_circle { --ms24: url(assets/icons/material/check_circle-24.svg); }
.ms-hub { --ms24: url(assets/icons/material/hub-24.svg); --ms48: url(assets/icons/material/hub-48.svg); }
.ms-cloud_off { --ms24: url(assets/icons/material/cloud_off-24.svg); }
.ms-privacy_tip { --ms24: url(assets/icons/material/privacy_tip-24.svg); }
.ms-tune { --ms24: url(assets/icons/material/tune-24.svg); }
.ms-stop_circle { --ms24: url(assets/icons/material/stop_circle-24.svg); }
.ms-add { --ms24: url(assets/icons/material/add-24.svg); }
.ms-phone_iphone { --ms24: url(assets/icons/material/phone_iphone-24.svg); }
.ms-android { --ms24: url(assets/icons/material/android-24.svg); }
.ms-description { --ms24: url(assets/icons/material/description-24.svg); }
.ms-mail { --ms24: url(assets/icons/material/mail-24.svg); }
.ms-arrow_forward { --ms24: url(assets/icons/material/arrow_forward-24.svg); }
.ms-delete { --ms24: url(assets/icons/material/delete-24.svg); }
/* Large masks use Google's 48 px optical cut, not a raster enlargement. */
.pain .ms, .outcome-mark .ms, .context-icon .ms { -webkit-mask-image: var(--ms48); mask-image: var(--ms48); }
.ic-tile { flex: none; width: 72px; height: 72px; border-radius: 22px; background: var(--cobalt); border: 0; display: grid; place-items: center; }
.ic-tile .ms { width: 44px; height: 44px; --icon-ink: #FFFFFF; }

/* Per-section tiles. Eyebrows on light grounds use deep cobalt (≥4.5:1); navy band keeps ice. */
.eyebrow > .ms { width: 22px; height: 22px; margin-right: 9px; --icon-ink: var(--deep); }
.hero-copy .eyebrow { color: var(--navy); }
.hero-copy .eyebrow > .ms { width: 19px; height: 19px; --icon-ink: var(--navy); }

#problem .ic-tile { background: var(--navy); }
#problem .ic-tile .ms { --icon-ink: var(--ice); }

.outcome-mark { background: var(--cobalt); color: #FFFFFF; }
.outcome-mark .ms { --icon-ink: #FFFFFF; }

.bg-navy .eyebrow { color: var(--ice); }
.bg-navy .eyebrow .ms { --icon-ink: var(--ice); }
.bg-navy .ticks .ms { --icon-ink: #FFFFFF; }
.bg-navy .ms { --icon-ink: #FFFFFF; }

#context .ticks .ms { --icon-ink: var(--deep); }
.context-icon { background: var(--navy); }
.context-icon .ms { --icon-ink: var(--ice); }

#glossary .ticks .ms { --icon-ink: var(--cobalt); }
#glossary .tag-label { color: var(--deep); }

#how .step .num { color: var(--cobalt); }

/* Privacy: ice tile + deep cobalt glyph (mint dropped). */
#privacy .ic-tile { background: var(--c-ice); }
#privacy .ic-tile .ms { --icon-ink: var(--deep); }

/* Context and glossary are adjacent sections (ice, white) telling one accuracy story. */
#context .section-head { margin-bottom: 48px; }
.copy .sub:empty { display: none; }

/* Languages panel: soft ice→sky tint, now in its own sky section after white Features. */
#languages .langs-panel {
  margin-top: 0;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--c-ice) 0%, var(--c-sky) 48%, #E8F1FC 100%);
  border: 1px solid var(--line);
}
#languages .langs-panel .langs span { background: rgba(255, 255, 255, .92); }

/* Mid-page download CTA inside the navy minutes band. */
.mid-cta { display: flex; justify-content: center; margin-top: 56px; }
.bg-navy .mid-cta .btn-primary { box-shadow: 0 12px 28px -16px rgba(0, 0, 0, .45); }
/* ---------- Header (solid, no blur) ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--mute); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.nav .ms { width: 19px; height: 19px; --icon-ink: var(--cobalt); }
.nav a:hover { color: var(--ink); }
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang > .ms { width: 18px; height: 18px; margin: 0 4px 0 6px; --icon-ink: var(--navy); }
.lang button { white-space: nowrap; appearance: none; border: 0; background: none; color: var(--mute); font: 600 12px/1 var(--font); letter-spacing: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--inv); color: var(--on-inv); }
.l-short { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: 0; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), filter .2s; }
.btn .ms { width: 20px; height: 20px; }
.btn-primary .ms, .btn-dark .ms { --icon-ink: #FFFFFF; }
.btn-primary { background: var(--acc); color: var(--on-acc); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-dark { background: var(--inv); color: var(--on-inv); }
.btn-text { color: var(--ink); padding: 0 8px; }
.btn-text .ms { width: 19px; height: 19px; transition: transform .2s; }
.btn-text:hover .ms { transform: translateX(4px); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 13px; }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero-copy { text-align: center; }
.hero-copy .eyebrow { justify-content: center; }
.hero h1 { font-size: clamp(38px, 6.6vw, 88px); font-weight: 600; letter-spacing: -.028em; line-height: 1.07; max-width: 15em; margin: 22px auto 0; }
:lang(ja) .hero h1 { font-size: clamp(29px, 5.4vw, 72px); letter-spacing: 0; line-height: 1.32; max-width: none; }
:lang(vi) .hero h1 { font-size: clamp(32px, 5.6vw, 72px); letter-spacing: -.03em; line-height: 1.16; }
.hero h1 .hl { color: var(--acc-text); }
.hero .lead { margin: 32px auto 0; max-width: 40em; font-size: clamp(16px, 1.6vw, 19px); color: var(--mute); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; margin-top: 40px; }

.hero-visual { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; margin-top: 72px; }
.hero-visual .hero-illus { --ar: 4 / 3; box-shadow: 0 30px 60px -36px rgba(6, 45, 91, .5); }
/* Short phone frames: pin the TOP (island/status) and crop the BOTTOM edge. */
.hero-panel { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 36px; border-radius: var(--r-lg); background: var(--c-ice); border: 1px solid var(--line); }
.hero-panel .device { --w: clamp(220px, 22vw, 290px); margin-bottom: calc(var(--w) * -.42); }

/* ---------- Illustration slots (8 AI illustrations; placeholders until the files exist) ---------- */
.illus { position: relative; aspect-ratio: var(--ar, 4 / 3); border-radius: var(--r-lg); overflow: hidden; background: var(--ph); }
.illus-img, .illus .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.illus.is-empty { background: var(--ph); border: 2px dashed var(--line); }
.illus.is-empty .illus-img { display: none; }
.illus.is-empty::after { content: "Illustration " attr(data-slot); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; color: var(--faint); }
.hero-visual .illus.is-empty { border: 0; }
.photo-fig { background: var(--ph); }

.media { display: flex; align-items: center; }
.media .illus { flex: 1; min-width: 0; box-shadow: 0 30px 60px -36px rgba(6, 45, 91, .45); }
/* the real app sits beside the illustration, overlapping only its edge so the art is never covered */
.device.side-phone { --w: clamp(150px, 14vw, 196px); flex: none; margin-left: -56px; z-index: 2; }
.media.flip { flex-direction: row-reverse; }
.media.flip .device.side-phone { margin-left: 0; margin-right: -56px; }

/* ---------- Device frame around real app screenshots ---------- */
.device { --w: 280px; position: relative; width: var(--w); padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .16); background: #0B0D12; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), var(--shadow-phone); }
.device img { width: 100%; height: auto; border-radius: calc(var(--w) * .13); background: #F6F7F9; }
.device::after { content: ""; position: absolute; top: calc(var(--w) * .058); left: 50%; width: 29%; height: calc(var(--w) * .08); transform: translateX(-50%); border-radius: 999px; background: #000; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 96px; border-top: 1px solid var(--line); }
.fact { padding: 36px 20px 0; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-size: clamp(22px, 2.5vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
:lang(ja) .fact b { letter-spacing: 0; font-weight: 700; }
.fact span { display: block; margin-top: 6px; color: var(--mute); font-size: 14px; line-height: 1.6; }

/* ---------- Split rows (copy + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split.rev > .copy { order: 0; }
.split.rev > .media { order: 1; }
.copy h2 { font-size: clamp(27px, 3.4vw, 42px); margin-top: 14px; }
:lang(ja) .copy h2 { font-size: clamp(24px, 3vw, 36px); }
.copy .sub { color: var(--mute); margin-top: 20px; font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; }
.ticks .ms { width: 28px; height: 28px; margin-top: 2px; }
.rows { display: grid; gap: 28px; margin-top: 36px; }
.row { display: flex; gap: 22px; align-items: flex-start; }
.row .ic-tile { width: 64px; height: 64px; border-radius: 20px; }
.row .ic-tile .ms { width: 38px; height: 38px; }
.row h3 { font-size: 19px; margin-top: 2px; }
.row p { color: var(--mute); margin-top: 6px; font-size: 15.5px; }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat { background: var(--card); border-radius: var(--r-md); padding: 40px 36px 44px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.feat .ic-tile { margin-inline: auto; }
.feat h3 { font-size: 21px; margin-top: 28px; }
.feat p { color: var(--mute); margin-top: 10px; font-size: 15.5px; }

/* ---------- Problem, outcome, context and glossary ---------- */
.section-head .sub { color: var(--mute); font-size: 18px; margin-top: 20px; }
.pain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pain { background: var(--card); border-radius: var(--r-md); padding: 30px 26px 34px; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pain .ic-tile { width: 84px; height: 84px; border-radius: 25px; margin-inline: auto; }
.pain .ic-tile .ms { width: 52px; height: 52px; }
.pain h3 { font-size: 20px; margin-top: 24px; }
.pain p { color: var(--mute); font-size: 15.5px; margin-top: 10px; }
.outcome-panel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 72px); }
.outcome-panel h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 14px; }
.outcome-panel .sub { color: var(--mute); font-size: 18px; max-width: 730px; margin-top: 18px; margin-inline: auto; }
.outcome-panel .eyebrow { justify-content: center; }
.outcome-mark { width: 160px; height: 160px; border-radius: 48px; display: grid; place-items: center; margin-inline: auto; }
.outcome-mark .ms { width: 90px; height: 90px; }
.context-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; align-items: center; }
/* Good-for block: ice panel + ice chips so it reads as one unit on the ice section. */
.context-card {
  background: linear-gradient(165deg, #F7FBFF 0%, var(--c-ice) 55%, #E3F0FF 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 54px);
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 10px 28px -22px rgba(6, 45, 91, .28);
}
.context-icon { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 26px; margin: 0 auto 34px; }
.context-icon .ms { width: 56px; height: 56px; }
.context-card .tag-list { justify-content: center; }
.tag-label { color: var(--acc-text); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span { display: inline-block; max-width: 100%; background: var(--c-white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 14px; line-height: 1.4; }
.context-card .tag-list span {
  background: rgba(255, 255, 255, .92);
  border-color: #C7DBF5;
  color: var(--navy);
}
.glossary-tags { margin-top: 32px; }
.glossary-tags .tag-list span { background: var(--c-white); }
@media (max-width: 950px) { .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .context-layout { gap: 40px; } }
@media (max-width: 640px) { .pain-grid, .context-layout { grid-template-columns: 1fr; } .pain { padding: 26px; } .outcome-panel { gap: 24px; } .outcome-mark { width: 108px; height: 108px; border-radius: 30px; } .outcome-mark .ms { width: 62px; height: 62px; } .context-layout { gap: 36px; } }
.step-intro { display: flex; align-items: center; gap: 22px; }
/* ---------- Steps (no icon tiles) ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border-radius: var(--r-md); padding: 0 32px 40px; overflow: hidden; }
.step-shot { margin: 0 -32px 32px; padding: 28px 0 0; display: flex; align-items: flex-start; justify-content: center; background: var(--c-ice); overflow: hidden; max-height: min(420px, 70vw); }
/* Short step frames: show phone top, crop bottom. */
.step-shot .device { --w: min(250px, 80%); flex: none; margin-bottom: calc(var(--w) * -.28); }
.step .num { display: block; font-size: 52px; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--acc-text); font-variant-numeric: lining-nums; }
.step h3 { font-size: 21px; margin-top: 20px; }
.step p { color: var(--mute); margin-top: 10px; font-size: 15.5px; }
.step .step-tip { margin-top: 12px; font-size: 14px; color: var(--acc-text); font-weight: 500; }
#how .section-head .sub { max-width: 40em; margin-inline: auto; }

/* ---------- Use cases / gallery ---------- */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.use .illus { border-radius: var(--r-md); }
.use h3 { font-size: 18px; margin-top: 22px; }
.use p { color: var(--mute); font-size: 15px; margin-top: 8px; }
/* Full-width hero + 3 equal tiles: aspect ratios match source (16:9 / 4:3) so CSS does not crop faces. */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
  margin-top: 72px;
  align-items: start;
}
.gallery figure {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0; overflow: visible; background: transparent; border-radius: 0;
  min-width: 0;
}
.gallery-shot {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background: var(--ph); aspect-ratio: 4 / 3; width: 100%;
}
.g-main { grid-column: 1 / -1; }
.g-main .gallery-shot { aspect-ratio: 16 / 9; }
.gallery .photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
}
/* Prefer upper half so hairlines keep headroom inside the native frame. */
.g-main .photo { object-position: center 36%; }
.g-a .photo { object-position: center 22%; }
.g-b .photo { object-position: center 34%; }
.g-c .photo { object-position: 55% 28%; }
/* Soft logo-blue wash so indigo/purple AI wardrobe sits closer to brand. */
.gallery-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(165deg, rgba(6, 45, 91, .08) 0%, rgba(0, 101, 244, .1) 55%, rgba(185, 220, 255, .14) 100%);
  mix-blend-mode: soft-light;
}
.gallery figcaption {
  font-size: 13.5px; line-height: 1.55; color: var(--mute);
  padding: 0 2px; text-wrap: pretty;
}
:lang(ja) .gallery figcaption { font-size: 13px; line-height: 1.7; }
.ai-note { margin-top: 20px; font-size: 12.5px; color: var(--mute); max-width: 46em; }

/* FAQ on ice: white chip so the plus stays visible on the section tint. */
#faq.bg-ice .faq summary::after { background-color: #FFFFFF; }

/* ---------- Languages ---------- */
.lang-split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.bignum b { display: block; font-size: clamp(110px, 17vw, 230px); font-weight: 200; line-height: .95; letter-spacing: -.05em; color: var(--acc-text); font-variant-numeric: tabular-nums; }
.lang-split h2 { font-size: clamp(25px, 3vw, 36px); margin-top: 12px; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; }
.langs span {
  padding: 8px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.5; letter-spacing: 0; color: var(--ink);
  /* Visible by default (no-JS / reduced-motion / before observe). */
  opacity: 1; transform: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.langs span:hover, .langs span:focus-visible {
  border-color: var(--cobalt); background: var(--c-ice); color: var(--deep);
  transform: translateY(-2px); box-shadow: 0 6px 14px -10px rgba(6, 45, 91, .35);
}
/* JS + motion: stagger fade/scale-in when #langs scrolls into view (~12ms per chip). */
html.js .langs[data-animate]:not(.in) span { opacity: 0; transform: scale(.94); }
html.js .langs[data-animate].in span {
  opacity: 1; transform: none;
  transition:
    opacity .38s var(--ease) calc(var(--i, 0) * 12ms),
    transform .38s var(--ease) calc(var(--i, 0) * 12ms),
    border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
html.js .langs[data-animate].in span:hover,
html.js .langs[data-animate].in span:focus-visible { transform: translateY(-2px); }

/* ---------- FAQ (tighter vertical rhythm) ---------- */
/* Overlap math is padding-top: pad + r-sec; keep the visual band short. */
#faq.sec { --pad: 48px; }
.faq-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
/* Palette B FAQ: ice chip (#EAF4FF) with deep-cobalt (#0057D6) plus glyph. */
.faq summary::after {
  content: "";
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-color: var(--c-ice);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%230057D6' d='M450-450H220v-60h230v-230h60v230h230v60H510v230h-60v-230Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mute); padding: 0 36px 14px 0; font-size: 15.5px; }

/* ---------- Final CTA (full-bleed cobalt→navy) + footer ---------- */
/* No inner card: content sits directly on the section gradient. */
.bg-cta {
  --s: #062D5B;
  background: linear-gradient(165deg, #1A6FF5 0%, #0B56D4 38%, #083B8F 68%, #062D5B 100%);
  --ink: #FFFFFF;
  --mute: #D5E6FA;
  --line: rgba(185, 220, 255, .22);
  --acc-text: #EAF4FF;
  --au1: rgba(70, 168, 255, .38);
  --au2: rgba(0, 101, 244, .45);
  --au3: rgba(185, 220, 255, .18);
  color: #FFFFFF;
  overflow: hidden;
}
.final-cta { position: relative; z-index: 1; text-align: center; max-width: 720px; margin-inline: auto; padding: 8px 0 12px; }
.final-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 32px; }
.final-cta h2 { font-size: clamp(28px, 4vw, 48px); color: #FFFFFF; }
:lang(ja) .final-cta h2 { font-size: clamp(25px, 3.6vw, 40px); }
.final-cta > p { color: #D5E6FA; margin-top: 16px; font-size: 18px; }
.final-cta .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
/* Light store pills on blue (≥4.5:1 navy text on white). */
.store {
  display: inline-flex; flex-direction: row; align-items: center; gap: 12px; justify-content: center;
  min-width: 200px; min-height: 60px; padding: 8px 24px; border-radius: 999px;
  background: #FFFFFF; color: var(--navy);
  border: 1px solid rgba(255, 255, 255, .55);
  text-align: left; line-height: 1.35; letter-spacing: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 12px 28px -18px rgba(6, 45, 91, .55);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(6, 45, 91, .6); }
.store .ms { width: 27px; height: 27px; --icon-ink: var(--navy); }
.store-copy { display: flex; flex-direction: column; align-items: flex-start; }
.store small { font-size: 11px; color: #4C6889; }
.store b { font-size: 17px; font-weight: 600; color: var(--navy); }
.foot { --pad: 56px; color: var(--mute); font-size: 14px; padding-bottom: 64px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot nav a { color: var(--mute); display: inline-flex; align-items: center; gap: 6px; }
.foot nav .ms { width: 19px; height: 19px; --icon-ink: var(--navy); }
.foot nav a:hover { color: var(--ink); }
.foot small { color: var(--faint); font-size: 12.5px; }
.copy-line { line-height: 1.7; }


/* ---------- Aurora: a soft logo-hue glow behind the hero, the navy band and the final card ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; border-radius: inherit; }
.aurora i { position: absolute; border-radius: 50%; aspect-ratio: 1; will-change: transform; }
.aurora i:nth-child(1) { width: 62%; left: -12%; top: -34%; background: radial-gradient(closest-side, var(--au1), transparent 72%); animation: drift-a 34s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 56%; right: -14%; top: -6%; background: radial-gradient(closest-side, var(--au2), transparent 72%); animation: drift-b 41s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 52%; left: 28%; bottom: -46%; background: radial-gradient(closest-side, var(--au3), transparent 70%); animation: drift-c 47s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(14%, 12%, 0) scale(1.18); } }
@keyframes drift-b { to { transform: translate3d(-16%, 14%, 0) scale(1.12); } }
@keyframes drift-c { to { transform: translate3d(-12%, -10%, 0) scale(1.2); } }
.sec > .wrap { position: relative; z-index: 1; }
#download > .aurora { border-radius: inherit; }

/* ---------- Motion (restrained) ---------- */
/* Reveal is only armed when main.js runs (html.js), so content never disappears without JS. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) calc(var(--i, 0) * 90ms), transform .8s var(--ease) calc(var(--i, 0) * 90ms), translate .3s var(--ease) 0s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in .illus-img, .js .reveal.in .illus .photo { animation: settle 1.6s var(--ease) both; }
.feat:hover, .use:hover, .step:hover { translate: 0 -6px; }
.float { animation: float 7s ease-in-out infinite; transform: translate(var(--fx, 0), 0); }
.float-b { animation-duration: 8.5s; animation-delay: -3s; }
@keyframes float { 50% { transform: translate(var(--fx, 0), -12px); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --pad: 88px; }
  .nav { display: none; }
  .top .lang { margin-left: auto; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 64px; }
  .split.rev > .media { order: 0; }
  .feat-grid, .steps { grid-template-columns: 1fr 1fr; }
  .uses { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .lang-split, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact, .fact:first-child { padding: 24px 12px 0; border-left: 1px solid var(--line); }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .fact b { font-size: clamp(17px, 5.4vw, 28px); }
}
@media (max-width: 900px) and (min-width: 641px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-main { grid-column: 1 / -1; }
  .g-c { grid-column: 1 / -1; }
  .g-c .gallery-shot { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .hero-visual { grid-template-columns: 1fr; gap: 16px; }
  .hero-panel { height: 380px; padding-top: 28px; align-items: flex-start; }
  .hero-panel .device { --w: min(240px, 64vw); margin-bottom: calc(var(--w) * -.38); }
  .feat-grid, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --pad: 64px; --r-sec: 28px; --r-lg: 24px; }
  .wrap { width: min(1200px, 100% - 40px); }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: 40px; }
  .hero-visual { margin-top: 48px; }
  .top .wrap { gap: 12px; height: 64px; }
  .top .btn-sm { display: none; }
  .brand { font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .media, .media.flip { flex-direction: column; align-items: stretch; }
  .media .illus { flex: none; }
  .device.side-phone, .media.flip .device.side-phone { --w: min(200px, 56vw); align-self: center; margin: -64px 0 0; }
  .uses { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; }
  .g-main { grid-column: auto; }
  .g-main .gallery-shot { aspect-ratio: 16 / 9; }
  .feat { padding: 32px 28px 36px; }
  .step-shot .device { --w: min(220px, 70%); margin-bottom: calc(var(--w) * -.32); }
  .step-shot { max-height: 360px; }
  .row { gap: 16px; }
  .row .ic-tile { width: 56px; height: 56px; border-radius: 18px; }
  .row .ic-tile .ms { width: 32px; height: 32px; }
  #faq.sec { --pad: 36px; }
  .final-cta { padding: 4px 0 8px; }
  .store { width: 100%; max-width: 300px; }
  .lang > .ms { display: none; }
  .faq summary { padding: 12px 0; font-size: 16px; }
  .faq details p { padding-right: 0; padding-bottom: 10px; }
}
@media (max-width: 560px) {
  .l-long { display: none; }
  .l-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html.js .langs[data-animate] span { opacity: 1 !important; transform: none !important; }
  .float { transform: translate(var(--fx, 0), 0); }
  .feat:hover, .use:hover, .step:hover { translate: none; }
  .langs span:hover, .langs span:focus-visible { transform: none; box-shadow: none; }
}
