/* KOTORA landing v3 (20/10/2026) — bố cục theo tài liệu sửa homepage v1.0:
   hero → vấn đề → báo cáo mẫu → demo → giá trị → cách bắt đầu → tin cậy → FAQ → liên hệ.
   Màu: navy KOTORA + nhấn tím #4634F0 (UX spec 11.2), dùng rất ít. */
:root {
  --ink: #0d0f14;
  --ink-2: #4b5262;
  --ink-3: #8b92a1;
  --line: #e4e7ee;
  --line-2: #eef1f6;
  --page: #ffffff;
  --soft: #f5f6f8;          /* nền chìm theo UX spec */
  --tint: #eef3fc;
  --navy: #1e4e96;
  --navy-2: #2a62b8;
  --dark: #1e4e96;          /* nền xanh hero / solution / CTA — cùng màu navy bản trước */
  --dark-2: #12306a;
  --sky: #9cc3ff;           /* chữ nhấn trên nền tối */
  --accent: #4634f0;        /* màu của giọng ứng viên / điểm nhấn nhỏ */
  --accent-soft: #eceafe;
  --ok: #0e9f6e;
  --white: #ffffff;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --frame: 1160px;
  --jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --num: "Plus Jakarta Sans", "Noto Sans JP", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(13, 15, 20, .04), 0 8px 24px rgba(13, 15, 20, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--jp); font-size: 15px; line-height: 1.8; color: var(--ink); background: var(--page); word-break: auto-phrase; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pc { display: inline; } .sp { display: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.frame { width: min(var(--frame), 100% - 48px); margin-inline: auto; }
.frame--mid { width: min(980px, 100% - 48px); }

/* logo tô màu bằng mask */
/* Logo 28/10/2026: dùng nguyên file kotora-logo-20261028.svg (icon + chữ kotora), chỉ đặt chiều cao. */
.logo-full { display: block; flex: none; width: auto; height: 28px; }
.rpt-brand .logo-full { height: 15px; }
.brand { display: inline-flex; align-items: flex-end; gap: 4px; text-decoration: none; }
/* logo chữ "kotora" động (canvas, assets/logo-*.js); màu lấy từ `color` — cùng màu nền banner */
.kotora-logo { display: block; height: 34px; aspect-ratio: 504 / 120; color: var(--dark); }

/* ================= Buttons ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 1px solid transparent; border-radius: 12px; font: 700 15.5px/1 var(--jp); letter-spacing: .03em; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn svg { flex: none; width: 19px; height: 19px; stroke-width: 2; transition: transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg:last-child { transform: translateX(2px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 13.5px; border-radius: 10px; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: #242936; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--light { background: var(--white); color: var(--dark); }
.btn--light:hover { background: #e9efff; }
.btn--outline { background: rgba(255, 255, 255, .04); color: var(--white); border-color: rgba(255, 255, 255, .3); }
.btn--outline:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .08); }

/* ================= Badge / tiêu đề section ================= */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: 12.5px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.badge--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #d8e4ff; }
.badge--dark i { background: var(--sky); box-shadow: 0 0 0 3px rgba(156, 195, 255, .2); }
.sec { position: relative; padding: 112px 0; }
.sec--soft { background: var(--soft); }
.sec--dark { overflow: hidden; background: var(--dark); color: var(--white); }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sec-head--left { align-items: flex-start; text-align: left; }
.sec-title { margin-top: 18px; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.4; font-weight: 700; letter-spacing: .01em; }
.sec-lead { margin-top: 16px; max-width: 640px; font-size: 15.5px; color: var(--ink-2); }
.sec--dark .sec-lead { color: #d8e2f4; }
.sec-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 56px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* lưới mờ cho nền tối */
.hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }

/* ================= Header ================= */
.hd { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 16px; pointer-events: none; }
.hd-bar { pointer-events: auto; display: flex; align-items: center; gap: 24px; width: min(var(--frame), 100%); height: 64px; margin-inline: auto; padding: 0 12px 0 20px;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--white); border-radius: 16px; box-shadow: 0 8px 28px rgba(11, 31, 69, .18); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: box-shadow .18s; }
.hd.is-scrolled .hd-bar { border-color: var(--line); box-shadow: 0 10px 30px rgba(11, 31, 69, .12); }
.hd-nav { display: flex; gap: 2px; margin: 0 auto; }
.hd-nav a { position: relative; white-space: nowrap; padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; transition: background-color .15s, color .15s; }
.hd-nav a:hover { background: var(--tint); color: var(--navy); }
/* mục đang xem (main.js gắn .is-active khi cuộn) */
.hd-nav a.is-active { color: var(--navy); background: var(--tint); }
.hd-nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.hd-cta { display: flex; gap: 8px; }

/* nút ☰ (chỉ hiện dưới 1100px) và menu trượt */
.hd-menu { display: none; flex: none; place-items: center; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
.hd-menu:hover { background: var(--tint); }
.hd-menu svg { width: 22px; height: 22px; stroke-width: 2; }
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(8, 20, 45, 0); transition: background-color .2s; }
.drawer[hidden] { display: none; }
.drawer.is-open { background: rgba(8, 20, 45, .45); }
.drawer-panel { display: flex; flex-direction: column; gap: 24px; width: min(320px, 86vw); height: 100%; padding: 18px 20px 28px; background: var(--white); box-shadow: 12px 0 40px rgba(8, 20, 45, .2); transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); cursor: pointer; }
.drawer-close svg { width: 20px; height: 20px; stroke-width: 2; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 700; text-decoration: none; }
.drawer-nav a:hover { color: var(--navy); }
body.no-scroll { overflow: hidden; }

/* ================= Hero ================= */
.hero { position: relative; overflow: hidden; padding: 156px 0 56px; color: var(--white); background: var(--dark);
  background-image: radial-gradient(60% 50% at 80% 20%, rgba(120, 170, 255, .35), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(70, 52, 240, .18), transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; width: min(var(--frame), 100% - 48px); margin-inline: auto; }
.hero-title { margin: 24px 0 22px; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.38; font-weight: 900; letter-spacing: -.005em; }
.hero-title em { font-style: normal; color: var(--sky); }
.hero-title em b { font-weight: inherit; white-space: nowrap; }
.hero-lead { max-width: 540px; font-size: 15.5px; line-height: 1.95; color: #dde6f6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-visual { position: relative; padding: 8px 0 24px; }
.hero-visual .rpt { width: min(430px, calc(100% - 100px)); margin-left: auto; box-shadow: 0 30px 80px rgba(3, 12, 32, .45), 0 0 0 8px rgba(255, 255, 255, .06); }
.hero-phone { position: absolute; left: 0; bottom: 0; width: 124px; margin: 0; padding: 5px; border-radius: 24px; background: var(--white); box-shadow: 0 20px 50px rgba(3, 12, 32, .45); }
.hero-phone img { width: 100%; height: auto; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; border-radius: 19px; }

.hero-points { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: min(var(--frame), 100% - 48px); margin: 72px auto 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; }
.hero-points li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.hero-points svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(156, 195, 255, .14); color: var(--sky); }

/* ================= Báo cáo mẫu (dựng bằng HTML) ================= */
.rpt { position: relative; width: min(440px, 100%); padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); color: var(--ink); font-size: 13px; line-height: 1.7; text-align: left; }
.rpt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rpt-brand { display: inline-flex; align-items: flex-end; gap: 2px; font: 800 11px var(--num); letter-spacing: .1em; }
.rpt-tag { padding: 3px 10px; border-radius: 99px; background: #fff4e0; font-size: 10.5px; font-weight: 700; color: #9a5b00; }
.rpt-who { margin-top: 14px; font-size: 12px; color: var(--ink-2); }
.rpt-who b { margin-right: 10px; font-size: 14px; color: var(--ink); }
.rpt-top { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--tint); }
.rpt-level { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--white); font: 800 30px var(--num); color: var(--navy); }
.rpt-top b { display: block; font-size: 14.5px; }
.rpt-top small { display: block; font-size: 11.5px; color: var(--ink-2); }
.rpt-sum { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.rpt-rows li { position: relative; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.rpt-rows li:last-child { border-bottom: 0; }
.rpt-row-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rpt-row-h b { font-size: 13.5px; }
.st { flex: none; padding: 2px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.st--ok { background: #e3f5ee; color: #0b7d57; }
.st--part { background: #fff4e0; color: #9a5b00; }
.st--na { background: var(--line-2); color: var(--ink-2); }
.rpt-q { position: relative; margin-top: 6px; padding: 8px 12px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--soft); font-size: 12.5px; }
.rpt-note { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.gloss { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
html[lang="ja"] .gloss { display: none; }
.rpt-next { position: relative; margin-top: 6px; padding: 12px 14px; border: 1px dashed #c9d6ee; border-radius: 12px; background: #f8faff; }
.rpt-next b { font-size: 12.5px; color: var(--navy); }
.rpt-next li { position: relative; padding-left: 14px; font-size: 12.5px; }
.rpt-next li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.rpt-foot { margin-top: 12px; font-size: 10.5px; color: var(--ink-3); text-align: right; }
.rpt--hero .rpt-top { margin-top: 12px; }
.rpt--full { width: 100%; padding: 26px 28px 24px; font-size: 14px; box-shadow: 0 20px 50px rgba(11, 31, 69, .1); }
.rpt--full .rpt-q, .rpt--full .rpt-note, .rpt--full .rpt-next li, .rpt--full .rpt-sum { font-size: 13.5px; }


/* ================= Section chung ================= */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.issue { padding: 30px 28px 32px; transition: border-color .18s, transform .18s; }
.issue:hover { border-color: #c9d6ee; transform: translateY(-2px); }
.ic-tile { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--navy); }
.ic-tile svg { width: 28px; height: 28px; stroke-width: 1.7; }
.issue h3 { margin-top: 22px; font-size: 18px; line-height: 1.6; }
.issue h3 + p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }

/* ================= Report ================= */
.report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; margin-top: 56px; }
.report .rpt { order: 2; }
/* chú thích: danh sách icon + đường kẻ, không đánh số */
.callouts { order: 1; border-top: 1px solid var(--line); }
.callouts li { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.co-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--navy); }
.co-ic svg { width: 22px; height: 22px; stroke-width: 1.7; }
.callouts h3 { font-size: 16.5px; line-height: 1.5; }
.callouts p { margin-top: 4px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }

/* ================= Demo ================= */
.demo { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.demo-step { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; }
/* mũi tên giữa 2 card: vòng tròn trắng canh đúng tâm khe (gap 20px → left -10px) */
.demo-step + .demo-step::before { content: ""; position: absolute; left: -10px; top: 50%; z-index: 1; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M10 7l5 5-5 5%27 fill=%27none%27 stroke=%27%238b92a1%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / 16px no-repeat; transform: translate(-50%, -50%); }
.demo-no { display: flex; align-items: center; gap: 10px; font: 800 13px/1 var(--num); letter-spacing: .1em; color: var(--navy); }
.demo-no span { font: 700 12px/1 var(--jp); letter-spacing: .04em; color: var(--ink-3); }
html:not([lang="ja"]) .demo-no span { font-family: var(--num); }
.demo-step h3 { margin-top: 12px; font-size: 16.5px; line-height: 1.55; }
.bubble { margin-top: 16px; padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.8; }
.bubble b { display: block; margin-bottom: 4px; font-size: 11px; color: var(--ink-3); }
.bubble--ai { background: var(--soft); }
.bubble--me { background: var(--accent-soft); }
.bubble--me b { color: var(--accent); }
.bubble .gloss { margin-top: 6px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.finding { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; font-size: 13.5px; line-height: 1.8; }
.finding-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.finding-h b { font-size: 14px; }
.finding-next { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--ink-2); }
.finding-next b { display: block; font-size: 11.5px; color: var(--navy); }
.demo-note { margin-top: 22px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* ================= Trust (nền xanh) ================= */
.sec--dark { overflow: hidden; color: var(--white); background-color: var(--dark); background-image: radial-gradient(50% 60% at 50% 0%, rgba(120, 170, 255, .28), transparent 70%); }
.sec--dark .frame { position: relative; }
.glass { padding: 30px 28px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.sol-no { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(156, 195, 255, .14); color: var(--sky); }
.sol-no svg { width: 24px; height: 24px; }
.glass h3 { margin-top: 20px; font-size: 18px; }
.glass p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: #d8e2f4; }

/* ================= Steps (timeline ngang, 3 bước) ================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.steps::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps li { position: relative; text-align: center; }
.step-dot { position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: var(--navy); color: var(--white); font: 800 18px var(--num); box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--line); }
.steps h3 { margin-top: 26px; font-size: 17px; }
.steps p { margin: 8px auto 0; max-width: 320px; padding: 0 6px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.integ { display: flex; align-items: center; gap: 20px; max-width: 880px; margin: 64px auto 0; padding: 22px 24px; background: var(--soft); }
.integ p { flex: 1; font-size: 14.5px; font-weight: 500; line-height: 1.8; }
.integ .btn { flex: none; }

/* ================= FAQ ================= */
.faq { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.faq .sec-head { position: sticky; top: 112px; }
.faq .sec-head .btn { margin-top: 28px; }
.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .18s; }
.qa + .qa { margin-top: 10px; }
.qa[open] { border-color: #c9d6ee; }
.qa summary { position: relative; padding: 18px 60px 18px 22px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 700; border-radius: 14px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--ink-2); transition: transform .18s; }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0); }
.qa p { margin: -4px 22px 0; padding: 0 0 20px; font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }

/* ================= Contact ================= */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.form { padding: 36px; box-shadow: var(--shadow); }
.form-topic { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; border: 0; }
.form-topic legend { width: 100%; margin-bottom: 10px; font-size: 13.5px; font-weight: 700; }
.form-topic label { position: relative; cursor: pointer; }
.form-topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.form-topic label span { display: inline-block; padding: 9px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 500; transition: background-color .15s, border-color .15s, color .15s; }
.form-topic label input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.form-topic input:focus-visible + span { outline: 3px solid var(--navy-2); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.form > .field { margin-top: 18px; }
.field > span { font-size: 13.5px; font-weight: 700; }
.req { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--accent); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font: 16px/1.6 var(--jp); color: var(--ink); transition: border-color .15s, background-color .15s, box-shadow .15s; }
html:not([lang="ja"]) .field input, html:not([lang="ja"]) .field textarea { font-family: var(--num); }
.field input:focus, .field textarea:focus { border-color: var(--navy-2); background: var(--white); outline: none; box-shadow: 0 0 0 4px rgba(42, 98, 184, .15); }
.field.is-invalid input { border-color: #d9503c; }
.hp { position: absolute; left: -9999px; }
.btn--submit { width: 100%; margin-top: 28px; }
.btn--submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; }
.form-msg { margin-top: 10px; min-height: 1.8em; text-align: center; font-size: 14px; font-weight: 700; }
.form-msg.is-ok { color: var(--ok); }
.form-msg.is-err { color: #d9503c; }

/* ================= Footer (nền trắng như bản trước) ================= */
.ft { padding: 64px 0 28px; border-top: 1px solid var(--line); background: var(--white); }
.ft-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.ft-brand .logo-full { height: 36px; }
.ft-brand .kotora-logo { height: 46px; }
.ft-brand p { margin-top: 14px; font-size: 13px; font-weight: 700; line-height: 1.7; }
.ft-org { margin-top: 22px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.ft-org-label { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.ft-org a { font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.ft-org a::after { content: " ↗"; font-weight: 400; color: var(--ink-3); }
.ft-org a:hover { color: var(--navy); }
.ft-org address { font-style: normal; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.ft-legal a { font-family: var(--jp); font-size: 13px; color: var(--ink-2); text-decoration: none; }
.ft-legal a:hover { color: var(--navy); text-decoration: underline; }

/* ================= Trang chính sách (privacy.html) ================= */
.legal { padding: 148px 0 96px; }
.legal-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-head .sec-title { margin-top: 14px; }
.legal-date { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.legal-lead { margin-top: 28px; color: var(--ink-2); }
.legal-sec { margin-top: 40px; }
.legal-sec h2 { display: flex; gap: 10px; font-size: 18px; line-height: 1.5; font-weight: 700; }
.legal-sec h2 span { flex: none; font-family: var(--num); color: var(--navy); }
.legal-sec h3 { margin-top: 18px; font-size: 15px; font-weight: 700; }
.legal-sec p, .legal-sec li { color: var(--ink-2); }
.legal-sec p { margin-top: 10px; }
.legal-sec ul { margin: 10px 0 0; padding-left: 1.3em; list-style: disc; }
.legal-sec li::marker { color: var(--ink-3); }
.legal-sec li + li { margin-top: 4px; }
.legal-box { margin-top: 14px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.legal-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; font-size: 14px; }
.legal-box dt { font-weight: 700; color: var(--ink); }
.legal-box dd { margin: 0; color: var(--ink-2); }
.legal-box a, .legal-sec p a { color: var(--navy); }
.legal-end { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); text-align: right; }
@media (max-width: 640px) {
  .legal { padding: 112px 0 64px; }
  .legal-sec h2 { font-size: 16px; }
  .legal-box { padding: 16px; }
  .legal-box dl { grid-template-columns: 1fr; gap: 0; }
  .legal-box dd + dt { margin-top: 8px; }
}
.ft-col p { margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.ft-col a { display: block; padding: 3px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.ft-col a::before { content: "— "; color: var(--ink-3); }
.ft-col a:hover { color: var(--navy); }
.ft-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-family: var(--num); }


/* ================= Chọn ngôn ngữ ================= */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font: 700 13.5px/1 var(--num); color: var(--ink); cursor: pointer; transition: border-color .15s; }
.lang-btn:hover { border-color: var(--ink-3); }
.lang-globe { width: 17px; height: 17px; color: var(--navy); }
.lang-chev { width: 16px; height: 16px; color: var(--ink-3); transition: transform .15s; }
.lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 160px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 16px 40px rgba(11, 31, 69, .16); }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; font: 500 14px/1.2 var(--num); color: var(--ink); text-align: left; cursor: pointer; }
.lang-menu button:hover { background: var(--soft); }
.lang-menu button[aria-checked="true"] { font-weight: 800; color: var(--navy); }
.lang-menu button[aria-checked="true"]::after { content: ""; width: 5px; height: 9px; margin-right: 3px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-2px); }
.lang-menu [lang="ja"] { font-family: var(--jp); }

/* EN/VI: Plus Jakarta Sans (đủ dấu tiếng Việt), ngắt dòng bình thường; lời thoại tiếng Nhật giữ font Nhật */
html:not([lang="ja"]) body { font-family: var(--num); word-break: normal; overflow-wrap: break-word; }
html:not([lang="ja"]) [lang="ja"] { font-family: var(--jp); word-break: auto-phrase; }
html:not([lang="ja"]) .hero-title { line-height: 1.22; letter-spacing: -.015em; }
/* Tiêu đề hero 3 dòng, cụm nhấn <em> nằm trọn dòng giữa. Bản nào cụm nhấn quá dài thì GIẢM CỠ CHỮ RIÊNG bản đó,
   theo bề rộng cột (cqi). Số chia = độ dài cụm nhấn / cỡ chữ (đo bằng Playwright) + chút dư.
   VI: "khả năng giao tiếp trong công việc" ≈ 16.15 lần cỡ chữ. EN vừa sẵn nên không cần. */
.hero-copy { container-type: inline-size; }
html[lang="vi"] .hero-title { font-size: min(clamp(28px, 3.3vw, 42px), max(17px, 100cqi / 16.4)); } /* không to hơn cỡ chuẩn */
html:not([lang="ja"]) .sec-title { line-height: 1.3; letter-spacing: -.01em; }
html:not([lang="ja"]) .feat-text h3 { letter-spacing: -.01em; }

/* ================= Responsive ================= */
/* EN/VI: chữ menu dài hơn tiếng Nhật nên ẩn menu chữ sớm hơn */
@media (max-width: 1239px) {
  html:not([lang="ja"]) .hd-nav { display: none; }
  html:not([lang="ja"]) .hd-menu { display: grid; }
  html:not([lang="ja"]) .hd-cta { margin-left: auto; }
}
@media (max-width: 1100px) {
  .hd-nav { display: none; }
  .hd-menu { display: grid; }
  .hd-cta { margin-left: auto; }
  .report { gap: 48px; }
}
@media (max-width: 960px) {
  .hero { padding-top: 128px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .hero-points { margin-top: 64px; }
  .cards3, .demo { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .demo-step + .demo-step::before { left: 50%; top: -10px; transform: translate(-50%, -50%) rotate(90deg); }
  .report { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .report .rpt { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .steps::before { display: none; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; gap: 0 18px; padding-bottom: 28px; text-align: left; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 56px; bottom: 6px; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px); }
  .step-dot { grid-row: span 2; margin: 0; box-shadow: none; }
  .steps h3 { margin-top: 10px; }
  .steps p { margin: 4px 0 0; padding: 0; max-width: none; }
  .integ { margin-top: 32px; }
  .faq, .contact { grid-template-columns: 1fr; gap: 36px; }
  .faq .sec-head { position: static; }
  .ft-inner { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pc { display: none; } .sp { display: inline; }
  body { font-size: 14px; }
  html { scroll-padding-top: 84px; }
  .frame, .frame--mid, .hero-inner, .hero-points { width: calc(100% - 32px); }
  .hd { top: 10px; padding: 0 10px; }
  .hd-bar { height: 56px; gap: 6px; padding: 0 8px 0 6px; border-radius: 14px; }
  .hd-menu { margin-right: 0; }
  .hd .logo-full { height: 22px; }
  .lang-cur { display: none; }
  .lang-btn { height: 40px; padding: 0 6px 0 10px; }
  .btn { min-height: 52px; padding: 0 16px; font-size: 14.5px; gap: 8px; }
  .btn--sm { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .hero { padding: 100px 0 40px; }
  .badge { font-size: 11px; padding: 5px 12px 5px 10px; }
  .hero .badge { line-height: 1.5; }
  .hero-title { font-size: clamp(22px, 6.2vw, 25px); line-height: 1.45; margin: 16px 0 14px; }
  html:not([lang="ja"]) .hero-title { line-height: 1.3; }
  html[lang="vi"] .hero-title { font-size: min(clamp(22px, 6.2vw, 25px), max(17px, 100cqi / 16.4)); }
  .hero-lead { font-size: 14px; line-height: 1.85; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .hero-actions .btn { padding: 0 8px; font-size: clamp(12.5px, 3.6vw, 14.5px); }
  .hero-visual { padding: 0 0 16px; }
  .hero-visual .rpt { width: calc(100% - 64px); }
  .hero-phone { width: 84px; bottom: 0; border-radius: 18px; padding: 4px; }
  .hero-phone img { border-radius: 14px; }
  .rpt { padding: 16px; }
  .hero-points { grid-template-columns: 1fr; gap: 14px; margin-top: 48px; padding-top: 24px; }
  .hero-points li + li { padding-left: 0; border-left: 0; }
  .hero-points li { font-size: 14px; }
  .hero-points svg { width: 36px; height: 36px; padding: 8px; }
  .sec { padding: 80px 0; }
  .sec-title { font-size: clamp(19px, 5.6vw, 23px); }
  .sec-lead { font-size: 14px; }
  .sec-head:not(.sec-head--left) .sec-lead { text-align: left; }
  .cards3, .demo { margin-top: 36px; gap: 14px; }
  .demo { gap: 24px; }
  .demo-step + .demo-step::before { top: -12px; }
  .issue, .glass, .demo-step { padding: 22px 20px; }
  .issue h3 { margin-top: 16px; font-size: 16.5px; }
  .report { margin-top: 36px; gap: 28px; }
  .rpt--full { padding: 18px 16px 16px; }
  .callouts li { padding: 18px 0; gap: 14px; }
  .co-ic { width: 40px; height: 40px; }
  .callouts h3 { font-size: 15px; }
  .callouts p { font-size: 13.5px; }
  .integ { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .integ .btn { width: 100%; }
  .qa summary { padding: 16px 50px 16px 18px; font-size: 14.5px; }
  .qa summary::before, .qa summary::after { right: 18px; }
  .qa p { margin: -4px 18px 0; font-size: 14px; }
  .form { padding: 24px 18px; border-radius: 18px; }
  .form-topic label span { padding: 8px 14px; font-size: 13px; }
  .form-grid { grid-template-columns: 1fr; }
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Khối "AIの評価を照合" (#rating): báo cáo bên trái, chú thích bên phải ---------- */
@media (min-width: 961px) {
  .report--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
.report--flip .rpt { order: 1; }
.report--flip .callouts { order: 2; }
.st--off { background: #fdeceb; color: #b42318; }
.cmp-sum { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--tint); font-size: 13px; }
.cmp-sum b { margin-right: 6px; font: 800 18px var(--num); color: var(--navy); }
.cmp-scores { display: flex; gap: 16px; margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.cmp-scores b { margin-left: 4px; font: 800 14px var(--num); color: var(--ink); }
.play { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: 11.5px; font-weight: 700; color: var(--navy); }
.play i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); }
.play svg { width: 10px; height: 10px; fill: var(--white); }

/* ---------- Màn phỏng vấn dựng bằng HTML ở hero (.hero-phone): vẽ ở khổ 228px rồi thu nhỏ ---------- */
.hero-phone .ph { position: relative; width: 114px; aspect-ratio: 390 / 600; overflow: hidden; border-radius: 19px; background: linear-gradient(180deg, #fbfdff 0%, #e4eefc 100%); }
.ph-in { position: absolute; top: 0; left: 0; width: 228px; height: 351px; padding: 16px 14px; transform: scale(.5); transform-origin: 0 0; color: var(--navy); text-align: left; }
.ph-top { display: flex; align-items: center; justify-content: space-between; font: 800 9px var(--num); letter-spacing: .14em; }
.ph-top span { display: flex; align-items: center; gap: 4px; font: 500 9px var(--jp); letter-spacing: 0; color: #8aa0c4; }
.ph-top span i { width: 5px; height: 5px; border-radius: 50%; background: #e5484d; }
.ph-prog { display: flex; align-items: center; gap: 5px; margin-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #dfe8f6; font-size: 9px; color: #5b77a8; }
.ph-prog span { margin-right: 4px; white-space: nowrap; }
.ph-prog i { flex: 1; height: 2px; border-radius: 2px; background: #dfe8f6; }
.ph-prog i.on { background: var(--navy); }
.ph-q { display: flex; gap: 10px; margin-top: 14px; }
.ph-q p { flex: 1; font-size: 14px; font-weight: 800; line-height: 1.5; }
.ph-q img { flex: none; width: 76px; height: 96px; object-fit: cover; border: 3px solid #cfe0fb; border-radius: 12px; }
.ph-hint { margin-top: 4px; font-size: 9px; color: #8aa0c4; }
.ph-pill { display: inline-block; margin-top: 20px; padding: 5px 10px; border-radius: 99px; background: var(--white); font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.ph-wave { display: flex; align-items: center; gap: 2px; height: 26px; margin-top: 10px; }
.ph-wave i { flex: 1; border-radius: 2px; background: #4a86e8; }
.ph-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 22px; }
.ph-keys span { padding: 10px 2px; border-radius: 12px; background: var(--white); font-size: 10px; font-weight: 800; text-align: center; white-space: nowrap; }
@media (max-width: 640px) {
  .hero-phone .ph { width: 76px; border-radius: 14px; }
  .ph-in { transform: scale(.3334); }
}

/* ---------- Popup video giới thiệu (nút "紹介動画を見る" ở hero) ---------- */
.btn svg .play-tri { fill: currentColor; stroke: none; }
.vmodal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 24px; }
.vmodal.is-open { display: flex; }
.vmodal-bg { position: absolute; inset: 0; background: rgba(8, 16, 28, .78); backdrop-filter: blur(3px); }
.vmodal-box { position: relative; width: min(1040px, 100%); }
.vmodal-frame { background: #000; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 80px rgba(8, 16, 28, .5); }
.vmodal-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.vmodal-close { position: absolute; top: -54px; right: 0; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background-color .15s; }
.vmodal-close:hover { background: rgba(255, 255, 255, .3); }
.vmodal-close svg { width: 22px; height: 22px; stroke-width: 2; }
/* Khổ hẹp không đủ chỗ phía trên khung video: đưa nút đóng vào góc trên phải của khung */
@media (max-width: 860px) {
  .vmodal { padding: 16px; }
  .vmodal-close { top: 10px; right: 10px; width: 38px; height: 38px; background: rgba(0, 0, 0, .55); }
  .vmodal-close:hover { background: rgba(0, 0, 0, .75); }
}
