/* XLink landing v2 – Personio-style layout, XLink brand */
:root {
  --bg: #FFFFFF;
  --soft: #F3F7F6;
  --ink: #141414;
  --ink-2: #333333;
  --slate: #525252;
  --line: #E1E8E6;
  --teal: #0E9F8E;
  --teal-deep: #0A7D70;
  --mint: #D3F0EA;
  --mint-2: #E9F7F4;
  --navy: #0E2235;
  --navy-2: #163049;
  --amber: #F2B53A;
  --white: #FFFFFF;
  --r-s: 8px; --r-m: 16px; --r-l: 24px; --r-pill: 999px;
  --wrap: 1200px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 72px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-s); z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid transparent; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--teal-deep); }
.btn-light { background: var(--white); color: var(--ink); border-color: #C9D5D3; }
.btn-light:hover { border-color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn-block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo { font: 800 1.625rem/1 var(--font); letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.logo-x { color: var(--teal); }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 32px; margin-inline: auto; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--teal-deep); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* shared heads */
.center-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.center-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.center-head p:not(.eyebrow) { margin-top: 16px; font-size: 1.1875rem; color: var(--slate); }
.eyebrow { margin-bottom: 14px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }

/* hero */
.hero { padding: 64px 0 0; background: linear-gradient(180deg, var(--white) 0%, var(--mint-2) 60%, var(--white) 100%); }
.hero-head { text-align: center; max-width: 900px; }
.pill-note { display: inline-block; margin-bottom: 22px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--teal-deep); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; }
.lead { margin: 22px auto 0; max-width: 640px; font-size: 1.25rem; color: var(--ink-2); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-product { margin-top: 56px; }
.hero-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hero-tabs [role="tab"] { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font: 500 .9375rem/1 var(--font); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.hero-tabs [role="tab"]:hover { border-color: var(--teal); }
.hero-tabs [role="tab"][aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.hero-tabs .new { font-size: .6875rem; font-weight: 700; padding: 2px 6px; border-radius: var(--r-pill); background: var(--amber); color: var(--ink); }
.tab-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--teal); }
.hero-product.is-playing [aria-selected="true"] .tab-progress { animation: progress var(--auto, 6000ms) linear forwards; }
@keyframes progress { to { width: 100%; } }

.stage { position: relative; padding: 40px 56px 0; border-radius: var(--r-l) var(--r-l) 0 0; background: radial-gradient(120% 90% at 50% 0%, #BFE8DF 0%, #D9F1EC 45%, #EEF8F6 100%); overflow: hidden; }
.stage-screens { position: relative; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(14,34,53,.45); border: 1px solid rgba(14,34,53,.08); border-bottom: 0; background: var(--white); }
.stage-screens img { width: 100%; }
.panel { animation: panelIn .35s ease-out; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.widget { position: absolute; z-index: 2; background: var(--white); border-radius: var(--r-m); box-shadow: 0 20px 40px -18px rgba(14,34,53,.35); border: 1px solid var(--line); padding: 16px 18px; }
.widget h2 { font-size: .9375rem; font-weight: 700; letter-spacing: 0; }
.widget-inbox { left: 14px; bottom: 28px; width: 300px; }
.widget-inbox ul { list-style: none; margin: 12px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.widget-inbox li { display: flex; align-items: center; gap: 10px; font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.widget-inbox b { color: var(--ink); font-weight: 600; }
.av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--teal-deep); font-weight: 700; font-size: .8125rem; }
.av-2 { background: #FDEBC8; color: #8A5A00; } .av-3 { background: #DCE7F5; color: #24507F; }
.widget-link { font-size: .8125rem; font-weight: 600; color: var(--teal-deep); }
.widget-contract { right: 14px; top: 96px; width: 220px; }
.widget-contract .big { margin-top: 6px; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; color: #B4380B; line-height: 1.1; }
.widget-contract .big small { font-size: .8125rem; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.widget-contract .muted { margin-top: 6px; font-size: .8125rem; color: var(--slate); line-height: 1.4; }

/* event strip */
.strip { background: var(--navy); color: rgba(255,255,255,.85); }
.strip-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 32px; min-height: 64px; padding: 14px 0; font-size: .9375rem; text-align: center; }
.strip b { color: var(--white); margin-right: 8px; }
.strip a { color: var(--mint); font-weight: 600; }

/* platform (dark) */
.platform { padding: 112px 0; background: var(--navy); color: #FFFFFF; }
.platform .center-head h2 { color: var(--white); }
.platform .eyebrow { color: #6FD6C6; }
.pillars-row { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.pillars-row strong { display: block; margin-top: 14px; color: var(--white); font-size: 1.0625rem; }
.pillars-row p { margin-top: 6px; color: rgba(255,255,255,.7); font-size: .9375rem; }
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(111, 214, 198, .12); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: #6FD6C6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { background: var(--navy-2); border: 1px solid #25425E; border-radius: var(--r-m); padding: 28px; }
.module h3 { font-size: 1.375rem; color: var(--white); }
.module-sub { margin-top: 4px; color: rgba(255,255,255,.7); font-size: .9375rem; }
.module ul { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid #25425E; display: flex; flex-direction: column; gap: 10px; }
.module li { position: relative; padding-left: 22px; font-size: .9375rem; color: #FFFFFF; }
.module li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.module-accent { background: linear-gradient(160deg, #11524F 0%, var(--navy-2) 70%); border-color: #2A6A64; }
.module-accent li::before { background: var(--amber); }

/* flow */
.flow-section { padding: 112px 0; }
.flow-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.flow-steps li { position: relative; counter-increment: step; padding-right: 28px; }
.flow-steps li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); color: var(--teal-deep); font-weight: 700; }
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px); }
.flow-steps li:last-child::before { background: var(--teal); color: var(--white); }
.flow-time { display: block; font-size: .8125rem; font-weight: 600; color: var(--teal-deep); }
.flow-steps strong { display: block; margin-top: 2px; font-size: 1.125rem; }
.flow-steps p { margin-top: 6px; font-size: .9375rem; color: var(--slate); max-width: 30ch; }
.flow-who { display: inline-block; margin-top: 12px; font-size: .8125rem; color: var(--ink-2); background: var(--mint); padding: 3px 12px; border-radius: var(--r-pill); }

/* feature sections */
.feature { padding: 112px 0; }
.feature-talent { background: var(--soft); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.feature-grid-rev .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.feature-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; color: var(--slate); max-width: 46ch; }
.qa { margin: 32px 0 0; display: flex; flex-direction: column; gap: 20px; }
.qa div { padding-left: 18px; border-left: 3px solid var(--teal); }
.qa dt { font-weight: 700; font-size: 1.0625rem; }
.qa dd { margin: 4px 0 0; color: var(--slate); font-size: .9375rem; max-width: 46ch; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230A7D70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* 9-box card */
.ninebox-card { background: var(--navy); border-radius: var(--r-l); padding: 32px; color: #FFFFFF; box-shadow: 0 30px 60px -36px rgba(14,34,53,.6); }
.ninebox-hint { font-size: .875rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.ninebox { position: relative; padding: 0 0 30px 32px; }
.axis { position: absolute; font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.55); }
.axis-x { bottom: 0; left: 32px; right: 0; text-align: center; }
.axis-y { left: 0; top: 50%; transform: translate(-38%, -50%) rotate(-90deg); white-space: nowrap; }
.nb-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; aspect-ratio: 1.4; }
.nb { grid-row: var(--r); grid-column: var(--c); display: flex; align-items: flex-end; padding: 12px; text-align: left; background: #163049; color: rgba(255,255,255,.9); border: 1px solid #25425E; border-radius: 10px; font: 500 .875rem/1.3 var(--font); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.nb:hover { border-color: var(--teal); }
.nb-star { background: #12474A; }
.nb.is-active { background: var(--teal); border-color: var(--teal); color: var(--white); font-weight: 600; }
.nb-star.is-active { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.nb-detail { margin-top: 20px; padding: 18px 20px; border-radius: 12px; background: #132A41; border-left: 3px solid var(--amber); min-height: 124px; }
.nb-detail h3 { font-size: 1.125rem; color: var(--white); }
.nb-detail p { margin-top: 6px; font-size: .9375rem; color: rgba(255,255,255,.7); }

/* AI chat */
.chat { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(14,34,53,.45); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--navy); color: var(--white); }
.chat-head strong { display: block; font-size: .9375rem; }
.chat-head div span { display: block; font-size: .8125rem; color: rgba(255,255,255,.7); }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); font-weight: 800; }
.chat-body { flex: 1; min-height: 340px; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--soft); }
.msg { max-width: 92%; font-size: .9375rem; line-height: 1.5; }
.msg-user { align-self: flex-end; background: var(--teal); color: var(--white); padding: 10px 16px; border-radius: 16px 16px 4px 16px; }
.msg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); padding: 14px 16px; border-radius: 16px 16px 16px 4px; }
.chat-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .8125rem; }
.chat-table th { text-align: left; font-weight: 600; color: var(--slate); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.chat-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid #EEF3F2; }
.chat-table tr:last-child td { border-bottom: 0; }
.due { font-weight: 600; white-space: nowrap; }
.due-soon { color: #B4380B; }
.chat-action { display: inline-block; margin-top: 10px; font-size: .8125rem; font-weight: 600; color: var(--teal-deep); border: 1px solid var(--teal); border-radius: var(--r-pill); padding: 4px 12px; }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .9375rem; color: #8A8A8A; }
.chat-input span { flex: 1; border: 1px solid #C5D2D0; border-radius: var(--r-pill); padding: 8px 14px; }
.chat-input b { background: var(--navy); color: var(--white); padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; }
.chat.is-waiting .msg-bot, .chat.is-typing .msg-bot { display: none; }
.chat.is-typing .chat-body::after { content: "Trợ lý đang tra dữ liệu…"; align-self: flex-start; font-size: .8125rem; color: var(--slate); padding: 8px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.chat.is-answered .msg-bot { animation: panelIn .3s ease-out; }

/* compliance */
.compliance { padding: 112px 0; background: var(--soft); }
.badge-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.badge-grid li { display: flex; flex-direction: column; gap: 4px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.badge-grid strong { font-size: 1.0625rem; }
.badge-grid strong::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--teal); vertical-align: middle; }
.badge-grid span { color: var(--slate); font-size: .9375rem; padding-left: 20px; }

/* videos */
.videos { padding: 112px 0; }
.video-feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.player { border-radius: var(--r-l); overflow: hidden; background: var(--navy); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.playlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pl-item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; width: 100%; padding: 8px; background: none; border: 1px solid transparent; border-radius: var(--r-m); text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.pl-item img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.pl-item strong { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.pl-item em { font-style: normal; font-size: .8125rem; color: var(--slate); }
.pl-item:hover { background: var(--soft); }
.pl-item.is-playing { border-color: var(--teal); background: var(--mint-2); }
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.cta-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px; border-radius: var(--r-l); background: var(--mint-2); border: 1px solid #CDEAE3; color: var(--ink); text-decoration: none; }
.cta-card h3 { font-size: 1.5rem; }
.cta-card p { color: var(--ink-2); max-width: 46ch; flex: 1; }
.cta-card .btn { margin-top: 8px; }
a.cta-card:hover .btn-dark { background: var(--teal-deep); }
.cta-card-event { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cta-card-event p { color: rgba(255,255,255,.7); }

/* steps */
.steps { padding: 112px 0; background: var(--soft); }
.step-cards { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-cards li { counter-increment: s; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); }
.step-cards li::before { content: "Bước " counter(s); display: inline-block; margin-bottom: 18px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--mint); color: var(--teal-deep); font-size: .8125rem; font-weight: 700; }
.step-cards h3 { font-size: 1.3125rem; }
.step-cards p { margin-top: 10px; color: var(--slate); font-size: .9375rem; }

/* signup */
.signup { padding: 112px 0; background: radial-gradient(100% 80% at 50% 0%, #CDEDE6 0%, var(--mint-2) 50%, var(--white) 100%); }
.form { max-width: 760px; margin: 0 auto; background: var(--white); padding: 36px; border-radius: var(--r-l); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(14,34,53,.45); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .modules legend { font-size: .9375rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--slate); }
.field input, .field select { width: 100%; min-height: 50px; padding: 10px 16px; border: 1px solid #C5D2D0; border-radius: 12px; background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--font); }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,159,142,.2); }
.field [aria-invalid="true"] { border-color: #C2410C; }
.field .err { font-size: .8125rem; color: #B4380B; }
.modules { border: 0; padding: 0; margin: 4px 0 24px; min-width: 0; }
.modules legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid #C5D2D0; border-radius: var(--r-pill); font-size: .9375rem; color: var(--ink-2); background: var(--white); transition: background .15s, border-color .15s, color .15s; }
.chip span::before { content: "+ "; color: var(--slate); }
.chip:hover span { border-color: var(--teal); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:checked + span::before { content: "✓ "; color: #6FD6C6; }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.form-msg { margin-top: 14px; font-size: .9375rem; text-align: center; }
.form-msg.ok { color: var(--teal-deep); font-weight: 600; }
.form-msg.bad { color: #B4380B; }

/* footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 40px 0; font-size: .9375rem; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-inner p:last-child { margin-left: auto; }
.footer-inner a { color: #FFFFFF; }
.logo-light { color: var(--white); }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .nav-login { display: none; }
  .stage { padding: 28px 28px 0; }
  .widget-inbox { width: 260px; bottom: 16px; }
  .widget-contract { top: 60px; width: 196px; }
  .pillars-row { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .flow-steps li:nth-child(2)::after { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid-rev .feature-copy { order: 0; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .video-feature { grid-template-columns: 1fr; }
  .playlist { display: grid; grid-template-columns: repeat(3, 1fr); }
  .pl-item { grid-template-columns: 1fr; }
  .pl-item img { width: 100%; }
  .step-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem !important; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; }
  .nav-login { display: block; text-align: center; padding: 10px 0; }
  .nav-cta .btn { min-height: 50px; }
  .widget { display: none; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero { padding-top: 40px; }
  .lead { font-size: 1.0625rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-product { margin-top: 40px; }
  .hero-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .hero-tabs::-webkit-scrollbar { display: none; }
  .hero-tabs [role="tab"] { flex: none; }
  .stage { padding: 16px 12px 0; border-radius: var(--r-m) var(--r-m) 0 0; }
  .platform, .flow-section, .feature, .compliance, .videos, .steps, .signup { padding: 72px 0; }
  .center-head { margin-bottom: 40px; }
  .center-head p:not(.eyebrow) { font-size: 1.0625rem; }
  .pillars-row { grid-template-columns: 1fr 1fr; gap: 24px 16px; margin-bottom: 40px; }
  .module-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; row-gap: 0; }
  .flow-steps li { padding: 0 0 28px 58px; }
  .flow-steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .flow-steps li:not(:last-child)::after, .flow-steps li:nth-child(2)::after { display: block; top: 40px; bottom: 0; left: 19px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--teal) 0 6px, transparent 6px 12px); }
  .ninebox-card { padding: 20px; }
  .nb { padding: 8px; font-size: .75rem; }
  .ninebox { padding-left: 26px; }
  .axis-x { left: 26px; }
  .chat-table th:nth-child(2), .chat-table td:nth-child(2) { display: none; }
  .badge-grid { grid-template-columns: 1fr; }
  .playlist { grid-template-columns: 1fr; }
  .pl-item { grid-template-columns: 112px 1fr; }
  .pl-item img { width: 112px; }
  .cta-cards { grid-template-columns: 1fr; margin-top: 40px; }
  .cta-card { padding: 28px; }
  .form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner p:last-child { margin-left: 0; }
}

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

/* =========================================================
   v3: crafted app hero, insight chart, placeholders, scale
   ========================================================= */
/* typographic scale closer to Personio */
.center-head h2 { font-size: clamp(2.125rem, 4.4vw, 3.625rem); letter-spacing: -0.035em; }
.center-head { margin-bottom: 64px; }
.platform, .flow-section, .feature, .compliance, .videos, .steps, .signup, .pricing, .testimonial { padding: 128px 0; }
.hero-head { max-width: 1040px; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); }
.module, .badge-grid li, .step-cards li, .cta-card, .price-card, .testi-card { border-radius: var(--r-l); }

/* stage: app shell */
.stage { padding: 44px 56px 0; }
.stage-note { margin-top: 12px; text-align: center; font-size: .8125rem; color: var(--slate); }
.app { display: grid; grid-template-columns: 220px 1fr; height: 560px; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--white); border: 1px solid rgba(14,34,53,.08); border-bottom: 0; box-shadow: 0 30px 60px -30px rgba(14,34,53,.45); text-align: left; }
.app-side { display: flex; flex-direction: column; padding: 18px 12px; background: #F7FAF9; border-right: 1px solid var(--line); }
.app-brand { padding: 0 10px 16px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em; }
.app-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.app-side li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: .875rem; color: var(--ink-2); transition: background .2s, color .2s; }
.app-side li i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #9DB0BF; }
.app-side li.is-on { background: var(--mint); color: var(--teal-deep); font-weight: 600; }
.app-side li.is-on i { border-color: var(--teal); background: var(--teal); }
.app-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; font-size: .8125rem; font-weight: 600; }
.app-user small { display: block; font-weight: 400; color: var(--slate); font-size: .75rem; }
.app-main { position: relative; padding: 18px 28px 0; overflow: hidden; background: var(--white); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.app-search { flex: 0 1 380px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .8125rem; color: #8A8A8A; }
.app-search kbd { font: 600 .6875rem var(--font); color: var(--slate); background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.app-bell { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #E5484D; color: var(--white); font-size: .6875rem; font-weight: 700; }
.app-date { font-size: .8125rem; color: var(--slate); }
.app-hello { margin: 2px 0 18px; font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; }

/* widgets */
.w-grid { display: grid; gap: 14px; }
.w-grid-home { grid-template-columns: 1.6fr 1fr 1fr; }
.w-grid-home .w-span2 { grid-row: span 2; }
.w-grid-2 { grid-template-columns: 1fr 1fr; }
.w-grid-3 { grid-template-columns: repeat(3, 1fr); }
.w { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); min-width: 0; }
.w header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.w h3 { font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.w-count { font-size: .75rem; font-weight: 700; color: var(--white); background: #E5484D; border-radius: var(--r-pill); padding: 1px 8px; }
.w-big { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.w-big small { font-size: .875rem; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.w-note { margin-top: 6px; font-size: .8125rem; color: var(--slate); }
.w-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.w-list li { display: flex; align-items: center; gap: 10px; font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.w-list li > span:not(.av):not(.time) { flex: 1; min-width: 0; }
.w-list b { color: var(--ink); font-weight: 600; }
.w-list small { display: block; color: var(--slate); font-size: .75rem; }
.w-list-tight { gap: 8px; }
.av-4 { background: #F6D9D4; color: #8C2F20; }
.time { flex: none; width: 46px; font-weight: 700; color: var(--teal-deep); font-size: .8125rem; }
.tag { flex: none; font-style: normal; font-size: .6875rem; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill); }
.tag-wait { background: #FDF1D6; color: #8A5A00; }
.tag-warn { background: #FCE4D6; color: #9A3412; }
.tag-bad { background: #FDE2E1; color: #B42318; }
.tag-ok { background: var(--mint); color: var(--teal-deep); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 12px; }
.spark i { flex: 1; height: var(--h); background: var(--mint); border-radius: 3px 3px 0 0; }
.spark i:nth-child(n+3):nth-child(-n+5) { background: var(--teal); }
.w-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.w-stats > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.w-stats span { display: block; font-size: .8125rem; color: var(--slate); }
.w-stats b { display: block; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.w-stats small { font-size: .75rem; color: var(--slate); }
.c-warn { color: #B45309; } .c-bad { color: #B42318; }
.bars-h { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bars-h li { display: grid; grid-template-columns: 84px 1fr 36px; align-items: center; gap: 10px; font-size: .8125rem; }
.bars-h i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) var(--w), var(--soft) var(--w)); }
.bars-h b { font-weight: 600; text-align: right; }
.w-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 6px; }
.w-steps li { flex: 1; padding: 8px 10px; border-radius: 10px; background: var(--soft); font-size: .8125rem; color: var(--slate); text-align: center; }
.w-steps li.done { background: var(--mint); color: var(--teal-deep); font-weight: 600; }
.w-steps li.done::before { content: "✓ "; }
.w-steps li.now { background: var(--navy); color: var(--white); font-weight: 600; }
.kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.kanban section { padding: 12px; background: var(--soft); border-radius: 14px; min-height: 280px; }
.kanban h3 { display: flex; justify-content: space-between; font-size: .8125rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-bottom: 10px; }
.kanban h3 b { color: var(--slate); }
.card-c { margin-bottom: 8px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-size: .8125rem; font-weight: 600; }
.card-c small { display: block; font-weight: 400; color: var(--slate); font-size: .75rem; }
.kanban .k-done { background: var(--mint); }
.mini9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; aspect-ratio: 1.6; }
.mini9 i { display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .875rem; color: var(--ink-2); background: var(--soft); border-radius: 8px; }
.mini9 i.star { background: var(--amber); color: var(--ink); }
.mini9 i:nth-child(5) { background: var(--mint); color: var(--teal-deep); }
.app-chat { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.app-chat .msg-bot .w-list { margin: 10px 0 4px; }

/* insight (chart + assistant) */
.insight { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -40px rgba(14,34,53,.45); }
.insight-chart { padding: 28px 32px 24px; }
.insight-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.insight-head h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.chips-static { display: flex; gap: 6px; }
.chips-static span { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--soft); color: var(--ink-2); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: #E8EEEC; stroke-width: 1; }
.chart .ax { font: 500 11px var(--font); fill: #8A8A8A; text-anchor: end; }
.chart rect { fill: #A9DDD3; }
.chart rect.hl { fill: var(--teal); }
.chart .v { font: 600 11px var(--font); fill: var(--ink-2); text-anchor: middle; }
.chart .l { font: 500 11px var(--font); fill: var(--slate); text-anchor: middle; }
.insight-kpis { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.insight-kpis b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.insight-kpis span { font-size: .8125rem; color: var(--slate); }
.insight-ai { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--soft); }
.insight-ai .chat-body { min-height: 0; background: transparent; }
.insight-ai .msg-bot p + p { margin-top: 8px; }
.ticks-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 40px; }
.ticks-row li { max-width: 340px; font-size: .9375rem; }

/* logos */
.logos { padding: 56px 0 48px; }
.logos-title { text-align: center; font-size: .9375rem; color: var(--slate); }
.logo-row { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-row li { display: grid; place-items: center; height: 56px; border-radius: 12px; font-size: .75rem; color: #8A8A8A; }

/* testimonial */
.testimonial { background: var(--white); }
.testi-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 20px; }
.testi-card { margin: 0; padding: 40px; background: var(--navy); color: var(--white); }
.testi-card blockquote { margin: 0; font-size: 1.5rem; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.testi-card figcaption small { display: block; color: rgba(255,255,255,.7); font-size: .8125rem; }
.testi-stats { display: grid; gap: 20px; }
.testi-stats > div { padding: 28px; border-radius: var(--r-l); background: var(--mint-2); border: 1px solid #CDEAE3; }
.testi-stats b { display: block; font-size: 2.75rem; font-weight: 800; letter-spacing: -0.04em; color: var(--teal-deep); line-height: 1.1; }
.testi-stats span { display: block; margin-top: 6px; font-size: .9375rem; color: var(--ink-2); }

/* pricing */
.pricing { background: var(--white); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); background: var(--white); }
.price-card h3 { font-size: 1.25rem; }
.price { margin-top: 14px; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: .9375rem; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.price-for { margin-top: 4px; color: var(--slate); font-size: .9375rem; }
.price-card ul { list-style: none; margin: 20px 0 24px; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { position: relative; padding-left: 24px; font-size: .9375rem; color: var(--ink-2); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.price-card-hl { border: 2px solid var(--navy); }
.price-badge { position: absolute; top: -13px; left: 32px; padding: 3px 12px; border-radius: var(--r-pill); background: var(--amber); color: var(--ink); font-size: .75rem; font-weight: 700; }

/* placeholder frames: dashed outline marks what still needs real data */
.placeholder .logo-row li, .placeholder .testi-card, .placeholder .testi-stats > div, .placeholder .price-card { outline: 2px dashed #E0A93A; outline-offset: -2px; }
.placeholder .logo-row li { background: repeating-linear-gradient(135deg, #FBF7EE 0 10px, #FFFFFF 10px 20px); }
.ph-note { margin-top: 20px; text-align: center; font-size: .8125rem; color: #8A5A00; }
.ph-note::before { content: "⚠ "; }
body.hide-placeholders .placeholder { display: none; }

/* responsive for v3 parts */
@media (max-width: 1080px) {
  .stage { padding: 28px 24px 0; }
  .app { grid-template-columns: 1fr; height: 540px; }
  .app-side { display: none; }
  .w-grid-home { grid-template-columns: 1fr 1fr; }
  .w-grid-home .w-span2 { grid-column: span 2; grid-row: auto; }
  .kanban { grid-template-columns: repeat(3, 1fr); }
  .kanban section:nth-child(n+4) { display: none; }
  .insight { grid-template-columns: 1fr; }
  .insight-ai { border-left: 0; border-top: 1px solid var(--line); }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .testi-grid, .price-grid { grid-template-columns: 1fr; }
  .price-grid { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .platform, .flow-section, .feature, .compliance, .videos, .steps, .signup, .pricing, .testimonial { padding: 72px 0; }
  .stage { padding: 14px 10px 0; }
  .app { height: 460px; }
  .app-main { padding: 14px 14px 0; }
  .app-search { flex: 1; font-size: .75rem; }
  .app-search kbd { display: none; }
  .app-hello { font-size: 1.25rem; margin-bottom: 12px; }
  .w-grid-home, .w-grid-2, .w-grid-3 { grid-template-columns: 1fr; }
  .w-grid-home .w-span2 { grid-column: auto; }
  .w-grid-home > .w:nth-child(n+3), .w-grid-2 > .w:nth-child(2), .w-grid-3 > .w:nth-child(n+2) { display: none; }
  .w-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .w-stats b { font-size: 1.5rem; }
  .w-steps li { font-size: .6875rem; padding: 6px 4px; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .kanban section:nth-child(n+3) { display: none; }
  .insight-chart { padding: 20px 16px; }
  .insight-kpis { gap: 8px; }
  .insight-kpis b { font-size: 1.125rem; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .testi-card { padding: 28px; }
  .testi-card blockquote { font-size: 1.1875rem; }
}
@media (max-width: 640px) {
  .chart .v, .chart .l, .chart .ax { font-size: 19px; }
  .chart .v { display: none; }
}

/* Font tuning (closest free match to Personio's Regola Neue, with Vietnamese support) */
.lead, .center-head p:not(.eyebrow), .feature-copy > p:not(.eyebrow) { font-weight: 450; }
.btn, .hero-tabs [role="tab"], .nav a:not(.btn) { font-weight: 500; }
.btn-dark, .btn-light { font-weight: 600; }
.w-big, .w-stats b, .insight-kpis b, .price, .testi-stats b, .widget-contract .big { font-weight: 700; }
/* match Personio's hero title metrics: 72px max, weight 600, tracking ≈ -0.02em */
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.05; }
.center-head h2 { letter-spacing: -0.02em; }
/* hero tab icons */
.hero-tabs [role="tab"] { gap: 8px; padding: 10px 18px 10px 14px; }
.tab-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.hero-tabs [aria-selected="true"] .tab-ico { opacity: 1; stroke: #6FD6C6; }

/* module cards: Personio-style white cards on the dark section */
.pillars-row .ico { width: auto; height: auto; background: none; border-radius: 0; }
.pillars-row .ico svg { width: 22px; height: 22px; stroke: #6FD6C6; }
.pillars-row strong { margin-top: 10px; font-size: 1rem; }
.module-grid { gap: 16px; }
.module { display: flex; flex-direction: column; background: var(--white); border: 0; border-radius: 20px; padding: 24px 24px 22px; box-shadow: inset 0 .5px 0 rgba(255,255,255,.2), 0 .5px 2px rgba(0,0,0,.08), 0 2px 16px -4px rgba(0,0,0,.1); color: var(--ink); }
.module h3 { font-size: 1.25rem; color: var(--ink); letter-spacing: -0.01em; }
.module-sub { margin-top: 2px; color: var(--slate); font-size: .9375rem; }
.module ul { margin: 18px 0 0; padding: 0; border-top: 0; gap: 9px; flex: 1; }
.module li { display: flex; align-items: center; gap: 10px; padding-left: 0; font-size: .9375rem; color: var(--ink); }
.module li::before { content: none; }
.mi { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.module-link { margin-top: 20px; font-size: .9375rem; font-weight: 600; color: var(--teal-deep); text-decoration: none; }
.module-link:hover { text-decoration: underline; }
.module-accent { background: linear-gradient(180deg, #FFFFFF 45%, #D3F0EA 100%); border: 0; }
.module-accent li::before { content: none; }

/* buttons & tabs: Personio button system (black primary, 12px radius), XLink teal tabs */
.btn { border-radius: 12px; font-weight: 500; min-height: 48px; padding: 0 22px; }
.btn-dark, .btn-dark:visited { background: #000; color: #fff; border-color: transparent; box-shadow: inset 0 1px 1px rgba(255,255,255,.25), 0 6px 6px -6px rgba(0,0,0,.2), 0 2px 10px -2px rgba(0,0,0,.12); }
.btn-dark:hover, a.cta-card:hover .btn-dark { background: #262626; }
.btn-light { background: #fff; color: #000; border: 1px solid rgba(0,0,0,.12); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn-light:hover { background: #F5F5F5; border-color: rgba(0,0,0,.18); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.btn-dark, .btn-light { font-weight: 500; }
/* light buttons sitting on dark surfaces */
.cta-card-event .btn-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); box-shadow: none; }
.cta-card-event .btn-light:hover { background: rgba(255,255,255,.14); }
/* hero tabs: tinted inactive pill, deep teal active pill */
.hero-tabs { gap: 8px; }
.hero-tabs [role="tab"] { min-height: 48px; padding: 12px 20px 12px 14px; border: 0; background: #E6F5F2; color: #0A6B60; font-weight: 500; font-size: 1rem; }
.hero-tabs [role="tab"]:hover { background: #D6EFEA; }
.hero-tabs [role="tab"][aria-selected="true"] { background: #0B4F48; color: #fff; }
.hero-tabs [role="tab"] .tab-ico { opacity: 1; }
.tab-progress { background: #6FD6C6; }
/* other selected controls follow the same dark style */
.chip input:checked + span { background: #0B4F48; border-color: #0B4F48; }
.chat-input b { background: #000; }
@media (max-width: 640px) {
  .hero-tabs [role="tab"] { min-height: 44px; padding: 10px 16px 10px 12px; font-size: .9375rem; }
}

/* =========================================================
   v4 hero: Personio proportions, vivid glow, glass product frame
   ========================================================= */
.hero { position: relative; padding: 56px 0 96px; background: var(--white); overflow: hidden; }
.hero-head { max-width: 980px; position: relative; z-index: 1; }
.pill-note { margin-bottom: 20px; font-size: .8125rem; padding: 5px 12px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.06; letter-spacing: -0.025em; white-space: nowrap; }
.lead { margin-top: 18px; max-width: 600px; font-size: 1.1875rem; line-height: 1.5; color: #525252; }

/* email + button, joined like Personio */
.hero-cta { display: flex; align-items: center; gap: 6px; width: min(100%, 460px); margin: 30px auto 0; padding: 5px; background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12); }
.hero-cta input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; outline: 0; background: transparent; font: 400 1rem var(--font); color: var(--ink); }
.hero-cta input::placeholder { color: #8A8A8A; }
.hero-cta:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,159,142,.18); }
.hero-cta .btn { min-height: 44px; padding: 0 18px; white-space: nowrap; }
.hero-trust { margin-top: 16px; font-size: .875rem; color: #525252; }
.hero-trust a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }

/* tabs sit on the glow */
.hero-product { position: relative; margin-top: 52px; }
.hero-product::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 40px; width: 1500px; height: 900px; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 38%, rgba(29, 201, 173, .55) 0%, rgba(29, 201, 173, 0) 70%),
    radial-gradient(34% 40% at 78% 34%, rgba(84, 196, 255, .45) 0%, rgba(84, 196, 255, 0) 70%),
    radial-gradient(40% 46% at 50% 70%, rgba(14, 159, 142, .40) 0%, rgba(14, 159, 142, 0) 70%),
    radial-gradient(30% 34% at 62% 18%, rgba(171, 236, 214, .9) 0%, rgba(171, 236, 214, 0) 70%);
  filter: blur(30px); }
.hero-tabs { position: relative; z-index: 1; margin-bottom: 18px; }

/* stage: transparent; the frame lives on .app */
.stage { position: relative; z-index: 1; padding: 12px; background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.65); border-radius: 44px; box-shadow: 0 30px 80px -30px rgba(10, 79, 72, .45), inset 0 1px 0 rgba(255,255,255,.7); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); overflow: visible; }
.stage-note { position: relative; z-index: 1; margin-top: 14px; color: #525252; }
.app { height: 640px; border-radius: 32px; border: 0; box-shadow: none; background: rgba(255,255,255,.42); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); grid-template-columns: 228px 1fr; }
.app-side { background: transparent; border-right: 0; padding: 22px 14px; }
.app-brand { padding: 0 10px 20px; }
.app-side li { color: #333; }
.app-side li i { border-color: #6B7C7A; }
.app-side li.is-on { background: rgba(255,255,255,.75); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.app-side li.is-on i { background: var(--teal); border-color: var(--teal); }
.app-user { background: rgba(255,255,255,.5); border-radius: 14px; }
/* white content panel inside the app, like Personio */
.app-main { margin: 10px 10px 0 0; padding: 22px 28px 0; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.app-top { margin-bottom: 16px; }
.app-search { background: #F6F7F7; border-color: transparent; }
.app-date { font-size: .8125rem; color: #6B6B6B; }
.app-hello { font-size: 1.5rem; font-weight: 600; margin: 2px 0 18px; }

/* widgets: soft borders, pastel stat tiles */
.w { border-color: #ECEEEE; border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.w h3 { color: var(--ink); font-weight: 600; }
.w-stats > div { border: 0; border-radius: 16px; }
.w-stats > div:nth-child(1) { background: #E7F7EE; }
.w-stats > div:nth-child(2) { background: #FFF4DE; }
.w-stats > div:nth-child(3) { background: #FDECEC; }
.w-stats > div:nth-child(4) { background: #EAF2FD; }
.w-grid-home .w:nth-child(2) { background: #E7F7EE; border-color: transparent; }
.w-grid-home .w:nth-child(4) { background: #EAF2FD; border-color: transparent; }
.spark i { background: rgba(14,159,142,.25); }
.kanban section { background: #F6F7F7; border-radius: 16px; }
.w-steps li { background: #F6F7F7; }
.mini9 i { background: #F3F5F5; }
.av { background: #DDF3EE; }

/* section rhythm: a little tighter and consistent */
.platform, .flow-section, .feature, .compliance, .videos, .steps, .signup, .pricing, .testimonial { padding: 112px 0; }
.center-head { margin-bottom: 56px; }
.center-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.logos { padding: 40px 0 56px; }

@media (max-width: 1080px) {
  .hero h1 { white-space: normal; }
  .app { height: 600px; grid-template-columns: 1fr; }
  .app-main { margin: 10px 10px 0; }
  .stage { border-radius: 32px; padding: 10px; }
  .app { border-radius: 24px; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 64px; }
  .hero h1 { font-size: 2.375rem; }
  .lead { font-size: 1.0625rem; }
  .hero-cta { flex-direction: column; align-items: stretch; padding: 6px; }
  .hero-cta input { height: 46px; }
  .hero-cta .btn { width: 100%; }
  .hero-product { margin-top: 36px; }
  .hero-product::before { width: 900px; height: 700px; }
  .stage { border-radius: 24px; padding: 8px; }
  .app { height: 470px; border-radius: 18px; }
  .app-main { margin: 8px 8px 0; padding: 16px 14px 0; border-radius: 16px 16px 0 0; }
  .platform, .flow-section, .feature, .compliance, .videos, .steps, .signup, .pricing, .testimonial { padding: 72px 0; }
}

/* v4.1: stronger glow, tighter app height */
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(232, 248, 244, 0) 0%, #E3F6F1 45%, #F4FBF9 100%); }
.hero-product::before { top: -40px; width: 1600px; height: 980px; filter: blur(42px);
  background:
    radial-gradient(30% 36% at 18% 42%, rgba(18, 194, 166, .85) 0%, rgba(18, 194, 166, 0) 72%),
    radial-gradient(28% 34% at 82% 38%, rgba(56, 189, 248, .70) 0%, rgba(56, 189, 248, 0) 72%),
    radial-gradient(34% 40% at 50% 62%, rgba(14, 159, 142, .65) 0%, rgba(14, 159, 142, 0) 72%),
    radial-gradient(26% 30% at 40% 12%, rgba(126, 232, 208, .95) 0%, rgba(126, 232, 208, 0) 72%),
    radial-gradient(22% 26% at 66% 10%, rgba(165, 230, 255, .9) 0%, rgba(165, 230, 255, 0) 72%); }
.hero-product, .hero-head { z-index: 1; }
.stage { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); }
.app { height: 560px; background: rgba(255,255,255,.26); }
.app-side li { color: #1F2D2B; }
.app-side li.is-on { background: rgba(255,255,255,.85); }
.app-user { background: rgba(255,255,255,.6); }
.hero-tabs [role="tab"] { background: rgba(255,255,255,.7); color: #0A6B60; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.hero-tabs [role="tab"]:hover { background: #fff; }
.hero-tabs [role="tab"][aria-selected="true"] { background: #0B4F48; color: #fff; }
@media (max-width: 1080px) { .app { height: 540px; } }
@media (max-width: 640px) { .app { height: 460px; } }

/* v5 platform block: 3 grouped cards, compact, lit dark background (Personio-style) */
.platform { position: relative; overflow: hidden; background:
  radial-gradient(60% 45% at 50% 0%, rgba(14,159,142,.35) 0%, rgba(14,159,142,0) 70%),
  radial-gradient(40% 35% at 15% 100%, rgba(56,189,248,.12) 0%, rgba(56,189,248,0) 70%),
  linear-gradient(180deg, #0B2A33 0%, #08161F 55%, #060F16 100%); }
.platform .center-head { margin-bottom: 44px; }
.platform .center-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.pillars-row { max-width: 1000px; margin: 0 auto 48px; gap: 24px; }
.pillars-row strong { font-size: .9375rem; }
.pillars-row p { font-size: .875rem; color: rgba(255,255,255,.62); }
.module-grid { max-width: 1000px; margin: 0 auto; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module { padding: 22px 22px 20px; border-radius: 20px; }
.module h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.005em; }
.module-sub { font-size: .875rem; margin-top: 2px; }
.module ul { margin-top: 18px; gap: 8px; flex: 0 0 auto; }
.module li { font-size: .875rem; gap: 9px; line-height: 1.35; }
.module .mi { width: 16px; height: 16px; stroke-width: 1.6; }
.module-extra { margin-top: 16px !important; }
.module-link { margin-top: auto; padding-top: 22px; font-size: .875rem; }
.module-first { background: linear-gradient(180deg, #FFFFFF 55%, #D9F3EC 100%); }
.module-accent { background: var(--white); }
@media (max-width: 1080px) {
  .module-grid { grid-template-columns: 1fr 1fr; }
  .pillars-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .module-grid { grid-template-columns: 1fr; }
}

/* v6 talent block (Personio "HR that scales" layout) */
.talent { padding: 112px 0; background: var(--white); }
.seg { display: flex; justify-content: center; gap: 10px; margin: -16px auto 32px; }
.seg-btn { display: grid; justify-items: center; gap: 2px; min-width: 220px; padding: 14px 20px; border: 1px solid transparent; border-radius: 16px; background: #F4F6F6; color: var(--slate); font: inherit; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.seg-btn .mi { width: 20px; height: 20px; margin-bottom: 4px; stroke: var(--slate); }
.seg-btn strong { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.seg-btn span { font-size: .8125rem; }
.seg-btn:hover { background: #ECF0EF; }
.seg-btn.is-on { background: var(--white); border-color: #E3E8E7; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -14px rgba(0,0,0,.18); }
.seg-btn.is-on .mi { stroke: var(--teal); }
.seg-btn.is-on strong { color: #0A6B60; }

.talent-box { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px; padding: 8px; background: #F4F6F6; border-radius: 28px; }
.acc { display: flex; flex-direction: column; gap: 0; }
.acc [role="tab"] { display: block; width: 100%; text-align: left; padding: 22px 24px; border: 0; border-bottom: 1px solid #E3E8E7; background: transparent; font: inherit; color: var(--ink); cursor: pointer; border-radius: 0; transition: background .15s; }
.acc [role="tab"]:last-child { border-bottom: 0; }
.acc [role="tab"]:hover { background: rgba(255,255,255,.5); }
.acc [role="tab"][aria-selected="true"] { background: var(--white); border-radius: 20px; border-bottom-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.acc-title { display: block; font-size: 1.0625rem; font-weight: 600; }
.acc [aria-selected="true"] .acc-title { color: #0A6B60; }
.acc-sub { display: block; margin-top: 4px; font-size: .875rem; color: var(--slate); }
.acc-body { display: none; }
.acc [aria-selected="true"] .acc-body { display: block; animation: panelIn .3s ease-out; }
.acc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #EEF1F0; }
.acc-facts > span { font-size: .8125rem; color: var(--slate); line-height: 1.35; }
.acc-facts b { display: block; margin-bottom: 4px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.acc-link { display: inline-block; margin-top: 18px; font-size: .875rem; font-weight: 600; color: var(--teal-deep); }

.talent-visual { position: relative; display: grid; place-items: center; min-height: 520px; padding: 40px; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(45% 55% at 20% 25%, rgba(18,194,166,.55) 0%, rgba(18,194,166,0) 70%),
    radial-gradient(45% 55% at 85% 30%, rgba(56,189,248,.45) 0%, rgba(56,189,248,0) 70%),
    radial-gradient(60% 60% at 55% 95%, rgba(14,159,142,.55) 0%, rgba(14,159,142,0) 70%),
    linear-gradient(160deg, #DFF5F0 0%, #CFEFF2 100%); }
.talent-visual .panel { width: 100%; display: grid; place-items: center; }
.talent-visual .panel[hidden] { display: none; }
.vcard { width: min(100%, 460px); padding: 22px; background: rgba(255,255,255,.96); border-radius: 20px; box-shadow: 0 30px 60px -28px rgba(10,79,72,.45), 0 1px 2px rgba(0,0,0,.05); color: var(--ink); }
.vcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.vcard-head h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.muted-s { display: block; margin-top: 2px; font-size: .8125rem; color: var(--slate); }
.goal { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr 44px; align-items: center; gap: 12px; padding: 10px 0; font-size: .875rem; }
.goal b { display: block; font-weight: 600; }
.goal small { display: block; font-size: .75rem; color: var(--slate); }
.goal strong { text-align: right; font-weight: 600; }
.goal-top { padding-top: 0; }
.goal-children { margin: 4px 0 6px 14px; padding-left: 14px; border-left: 2px solid #DDEEEA; }
.bar { height: 8px; border-radius: 4px; background: #EEF2F1; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p); background: var(--teal); border-radius: 4px; }
.vcard-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 14px; background: #F4F7F6; font-size: .875rem; }
.vcard-foot > span:not(.av) { flex: 1; }
.vcard-foot b { display: block; font-weight: 600; }
.vcard-foot small { display: block; font-size: .75rem; color: var(--slate); }
.vcard-foot-top { margin: 0 0 14px; }
.cand { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cand li { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #ECEFEE; border-radius: 14px; font-size: .875rem; }
.cand li > span:not(.av) { flex: 1; }
.cand b { display: block; font-weight: 600; } .cand small { display: block; font-size: .75rem; color: var(--slate); }
.idp { margin-top: 14px; padding: 14px; border-radius: 14px; background: #F4F7F6; font-size: .875rem; }
.idp ol, .pip { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.idp li, .pip li { position: relative; padding-left: 26px; font-size: .8125rem; color: var(--ink-2); }
.idp li::before, .pip li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #B9C7C4; background: #fff; }
.idp li.done::before, .pip li.done::before { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--teal); }
.pip li.now::before { border-color: var(--teal); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px var(--teal); }
.pip li { padding-bottom: 6px; }
.pip b { display: block; font-weight: 600; color: var(--ink); font-size: .875rem; }
.pip small { font-size: .75rem; color: var(--slate); }
.perm { list-style: none; margin: 0; padding: 0; }
.perm li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF1F0; font-size: .875rem; }
.perm li:last-child { border-bottom: 0; }
.perm b { display: block; font-weight: 600; } .perm small { display: block; font-size: .75rem; color: var(--slate); }
.perm em { font-style: normal; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #F1F4F3; color: var(--ink-2); white-space: nowrap; }
.log { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: .75rem; color: var(--slate); line-height: 1.4; }
.log .mi { width: 14px; height: 14px; margin-top: 1px; }

/* 9-box restyled for a light card */
.vcard-9box { width: min(100%, 500px); }
.vcard-9box .ninebox { padding: 0 0 26px 26px; }
.vcard-9box .axis { color: var(--slate); }
.vcard-9box .axis-x { left: 26px; }
.vcard-9box .nb { background: #F4F7F6; color: var(--ink-2); border-color: #E6ECEA; font-size: .8125rem; padding: 10px; }
.vcard-9box .nb:hover { border-color: var(--teal); }
.vcard-9box .nb-star { background: #FFF6E0; }
.vcard-9box .nb.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.vcard-9box .nb-star.is-active { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.vcard-9box .nb-detail { margin-top: 14px; background: #F4F7F6; border-left-color: var(--amber); min-height: 0; }
.vcard-9box .nb-detail h3 { color: var(--ink); font-size: .9375rem; }
.vcard-9box .nb-detail p { color: var(--slate); font-size: .8125rem; }

@media (max-width: 1080px) {
  .talent-box { grid-template-columns: 1fr; }
  .talent-visual { min-height: 0; padding: 28px 20px; }
}
@media (max-width: 640px) {
  .talent { padding: 72px 0; }
  .seg { flex-direction: column; align-items: stretch; margin-top: -8px; }
  .seg-btn { min-width: 0; }
  .acc [role="tab"] { padding: 18px; }
  .talent-visual { padding: 18px 12px; }
  .vcard { padding: 16px; }
  .goal { grid-template-columns: minmax(0, 1.4fr) 1fr 40px; gap: 8px; }
}

.talent-box[hidden] { display: none; }

/* v7 AI section (Personio "Real-time answers": teal gradient, interactive demo, source wires) */
.ai { position: relative; padding: 112px 0 96px; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 16%, #E1F4F0 34%, #7CC7BC 58%, #2C8B81 78%, #145F58 100%); }
.ai .center-head { margin-bottom: 40px; }
.ai-link { display: inline-block; margin-top: 18px; font-size: .9375rem; font-weight: 600; color: #0A6B60; text-decoration: none; }
.ai-link:hover { text-decoration: underline; }

.ai-stage { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 420px) 1fr; align-items: center; gap: 0; max-width: 1000px; margin: 0 auto; min-height: 440px; }
.ai-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ai-wires path { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.2; stroke-dasharray: 3 5; }
.ai-src { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 46px; }
.ai-src li { font-size: .875rem; font-weight: 600; color: #0B4F48; }
.ai-src-left { align-items: flex-start; padding-left: 20px; }
.ai-src-left li::before, .ai-src-right li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.35); vertical-align: middle; }
.ai-src-right { align-items: flex-start; padding-left: 44px; }

.ai-demo { position: relative; z-index: 2; grid-column: 2; display: flex; flex-direction: column; min-height: 400px; padding: 22px; background: #fff; border-radius: 24px; box-shadow: 0 0 0 8px rgba(255,255,255,.35), 0 40px 80px -30px rgba(10,60,55,.55); }
.ai-try { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 10px; background: #000; color: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.ai-demo-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #EEF1F0; }
.ai-demo-head strong { font-size: 1rem; font-weight: 600; background: linear-gradient(90deg, #0A6B60, #0E9F8E 60%, #2BA7D9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-demo-head .chat-avatar { width: 30px; height: 30px; font-size: .875rem; }
.ai-demo-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 16px; }
.ai-intro p { font-size: .9375rem; color: var(--slate); margin-bottom: 12px; }
.ai-qs { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ai-qs button { padding: 9px 14px; border: 0; border-radius: 999px; background: #0B4F48; color: #fff; font: 500 .875rem/1.3 var(--font); text-align: left; cursor: pointer; box-shadow: 0 0 0 3px rgba(14,159,142,.18); transition: background .15s, transform .15s; }
.ai-qs button:hover { background: #0E6A61; transform: translateX(2px); }
.ai-thread { display: flex; flex-direction: column; gap: 10px; }
.ai-thread .msg { max-width: 100%; }
.ai-thread .msg-bot { width: 100%; background: #F6F8F8; border-color: #EEF1F0; }
.ai-thread .msg-bot p + p, .ai-thread .msg-bot p + .mini-bars, .ai-thread .msg-bot .mini-bars + p { margin-top: 8px; }
.ai-typing { align-self: flex-start; font-size: .8125rem; color: var(--slate); padding: 8px 12px; background: #F6F8F8; border-radius: 14px; }
.ai-meta { font-size: .75rem !important; color: var(--slate); }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; padding-top: 6px; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #A9DDD3; }
.mini-bars i.hl { background: var(--teal); }
.ai-reset { align-self: flex-start; margin-top: 12px; padding: 0; border: 0; background: none; font: 600 .8125rem var(--font); color: #0A6B60; cursor: pointer; }
.ai-reset:hover { text-decoration: underline; }

.ai-features { list-style: none; margin: 72px auto 0; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; color: #fff; }
.ai-features .mi { width: 20px; height: 20px; stroke: #fff; margin: 0 auto 8px; display: block; }
.ai-features strong { display: block; font-size: .9375rem; font-weight: 600; }
.ai-features span { display: block; margin-top: 4px; font-size: .8125rem; color: rgba(255,255,255,.75); }

.ai-ctas { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; max-width: 1000px; margin: 56px auto 0; }
.ai-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; border-radius: 24px; }
.ai-cta h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
.ai-cta-glass { background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); }
.ai-cta-dark { background: rgba(8,40,37,.45); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.ai-cta-dark .btn-dark { margin-top: auto; }
.ai-badge { padding: 4px 10px; border-radius: 8px; background: #FDE7B8; color: #6B4600; font-size: .75rem; font-weight: 600; }
.ai-badge-light { background: rgba(255,255,255,.9); color: var(--ink); }
.hero-cta-left { margin: 4px 0 0; width: min(100%, 460px); }

@media (max-width: 1080px) {
  .ai-stage { grid-template-columns: 1fr; max-width: 460px; min-height: 0; }
  .ai-wires, .ai-src { display: none; }
  .ai-demo { grid-column: 1; }
  .ai-features { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .ai-ctas { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ai { padding: 72px 0 64px; background: linear-gradient(180deg, #FFFFFF 0%, #E1F4F0 18%, #7CC7BC 48%, #2C8B81 72%, #145F58 100%); }
  .ai-demo { min-height: 380px; padding: 18px; }
  .ai-features { grid-template-columns: 1fr 1fr; }
  .ai-cta { padding: 22px; }
  .ai-cta h3 { font-size: 1.25rem; }
}

.ai-src-left { grid-column: 1; grid-row: 1; }
.ai-src-right { grid-column: 3; grid-row: 1; }
.ai-demo { grid-row: 1; }
@media (max-width: 1080px) { .ai-demo { grid-column: 1; } }

/* v7.1 AI block sized to Personio (measured at 1280px) */
.ai { padding: 96px 0; }
.ai > .wrap { width: min(100% - 48px, 980px); }
.ai .center-head { max-width: 980px; margin-bottom: 0; }
.ai .center-head h2 { font-size: 48px; line-height: 52px; letter-spacing: -0.02em; }
.ai .center-head p:not(.eyebrow) { margin-top: 18px; font-size: 20px; line-height: 28px; }
.ai-link { margin-top: 20px; font-size: 16px; }

.ai-stage { display: block; position: relative; max-width: none; height: 546px; min-height: 0; margin: 96px 0 0; }
.ai-wires { position: absolute; inset: 0; width: 980px; height: 546px; }
.ai-src-right { position: absolute; left: 842px; top: 180px; padding: 0; gap: 33px; }
.ai-src li { font-size: 16px; line-height: 19px; font-weight: 500; color: #fff; white-space: nowrap; text-shadow: 0 1px 6px rgba(8,60,55,.25); }
.ai-src-right li::before { width: 7px; height: 7px; margin-right: 10px; }

.ai-demo { position: absolute; left: 50%; top: 46px; transform: translateX(-50%); width: 354px; height: 500px; min-height: 0; padding: 24px; border-radius: 24px; box-shadow: 0 0 0 6px rgba(255,255,255,.3), 0 40px 80px -30px rgba(10,60,55,.55); }
.ai-try { top: -46px; height: 38px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 20px; font-size: 14px; font-weight: 500; }
.ai-demo-head { padding-bottom: 12px; }
.ai-demo-head strong { font-size: 20px; line-height: 28px; }
.ai-demo-head .chat-avatar { display: none; }
.ai-demo-body { overflow-y: auto; scrollbar-width: thin; }
.ai-intro p { font-size: 14px; margin-bottom: 10px; }
.ai-qs { gap: 8px; }
.ai-qs button { min-height: 38px; padding: 8px 16px; border-radius: 16px; font-size: 14px; line-height: 20px; }
.ai-thread .msg { font-size: 14px; }

.ai-features { margin: 145px 0 0; max-width: none; gap: 24px; }
.ai-features strong { font-size: 16px; line-height: 24px; }
.ai-features span { font-size: 14px; }

.ai-ctas { grid-template-columns: 643fr 310fr; gap: 24px; max-width: none; margin: 112px 0 0; }
.ai-cta { min-height: 288px; padding: 40px; border-radius: 20px; gap: 16px; }
.ai-cta h3 { font-size: 28px; line-height: 34px; }

@media (max-width: 1080px) {
  .ai-stage { height: auto; margin-top: 64px; padding-top: 46px; }
  .ai-wires, .ai-src { display: none; }
  .ai-demo { position: relative; left: auto; top: auto; transform: none; margin: 0 auto; width: min(100%, 380px); height: 500px; }
  .ai-features { margin-top: 72px; }
  .ai-ctas { grid-template-columns: 1fr; margin-top: 56px; }
  .ai-cta { min-height: 0; }
}
@media (max-width: 640px) {
  .ai { padding: 72px 0; }
  .ai .center-head h2 { font-size: 34px; line-height: 38px; }
  .ai .center-head p:not(.eyebrow) { font-size: 17px; line-height: 25px; }
  .ai-demo { height: 480px; padding: 20px; }
  .ai-cta { padding: 24px; }
  .ai-cta h3 { font-size: 22px; line-height: 28px; }
}

/* v7.2 vertical rhythm matched to Personio */
.ai { padding: 112px 0 96px; }
.ai-stage { margin-top: 126px; }
.ai-features { margin-top: 117px; }
.ai-ctas { margin-top: 87px; }
.ai-intro p { margin-bottom: 8px; }
@media (max-width: 1080px) { .ai-stage { margin-top: 64px; } .ai-features { margin-top: 72px; } .ai-ctas { margin-top: 56px; } }
@media (max-width: 640px) { .ai { padding: 72px 0; } }

/* v8 video block: Personio "Customer stories" carousel (cards 662/432 x 480, gap 24) */
.vids { padding: 96px 0; background: var(--white); overflow: hidden; }
.vids > .wrap { width: min(100% - 48px, 980px); }
.vids .center-head { margin-bottom: 72px; }
.vids .center-head h2 { font-size: 48px; line-height: 52px; letter-spacing: -0.02em; }
.vcar { --edge: max(24px, calc((100% - 980px) / 2)); }
.vcar-track { list-style: none; margin: 0; padding: 0 var(--edge); display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; }
.vcar-track::-webkit-scrollbar { display: none; }
.vc { position: relative; flex: 0 0 auto; width: 662px; height: 480px; border-radius: 24px; overflow: hidden; scroll-snap-align: start; }
.vc-stat { width: 432px; }

.vc-video { background: #0E2235; color: #fff; cursor: pointer; }
.vc-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,16,28,.72) 0%, rgba(4,16,28,.1) 38%, rgba(4,16,28,.1) 62%, rgba(4,16,28,.6) 100%); pointer-events: none; }
.vc-video h3 { position: absolute; z-index: 1; left: 32px; top: 32px; right: 32px; max-width: 420px; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: 0; }
.vc-play { position: absolute; z-index: 1; left: 32px; bottom: 32px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 500 16px var(--font); cursor: pointer; transition: background .15s; }
.vc-play span { font-size: 12px; }
.vc-video:hover .vc-play { background: rgba(255,255,255,.24); }
.vc-dur { position: absolute; z-index: 1; right: 32px; bottom: 44px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.9); }
.vc-video.is-playing::after, .vc-video.is-playing h3, .vc-video.is-playing .vc-play, .vc-video.is-playing .vc-dur { display: none; }
.vc-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 2; }

.vc-note { display: flex; flex-direction: column; justify-content: space-between; padding: 40px; background: linear-gradient(160deg, #F2FBF8 0%, #D6F1EA 60%, #BFE9DF 100%); color: var(--ink); }
.vc-note p { font-size: 24px; line-height: 34px; font-weight: 500; letter-spacing: -0.01em; max-width: 520px; }
.vc-who { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.vc-who .av { width: 40px; height: 40px; background: #0B4F48; color: #fff; }
.vc-who b { display: block; font-weight: 600; } .vc-who small { display: block; color: var(--slate); font-size: 13px; }

.vc-stat { display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; background: #F4F6F6; color: var(--ink); }
.vc-stat b { font-size: 120px; line-height: 1; font-weight: 600; letter-spacing: -0.05em; color: #0A6B60; }
.vc-stat p { margin-top: 16px; font-size: 18px; line-height: 26px; color: var(--ink-2); max-width: 340px; }
.vc-stat-dark { background: #0B4F48; color: #fff; }
.vc-stat-dark b { color: #9BE7D9; }
.vc-stat-dark p { color: rgba(255,255,255,.8); }

.vcar-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.vcar-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F1F4F3; color: var(--ink); cursor: pointer; transition: background .15s, opacity .15s; }
.vcar-btn:hover { background: #E4EAE8; }
.vcar-btn:disabled { opacity: .35; cursor: default; }
.vcar-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vcar-dots { display: flex; align-items: center; gap: 16px; }
.vcar-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #CBD5D2; cursor: pointer; transition: width .25s, background .25s; }
.vcar-dots button[aria-selected="true"] { width: 40px; background: #0B4F48; }

@media (max-width: 1080px) {
  .vc { width: min(620px, 82vw); height: 440px; }
  .vc-stat { width: min(400px, 70vw); }
}
@media (max-width: 640px) {
  .vids { padding: 72px 0; }
  .vids .center-head { margin-bottom: 40px; }
  .vids .center-head h2 { font-size: 34px; line-height: 38px; }
  .vcar { --edge: 16px; }
  .vcar-track { gap: 12px; }
  .vc { width: 86vw; height: 400px; border-radius: 20px; }
  .vc-stat { width: 72vw; }
  .vc-video h3 { left: 20px; top: 20px; right: 20px; font-size: 18px; line-height: 25px; }
  .vc-play { left: 20px; bottom: 20px; height: 44px; font-size: 15px; }
  .vc-dur { right: 20px; bottom: 32px; }
  .vc-note, .vc-stat { padding: 24px; }
  .vc-note p { font-size: 19px; line-height: 27px; }
  .vc-stat b { font-size: 88px; }
  .vc-stat p { font-size: 16px; line-height: 23px; }
}

.vc-video img { object-position: 30% 0; transform: scale(1.04); filter: saturate(.9); }
.vc-video::after { background: linear-gradient(180deg, rgba(5,30,40,.82) 0%, rgba(5,30,40,.35) 40%, rgba(5,30,40,.25) 60%, rgba(5,30,40,.78) 100%); }

.vc-video img { object-position: 25% 70%; transform: scale(1.12); transform-origin: 30% 80%; }
.vc-video::after { background: linear-gradient(180deg, rgba(5,30,40,.92) 0%, rgba(5,30,40,.7) 22%, rgba(5,30,40,.12) 48%, rgba(5,30,40,.12) 62%, rgba(5,30,40,.8) 100%); }

/* v9 compliance block: Personio "Compliance built for…" (dark gradient, 3 badge cards 310x184, 5-col features) */
.comp { padding: 96px 0; color: #fff; background:
  radial-gradient(50% 40% at 50% 0%, rgba(14,159,142,.28) 0%, rgba(14,159,142,0) 70%),
  linear-gradient(180deg, #0C3A47 0%, #04161E 100%); }
.comp > .wrap { width: min(100% - 48px, 980px); }
.comp .center-head { max-width: 488px; margin: 0 auto 64px; }
.comp .eyebrow { font-size: 14px; color: rgba(255,255,255,.7); }
.comp .center-head h2 { font-size: 48px; line-height: 52px; letter-spacing: -0.02em; color: #fff; }
.comp .center-head p:not(.eyebrow) { margin-top: 20px; font-size: 20px; line-height: 28px; color: rgba(255,255,255,.72); }
.comp-link { color: #8FE3D5; }

.comp-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.comp-badges li { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 184px; padding: 16px 16px 24px; border-radius: 24px; background: rgba(255,255,255,.05); box-shadow: inset 0 .5px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 30px -18px rgba(0,0,0,.6); }
.comp-badges strong { font-size: 16px; line-height: 24px; font-weight: 500; color: #fff; text-align: center; }
.seal { width: 222px; height: 96px; overflow: visible; }
.seal-ring { fill: rgba(143,227,213,.08); stroke: #8FE3D5; stroke-width: 1.6; }
.seal-inner { fill: none; stroke: rgba(143,227,213,.45); stroke-width: 1; stroke-dasharray: 2 4; }
.seal-big { font: 700 22px var(--font); fill: #fff; text-anchor: middle; letter-spacing: .02em; }
.seal-big-l { font-size: 26px; }
.seal-small { font: 600 10px var(--font); fill: #8FE3D5; text-anchor: middle; letter-spacing: .12em; }

.comp-feats { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; text-align: center; }
.comp-feats li { padding: 0 8px; }
.comp-feats .mi { display: block; width: 18px; height: 18px; margin: 0 auto 6px; stroke: #fff; stroke-width: 1.7; }
.comp-feats strong { display: block; font-size: 16px; line-height: 24px; font-weight: 500; }
.comp-feats span { display: block; font-size: 16px; line-height: 24px; font-weight: 500; color: rgba(255,255,255,.7); }

@media (max-width: 1080px) {
  .comp-badges { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .seal { width: 100%; max-width: 222px; }
  .comp-feats { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}
@media (max-width: 640px) {
  .comp { padding: 72px 0; }
  .comp .center-head h2 { font-size: 34px; line-height: 38px; }
  .comp .center-head p:not(.eyebrow) { font-size: 17px; line-height: 25px; }
  .comp-badges { grid-template-columns: 1fr; gap: 12px; }
  .comp-badges li { height: 160px; }
  .comp-feats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .comp-feats span { font-size: 14px; line-height: 20px; }
}

/* v10 onboarding: Personio "Switch with confidence" (3 cols 310px, cards ~480px, pills, last card dark) */
.onb { padding: 96px 0; background: linear-gradient(180deg, #FFFFFF 15%, #D3F0EA 80%); }
.onb > .wrap { width: min(100% - 48px, 980px); }
.onb .center-head { max-width: 980px; margin-bottom: 64px; }
.onb .center-head h2 { font-size: 48px; line-height: 52px; letter-spacing: -0.02em; }
.onb .center-head p:not(.eyebrow) { margin-top: 18px; font-size: 20px; line-height: 28px; }
.onb-cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.onb-cols::before { content: ""; position: absolute; left: 16%; right: 16%; top: 13px; height: 1px; background: repeating-linear-gradient(90deg, rgba(10,107,96,.35) 0 6px, transparent 6px 12px); }
.onb-col { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.onb-pill { position: relative; z-index: 1; padding: 4px 12px; border-radius: 8px; background: rgba(255,255,255,.85); box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 16px; line-height: 19px; font-weight: 500; color: #000; }
.onb-pill-dark { background: #0B4F48; color: #fff; }
.onb-card { display: flex; flex-direction: column; width: 100%; height: 480px; padding: 32px; border-radius: 24px; background: rgba(255,255,255,.55); box-shadow: inset 0 .5px 0 rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.04); overflow: hidden; }
.onb-card h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.onb-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.onb-list li { position: relative; padding-left: 24px; font-size: 16px; line-height: 24px; color: #525252; }
.onb-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%230A6B60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.onb-card-dark { background: linear-gradient(151deg, #0E6A61 13%, #083A35 77%); box-shadow: 0 30px 60px -30px rgba(8,58,53,.6); }
.onb-card-dark h3 { color: #fff; }
.onb-card-dark .onb-list li { color: rgba(255,255,255,.82); }
.onb-card-dark .onb-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%239BE7D9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.onb-art { margin-top: auto; }
.onb-art-avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.onb-art-avatars span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 11px; font-weight: 700; color: #0A6B60; background: #DDF3EE; box-shadow: 0 0 0 2px #fff; }
.onb-art-avatars span:nth-child(3n) { background: #FDEBC8; color: #8A5A00; }
.onb-art-avatars span:nth-child(4n) { background: #DCE7F5; color: #24507F; }
.onb-art-avatars span:last-of-type { background: #0B4F48; color: #fff; }
.onb-art-avatars small { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; color: #525252; }
.onb-bubble { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 10px 24px -14px rgba(0,0,0,.25); }
.onb-bubble .av { width: 32px; height: 32px; flex: none; background: #0B4F48; color: #fff; }
.onb-bubble p { font-size: 13px; line-height: 19px; color: #333; }
.onb-bubble b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 2px; }
.onb-toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.onb-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #9BE7D9; box-shadow: 0 0 0 4px rgba(155,231,217,.25); }
.onb-toast p { font-size: 13px; line-height: 18px; color: rgba(255,255,255,.8); }
.onb-toast b { display: block; color: #fff; font-size: 13px; }

.onb-note { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 40px auto 0; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.6); font-size: 14px; color: #333; }
.onb-note .mi { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #0B4F48; stroke: #fff; }

@media (max-width: 1080px) {
  .onb-cols { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .onb-cols::before { display: none; }
  .onb-card { height: auto; min-height: 0; }
  .onb-art { margin-top: 24px; }
}
@media (max-width: 640px) {
  .onb { padding: 72px 0; }
  .onb .center-head h2 { font-size: 34px; line-height: 38px; }
  .onb .center-head p:not(.eyebrow) { font-size: 17px; line-height: 25px; }
  .onb-card { padding: 24px; }
  .onb-note { font-size: 13px; text-align: left; }
}

/* v10.1 onboarding vertical metrics matched to Personio */
.onb .eyebrow { margin-bottom: 32px; }
.onb .center-head p:not(.eyebrow) { margin-top: 20px; }
.onb .center-head { margin-bottom: 78px; }
.onb-col { gap: 26px; }
.onb-pill { padding: 6px 12px; line-height: 20px; }
.onb-card { height: 521px; }
.onb-cols::before { top: 16px; }
.onb-note { margin-top: 52px; }
@media (max-width: 1080px) { .onb-card { height: auto; } .onb .center-head { margin-bottom: 48px; } .onb-col { gap: 14px; } }

/* =========================================================
   v11: header, trust row, flow carousel, pricing, final CTA, dialog, footer (Personio metrics @1280)
   ========================================================= */
/* header: fixed 56px, full width, transparent + blur */
.site-header { position: sticky; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header > .wrap.header-inner { width: 100%; max-width: none; padding: 0 32px; min-height: 56px; }
.logo { font-size: 1.5rem; }
.nav a:not(.btn) { font-size: 16px; font-weight: 500; }
.nav-links { gap: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { background: rgba(0,0,0,.04); }
.nav-cta .btn-small { min-height: 40px; }
section[id] { scroll-margin-top: 56px; }

/* trust row under hero (Personio "Trusted by… organisations:") */
.trust { padding: 28px 0 40px; background: var(--white); }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.trust-text { font-size: 16px; line-height: 24px; color: #525252; }
.trust-logos { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.trust-logos li { display: grid; place-items: center; width: 116px; height: 36px; border-radius: 8px; font-size: 11px; color: #9A9A9A; background: repeating-linear-gradient(135deg, #FBF7EE 0 8px, #fff 8px 16px); outline: 1.5px dashed #E0A93A; outline-offset: -1.5px; }
.trust .ph-note { margin-top: 12px; }

/* flow as Personio "HR evolves" carousel (cards 662x480) */
.flowx { padding: 96px 0; background: #F4F6F6; overflow: hidden; }
.flowx > .wrap { width: min(100% - 48px, 980px); }
.flowx .center-head { margin-bottom: 72px; }
.flowx .center-head h2 { font-size: 48px; line-height: 52px; letter-spacing: -0.02em; }
.flowx .center-head p:not(.eyebrow) { margin-top: 18px; font-size: 20px; line-height: 28px; }
.fx { display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.fx-copy { display: flex; flex-direction: column; padding: 40px 0 40px 40px; }
.fx-step { font-size: 14px; font-weight: 600; color: #0A6B60; }
.fx-copy h3 { margin-top: 12px; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.fx-copy p { margin-top: 12px; font-size: 16px; line-height: 24px; color: #525252; }
.fx-copy .flow-who { margin-top: auto; align-self: flex-start; }
.fx-art { display: grid; place-items: center; margin: 16px; border-radius: 18px; background: radial-gradient(70% 70% at 30% 20%, #BFE8DF 0%, #DDF3EE 55%, #EEF8F6 100%); }
.fx-phone, .fx-notif, .fx-sheet, .fx-slip { width: 82%; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -22px rgba(10,79,72,.45); font-size: 13px; }
.fx-phone { border: 6px solid #0E2235; border-radius: 26px; }
.fx-phone b, .fx-sheet b, .fx-slip b { display: block; margin-bottom: 10px; font-size: 14px; }
.fx-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #EEF1F0; }
.fx-row em { font-style: normal; color: #6B6B6B; }
.fx-btn { display: block; margin-top: 12px; padding: 9px; border-radius: 10px; background: #0B4F48; color: #fff; text-align: center; font-weight: 600; }
.fx-notif { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
.fx-notif p { line-height: 1.4; }
.fx-shift { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: #F4F7F6; }
.fx-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-actions span { padding: 8px; border-radius: 10px; text-align: center; font-weight: 600; background: #F1F4F3; }
.fx-actions .on { background: #0B4F48; color: #fff; }
.fx-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; text-align: center; font-weight: 600; }
.fx-grid span { padding: 8px 0; border-radius: 6px; background: #F1F4F3; }
.fx-grid .h { background: none; color: #8A8A8A; font-weight: 500; padding: 2px 0; }
.fx-grid .p { background: #FDEBC8; color: #8A5A00; }
.fx-sheet small { display: block; margin-top: 10px; color: #525252; }
.fx-total { border-bottom: 0; font-weight: 700; font-size: 15px; }

/* video carousel: quote placeholder */
.placeholder-card { outline: 2px dashed #E0A93A; outline-offset: -2px; }

/* pricing: Personio "Pricing that adapts" (3 joined cards 310x630) */
.pricing2 { padding: 96px 0 112px; background: #fff; }
.pricing2 > .wrap { width: min(100% - 48px, 980px); }
.pricing2 .center-head { margin-bottom: 48px; }
.pricing2 .center-head h2 { font-size: 48px; line-height: 52px; letter-spacing: -0.02em; }
.pr-points { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.pr-points .mi { display: block; width: 20px; height: 20px; margin: 0 auto 8px; stroke: #0A6B60; }
.pr-points strong { display: block; font-size: 16px; line-height: 24px; font-weight: 600; }
.pr-points span { display: block; font-size: 14px; line-height: 20px; color: #525252; }
.pr-cards { display: grid; grid-template-columns: repeat(3, 310px); justify-content: center; }
.pr-card { display: flex; flex-direction: column; min-height: 630px; padding: 32px; border-radius: 24px; background: transparent; }
.pr-card-hl { background: linear-gradient(180deg, #FFFFFF 0%, #EEF9F6 50%, #D3F0EA 100%); border: 1px solid #A9DDD3; box-shadow: 0 30px 60px -40px rgba(10,79,72,.45); }
.pr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pr-card h3 { font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -0.015em; }
.pr-badge { display: inline-grid; place-items: center; width: 120px; height: 32px; border-radius: 10px; background: #0B4F48; color: #fff; font-size: 14px; font-weight: 500; }
.pr-desc { margin-top: 12px; font-size: 16px; line-height: 24px; color: #525252; }
.pr-inc { margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pr-card ul { list-style: none; margin: 12px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pr-card li { position: relative; padding-left: 26px; font-size: 16px; line-height: 20px; color: rgba(0,0,0,.7); }
.pr-card li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%230A6B60' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.pr-card .btn { min-height: 48px; }

/* final CTA: Personio "Explore Intelligent HR" (gradient to dark, cards 643/310 x 384) */
.final { padding: 112px 0 120px; background: linear-gradient(to top, #062421 5%, #4FB3A5 35%, #FFFFFF 100%); }
.final > .wrap { width: min(100% - 48px, 980px); }
.final .center-head { margin-bottom: 48px; }
.final .center-head h2 { font-size: 48px; line-height: 52px; letter-spacing: -0.02em; }
.final-cards { display: grid; grid-template-columns: 643fr 310fr; gap: 24px; }
.final-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 384px; padding: 40px; }
.final-card h3 { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.015em; }
.final-card-main { border-radius: 20px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.final-card-side { border-radius: 24px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.final-card-side .btn { margin-top: auto; }
.final-steps { list-style: none; counter-reset: fs; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.final-steps li { counter-increment: fs; font-size: 16px; line-height: 24px; color: #333; }
.final-steps li::before { content: counter(fs) ". "; font-weight: 600; }
.final-card-side .final-steps li { color: rgba(255,255,255,.88); }
.final-card-main .hero-cta { margin-top: auto; }

/* full form in a dialog */
.form-dialog { width: min(100% - 32px, 720px); max-height: calc(100vh - 48px); padding: 28px; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.form-dialog::backdrop { background: rgba(6,24,30,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg-head h3 { font-size: 24px; font-weight: 600; }
.dlg-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F1F4F3; font-size: 22px; line-height: 1; cursor: pointer; }
.dlg-sub { margin: 6px 0 18px; font-size: 15px; color: #525252; }
.form-dialog .form { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }

/* footer: big visual band + tagline + link groups (Personio layout) */
.footer2 { color: #fff; background: #04161E; }
.footer-band { position: relative; height: 360px; overflow: hidden; background: radial-gradient(60% 80% at 30% 100%, #0E9F8E 0%, rgba(14,159,142,0) 70%), radial-gradient(50% 70% at 80% 90%, #2BA7D9 0%, rgba(43,167,217,0) 70%), linear-gradient(180deg, #062421 0%, #04161E 100%); }
.footer-word { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font-size: clamp(120px, 22vw, 300px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: rgba(255,255,255,.1); white-space: nowrap; }
.footer-word .logo-x { color: rgba(45,212,191,.35); }
.footer-grid { width: min(100% - 48px, 980px); display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 64px 0 40px; }
.footer-brand p { margin-top: 12px; font-size: 16px; color: rgba(255,255,255,.75); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.footer-cols h4 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.95); }
.footer-cols a, .footer-cols span { display: block; padding: 4px 0; font-size: 14px; line-height: 22px; color: #fff; text-decoration: none; }
.footer-cols span { color: rgba(255,255,255,.72); }
.footer-cols a:hover { text-decoration: underline; }
.ph-inline { color: #F2C66B !important; }
.footer-bottom { width: min(100% - 48px, 980px); padding: 20px 0 32px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.6); }

@media (max-width: 1080px) {
  .site-header > .wrap.header-inner { padding: 0 20px; }
  .fx { grid-template-columns: 1fr; }
  .fx-copy { padding: 28px 28px 0; }
  .fx-copy .flow-who { margin-top: 12px; }
  .fx-art { min-height: 220px; }
  .pr-points { grid-template-columns: 1fr 1fr; }
  .pr-cards { grid-template-columns: minmax(0, 420px); }
  .pr-card { min-height: 0; }
  .final-cards { grid-template-columns: 1fr; }
  .final-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .trust-inner { gap: 12px; }
  .trust-logos li { width: 96px; }
  .flowx, .pricing2 { padding: 72px 0; }
  .flowx .center-head h2, .pricing2 .center-head h2, .final .center-head h2 { font-size: 34px; line-height: 38px; }
  .flowx .center-head p:not(.eyebrow) { font-size: 17px; line-height: 25px; }
  .fx { height: auto; min-height: 560px; }
  .fx-copy h3 { font-size: 20px; line-height: 26px; }
  .final { padding: 72px 0 80px; }
  .final-card { padding: 24px; }
  .final-card h3 { font-size: 22px; line-height: 28px; }
  .footer-band { height: 200px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .form-dialog { padding: 20px; }
}

@media (max-width: 1080px) { .vc.fx { height: auto; min-height: 440px; } }

/* ===== v12: colour + motion pass (header theme, navy compliance, seams, secondary buttons, glow, marquee, hover) ===== */
:root { --ease: cubic-bezier(.4, 0, .2, 1); --mint-btn: #E6F5F1; --mint-btn-h: #D3F0EA; }
*, *::before, *::after { transition-timing-function: var(--ease); }

/* 1. header adapts over dark blocks */
.site-header { transition: background .3s, border-color .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s; }
.site-header .logo, .site-header .nav a, .site-header .bars, .site-header .bars::before, .site-header .bars::after { transition: color .3s, background .3s, border-color .3s, transform .2s; }
.site-header.is-dark { background: rgba(4, 22, 30, .38); border-bottom-color: rgba(255,255,255,.08); }
.site-header.is-dark .logo { color: #fff; }
.site-header.is-dark .logo-x { color: #5EE0CB; }
.site-header.is-dark .bars, .site-header.is-dark .bars::before, .site-header.is-dark .bars::after { background: #fff; }
.site-header.is-dark .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
@media (min-width: 861px) {
  .site-header.is-dark .nav a:not(.btn) { color: #fff; }
  .site-header.is-dark .nav-links a:hover { background: rgba(255,255,255,.1); }
  .site-header.is-dark .nav-cta .btn-dark { background: #fff; color: #000; box-shadow: none; }
  .site-header.is-dark .nav-cta .btn-dark:hover { background: #E8E8E8; }
}

/* 2. seam onboarding -> final CTA, and final -> footer */
.final { background: linear-gradient(to top, #062421 5%, #4FB3A5 35%, #D3F0EA 90%); }

/* 3. compliance in navy blue (its own hue, distinct from the teal platform block) */
.comp { background:
  radial-gradient(50% 40% at 50% 0%, rgba(59, 130, 246, .22) 0%, rgba(59, 130, 246, 0) 70%),
  linear-gradient(180deg, #0B2A5B 0%, #04121F 100%); }

/* 4. secondary controls share one mint style; primary CTAs stay black */
.vcar-btn, .dlg-close { background: var(--mint-btn); color: #0A6B60; }
.vcar-btn:hover:not(:disabled), .dlg-close:hover { background: var(--mint-btn-h); }
.hero-tabs [role="tab"]:not([aria-selected="true"]) { background: rgba(230, 245, 241, .92); color: #0A6B60; }
.hero-tabs [role="tab"]:not([aria-selected="true"]):hover { background: var(--mint-btn-h); }
.seg-btn { background: var(--mint-btn); }
.seg-btn:hover { background: var(--mint-btn-h); }
.seg-btn.is-on { background: #fff; }

/* 5. hero: soft mint wash from the top + white side vignette */
.hero { background:
  linear-gradient(270deg, rgba(255,255,255,.6), rgba(255,255,255,0) 15%, rgba(255,255,255,0) 85%, rgba(255,255,255,.6)),
  linear-gradient(180deg, #FFFFFF 0%, #F3FBF9 30%, #FFFFFF 55%); }

/* 6. carousel block on white like the rest of the light blocks */
.flowx { background: #fff; }

/* glow ring spinning around the email CTAs */
@property --glow-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes glow-spin { to { --glow-a: 360deg; } }
.hero-cta { position: relative; }
.hero-cta::before, .hero-cta::after { content: ""; position: absolute; pointer-events: none; border-radius: 18px;
  background: conic-gradient(from var(--glow-a), #12C2A6, #38BDF8, #A7F3E4, #0E9F8E, #5EE0CB, #12C2A6);
  animation: glow-spin 6.5s linear infinite; }
.hero-cta::before { inset: -2px; padding: 2px; z-index: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.hero-cta::after { inset: -6px; z-index: -1; filter: blur(18px); opacity: .45; }

/* integrations-style marquee in the platform block */
.platform { overflow: hidden; }
.mq { width: 100vw; margin: 64px 0 0 calc(50% - 50vw); }
.mq-title { text-align: center; margin-bottom: 24px; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.62); }
.mq-row { display: flex; width: 100%; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-row ul { flex: none; display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; animation: mq-left 60s linear infinite; }
.mq-row + .mq-row { margin-top: 12px; }
.mq-right ul { animation-name: mq-right; animation-duration: 70s; }
.mq-row li { padding: 10px 18px; border-radius: 12px; white-space: nowrap; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.86); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.mq:hover .mq-row ul { animation-play-state: paused; }
@keyframes mq-left { to { transform: translateX(-100%); } }
@keyframes mq-right { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* hover states */
@media (hover: hover) {
  .module, .vc, .onb-card, .final-card, .comp-badges li, .pr-card-hl { transition: transform .3s, box-shadow .3s; }
  .module:hover, .onb-card:hover, .final-card:hover, .pr-card-hl:hover { transform: translateY(-4px); box-shadow: 0 .5px 2px rgba(0,0,0,.08), 0 24px 48px -24px rgba(0,0,0,.28); }
  .onb-card-dark:hover { box-shadow: 0 40px 70px -30px rgba(8,58,53,.7); }
  .vc:hover { transform: translateY(-4px); }
  .comp-badges li:hover { transform: translateY(-4px); box-shadow: inset 0 .5px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(255,255,255,.12), 0 20px 40px -18px rgba(0,0,0,.7); }
  .vc-video img { transition: transform .3s; }
  .vc-video:hover img { transform: scale(1.17); }
  .module-link span, .ai-link span { display: inline-block; transition: transform .15s; }
  .module-link:hover span, .ai-link:hover span { transform: translateX(3px); }
}

/* mouse drag on carousels (+ room for the hover lift) */
.vcar-track { cursor: grab; padding-top: 8px; margin-top: -8px; }
.vcar-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.vcar-track.is-dragging * { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-cta::before, .hero-cta::after, .mq-row ul { animation: none; }
  .module:hover, .onb-card:hover, .final-card:hover, .pr-card-hl:hover, .vc:hover, .comp-badges li:hover { transform: none; }
}

/* ===== v13: sample data (remove .sample-tag once real data is in) ===== */
.sample-tag { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 2px 8px; border-radius: 999px; background: #FDF1D6; color: #8A5A00; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.sample-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E0A93A; }
.sample-tag-dark { margin-top: 8px; background: rgba(242,198,107,.16); color: #F2C66B; }
.trust-sample li { display: flex; align-items: center; gap: 7px; width: auto; height: 36px; padding: 0 6px; background: none; outline: 0; color: #7A7A7A; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.trust-sample li svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-sample li small { margin-left: 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #A3A3A3; }
.trust-sample { gap: 12px 28px; }
.vc-quote .sample-tag { position: absolute; top: 20px; right: 20px; }
.pr-sample { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; font-size: 13px; color: #6B6B6B; text-align: center; }
.pr-badge { width: auto; flex: none; padding: 0 12px; }
.pr-top h3 { white-space: nowrap; }
.footer-cols .sample-tag { display: inline-flex; padding: 2px 8px; font-size: 11px; line-height: 16px; color: #F2C66B; }

/* ===== v14: Personio-like structure + motion (stats row, connect tiles, pricing shell, glass footer, in-app entrance, subtle hovers) ===== */
/* customer stats row (Personio: 5 cols logo + 2 lines, inside the hero area) */
.trust { padding: 24px 0 72px; background: transparent; position: relative; z-index: 1; }
.trust > .wrap { width: min(100% - 48px, 1000px); }
.trust-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
.trust-stats li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ts-logo { display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-bottom: 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #2A2A2A; }
.ts-logo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ts-logo small { margin-left: 2px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A8A8A; }
.trust-stats b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.trust-stats li > span:last-child { font-size: 14px; line-height: 20px; color: #525252; }
.trust-tag { margin-top: 20px; text-align: center; }
.hero { padding-bottom: 64px; }

/* platform: connect heading + coloured icon tiles (Personio integrations marquee) */
.mq { margin-top: 72px; }
.mq-head { text-align: center; font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -0.015em; color: #fff; }
.mq-link { display: block; width: fit-content; margin: 16px auto 40px; font-size: 16px; font-weight: 500; color: rgba(255,255,255,.8); text-decoration: none; }
.mq-link:hover { color: #fff; }
.mq-row ul { gap: 16px; padding-right: 16px; }
.mq-row + .mq-row { margin-top: 16px; }
.mq-row li { display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px -8px rgba(0,0,0,.5); }
.mq-row li svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mq-row li.t0 { background: #E6F5F1; color: #0A6B60; }
.mq-row li.t1 { background: #0E9F8E; color: #fff; }
.mq-row li.t2 { background: #FFF4DA; color: #8A5A00; }
.mq-row li.t3 { background: #DCE9FB; color: #1F4E8C; }
.mq-row li.t4 { background: #0B2A5B; color: #9CC3FF; }
.mq-row li.t5 { background: #FDE7E4; color: #A2392C; }
.mq-row li.t6 { background: #fff; color: #141414; }
.platform { padding-bottom: 88px; }

/* pricing: cards inside one white shell, separators, compare link */
.pr-shell { padding: 12px; border-radius: 36px; background: #fff; box-shadow: 0 .5px 2px rgba(0,0,0,.06), 0 24px 64px -24px rgba(0,0,0,.18); width: fit-content; margin: 0 auto; }
.pr-card { min-height: 600px; }
.pr-inc { padding-top: 20px; border-top: 1px solid rgba(0,0,0,.08); }
.pr-compare { display: block; width: fit-content; margin: 40px auto 0; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
.pr-compare span, .mq-link span { display: inline-block; transition: transform .15s; }
.pr-compare:hover span, .mq-link:hover span { transform: translateX(4px); }
.pricing2 { padding-bottom: 120px; }

/* footer: tall art band with a glass panel over it */
.footer2 { position: relative; overflow: hidden; padding: 420px 24px 24px; background: linear-gradient(180deg, #062421 0%, #04161E 55%); }
.footer-art { position: absolute; inset: 0 0 auto 0; height: 720px; pointer-events: none; }
.footer-art img { position: absolute; left: 50%; top: 80px; width: 1180px; max-width: none; transform: translateX(-50%) perspective(1600px) rotateX(18deg); border-radius: 24px; opacity: .55; filter: saturate(.8) blur(1px); -webkit-mask: linear-gradient(180deg, #000 30%, transparent 85%); mask: linear-gradient(180deg, #000 30%, transparent 85%); }
.footer-art::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(40% 50% at 25% 20%, rgba(14,159,142,.45) 0%, rgba(14,159,142,0) 70%),
  radial-gradient(35% 45% at 80% 30%, rgba(43,167,217,.35) 0%, rgba(43,167,217,0) 70%); }
.footer-panel { position: relative; max-width: 1232px; margin: 0 auto; padding: 48px 48px 0; border-radius: 32px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); overflow: hidden; }
.footer2 .footer-grid { width: auto; grid-template-columns: 280px 1fr; gap: 48px; padding: 0 0 48px; }
.footer-tag { font-size: 32px; line-height: 38px; font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.footer2 .footer-word { position: static; transform: none; display: block; text-align: center; margin: 24px 0 -0.22em; line-height: .9; font-size: clamp(120px, 21vw, 280px); }
.footer2 .footer-bottom { width: auto; padding: 18px 0 0; }

/* in-app entrance: widgets rise in with a stagger when a hero tab opens; spark bars grow */
@keyframes riseIn { from { opacity: 0; transform: translate3d(0, 48px, 0); } to { opacity: 1; transform: none; } }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: none; } }
.hero-product .panel { animation: none; }
.hero-product .panel.is-entering [style*="--i"] { animation: riseIn .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 70ms); }
.hero-product .panel.is-entering .spark i { transform-origin: bottom; animation: barGrow .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(400ms + var(--b, 0) * 40ms); }
.spark i:nth-child(2) { --b: 1; } .spark i:nth-child(3) { --b: 2; } .spark i:nth-child(4) { --b: 3; } .spark i:nth-child(5) { --b: 4; } .spark i:nth-child(6) { --b: 5; } .spark i:nth-child(7) { --b: 6; } .spark i:nth-child(8) { --b: 7; }

/* talent visual: Personio slides content in 12px from the right */
@keyframes slideX { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.talent-visual .panel { animation: slideX .45s cubic-bezier(.16, 1, .3, 1); }
.acc [aria-selected="true"] .acc-body { animation: slideX .4s cubic-bezier(.16, 1, .3, 1); }

/* hovers, Personio style: shadow elevation + 1.02 scale on cards, 1.05 on media, arrows nudge */
@media (hover: hover) {
  .module:hover, .onb-card:hover, .final-card:hover, .pr-card-hl:hover, .vc:hover, .comp-badges li:hover { transform: scale(1.02); }
  .module:hover { box-shadow: 0 4px 9px rgba(0,0,0,.1), 0 17px 17px rgba(0,0,0,.09); }
  .vc-video:hover img { transform: scale(1.17); }
  .btn { transition: background .15s, color .15s, box-shadow .15s, transform .15s; }
  .btn-dark:hover { box-shadow: inset 0 0 10px rgba(255,255,255,.2), 0 6px 6px -6px rgba(0,0,0,.2), 0 2px 10px -2px rgba(0,0,0,.12); }
  .module-link:hover span, .ai-link:hover span { transform: translateX(4px); }
}

@media (max-width: 1080px) {
  .trust-stats { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .footer2 { padding-top: 300px; }
  .footer2 .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .trust { margin-top: 0; padding-bottom: 56px; }
  .trust-stats { grid-template-columns: 1fr 1fr; }
  .mq-head { font-size: 22px; line-height: 28px; }
  .pr-shell { width: auto; padding: 8px; border-radius: 28px; }
  .footer2 { padding: 220px 12px 12px; }
  .footer-art img { width: 720px; }
  .footer-panel { padding: 28px 20px 0; border-radius: 24px; }
  .footer-tag { font-size: 26px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-product .panel.is-entering [style*="--i"], .hero-product .panel.is-entering .spark i, .talent-visual .panel, .acc [aria-selected="true"] .acc-body { animation: none; }
}
.vcar-track { padding-bottom: 8px; margin-bottom: -8px; }
/* v14.1 size tuning toward Personio block heights */
.trust { padding-bottom: 120px; }
.mq { margin-top: 96px; }
.platform { padding-bottom: 120px; }
.pr-card { min-height: 630px; }
.pricing2 { padding-bottom: 160px; }
.footer2 { padding-top: 540px; }
@media (max-width: 1080px) { .trust { padding-bottom: 72px; } .platform { padding-bottom: 88px; } .pricing2 { padding-bottom: 112px; } .footer2 { padding-top: 300px; } .pr-card { min-height: 0; } }
@media (max-width: 640px) { .trust { padding-bottom: 56px; } .footer2 { padding-top: 220px; } }

/* ===== v15: stats row, app-icon tiles, AI stage on teal (matched to Personio detail) ===== */
/* stats row: one wordmark + two equal grey lines, each on one line */
.trust { padding: 40px 0 96px; }
.trust > .wrap { width: min(100% - 48px, 1040px); }
.trust-stats { gap: 16px; }
.trust-stats li { gap: 0; }
.ts-logo { height: 32px; margin-bottom: 12px; gap: 7px; font-size: 22px; font-weight: 700; letter-spacing: -0.035em; color: #161616; }
.ts-logo svg { width: 22px; height: 22px; stroke-width: 2.2; }
.trust-stats li > span:not(.ts-logo) { font-size: 14px; line-height: 22px; font-weight: 500; color: #5C5C5C; white-space: nowrap; }
.trust-tag { margin-top: 28px; }

/* integration-style tiles: tight 8px grid, big glyphs, app-icon fills */
.mq-row ul { gap: 8px; padding-right: 8px; }
.mq-row + .mq-row { margin-top: 8px; }
.mq-right ul { padding-left: 36px; }
.mq-row { -webkit-mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.mq-row li { width: 64px; height: 64px; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.12); }
.mq-row li svg { width: 34px; height: 34px; stroke-width: 2; }
.mq-row li.t0 { background: linear-gradient(160deg, #F4FBF9, #DDF1EC); color: #0A6B60; }
.mq-row li.t1 { background: linear-gradient(160deg, #19B8A4, #0B8576); color: #fff; }
.mq-row li.t2 { background: linear-gradient(160deg, #FFD66B, #F2A93B); color: #5A3500; }
.mq-row li.t3 { background: linear-gradient(160deg, #5B8DEF, #3460C9); color: #fff; }
.mq-row li.t4 { background: linear-gradient(160deg, #EEF0F2, #D9DDE1); color: #1B2430; }
.mq-row li.t5 { background: linear-gradient(160deg, #FF8A73, #E5533D); color: #fff; }
.mq-row li.t6 { background: linear-gradient(160deg, #8F7CF0, #6A55D8); color: #fff; }

/* AI: section turns teal behind the demo (white 25% -> teal 55%), card glows, labels on a hairline */
.ai { background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 18%, #F2FAF8 24%, #BFE6DE 34%, #5DB3A8 45%, #1E8C84 56%, #0F5550 76%, #082A27 100%); }
.ai-demo { box-shadow: 0 0 82px 0 rgba(110, 222, 206, .95); }
.ai-src li { font-size: 16px; line-height: 20px; font-weight: 500; color: #fff; text-shadow: none; padding-left: 8px; border-left: 1px solid #93E3D8; }
.ai-src-left li::before, .ai-src-right li::before { content: none; }
.ai-wires path { stroke: rgba(147,227,216,.85); stroke-width: 1; stroke-dasharray: none; }
.mq-right ul { padding-left: 0; }
.mq-right { margin-left: -36px; width: calc(100% + 36px); }
/* v15.1: trim empty space (no awards row to fill it like Personio) */
.pricing2 { padding-bottom: 96px; }
.trust { padding-bottom: 64px; }
.pr-sample { margin-top: 16px; }
@media (max-width: 1080px) { .pricing2 { padding-bottom: 80px; } .trust { padding-bottom: 56px; } }
@media (max-width: 640px) { .pricing2 { padding-bottom: 64px; } }
.flowx + .talent, .vids + .pricing2, .pricing2 + .onb { padding-top: 48px; }

/* ===== v16: assistant demo motion + carousel autoplay & background video (Personio behaviour) ===== */
/* idle: first question breathes with a glow */
@keyframes qPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(14,159,142,.18), 0 0 0 0 rgba(94,224,203,0); transform: none; }
  50% { box-shadow: 0 0 0 3px rgba(14,159,142,.28), 0 0 22px 2px rgba(94,224,203,.85); transform: scale(1.03); }
}
.ai-qs button { transform-origin: left center; background: linear-gradient(-77deg, #082A27 0%, #0E5A52 100%); }
.ai-qs button:first-child { animation: qPulse 2.4s ease-in-out infinite; }
.ai-qs:hover button:first-child { animation-play-state: paused; }

/* wires: glowing data dots */
.aiw-dot { fill: #fff; filter: drop-shadow(0 0 3px rgba(255,255,255,.95)); }
.aiw-fast { fill: #E9FFFB; }

/* header close button */
.ai-demo-head { position: relative; }
.ai-close { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #0B4F48; cursor: pointer; animation: ansIn .35s cubic-bezier(.16,1,.3,1) both; }
.ai-close[hidden] { display: none; }
.ai-close svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.ai-close:hover { background: #0E6A61; }

/* asked question flies up from the question list to the top right */
@keyframes qFly { from { opacity: .35; transform: translateY(170px); } to { opacity: 1; transform: none; } }
.ai-thread .msg-user { align-self: flex-end; max-width: 90%; padding: 8px 14px; border-radius: 16px; background: linear-gradient(-77deg, #082A27 0%, #0E5A52 100%); color: #fff; font-size: 14px; line-height: 20px; font-weight: 500; animation: qFly .6s cubic-bezier(.16,1,.3,1) both; }
.ai-demo-body { justify-content: flex-start; }
.ai-demo:not(.is-active) .ai-demo-body { justify-content: flex-end; }

/* typing dots */
@keyframes tDot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-typing { display: inline-flex; gap: 4px; align-items: center; padding: 10px 12px; background: #F2F6F5; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: #0E9F8E; animation: tDot 1s ease-in-out infinite; }
.ai-typing i:nth-of-type(2) { animation-delay: .15s; } .ai-typing i:nth-of-type(3) { animation-delay: .3s; }

/* answer: plain text, parts fade up in sequence; chart in a bordered card with bars growing one by one */
@keyframes ansIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes barUp { from { transform: scaleY(0); } to { transform: none; } }
.ai-thread .msg-bot { width: 100%; padding: 0; background: transparent; border: 0; font-size: 14px; line-height: 21px; color: #333; }
.ai-thread .msg-bot > *, .ai-thread .msg-bot tbody tr, .ai-thread .msg-bot .w-list li { animation: ansIn .55s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 140ms); }
.ai-thread .mini-bars { height: 120px; padding: 14px 12px 10px; border: 1px solid #E6ECEA; border-radius: 12px; background: #fff; }
.ai-thread .mini-bars i { transform-origin: bottom; animation: barUp .7s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(380ms + var(--b, 0) * 140ms); }
.ai-thread .mini-bars i.hl { background: linear-gradient(180deg, #19B8A4, #0B8576); }

/* carousel: background preview video under the gradient, above the poster */
.vc-video video.vc-bg { z-index: 0; background: transparent; object-position: 25% 70%; transform: scale(1.12); transform-origin: 30% 80%; opacity: 0; transition: opacity .6s, transform .3s; }
.vc-video.has-bg video.vc-bg { opacity: 1; }
.vc-video.is-playing video.vc-bg { display: none; }
@media (hover: hover) { .vc-video:hover video.vc-bg { transform: scale(1.17); } }

/* carousel: active dot fills up while autoplay is running */
@keyframes dotRun { from { transform: scaleX(0); } to { transform: none; } }
.vcar-dots button { position: relative; overflow: hidden; }
.is-auto .vcar-dots button[aria-selected="true"] { background: #BFE3DB; }
.is-auto .vcar-dots button[aria-selected="true"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0B4F48; transform-origin: left; animation: dotRun var(--auto, 5000ms) linear both; }

@media (prefers-reduced-motion: reduce) {
  .ai-qs button:first-child, .ai-thread .msg-user, .ai-thread .msg-bot > *, .ai-thread .msg-bot tbody tr, .ai-thread .msg-bot .w-list li, .ai-thread .mini-bars i, .ai-close { animation: none; }
}
.vc-video video.vc-bg { object-position: 30% 20%; transform: none; }
@media (hover: hover) { .vc-video:hover video.vc-bg { transform: scale(1.05); } }
/* v16.1: Personio-style wires (parallel bundle, soft S-bends, end ticks) + tooltip arrow */
.ai-wires path { stroke: rgba(170,236,229,.75); stroke-width: 1.2; stroke-dasharray: none; fill: none; }
.aiw-tick { stroke: rgba(170,236,229,.9); stroke-width: 1.2; }
.aiw-dot { fill: #CFF5F0; filter: none; }
.aiw-fast { fill: #E8FFFC; }
.ai-src li { border-left: 0; padding-left: 0; }
.ai-src-right { left: 848px; }
.ai-try { top: -54px; height: 40px; padding: 0 20px; border-radius: 20px; font-size: 16px; font-weight: 600; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); }
.ai-try::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 8px; transform: translateX(-50%); background: #000; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ai-src-right { gap: 32px; }
/* v16.2: "Thử ngay" tooltip floats like Personio (0 to -6px, ~1.6 s, ease-in-out) */
@keyframes tryFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.ai-try { animation: tryFloat 1.6s ease-in-out infinite; }
.ai-demo.is-active .ai-try { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ai-try { animation: none; } }

/* v16.3: tooltip matched to Personio measurements (38px pill, 14/22 medium, 16px side padding, rounded caret 16x10.4, 46px above the card) */
.ai-try { top: -46px; height: 38px; padding: 0 16px; border-radius: 20px; font-size: 14px; line-height: 22px; font-weight: 500; letter-spacing: 0; background: #000; color: #fff;
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.28), 0 .5px 2px rgba(0,0,0,.08), 0 2px 16px rgba(0,0,0,.1); }
.ai-try::after { bottom: -10.4px; width: 16px; height: 10.4px; margin-top: -1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10.3944'%3E%3Cpath d='M9.6641 9.50385C8.87246 10.6913 7.12754 10.6913 6.3359 9.50385L0 0L16 0L9.6641 9.50385Z' fill='%23000'/%3E%3C/svg%3E") center / 16px 10.4px no-repeat; clip-path: none; }
/* v17: integration-style marquee shows real XLink screens (not generic icons) */
.mq-row ul { gap: 12px; padding-right: 12px; }
.mq-row + .mq-row { margin-top: 12px; }
.mq-right { margin-left: -110px; width: calc(100% + 110px); }
.mq-row li.shot { position: relative; display: block; width: 220px; height: 138px; padding: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 14px 28px -14px rgba(0,0,0,.7); transition: transform .3s; }
.mq-row li.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.mq-row li.shot span { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(4,22,30,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.mq-row li.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; }
@media (hover: hover) { .mq-row li.shot:hover { transform: scale(1.04); } }
@media (max-width: 640px) { .mq-row li.shot { width: 176px; height: 110px; } }

/* v17b: floating assistant launcher + panel (Personio "Ask Nia" pattern, XLink colours) */
.ask { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.ask > * { pointer-events: auto; }
.ask-btn { display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 26px 0 8px; border: 0; border-radius: 999px; background: linear-gradient(-77deg, #082A27 0%, #0E5A52 100%); color: #fff; font: 500 18px/1 var(--font); cursor: pointer;
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.25), 0 10px 30px -10px rgba(8,42,39,.6), 0 2px 8px rgba(0,0,0,.12);
  opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .35s, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .2s; }
.ask.is-shown .ask-btn { opacity: 1; transform: none; }
.ask-btn:hover { box-shadow: inset 0 .5px 0 rgba(255,255,255,.25), 0 14px 34px -10px rgba(8,42,39,.7), 0 0 0 4px rgba(94,224,203,.25); }
.ask.is-open .ask-btn { opacity: 1; transform: none; }
.ask-av { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #5EE0CB 0%, #0E9F8E 55%, #0A6B60 100%); color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.04em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.ask-av i { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #35D07F; box-shadow: 0 0 0 2px #0B4F48; }

.ask-panel { width: 360px; max-height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column; border-radius: 24px; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 30px 60px -20px rgba(4,22,30,.45); transform-origin: bottom right; animation: askIn .35s cubic-bezier(.16,1,.3,1); }
.ask-panel[hidden] { display: none; }
@keyframes askIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.ask-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; background: linear-gradient(-77deg, #082A27 0%, #0E5A52 100%); color: #fff; }
.ask-head .ask-av { width: 40px; height: 40px; font-size: 17px; }
.ask-head strong { display: block; font-size: 16px; line-height: 20px; font-weight: 600; }
.ask-head small { display: block; font-size: 12px; line-height: 16px; color: rgba(255,255,255,.72); }
.ask-x { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); cursor: pointer; }
.ask-x:hover { background: rgba(255,255,255,.2); }
.ask-x svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.ask-body { flex: 1; min-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #F7FAF9; scrollbar-width: thin; }
.ask-msg { max-width: 88%; font-size: 14px; line-height: 21px; animation: ansIn .4s cubic-bezier(.16,1,.3,1) both; }
.ask-bot { align-self: flex-start; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: #222; box-shadow: 0 0 0 1px #E6ECEA; }
.ask-bot ul { margin: 6px 0 0; padding-left: 18px; }
.ask-bot li + li { margin-top: 3px; }
.ask-user { align-self: flex-end; padding: 8px 14px; border-radius: 16px 16px 4px 16px; background: linear-gradient(-77deg, #082A27 0%, #0E5A52 100%); color: #fff; font-weight: 500; animation-name: qFlySm; }
@keyframes qFlySm { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ask-typing { align-self: flex-start; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { padding: 8px 12px; border: 1px solid #CFE7E1; border-radius: 999px; background: #fff; color: #0A6B60; font: 500 13px/18px var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.ask-chips button:hover { background: #E6F5F1; border-color: #9FD6CA; }
.ask-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: #0A6B60; text-decoration: none; }
.ask-link:hover { text-decoration: underline; }
.ask-cta { display: inline-flex; margin: 10px 10px 0 0; padding: 7px 14px; border: 0; border-radius: 10px; background: #000; color: #fff; font: 500 13px/18px var(--font); cursor: pointer; }
.ask-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #EEF2F1; background: #fff; }
.ask-input input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #DDE5E3; border-radius: 12px; font: 400 14px var(--font); color: var(--ink); outline: 0; }
.ask-input input:focus { border-color: #0E9F8E; box-shadow: 0 0 0 3px rgba(14,159,142,.15); }
.ask-input button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: #0B4F48; cursor: pointer; }
.ask-input button svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ask-note { padding: 0 12px 10px; font-size: 11px; color: #8A8A8A; background: #fff; }

@media (max-width: 640px) {
  .ask { right: 16px; bottom: 16px; }
  .ask-btn { height: 56px; padding: 4px; }
  .ask-btn .ask-label { display: none; }
  .ask-panel { width: calc(100vw - 32px); max-height: calc(100vh - 110px); }
}
@media (prefers-reduced-motion: reduce) { .ask-btn, .ask-panel, .ask-msg { transition: none; animation: none; } }
/* v18: language menu (VI / EN) */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 500 15px/1 var(--font); cursor: pointer; transition: background .15s, color .3s; }
.lang-btn:hover { background: rgba(0,0,0,.05); }
.lang-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 160px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 16px 40px -16px rgba(0,0,0,.3); animation: ansIn .25s cubic-bezier(.16,1,.3,1); }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink) !important; text-decoration: none; }
.lang-menu a:hover { background: #F2F6F5; }
.lang-menu a[aria-current="true"] { background: #E6F5F1; color: #0A6B60 !important; }
@media (min-width: 861px) { .site-header.is-dark .lang-btn { color: #fff; } .site-header.is-dark .lang-btn:hover { background: rgba(255,255,255,.1); } }
@media (max-width: 860px) { .lang { align-self: center; } .lang-menu { right: 50%; transform: translateX(50%); } }

/* ===== v19: live scenes inside the hero app panels ===== */
@keyframes numBump { 0% { transform: none; } 40% { transform: scale(1.22); color: #0E9F8E; } 100% { transform: none; } }
.is-bump { display: inline-block; animation: numBump .55s cubic-bezier(.34,1.56,.64,1); }
@keyframes tagPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.tag.is-pop, .w-steps li.is-pop { animation: tagPop .45s cubic-bezier(.34,1.56,.64,1); }
.w-list li { transition: background .5s; }
.w-list li.is-done { background: rgba(14,159,142,.07); border-radius: 10px; }
.w-steps li { transition: background .4s, color .4s; }
.kanban .card-c { position: relative; will-change: transform; }

/* attendance bars grow from 0 */
@property --w { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes wGrow { from { --w: 0%; } }
.hero-product .panel.is-entering .bars-h i { animation: wGrow 1.1s cubic-bezier(.16,1,.3,1) .45s both; }

/* 9-Box cells pop in one by one, star cell glows */
@keyframes cellPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes starGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,169,59,0); } 50% { box-shadow: 0 0 0 6px rgba(242,169,59,.25), 0 0 18px rgba(242,169,59,.55); } }
.hero-product .panel.is-entering .mini9 i { animation: cellPop .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(350ms + var(--c, 0) * 70ms); }
.hero-product .panel.is-entering .mini9 i.star { animation: cellPop .5s cubic-bezier(.34,1.56,.64,1) both, starGlow 2s ease-in-out 1.4s infinite; animation-delay: calc(350ms + var(--c, 0) * 70ms), 1.4s; }
.mini9 i:nth-child(2) { --c: 1; } .mini9 i:nth-child(3) { --c: 2; } .mini9 i:nth-child(4) { --c: 3; } .mini9 i:nth-child(5) { --c: 4; }
.mini9 i:nth-child(6) { --c: 5; } .mini9 i:nth-child(7) { --c: 6; } .mini9 i:nth-child(8) { --c: 7; } .mini9 i:nth-child(9) { --c: 8; }

/* assistant panel: caret while the question is typed */
@keyframes caret { 50% { border-color: transparent; } }
.app-chat .msg-user.is-typing-in { min-height: 38px; min-width: 40px; }
.app-chat .msg-user.is-typing-in::after { content: ""; display: inline-block; height: 1em; margin-left: 2px; vertical-align: -2px; border-right: 2px solid rgba(255,255,255,.9); animation: caret .8s steps(1) infinite; }
.app-chat .ai-typing { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  .is-bump, .tag.is-pop, .w-steps li.is-pop, .hero-product .panel.is-entering .bars-h i, .hero-product .panel.is-entering .mini9 i { animation: none; }
}
@media (max-width: 640px) { .trust-stats li > span:not(.ts-logo) { white-space: normal; } .ts-logo { font-size: 18px; } }

/* ===== v20: onboarding card scenes (play when the card enters the viewport) ===== */
@keyframes avPop { 0% { opacity: 0; transform: translateY(10px) scale(.5); } 100% { opacity: 1; transform: none; } }
@keyframes plusPulse { 0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(14,159,142,0); } 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(14,159,142,.22); } }
@keyframes riseSoft { 0% { opacity: 0; transform: translateY(16px) scale(.97); } 100% { opacity: 1; transform: none; } }
@keyframes dotPing { 0% { box-shadow: 0 0 0 0 rgba(155,231,217,.55); } 100% { box-shadow: 0 0 0 10px rgba(155,231,217,0); } }

.onb-art-avatars span:nth-of-type(2) { --k: 1; } .onb-art-avatars span:nth-of-type(3) { --k: 2; } .onb-art-avatars span:nth-of-type(4) { --k: 3; }
.onb-art-avatars span:nth-of-type(5) { --k: 4; } .onb-art-avatars span:nth-of-type(6) { --k: 5; } .onb-art-avatars span:nth-of-type(7) { --k: 6; }
.onb-art-avatars span:nth-of-type(8) { --k: 7; } .onb-art-avatars span:nth-of-type(9) { --k: 8; } .onb-art-avatars span:nth-of-type(10) { --k: 9; }
.onb-art-avatars span:nth-of-type(11) { --k: 10; } .onb-art-avatars span:nth-of-type(12) { --k: 11; }

/* hidden until the scene plays (only when JS can play it) */
.js-anim .onb-card:not(.is-live) .onb-art-avatars span,
.js-anim .onb-card:not(.is-live) .onb-bubble,
.js-anim .onb-card:not(.is-live) .onb-toast { opacity: 0; }

.onb-card.is-live .onb-art-avatars span { animation: avPop .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(150ms + var(--k, 0) * 75ms); }
.onb-card.is-live .onb-art-avatars span:last-of-type { animation: avPop .5s cubic-bezier(.34,1.56,.64,1) both, plusPulse 2s ease-in-out 1.4s infinite; animation-delay: calc(150ms + 11 * 75ms), 1.4s; }
.onb-card.is-live .onb-bubble { animation: riseSoft .6s cubic-bezier(.16,1,.3,1) .5s both; }
.onb-card.is-live .onb-toast { animation: riseSoft .6s cubic-bezier(.16,1,.3,1) .5s both; }
.onb-card.is-live .onb-dot { animation: dotPing 1.6s ease-out 1.1s infinite; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .onb-card .onb-art-avatars span, .js-anim .onb-card .onb-bubble, .js-anim .onb-card .onb-toast { opacity: 1; animation: none; }
}
/* v20.1: no horizontal scroll in the assistant demo; room for the breathing pill */
.ai-demo-body { overflow-x: hidden; padding-right: 10px; margin-right: -10px; }
.ai-qs { padding: 4px 0 4px 3px; }
.ai-qs button { max-width: 100%; }
/* v20.2: round close buttons never shrink */
.ask-x, .ai-close { flex: none; aspect-ratio: 1; }
.ask-head > div { min-width: 0; }
/* v21: real XLink logo (wordmark in header/app, full logo in footer, X mark in assistant avatar) */
.logo { position: relative; display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; height: 30px; width: auto; transition: opacity .3s; }
.logo .lg-white { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.site-header.is-dark .logo .lg-color { opacity: 0; }
.site-header.is-dark .logo .lg-white { opacity: 1; }
.app-brand { line-height: 0; }
.app-brand img { display: block; height: 22px; width: auto; }
.footer-logo { display: block; width: 180px; height: auto; margin-bottom: 24px; }
.footer2 .footer-word { line-height: 0; margin: 32px 0 -7%; }
.footer2 .footer-word img { display: block; width: min(80%, 860px); height: auto; margin: 0 auto; opacity: .16; }
.ask-av { background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.ask-av img { width: 62%; height: auto; display: block; }
@media (max-width: 640px) { .logo img { height: 26px; } .footer-logo { width: 150px; } }
