/* gogenkey.com — one stylesheet for every page. White paper, one orange accent (owner 2026-11-15).
   The app's own windows (AI bar, GenKey AI, compare) are drawn with the same look they have in
   windows/agent/ui/ai.css: white, 13–14px text, vermilion selection, green/red diff. */
:root {
  color-scheme: light;
  --ink: #17181c;
  --body: #3b3f48;
  --dim: #5c5f6a;
  --paper: #ffffff;
  --soft: #f6f6f8;
  --line: #e6e6eb;
  --line-strong: #d6d6dd;
  --accent: #f0714f;          /* brand orange: logo, marks, glows */
  --accent-strong: #c94a1f;   /* buttons: white text passes 4.5:1 */
  --accent-hover: #b03f18;
  --accent-ink: #b8452a;      /* links, emphasised text */
  --accent-soft: #fdeee8;
  --add: #1a7f4b;
  --add-soft: #e3f4ea;
  --del: #b3261e;
  --del-soft: #fdeceb;
  --app-sel: rgba(196, 64, 31, .18);
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 48px; --space-6: 88px;
  --radius-s: 8px; --radius-m: 12px; --radius-l: 18px;
  --shadow: 0 1px 2px rgba(23, 24, 28, .06), 0 14px 40px rgba(23, 24, 28, .09);
  --shadow-pop: 0 2px 6px rgba(23, 24, 28, .10), 0 18px 48px rgba(23, 24, 28, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 var(--space-3); }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -.025em; font-weight: 750; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.22; letter-spacing: -.018em; font-weight: 720; }
h3 { font-size: 19px; line-height: 1.35; font-weight: 650; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--body); line-height: 1.6; }
.small, small { font-size: 15px; color: var(--dim); }
kbd {
  font: 600 13px/1 var(--mono); display: inline-block; padding: 4px 7px; border-radius: 6px;
  background: var(--paper); border: 1px solid var(--line-strong); border-bottom-width: 2px; color: var(--ink);
  white-space: nowrap;
}
code { font: 14px/1.5 var(--mono); }
pre { background: var(--soft); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--radius-s); overflow-x: auto; margin: 0 0 var(--space-3); }
.mark { color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1168px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .lead, .center p { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: var(--space-4); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: var(--space-3); }
.nav a { color: var(--body); text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.head-cta { margin-left: auto; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; cursor: pointer; color: var(--ink); }
.menu-btn svg { display: block; margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; font: inherit; font-size: 16.5px; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .12s, transform .12s, box-shadow .12s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 6px 18px rgba(201, 74, 31, .25); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--soft); color: var(--ink); }
.btn-text { padding: 0 6px; min-height: 44px; color: var(--accent-ink); }
.btn-text:hover { color: var(--accent-hover); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17.5px; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn .win-logo { width: 18px; height: 18px; }
.cta-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.cta-meta { font-size: 14.5px; color: var(--dim); margin: var(--space-2) 0 0; }

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin: 0 auto var(--space-5); text-align: center; }
.section-head .lead { margin: var(--space-3) auto 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.badge {
  display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--soft); color: var(--body); vertical-align: middle; letter-spacing: 0; text-transform: none;
}
.badge-pro { background: var(--accent-soft); color: var(--accent-ink); }
.badge-free { background: var(--add-soft); color: var(--add); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 var(--space-6); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto 40%; height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgba(240, 113, 79, .16), rgba(240, 113, 79, 0));
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: var(--space-5); align-items: center; }
.hero h1 { margin-bottom: var(--space-4); }
.hero .sub { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; font-weight: 600; color: var(--ink); margin: 0 0 var(--space-3); max-width: 30em; }
.hero h1 + .sub { margin-top: calc(-1 * var(--space-2)); }
.hero .lead { margin-bottom: var(--space-4); max-width: 34em; font-size: 17.5px; }
@media (min-width: 1024px) {
  .hero .cta-row { gap: 12px; }
  .hero .cta-row .btn-lg { padding: 0 20px; }
}
.hero-compact { padding: 64px 0 var(--space-5); text-align: center; }
.hero-compact h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: var(--space-3); }
.hero-compact .lead { max-width: 640px; margin: 0 auto var(--space-4); }
.hero-compact .cta-row { justify-content: center; }
.apps-strip { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: var(--space-4); color: var(--dim); font-size: 15px; align-items: center; }
.apps-strip b { font-weight: 650; color: var(--body); }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-5); align-items: center; }
.split + .split { margin-top: var(--space-6); }
.split.reverse { grid-template-columns: 7fr 5fr; }
.split.reverse .split-text { order: 2; }
.split-text h2 { margin-bottom: var(--space-3); }
.split-text .lead { margin-bottom: var(--space-4); }
.ticks { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--body); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 7.5px; top: 8px; width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks b { color: var(--ink); font-weight: 650; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--space-4);
  transition: transform .14s, box-shadow .14s, border-color .14s; position: relative; color: var(--body);
}
.section-soft .card { border-color: transparent; }
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line); color: var(--body); }
.card h3 { margin: 0 0 var(--space-2); }
.card .card-label { margin: var(--space-3) 0 4px; font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }
.card p { margin: 0; font-size: 15.5px; }
.card .more { display: inline-block; margin-top: var(--space-3); font-weight: 650; font-size: 15px; color: var(--accent-ink); }
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.ico svg { width: 22px; height: 22px; }
.card-sample { font: 600 15px/1.4 var(--mono); color: var(--ink); background: var(--soft); border-radius: 8px; padding: 8px 10px; margin-top: var(--space-3); }
.section-soft .card-sample { background: var(--soft); }
.card-sample .x { color: var(--del); text-decoration: line-through; }
.card-sample .ok { color: var(--add); }

/* ---------- Mock windows (demos) ---------- */
.stage { position: relative; }
.win {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-l);
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.win-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfbfc; font-size: 13px; color: var(--dim); }
.win-bar .dots { display: flex; gap: 6px; }
.win-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.win-bar .title { flex: 1; text-align: center; margin-right: 46px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { padding: 22px 24px; min-height: 120px; font-size: 16px; line-height: 1.65; color: var(--ink); position: relative; }
.win-body .muted { color: var(--dim); }
.doc-line { min-height: 1.65em; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--ink); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sel { background: var(--app-sel); border-radius: 2px; }
.flash { animation: flash 1.2s ease-out; border-radius: 3px; }
@keyframes flash { 0% { background: var(--add-soft); } 100% { background: transparent; } }
.cursor-arrow { opacity: 0; left: 50%; top: 40%; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 5; transition: left .6s cubic-bezier(.4, 0, .2, 1), top .6s cubic-bezier(.4, 0, .2, 1); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.cursor-arrow.click { animation: click .3s; }
@keyframes click { 50% { transform: scale(.82); } }

/* The AI bar as the app draws it: one white row, 13px, logo then four tasks then the list button. */
.aibar {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; height: 34px; background: #fff;
  border: 1px solid #dcdcdc; border-radius: 8px; box-shadow: var(--shadow-pop); font-size: 13px; color: var(--ink);
  opacity: 0; transform: translateY(4px) scale(.98); transition: opacity .18s, transform .18s; pointer-events: none; white-space: nowrap;
}
.aibar.show { opacity: 1; transform: none; }
.aibar img { width: 18px; height: 18px; margin: 0 6px 0 9px; border-radius: 4px; }
.aibar span { padding: 0 11px; height: 100%; display: inline-flex; align-items: center; }
.aibar span.on { background: var(--accent-soft); color: var(--accent-ink); }
.aibar .list { border-left: 1px solid #ececec; padding: 0 10px; }
.aibar .list svg { width: 15px; height: 15px; }
.aibar.status span { color: var(--dim); }

/* The compare panel (AI-04). */
.cmp { background: #fff; border: 1px solid #dcdcdc; border-radius: 12px; box-shadow: var(--shadow-pop); font-size: 14px; color: var(--ink); overflow: hidden; }
.cmp-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #ececec; font-size: 13.5px; }
.cmp-head img { width: 20px; height: 20px; border-radius: 5px; }
.cmp-head b { font-weight: 700; }
.cmp-head .st { color: var(--dim); }
.cmp-head .grow { flex: 1; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 14px; }
.cmp-cols .lbl { font-size: 12px; color: #767a84; margin: 0 0 4px; font-weight: 500; }
.cmp-cols .pane { background: #f7f7f7; border-radius: 8px; padding: 10px 12px; line-height: 1.6; min-height: 92px; }
.cmp-acts { display: flex; gap: 8px; padding: 0 14px 12px; flex-wrap: wrap; }
.cmp-acts span { font-weight: 600; font-size: 13px; padding: 5px 11px; border-radius: 8px; border: 1px solid #dcdcdc; background: #fff; }
.cmp-acts span.primary { background: #c4401f; border-color: #c4401f; color: #fff; }
.cmp-acts span.primary.press { background: #9a2f15; }
del, .del { color: var(--del); background: var(--del-soft); text-decoration: line-through; border-radius: 3px; padding: 0 1px; }
ins, .ins { color: var(--add); background: var(--add-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; border-radius: 3px; padding: 0 1px; }
button.ins { font: inherit; border: 0; cursor: pointer; }
button.ins.kept { color: var(--ink); background: #ececec; text-decoration: none; }

/* Hero stage: a document, the AI bar under it, the compare panel over it. */
.hero-stage { position: relative; min-height: 440px; padding-bottom: 40px; }
.hero-stage .win { max-width: 640px; margin-left: auto; }
.hero-stage .win-body { min-height: 300px; }
.hero-stage .cmp { position: absolute; left: 3%; right: -2%; bottom: 0; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; z-index: 6; }
.hero-stage .cmp.show { opacity: 1; transform: none; }
.hero-stage .doc-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.toast {
  position: absolute; z-index: 7; background: #fff; border: 1px solid #dcdcdc; border-radius: 8px; padding: 6px 12px;
  font-size: 13px; box-shadow: var(--shadow-pop); opacity: 0; transition: opacity .2s; white-space: nowrap;
}
.toast.show { opacity: 1; }
.toast b { color: var(--accent-ink); margin-left: 6px; }

/* Typing demo */
.typing { display: grid; gap: 12px; }
.keys-line { font: 15px/1.4 var(--mono); color: var(--dim); min-height: 1.4em; }
.keys-line b { color: var(--ink); background: var(--soft); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; margin-right: 2px; font-weight: 600; }
.out-line { font-size: 24px; font-weight: 600; min-height: 1.5em; letter-spacing: -.01em; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.vs > div { border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.vs .bad { background: var(--del-soft); color: var(--del); }
.vs .good { background: var(--add-soft); color: var(--add); }
.vs .who { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; opacity: .85; }
.addr { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; font-size: 16px; background: #fff; }
.addr svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
.addr .ghost { color: #8a8e98; background: rgba(66, 133, 244, .16); }
.field { display: grid; gap: 4px; font-size: 14px; color: var(--dim); }
.field .box { border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; font-size: 16px; color: var(--ink); background: #fff; min-height: 42px; letter-spacing: .12em; }
.chip-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--add); background: var(--add-soft); padding: 4px 10px; border-radius: 999px; }

/* Tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; flex-wrap: wrap; margin-bottom: var(--space-4); }
.section-soft .tabs { background: #ececf0; }
.tabs [role="tab"] {
  font: inherit; font-size: 15px; font-weight: 600; border: 0; background: transparent; color: var(--body);
  padding: 9px 16px; border-radius: 9px; cursor: pointer; min-height: 40px;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.tabs [role="tab"]:hover { color: var(--ink); }
.demo-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13.5px; color: var(--dim); flex-wrap: wrap; }
.demo-foot .grow { flex: 1; }
.replay { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); background: none; border: 0; cursor: pointer; padding: 6px 4px; }
.replay:hover { color: var(--accent-hover); }

/* Chat demo (Dịch, Trả lời) */
.chat { background: #f3f5f8; min-height: 330px; display: flex; flex-direction: column; gap: 10px; padding-bottom: 70px; }
.bubble { max-width: 82%; font-size: 15px; line-height: 1.5; }
.bubble span { display: inline-block; padding: 9px 13px; border-radius: 14px; }
.bubble.in span { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.bubble.in .msg.sel { background: #f6d9cf; }
.bubble.out { align-self: flex-end; }
.bubble.out span { background: #d9ecff; border-top-right-radius: 4px; }
.composer { position: absolute; left: 16px; right: 16px; bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14.5px; color: var(--ink); min-height: 42px; }
.composer span:only-child:not(:empty) { color: var(--ink); }
.bar-answer, .pop-panel {
  position: absolute; z-index: 5; background: #fff; border: 1px solid #dcdcdc; border-radius: 10px; box-shadow: var(--shadow-pop);
  font-size: 13.5px; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; pointer-events: none;
}
.bar-answer { display: grid; grid-template-columns: 18px 1fr; gap: 6px 10px; padding: 10px 12px; max-width: 360px; }
.bar-answer img { width: 18px; height: 18px; border-radius: 4px; }
.bar-answer p { margin: 0; line-height: 1.5; }
.bar-answer .acts, .pop-panel .acts { grid-column: 2; display: flex; gap: 6px; margin-top: 4px; }
.bar-answer .acts span, .pop-panel .acts span { font-weight: 600; font-size: 12.5px; padding: 4px 10px; border: 1px solid #dcdcdc; border-radius: 7px; }
.pop-panel .acts span.primary { background: #c4401f; border-color: #c4401f; color: #fff; }
.pop-panel { left: 12%; right: 6%; top: 96px; padding: 12px 14px; }
.pop-panel b { font-size: 13.5px; }
.pop-panel .lbl { margin: 6px 0 4px; color: #767a84; font-size: 12.5px; }
.pop-panel .field-line { border: 1px solid #c4401f; border-radius: 8px; padding: 7px 10px; min-height: 36px; font-size: 14px; }
.pop-panel .ans { margin: 8px 0 6px; background: #f7f7f7; border-radius: 8px; padding: 9px 11px; line-height: 1.5; }
.bar-answer.show, .pop-panel.show { opacity: 1; transform: none; }

/* Home: menu of nine tasks, the small typing band */
.menu-wrap { display: flex; justify-content: center; }
.menu9 { width: 100%; }
.menu9 li .badge { font-size: 11px; padding: 1px 7px; }
.menu9 .cmp-head .st { color: #767a84; font-size: 12.5px; }
.basic-band { padding: var(--space-5) 0; }
.basic { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 32px; }
.basic h2.h3 { margin: 0 0 6px; }
.basic .small { margin: 0; }
.basic .eyebrow { margin-bottom: 8px; }
.basic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.basic-list li { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 600; color: var(--body); }
.basic-list svg { color: var(--accent-ink); }

/* Contact */
.contact-card { display: flex; flex-direction: column; }
.contact-card p { flex: 1; }
.contact-act { margin-top: var(--space-4); }
.contact-act .btn { width: 100%; }

/* Compose demo */
.compose { background: #fff; border: 1px solid #dcdcdc; border-radius: 12px; box-shadow: var(--shadow-pop); font-size: 14px; overflow: hidden; }
.compose .req { margin: 12px 14px; border: 1px solid #dcdcdc; border-radius: 8px; padding: 10px 12px; min-height: 66px; line-height: 1.55; }
.compose .out { margin: 0 14px 12px; background: #f7f7f7; border-radius: 8px; padding: 12px 14px; min-height: 190px; max-height: 240px; overflow: hidden; line-height: 1.6; white-space: pre-wrap; font-size: 13.5px; }
.slot { background: #fff1c2; color: #7a5200; border-radius: 3px; padding: 0 2px; }

/* Feedback demo */
.fb-group { margin: 0 14px 10px; }
.fb-group h4 { margin: 0 0 6px; font-size: 12.5px; color: #767a84; font-weight: 600; }
.fb-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid #ececec; border-radius: 8px; margin-bottom: 6px; font-size: 13.5px; }
.fb-item input { margin-top: 3px; accent-color: #c4401f; }
.fb-item .why { color: #767a84; display: block; font-size: 12.5px; }
.fb-overall { margin: 12px 14px; font-size: 13.5px; color: var(--body); background: #f7f7f7; border-radius: 8px; padding: 10px 12px; }

/* Menu demo (9 tasks) */
.menu9 { background: #fff; border: 1px solid #dcdcdc; border-radius: 12px; box-shadow: var(--shadow-pop); font-size: 13.5px; overflow: hidden; max-width: 480px; }
.menu9 ol { list-style: none; margin: 0; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu9 li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1px solid #ececec; border-radius: 10px; }
.menu9 li .n { margin-left: auto; font: 600 11px/1 var(--mono); color: #767a84; }
.menu9 li.on { background: var(--accent-soft); border-color: #c4401f; color: #9a2f15; font-weight: 600; }
.menu9 .ask { margin: 0 14px 14px; border: 1px solid #dcdcdc; border-radius: 10px; height: 42px; display: flex; align-items: center; padding: 0 12px; color: #767a84; gap: 8px; }
.menu9 .ask .badge { margin-left: auto; }

/* App list demo */
.applist { display: grid; gap: 8px; }
.applist .row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; transition: border-color .2s, background .2s; }
.applist .row.on { border-color: var(--accent); background: var(--accent-soft); }
.applist .row .app { font-weight: 650; min-width: 120px; }
.applist .row .rule { color: var(--dim); font-size: 14px; }
.applist .row .mode { margin-left: auto; font: 700 13px/1 var(--mono); width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.applist .row .mode.en { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.applist .row .mode.off { background: var(--soft); color: var(--dim); }

/* ---------- Feature page pieces ---------- */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--space-5); }
.jump a { text-decoration: none; color: var(--body); background: var(--soft); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; }
.jump a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.cycle-out { margin: 12px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--soft); font-size: 16px; min-height: 52px; }
.cycle-out.big { font-size: 18px; font-weight: 600; }
.mono { font-family: var(--mono); }
.keyrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.keycard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; background: #fff; transition: border-color .2s, background .2s; }
.keycard b { font-size: 15px; }
.keycard.on { border-color: var(--accent); background: var(--accent-soft); }
.card-sample.big { font-size: 17px; padding: 16px; margin-top: 12px; min-height: 56px; }
.slash { margin-top: 14px; font-size: 15px; color: var(--body); }
.slash-pop { margin-top: 10px; background: #fff; border: 1px solid #dcdcdc; border-radius: 10px; box-shadow: var(--shadow); padding: 6px; max-width: 360px; font-size: 14px; }
.slash-pop div { padding: 7px 10px; border-radius: 7px; color: var(--body); }
.slash-pop div.on { background: var(--accent-soft); color: var(--accent-ink); }
.slash-pop b { font-family: var(--mono); margin-right: 10px; color: var(--ink); }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.way { border-radius: var(--radius-l); padding: 24px 28px; }
.way.old { background: var(--soft); color: var(--dim); }
.way.new { background: var(--accent-soft); color: var(--ink); }
.way-h { font-weight: 700; margin-bottom: 12px; }
.way.old .way-h { color: var(--body); }
.way.new .way-h { color: var(--accent-ink); }
.way ol { margin: 0 0 12px; padding-left: 22px; columns: 2; column-gap: 24px; }
.way.new ol { columns: 1; font-size: 19px; font-weight: 600; }
.way li { margin-bottom: 6px; }
.way.old li { text-decoration: line-through; text-decoration-color: rgba(92, 95, 106, .4); }
.way-bar { position: relative; height: 44px; margin: 6px 0 12px; }
.aibar.static { position: relative; }
.task .badge { white-space: nowrap; flex: none; }
.nine { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.nine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task {
  font: inherit; text-align: left; display: flex; align-items: center; gap: 8px; justify-content: space-between; min-height: 52px;
  padding: 0 14px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--ink);
}
.task b { font-weight: 600; font-size: 15px; }
.task:hover { border-color: var(--line-strong); }
.task[aria-pressed="true"] { border-color: var(--accent-strong); background: var(--accent-soft); }
.task[aria-pressed="true"] b { color: var(--accent-ink); }
.nine-cmp .pane { white-space: pre-wrap; min-height: 150px; }
.source { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-5); }
.source > div { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.source h3 { margin-bottom: 8px; }
.source p { margin: 0; color: var(--body); font-size: 15.5px; }
.card h3.mt { margin-top: var(--space-3); }
.callout.warn { align-items: center; background: #fff7e6; border: 1px solid #f5d38a; margin-bottom: 18px; }
.callout.warn .ico { background: #fff; color: #9a6400; }
.callout.warn p { margin: 0; font-size: 14px; }
.fake-btn { margin-left: auto; font-weight: 650; font-size: 14px; background: var(--accent-strong); color: #fff; border-radius: 8px; padding: 7px 12px; white-space: nowrap; }
.lbl-s { margin: 0 0 6px; font-size: 13px; color: var(--dim); }
.field .box.plain { letter-spacing: 0; }

/* ---------- Pricing, download, thank-you pieces ---------- */
.section.pt0 { padding-top: 0; }
.trial { display: flex; align-items: center; gap: var(--space-5); justify-content: space-between; }
.trial h2 { margin-bottom: var(--space-3); }
.trial .lead { margin: 0; max-width: 640px; }
h2.h3 { font-size: 22px; margin: var(--space-5) 0 var(--space-2); }
.got { margin-top: var(--space-2); }
.shot .chk { font-size: 13.5px; }
.tray-v { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: #fff; font: 700 14px/1 var(--mono); }
.faq-contact { margin-top: var(--space-5); }
.dl-box .cta-row { justify-content: center; }
.only-other .cta-row { margin-top: 12px; }
@media (max-width: 760px) { .trial { flex-direction: column; align-items: stretch; } }

/* ---------- Privacy band ---------- */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.promise .item h3 { font-size: 17.5px; margin: var(--space-3) 0 6px; }
.promise .item p { font-size: 15.5px; color: var(--body); margin: 0; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); max-width: 920px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; background: var(--paper); display: flex; flex-direction: column; }
.plan-pro { border: 2px solid var(--accent); position: relative; box-shadow: 0 16px 40px rgba(240, 113, 79, .14); }
.plan-pro .flag { position: absolute; top: -14px; left: 28px; background: var(--accent-strong); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.plan .for { color: var(--dim); font-size: 15.5px; margin: 6px 0 var(--space-3); }
.price { font-size: 42px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.price small { font-size: 15px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.price-alt { font-size: 14.5px; color: var(--dim); margin: 6px 0 0; min-height: 1.5em; }
.save { color: var(--add); font-weight: 650; }
.plan .ticks { margin: var(--space-4) 0; flex: 1; align-content: start; }
.plan .btn { width: 100%; }
.plans + p { margin-top: var(--space-4); }
.plan .after {font-size: 14px; color: var(--dim); margin: 10px 0 0; text-align: center; }
.period { display: inline-flex; padding: 4px; background: var(--soft); border-radius: 12px; margin: 0 auto var(--space-5); }
.period-wrap { text-align: center; }
.period label { position: relative; }
.period input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.period label > span { display: block; padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--body); cursor: pointer; }
.period input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.period input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--paper); border-radius: var(--radius-l); overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { position: sticky; top: 64px; background: var(--paper); font-size: 16px; z-index: 1; }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; width: 20%; }
.compare-table .grp td { background: var(--soft); font-weight: 700; font-size: 14px; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.yes { color: var(--add); font-weight: 800; }
.no { color: #a7aab3; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 56px; color: var(--body); font-size: 15.5px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-strong); color: #fff; font-weight: 750; font-size: 18px; display: grid; place-items: center;
}
.steps li h3 { font-size: 17.5px; margin-bottom: 6px; }
.steps.vertical { grid-template-columns: 1fr; gap: var(--space-4); }
.steps.vertical li { padding: 0 0 0 60px; }
.shot { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; font-size: 13.5px; color: var(--ink); }
.shot.smartscreen { background: #0b5394; color: #fff; border: 0; }
.shot.smartscreen .t { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.shot.smartscreen .link { text-decoration: underline; }
.shot.smartscreen .b { display: inline-block; border: 1px solid #fff; padding: 3px 12px; margin-top: 8px; font-size: 13px; }

/* ---------- Callout ---------- */
.callout { display: flex; gap: 14px; border-radius: var(--radius-m); padding: 16px 18px; background: var(--accent-soft); color: var(--body); font-size: 15.5px; }
.callout .ico { flex: none; width: 36px; height: 36px; background: #fff; }
.callout b { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout.info { background: var(--soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 650; font-size: 17.5px; padding: 20px 44px 20px 0; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 20px; color: var(--body); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq-search { max-width: 820px; margin: 0 auto var(--space-4); }
.faq-search input {
  width: 100%; font: inherit; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
}
.faq-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.faq-group { max-width: 820px; margin: var(--space-5) auto 0; }
.faq-group h2 { font-size: 22px; margin-bottom: var(--space-2); }
.faq-empty { max-width: 820px; margin: var(--space-4) auto 0; color: var(--dim); }
.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-5); align-items: start; }
.faq-toc { position: sticky; top: 88px; display: grid; gap: 2px; }
.faq-toc a { color: var(--body); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 550; font-size: 15.5px; }
.faq-toc a:hover { background: var(--soft); color: var(--ink); }
.faq-layout .faq, .faq-layout .faq-group, .faq-layout .faq-search, .faq-layout .faq-empty { max-width: none; margin-left: 0; }
.faq-layout .faq-group:first-of-type { margin-top: 0; }

/* ---------- Final CTA ---------- */
.cta-band {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: auto -20% -70% -20%; height: 120%; background: radial-gradient(closest-side, rgba(240, 113, 79, .35), transparent); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-band .lead { color: #c9ccd3; max-width: 620px; margin: 0 auto var(--space-4); }
.cta-band .cta-row { justify-content: center; }
.cta-band .cta-meta { color: #a2a5b0; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #4a4d56; }
.cta-band .btn-secondary:hover { background: #24262b; color: #fff; }
.cta-band .btn-primary { background: #e0551f; box-shadow: none; }
.cta-band .btn-primary:hover { background: #c94a1f; }

/* ---------- Article (legal) ---------- */
.article { max-width: 760px; margin: 0 auto; padding: var(--space-5) 24px var(--space-6); }
.article h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: var(--space-2); }
.article .updated { color: var(--dim); font-size: 15px; margin-bottom: var(--space-5); }
.article h2 { font-size: 24px; margin: var(--space-5) 0 var(--space-3); }
.article ul { padding-left: 22px; color: var(--body); }
.article li { margin-bottom: 8px; }
.article p { color: var(--body); }

/* ---------- Download page ---------- */
.dl-box { max-width: 720px; margin: 0 auto; text-align: center; }
.dl-facts { display: flex; justify-content: center; gap: 8px 24px; flex-wrap: wrap; color: var(--dim); font-size: 15px; margin: var(--space-3) 0 0; }
.hash { display: flex; gap: 8px; align-items: stretch; }
.hash code { flex: 1; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; word-break: break-all; font-size: 13.5px; }
.only-other { display: none; }
html.not-windows .only-other { display: block; }
html.not-windows .only-windows { display: none; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: var(--space-5) 0 var(--space-4); font-size: 15px; color: var(--dim); margin-top: var(--space-6); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-4); }
.foot-grid h4 { margin: 0 0 12px; font-size: 14px; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--dim); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand p { margin: 12px 0 0; max-width: 300px; }
.foot-line { border-top: 1px solid var(--line); margin-top: var(--space-5); padding-top: var(--space-3); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; font-size: 14px; }
.sticky-cta { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease-out, transform .45s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 0; }
  .cards, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-stage .win { margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-toc { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .faq-toc a { background: var(--soft); white-space: nowrap; }
}
@media (max-width: 760px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: block; }
  .site-head.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .site-head.open .nav {
    display: flex; flex-direction: column; position: fixed; inset: 64px 0 0 0; background: #fff; margin: 0; padding: 16px 24px; gap: 4px; z-index: 60;
  }
  .site-head.open .nav a { font-size: 19px; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-head.open .nav .btn { margin-top: 16px; color: #fff; border: 0; border-radius: 12px; justify-content: center; }
  body.menu-open { overflow: hidden; }
  .section { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .cards, .cards-4, .cards-2, .promise, .plans, .steps { grid-template-columns: 1fr; }
  .cmp-cols, .vs { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; padding-bottom: 0; }
  .hero-stage .win-body { min-height: 260px; }
  .hero-stage .cmp { left: 0; right: 0; bottom: 0; font-size: 12.5px; }
  .hero-stage .cmp-cols { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .hero-stage .cmp-cols .pane { padding: 8px; min-height: 0; }
  .hero .cta-row .btn, .hero-compact .cta-row .btn { width: 100%; }
  .cta-band { padding: 48px 22px; border-radius: 20px; }
  .wrap { padding: 0 16px; }
  .sticky-cta {
    display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; transform: translateY(140%); transition: transform .25s;
  }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; box-shadow: var(--shadow-pop); }
  .menu9 ol { grid-template-columns: 1fr; }
  .keyrow, .ways, .source, .nine, .nine-grid { grid-template-columns: 1fr; }
  .way ol { columns: 1; }
}
@media (max-width: 1023px) { .nine { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .nav .btn { display: none; } }

/* ---------- Free typing demos: gõ tắt, phím tắt, theo ứng dụng ---------- */
.ai-bridge { padding-bottom: 0; }
.ai-bridge .section-head { margin-bottom: 0; }
.macro-doc { min-height: 210px; }
.mk { border-bottom: 2px dashed var(--accent); font-family: var(--mono); }
.macro-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 40px; margin: 12px 0 8px; }
.macro-foot .keys-line { flex: 1; }
.mtable { border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; padding: 12px 14px; }
.mtable ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mtable li { display: flex; gap: 12px; align-items: baseline; padding: 6px 10px; border-radius: 8px; font-size: 14.5px; color: var(--body); transition: background .2s; }
.mtable li code { font-weight: 700; color: var(--ink); min-width: 44px; }
.mtable li.on { background: var(--accent-soft); }
.tk-doc .doc-line { margin-bottom: 6px; }
.tk-keys { margin-top: 14px; }
.keycard.press kbd { animation: press .24s; }
@keyframes press { 50% { transform: translateY(2px); border-bottom-width: 1px; background: var(--accent-soft); } }
.desk { position: relative; border-radius: var(--radius-l); background: linear-gradient(160deg, #eef1f6, #e4e8f0); padding: 18px 18px 0; overflow: hidden; border: 1px solid var(--line); }
.desk .win { box-shadow: var(--shadow); }
.pa-body { min-height: 150px; display: grid; align-content: start; gap: 10px; }
.taskbar { display: flex; align-items: center; gap: 6px; height: 46px; margin: 14px -18px 0; padding: 0 12px; background: rgba(255, 255, 255, .85); border-top: 1px solid var(--line); font-size: 13px; }
.tb-start { display: grid; place-items: center; width: 30px; height: 30px; color: #0067c0; }
.tb-app { padding: 6px 12px; border-radius: 7px; color: var(--body); font-weight: 600; border-bottom: 2px solid transparent; }
.tb-app.on { background: #fff; color: var(--ink); border-bottom-color: var(--accent-strong); }
.tray { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; font: 700 13px/1 var(--mono); }
.tray.v { background: #c4401f; }
.tray.e { background: #3a3d44; }
.tb-clock { color: var(--dim); font-size: 12.5px; margin-left: 6px; }
.pa-rules .row { padding: 8px 12px; }
.mt-s { margin-top: 12px; }
@media (max-width: 760px) { .tk-keys { grid-template-columns: 1fr; } .tb-clock { display: none; } }
.section-soft .way.old { background: #fff; }
.pa-body .chip-note { justify-self: start; }
.mpop { position: absolute; z-index: 5; margin: 0; width: 290px; box-shadow: var(--shadow-pop); }
.mpop .mpop-h { margin: 2px 8px 6px; font-size: 12px; color: var(--dim); }
.mpop div { font-size: 13.5px; }
.macro-doc { min-height: 240px; }
@media (max-width: 760px) { .mpop { width: 250px; } }
.nf { padding: 120px 0 96px; }
