/*
 * The hirehay.com home page (issue 906), built to hirehay-landing.pen: Desktop · VI/EN
 * at 1440px, Mobile · VI/EN at 390px, the Menu frames and Spec · Interactions & motion. The privacy
 * policy, the terms and the not-found page load this sheet too, for the fonts, tokens, buttons,
 * header and footer, and add content.css (issue 944).
 *
 * Layout: the phone layout is the default and holds up to 1279px, its column capped at 720px; the
 * desktop layout starts at 1280px with a 1280px column. The header switches at 1024px, as the
 * spec frame says. The page is light only, as drawn.
 *
 * Colours: the page loads no kit, so each colour below copies the design variable of the same
 * name. Where the value is an hh role token, the comment names the role (the light value of the
 * built hh theme in @hirehay/ui); where the design uses a colour hh has no token for, the comment
 * says "design:". build.test.mjs checks both, and that no other colour literal appears below :root.
 */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-latin-400-normal.dab1ae446a.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329,
    U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-vietnamese-400-normal.6161775ff9.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01a0-01a1, U+01af-01b0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1ea0-1ef9, U+20ab;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-latin-500-normal.45be541774.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329,
    U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-vietnamese-500-normal.895053613b.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01a0-01a1, U+01af-01b0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1ea0-1ef9, U+20ab;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-latin-600-normal.7ed1ab4956.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329,
    U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-vietnamese-600-normal.0a6fb173a1.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01a0-01a1, U+01af-01b0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1ea0-1ef9, U+20ab;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-latin-700-normal.1960b87e7d.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329,
    U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/be-vietnam-pro-vietnamese-700-normal.c8731c1b4c.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01a0-01a1, U+01af-01b0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1ea0-1ef9, U+20ab;
}

:root {
  color-scheme: light;

  --bg-page: #f6f5f0; /* --color-background-body */
  --bg-surface: #ffffff; /* --color-background-card */
  --bg-subtle: #f6f5f0; /* --color-background-muted */
  --bg-sunken: #eeede7; /* --color-background-sunken */
  --bg-lavender: #f4f4ff; /* --color-background-navigation */
  --bg-field: #eeede7; /* --color-background-field */
  --accent: #604faf; /* --color-accent */
  --accent-soft: #ebeafe; /* --color-info-muted */
  --nav-active: #ebeafe; /* --color-accent-muted */
  --on-accent-soft: #1e1d18; /* --color-on-info-muted */
  --text-primary: #1e1d18; /* --color-text-primary */
  --text-muted: #66645d; /* design: text-muted */
  --border: #dedcd5; /* --color-border */
  --border-strong: #7e7b75; /* --color-border-emphasized */
  --border-row: #dedcd5; /* --color-border-row */
  --action: #d7ed99; /* --color-action */
  --action-hover: #c4d986; /* --color-action-hover */
  --action-border: #788946; /* --color-action-edge */
  --inverse: #1e1d18; /* --color-background-inverted */
  --on-inverse: #f7f7f2; /* design: on-inverse */
  --inverse-muted: #b8b6ad; /* design: inverse-muted */
  --white: #ffffff; /* --color-on-dark */
  --success: #286442; /* --color-success */
  --success-soft: #e5f0e9; /* --color-success-muted */
  --warning: #805715; /* --color-warning */
  --warning-soft: #f4ebe1; /* --color-warning-muted */
  --danger: #a42929; /* --color-error */
  --danger-soft: #ffe6e3; /* --color-error-muted */
  --stage-1: #d9d0f7; /* --color-stage-1 */
  --stage-2: #b3a5ec; /* --color-stage-2 */
  --stage-3: #7f6bcb; /* design: stage-3 */
  --stage-4: #c3dc7e; /* --color-stage-4 */
  --stage-5: #3c7a55; /* --color-stage-5 */
  --dark-raised: #34352f; /* design: problem-fragment */
  --dark-edge: #45463f; /* design: problem-edge */
  --demo-brand: #1f4e5a; /* design: demo-brand */
  --demo-brand-soft: #bfe0e3; /* design: demo-brand-soft */
  --icon-sheet: #8fcb9f; /* design: icon-sheet */
  --icon-chat: #b3a5f0; /* design: icon-chat */
  --icon-mail: #e2b66a; /* design: icon-mail */
  --icon-file: #f08a80; /* design: icon-file */
  --icon-calendar: #f0c674; /* design: icon-calendar */
  --menu-shadow: #1a191f; /* design: menu-shadow */
  --match-top: #f7fbf0; /* design: match-top */
  --match-edge: #bfdd94; /* design: match-edge */

  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 80ms;
  --quick: 120ms;
  --base: 180ms;
  --slow: 200ms;

  /* The side gutter: 20px on a phone, centring a 720px column up to the desktop layout. */
  --pad: max(20px, calc((100% - 720px) / 2));
  --shadow-panel: 0 16px 40px color-mix(in srgb, var(--text-primary) 12%, transparent);

  interpolate-size: allow-keywords;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Only the home page's own section links glide (home.js sets smooth-scroll as one is followed):
   a page opened at an anchor, from another page or a pasted link, lands on it at once (issue 4458). */
@media (prefers-reduced-motion: no-preference) {
  html.smooth-scroll {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset,
legend {
  margin: 0;
  padding: 0;
  font: inherit;
}

fieldset {
  border: 0;
  min-width: 0;
}

ul,
ol {
  list-style: none;
}

b,
strong {
  font-weight: 600;
}

small {
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--text-primary);
  outline-offset: 2px;
}

section[id] {
  scroll-margin-top: 16px;
}

.sr,
.unit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Only the desktop layout ("d") or only the phone layout ("m") shows these. */
@media (max-width: 1279.98px) {
  .d {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .m {
    display: none !important;
  }
}

/* Titles on the phone (issue 1670). Each "|" sentence of a section title is a line of its own
   (page.mjs heading()), as the hero's two spans are. Below desktop a title shrinks with the window
   so that its longest line stays whole: its font-size is the room across the window divided by
   --fit, at most the design's size and at least a readable floor (25 px, the hero 32 px). --fit is
   that line's width in Be Vietnam Pro 700 with the title's tracking, in ems of the design's size,
   plus 2.5 % slack, as Chrome on Linux sets text up to 2 % wider at some sizes. The room is the
   window less the phone's 20 px gutters (--pad below 760 px; from there every title keeps its
   full size), and less the closing card's 24 px padding too. A title whose longest line fits a
   320 px phone at full size needs no --fit. A phone too narrow for a line even at the floor
   balances that line, breaking it only between whole words (page.mjs words), so no word is left
   alone on the last line. Re-measure --fit when the copy changes. */
h2 > .line {
  display: block;
}

@media (max-width: 1279.98px) {
  .hero h1,
  .problem h2,
  .workflow h2,
  .features h2,
  .integrations h2,
  .pricing h2,
  .faq h2,
  .final h2 {
    text-wrap: balance;
  }

  .hero h1:lang(vi) {
    --fit: 7.75;
  }

  .hero h1:lang(en) {
    --fit: 8.65;
  }

  .problem h2:lang(vi) {
    --fit: 9.95;
  }

  .features h2:lang(vi) {
    --fit: 14;
  }

  .features h2:lang(en) {
    --fit: 15.5;
  }

  .integrations h2:lang(vi) {
    --fit: 11.15;
  }

  .pricing h2:lang(en) {
    --fit: 10.8;
  }

  .faq h2:lang(vi) {
    --fit: 9.55;
  }

  .faq h2:lang(en) {
    --fit: 13.5;
  }

  .final h2:lang(en) {
    --fit: 8.05;
  }
}

svg.i {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
}

/* The first Tab stop, out of sight until focused. */
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.text-link {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness var(--quick) var(--ease);
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

/* Buttons (Components: Button / Primary and Button / Secondary). Strokes sit inside each frame,
   so every padding below is the design's minus the 1px edge. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color var(--quick) var(--ease),
    transform var(--fast) var(--ease);
}

.btn-primary {
  background: var(--action);
  border-color: var(--action-border);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--action-hover);
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  padding: 7px 11px;
  font-size: 14px;
}

/* Header ------------------------------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}

.logo {
  display: block;
  flex: none;
}

.logo svg {
  display: block;
  width: 137px;
  height: 32px;
  color: var(--text-primary);
}

.nav-links,
.lang.lang-short,
.nav-signin-box {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.lang a {
  display: grid;
  justify-items: center;
  transition: color var(--quick) var(--ease);
}

/* Each language keeps the width of its bold self, an invisible line of no height, so the bold
   moving to the other language moves neither. */
.lang a::before {
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 600;
  content: attr(data-label);
}

.lang a:hover,
.lang a[aria-current] {
  color: var(--text-primary);
}

.lang a[aria-current] {
  font-weight: 600;
}

.menu summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary svg.i {
  width: 24px;
  height: 24px;
}

.menu[open] .i-menu,
.menu:not([open]) .i-x {
  display: none;
}

.menu-panel {
  position: absolute;
  top: 62px;
  right: 0;
  left: 0;
  padding: 3px 20px 19px;
  background: var(--bg-surface);
  border-block: 1px solid var(--border);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--menu-shadow) 12%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel {
    animation: menu-in var(--base) var(--ease);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.menu-panel nav a {
  display: block;
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--border-row);
  font-size: 16px;
}

.menu-panel .menu-signin {
  font-weight: 600;
}

.menu-panel .lang {
  padding-top: 16px;
  font-size: 15px;
}

.lang-long svg.i {
  width: 16px;
  height: 16px;
}

/* Below the desktop header, the header gets out of the way as the reader scrolls down and comes
   back as they scroll up (issue 1662). home.js sets data-scroll once the reader is past it: "away"
   hides it at once (it had already scrolled off), "hidden" slides it up, "shown" pins it to the
   top on the page background with a hairline under it. A section a link jumps to lands clear of
   the shown header (62px). */
@media (max-width: 1023.98px) {
  .site-header[data-scroll] {
    position: sticky;
    top: 0;
    background: var(--bg-page);
    box-shadow: 0 1px 0 var(--border);
  }

  .site-header[data-scroll='away'],
  .site-header[data-scroll='hidden'] {
    translate: 0 calc(-100% - 1px);
  }

  /* Focus moving into a hidden header shows it before the browser scrolls to the focus. */
  .site-header[data-scroll]:focus-within {
    translate: none;
  }

  section[id] {
    scroll-margin-top: 78px;
  }
}

@media (max-width: 1023.98px) and (prefers-reduced-motion: no-preference) {
  .site-header[data-scroll='shown'],
  .site-header[data-scroll='hidden'] {
    transition: translate var(--t-move) var(--ease-out);
  }
}

@media (min-width: 1024px) {
  .site-header {
    justify-content: space-between;
    gap: 24px;
    padding: 20px max(40px, calc((100% - 1280px) / 2));
  }

  .menu {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: 15px;
    font-weight: 500;
  }

  .nav-links a,
  .nav-signin {
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

  .nav-links a:hover,
  .nav-signin:hover {
    text-decoration-line: underline;
  }

  .nav-actions {
    gap: 24px;
    margin-left: 0;
  }

  .lang.lang-short {
    display: flex;
    font-size: 14px;
  }

  .lang-short .sep {
    color: var(--border-strong);
  }

  /* The header's language switch stays at the same place in both languages: the sign-in link
     and the sign-up button keep the width of the longer language's label (data-twin), as an
     invisible line of no height. */
  .twin::before {
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    content: attr(data-twin);
  }

  .site-header .btn-small {
    flex-direction: column;
    gap: 0;
  }

  .nav-signin-box {
    display: grid;
    justify-items: center;
    font-size: 15px;
    font-weight: 500;
  }

  .nav-signin {
    display: block;
  }

  .btn-small {
    padding: 9px 15px;
    font-size: 15px;
  }
}

/* Hero -------------------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px var(--pad) 0;
}

.hero-copy,
.hero-head,
.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* The phone eyebrow stays on one line (issue 1647): below 375 px it scales down to fit rather than
   leave "MINH" alone. The VI copy, the longer one, is 26.81 x its font size wide in Be Vietnam Pro
   700 with this tracking, so the divisor 27 leaves about 1 px of slack; re-measure it if the copy
   changes. In font-size, --pad's 100% is the parent's font size, so it resolves to its 20 px floor,
   the hero's padding up to 760 px; wider windows keep 12 px. The tracking is 0.8 px at 12 px. */
.hero-eyebrow {
  color: var(--accent);
  font-size: min(12px, calc((100vw - 2 * var(--pad)) / 27));
  font-weight: 700;
  letter-spacing: 0.0667em;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(32px, calc((100vw - 40px) / var(--fit, 1)), 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -1.4px;
}

.hero h1 span {
  display: block;
}

.h1-b {
  color: var(--accent);
}

.hero-sub p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.45;
}

.hero-sub strong {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 17px;
  line-height: 1.4;
}

.hero-sub span {
  display: block;
}

.hero-cta {
  padding: 13px 19px;
}

.stage {
  position: relative;
  padding: 24px 16px 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(var(--bg-lavender), transparent);
}

.window {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 330px;
  padding: 16px 0 0 16px;
  overflow: hidden;
  background: var(--bg-surface);
  border-radius: 6px 6px 0 0;
}

/* The window's edge sits over its content, as the design's inside stroke does. */
.window::after {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: inherit;
  content: '';
  pointer-events: none;
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.job {
  display: flex;
  align-items: center;
  gap: 10px;
}

.job b {
  font-size: 16px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: var(--success-soft);
  border-radius: 999px;
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.board {
  position: relative;
  display: flex;
  flex: 1;
  gap: 12px;
  min-height: 0;
}

.column {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  background: var(--bg-subtle);
  border-radius: 4px;
}

.column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 4px;
  font-size: 13px;
}

.column-head small {
  color: var(--text-muted);
  font-size: 12px;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.s1 {
  background: var(--stage-1);
}

.s2 {
  background: var(--stage-2);
}

.s3 {
  background: var(--stage-3);
}

.s4 {
  background: var(--stage-4);
}

.s5 {
  background: var(--stage-5);
}

.avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
}

.avatar.on-dark {
  color: var(--white);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-row);
  border-radius: 4px;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-id {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-size: 13px;
}

.card-id span {
  color: var(--text-muted);
  font-size: 11px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 3px 8px;
  background: var(--accent-soft);
  border-radius: 3px;
  color: var(--on-accent-soft);
  font-size: 11px;
  font-weight: 500;
}

.card-tag svg.i {
  width: 11px;
  height: 11px;
}

/* A match score (issue 1595): green from 80 %, amber below. */
.card-tag.match-high {
  background: var(--success-soft);
  color: var(--success);
}

.card-tag.match-low {
  background: var(--warning-soft);
  color: var(--warning);
}

.dragging {
  position: absolute;
  top: 36px;
  left: 379.6px;
  width: 173px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--text-primary) 20%, transparent);
  transform: rotate(-2deg);
  transform-origin: 0 0;
}

.drop-slot {
  flex: none;
  height: 57px;
  background: color-mix(in srgb, var(--stage-3) 6%, transparent);
  border: 1.5px solid var(--stage-3);
  border-radius: 4px;
}

.fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  background: linear-gradient(transparent, var(--bg-page));
  pointer-events: none;
}

.callout {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px 11px 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--text-primary) 16%, transparent);
  white-space: nowrap;
}

.callout-ai {
  top: 278px;
  right: 12px;
}

/* Below desktop the window shows the desktop board whole, all five columns, zoomed out to the
   window's width: the board keeps desktop's narrowest size (896 x 404 px) and scales down by --k,
   its width over that, and its margins give back the room the scale frees, so the window's height
   follows the drawn board. Where trigonometry in CSS is missing, a phone's typical scale stands
   in. home.js reads the scale back for the pointer and the moves. The AI note sits across the
   window's faded foot, clear of the cards. */
@media (max-width: 1279.98px) {
  .stage {
    padding-bottom: 44px;
  }

  .callout-ai {
    top: auto;
    bottom: 8px;
  }

  .window {
    height: auto;
    padding: 16px 16px 0;
  }

  .main {
    container-type: inline-size;
  }

  .board {
    --k: 0.36;

    flex: none;
    width: max(896px, 100cqw);
    height: 404px;
    margin: 0 calc(max(896px, 100cqw) * (var(--k) - 1)) calc(404px * (var(--k) - 1)) 0;
    scale: var(--k);
    transform-origin: 0 0;
  }

  @supports (width: calc(1px * tan(atan2(1px, 1px)))) {
    .board {
      --k: min(1, tan(atan2(100cqw, 896px)));
    }
  }

  .fade {
    height: 80px;
  }
}

.callout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent);
}

.callout-icon svg.i {
  width: 18px;
  height: 18px;
}

.callout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.callout-text span {
  color: var(--text-muted);
  font-size: 13px;
}

.callout .avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.badge-success {
  padding: 3px 8px;
  background: var(--success-soft);
  border-radius: 999px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}

@media (min-width: 1280px) {
  :root {
    --pad: max(40px, calc((100% - 1280px) / 2));
  }

  .hero {
    gap: 64px;
    padding-top: 72px;
  }

  .hero-copy {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }

  .hero-head {
    flex: 0 1 840px;
    gap: 20px;
  }

  .hero-eyebrow {
    font-size: 14px;
    letter-spacing: 1.2px;
  }

  .hero h1 {
    /* Below about 1360 px the sub copy leaves the title less than its 76 px first line needs, so
       the type shrinks with the window rather than wrapping "gọn." onto a line of its own. */
    font-size: min(76px, calc((100vw - 520px) / 10.9));
    letter-spacing: -2.5px;
  }

  .hero-sub {
    flex: 0 0 380px;
    gap: 28px;
  }

  .hero-sub p {
    font-size: 17px;
  }

  .hero-sub strong {
    margin-bottom: 6px;
    font-size: 19px;
  }

  /* As wide as the sub copy, as the design draws it. */
  .hero-cta {
    padding: 11px 19px;
  }

  /* "Minh họa sản phẩm" at the window's foot, 24 px in from its end edge: the stage's 48 px top
     padding plus the design's 456 px, and its 32 px side padding plus 24 px. */
  .stage-caption {
    position: absolute;
    top: 504px;
    right: 56px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: normal;
    pointer-events: none;
  }

  .stage {
    padding: 48px 32px 0;
    border-radius: 16px 16px 0 0;
  }

  .window {
    flex-direction: row;
    height: 500px;
    padding: 0;
    box-shadow: 0 -8px 40px color-mix(in srgb, var(--text-primary) 6%, transparent);
  }

  .sidebar {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 20px;
    width: 200px;
    padding: 18px 13px 18px 14px;
    background: var(--bg-lavender);
    border-right: 1px solid var(--border);
  }

  .workspace {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
    font-size: 14px;
  }

  .ws-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--inverse);
    border-radius: 3px;
    color: var(--on-inverse);
    font-size: 13px;
    font-weight: 700;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .side-nav li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
  }

  .side-nav li span {
    flex: 1;
  }

  .side-nav svg.i {
    color: var(--text-muted);
  }

  .side-nav small {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
  }

  .side-nav .current {
    background: var(--nav-active);
    font-weight: 600;
  }

  .side-nav .current svg.i {
    color: var(--on-accent-soft);
  }

  .main {
    gap: 20px;
    padding: 22px 20px;
  }

  .main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .job {
    gap: 12px;
  }

  .job b {
    font-size: 20px;
  }

  .job small {
    color: var(--text-muted);
    font-size: 12px;
  }

  .status {
    gap: 6px;
    padding: 3px 9px;
    font-size: 12px;
  }

  .tools {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }

  .tools svg.i {
    width: 14px;
    height: 14px;
  }

  .search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 220px;
    padding: 7px 11px;
    background: var(--bg-field);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-muted);
  }

  .add {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    background: var(--action);
    border: 1px solid var(--action-border);
    border-radius: 3px;
    font-weight: 600;
  }

  .fade {
    height: 160px;
  }

  .callout-ai {
    top: 300px;
    right: auto;
    left: 0;
  }

  .callout-eval {
    top: 380px;
    right: 13px;
  }

  .callout-eval:lang(en) {
    right: 38px;
  }
}

/* Problem ----------------------------------------------------------------------------------- */

.problem {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 72px var(--pad);
  background: var(--inverse);
  color: var(--on-inverse);
}

.problem-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.problem-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.problem h2 {
  font-size: clamp(25px, calc((100vw - 40px) / var(--fit, 1)), 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.problem-copy p {
  color: var(--inverse-muted);
  font-size: 16px;
  line-height: 1.6;
}

.scatter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
}

.fragment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--dark-raised);
  border: 1px solid var(--dark-edge);
  border-radius: 4px;
}

.fragment-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: color-mix(in srgb, currentColor 15%, transparent);
}

.f1 .fragment-icon {
  color: var(--icon-sheet);
}

.f2 .fragment-icon {
  color: var(--icon-chat);
}

.f3 .fragment-icon {
  color: var(--icon-mail);
}

.f4 .fragment-icon {
  color: var(--icon-file);
}

.f5 .fragment-icon {
  color: var(--icon-calendar);
}

.fragment-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
}

.fragment-text span {
  color: var(--inverse-muted);
  font-size: 12px;
}

/* The design stacks the turned fragments by their bounding boxes: each margin is half the height
   the turn adds, its width times the sine of the angle. */
.f1 {
  margin-block: 4.4px;
  transform: rotate(1.5deg);
}

.f2 {
  margin-block: 3.5px;
  transform: rotate(-1.2deg);
}

.f3 {
  margin-block: 2.3px;
  transform: rotate(0.8deg);
}

.resolution {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 27px;
  border-top: 1px solid var(--dark-edge);
}

.resolution-lead {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.points {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.points li {
  display: flex;
  gap: 14px;
}

.point-icon {
  flex: none;
  color: var(--action);
}

.point-icon svg.i {
  width: 20px;
  height: 20px;
}

.point-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
}

.point-text span {
  color: var(--inverse-muted);
  font-size: 15px;
  line-height: 1.55;
}

@media (min-width: 1280px) {
  .problem {
    gap: 88px;
    padding-block: 120px;
  }

  .problem-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .problem-copy {
    flex: 0 1 520px;
    gap: 24px;
  }

  .problem h2 {
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: -1.4px;
  }

  .problem-copy p {
    font-size: 18px;
  }

  .scatter {
    position: relative;
    display: block;
    flex: none;
    width: 640px;
    height: 400px;
    padding: 0;
  }

  .fragment {
    position: absolute;
    margin: 0;
    gap: 14px;
    padding: 13px 15px;
    box-shadow: 0 12px 28px color-mix(in srgb, black 25%, transparent);
    transform-origin: 0 0;
  }

  .fragment-icon {
    width: 36px;
    height: 36px;
  }

  .fragment-icon svg.i {
    width: 18px;
    height: 18px;
  }

  .fragment-text {
    gap: 3px;
    font-size: 14px;
  }

  .fragment-text span {
    font-size: 13px;
  }

  .f1 {
    top: 10px;
    left: 20px;
    width: 330px;
    transform: rotate(3deg);
  }

  .f2 {
    top: 40px;
    left: 300px;
    width: 300px;
    transform: rotate(-2.5deg);
  }

  .f3 {
    top: 150px;
    left: 60px;
    width: 360px;
    transform: rotate(-1.5deg);
  }

  .f4 {
    top: 215px;
    left: 340px;
    width: 280px;
    transform: rotate(2deg);
  }

  .f4:lang(en) {
    left: 285px;
    width: 355px;
  }

  .f5 {
    top: 312px;
    left: 130px;
    width: 300px;
    transform: rotate(1deg);
  }

  .resolution {
    flex-direction: row;
    justify-content: space-between;
    gap: 80px;
    padding-top: 55px;
  }

  .resolution-lead {
    flex: 0 1 520px;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .points {
    flex: 0 0 640px;
    gap: 0;
  }

  .points li {
    gap: 20px;
    padding: 24px 0 23px;
    border-bottom: 1px solid var(--dark-edge);
  }

  .points li:first-child {
    padding-top: 0;
  }

  .points li:last-child {
    padding-bottom: 24px;
    border-bottom: 0;
  }

  .point-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-raised);
    border-radius: 4px;
  }

  .point-text {
    padding-top: 2px;
    font-size: 18px;
  }

  .point-text span {
    line-height: 1.6;
  }
}

/* Workflow ---------------------------------------------------------------------------------- */

.workflow {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 72px var(--pad);
}

.workflow-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow h2,
.features h2,
.integrations h2,
.pricing h2,
.faq h2 {
  font-size: clamp(25px, calc((100vw - 40px) / var(--fit, 1)), 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.workflow-head p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.step {
  display: flex;
  gap: 16px;
}

.step-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 32px;
  padding-bottom: 6px;
}

.step-badge {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.step.current .step-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.step-rail i {
  flex: 1;
  width: 2px;
  background: var(--border);
}

.step:last-child .step-rail {
  padding-bottom: 0;
}

.step:last-child .step-rail i {
  display: none;
}

.step-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0 32px;
}

.step:last-child .step-body {
  padding-bottom: 0;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.step p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-row);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.detail svg.i {
  width: 14px;
  height: 14px;
}

.detail-ai {
  padding: 8px 12px;
  background: var(--accent-soft);
  border: 0;
  color: var(--on-accent-soft);
}

.detail-done {
  padding: 8px 12px;
  background: var(--success-soft);
  border: 0;
  color: var(--success);
}

@media (min-width: 1280px) {
  .workflow {
    gap: 64px;
    padding-block: 128px 120px;
  }

  .workflow-head {
    gap: 20px;
  }

  .workflow h2 {
    max-width: 680px;
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: -1.4px;
  }

  .workflow-head p {
    max-width: 560px;
    font-size: 17px;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step {
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding-right: 24px;
  }

  .step:last-child {
    padding-right: 0;
  }

  .step-rail {
    flex-direction: row;
    gap: 12px;
    width: auto;
    padding: 0 0 24px;
  }

  .step:last-child .step-rail {
    padding-bottom: 24px;
  }

  .step-badge {
    width: 36px;
    height: 36px;
  }

  .step-rail i {
    flex: 1;
    width: auto;
    height: 2px;
  }

  .step-body {
    gap: 12px;
    padding: 0;
  }

  .step h3 {
    font-size: 22px;
  }

  .detail {
    margin-top: 8px;
  }
}

/* Features ---------------------------------------------------------------------------------- */

.features {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 72px 0;
  background: var(--bg-surface);
}

.features h2 {
  padding: 0 var(--pad);
}

.gallery {
  position: relative;
  padding-bottom: 68px;
}

.feature-rows {
  display: flex;
  gap: 12px;
  padding: 0 var(--pad);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--pad);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.feature {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 24px;
  width: 300px;
  height: 490px;
  padding: 24px 24px 0;
  overflow: hidden;
  background: var(--card-bg);
  border-radius: 20px;
  /* One card per swipe on a phone (issue 1648): a fast fling stops at the next card, never past
     it. Desktop's rows don't scroll, so it does nothing there. */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feature::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--card-bg));
  content: '';
}

.feature-career {
  --card-bg: var(--bg-lavender);
}

.feature-cv {
  --card-bg: var(--bg-sunken);
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.feature-team {
  --card-bg: var(--success-soft);
}

.feature-match {
  --card-bg: var(--warning-soft);
  flex-direction: column-reverse;
  justify-content: flex-end;
}

/* The eyebrow above the matching block's heading, on the desktop only. */
.feature-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-index {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.feature h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.feature-body {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* The career block's live example, Hire Hay's own career page (issue 5456), after the short body on a
   phone and after the bullets on the desktop. */
.feature-link {
  display: flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  height: 32px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.feature-visual > div:not(.cv-file) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-panel);
}

/* The careers page in a browser. */
.url-bar {
  padding: 10px 14px 9px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-row);
}

.url {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-surface);
  border-radius: 3px;
  font-size: 12px;
}

.url svg.i {
  width: 12px;
  height: 12px;
  color: var(--success);
}

.banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--demo-brand);
  color: var(--white);
}

.banner small {
  color: var(--demo-brand-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
}

.banner b {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.browser-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.jobs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 11px;
  border-bottom: 1px solid var(--border-row);
}

.jobs li > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.jobs li:first-child b {
  color: var(--demo-brand);
}

.jobs small {
  color: var(--text-muted);
  font-size: 12px;
}

.jobs svg.i {
  color: var(--text-muted);
}

.apply {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-row);
  border-radius: 4px;
}

.apply small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.apply p {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.options {
  display: flex;
  gap: 8px;
}

.option {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
}

.option i {
  width: 12px;
  height: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.option.chosen {
  padding: 6.5px 8.5px;
  border: 1.5px solid var(--demo-brand);
}

.option.chosen i {
  background: var(--demo-brand);
  border-color: var(--demo-brand);
}

.submit {
  padding: 9px 0;
  background: var(--demo-brand);
  border-radius: 3px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* The CV and the panel AI filled in from it. */
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 11px;
  border-bottom: 1px solid var(--border-row);
  font-size: 13px;
}

/* The title and the chips stay on one line, running into the padding where the phone card is
   narrow, as the frames draw them. */
.panel-head b {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.flag {
  flex: none;
  padding: 2px 8px;
  background: var(--warning-soft);
  border-radius: 999px;
  color: var(--warning);
  font-size: 11px;
  font-weight: 600;
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field > small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}

.input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 9px;
  background: var(--bg-field);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
}

.flagged .input {
  background: var(--warning-soft);
  border-color: var(--warning);
}

.input svg.i {
  width: 13px;
  height: 13px;
  color: var(--warning);
}

.field .hint {
  color: var(--warning);
  font-weight: 400;
}

.skills {
  display: flex;
  gap: 6px;
}

.skills span {
  flex: none;
  padding: 2px 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-row);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}

.panel-foot {
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px 14px;
}

.confirm {
  padding: 6px 11px;
  background: var(--action);
  border: 1px solid var(--action-border);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

/* A candidate profile the whole team works on. */
.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 17px;
  border-bottom: 1px solid var(--border-row);
}

.profile-head .avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.profile-head > span:last-child,
.who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-head > span:last-child {
  gap: 2px;
  font-size: 15px;
}

.profile-head small {
  color: var(--text-muted);
  font-size: 12px;
}

.activity {
  display: flex;
  flex-direction: column;
  padding: 6px 18px;
}

.activity-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0 10px;
  border-bottom: 1px solid var(--border-row);
}

.activity-row .avatar {
  width: 28px;
  height: 28px;
}

.a1 {
  background: var(--stage-2);
}

.a2 {
  background: var(--stage-4);
}

.a3 {
  background: var(--stage-1);
}

.who {
  flex: 1;
  gap: 1px;
  font-size: 13px;
}

.who small,
.time {
  color: var(--text-muted);
  font-size: 11px;
}

.note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px 18px;
}

.note small {
  color: var(--text-muted);
  font-size: 11px;
}

.note p {
  font-size: 13px;
  line-height: 1.5;
}

/* The candidates AI suggests from the talent pool for a new job (issue 1595). The phone's card draws
   the panel compact: the top match's parts stack, its buttons share the row, and the note is left
   out. */
.feature-visual > div.matches {
  border-radius: 6px;
}

.matches-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 12px 8px;
}

.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  background: var(--accent-soft);
  border-radius: 3px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ai-pill svg.i {
  width: 10px;
  height: 10px;
}

.matches-titles,
.match-id,
.score,
.why {
  display: flex;
  flex-direction: column;
}

.matches-titles {
  gap: 1px;
}

/* One line as drawn, or two where the copy breaks it: Be Vietnam Pro sets "Candidates matching
   your new job" a little wider than the design tool does, and it would wrap its last word. */
.matches-titles b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.matches-titles small,
.match-id small,
.score small,
.why small {
  color: var(--text-muted);
}

.matches-titles small {
  font-size: 10px;
}

.matches .avatar {
  width: 26px;
  height: 26px;
  font-size: 9.5px;
  font-weight: 700;
}

.top-match {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px 8px;
  margin: 0 6px 4px;
  /* The design draws each stroke inside its box: the padding here is the design's less the edge. */
  padding: 9px;
  background: var(--match-top);
  border: 1px solid var(--match-edge);
  border-radius: 5px;
}

.top-match-content,
.top-match-body {
  display: contents;
}

.top-match-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-id {
  flex: 1;
  gap: 1px;
  min-width: 0;
}

.match-id b {
  font-size: 11.5px;
  font-weight: 700;
}

.match-id small {
  font-size: 9.5px;
}

.score {
  flex: none;
  align-items: flex-end;
}

.score b {
  font-size: 14px;
  font-weight: 800;
}

.top-match .score b {
  font-size: 17px;
}

.score small {
  font-size: 8.5px;
}

.score-high b {
  color: var(--success);
}

.score-low b {
  color: var(--warning);
}

.why {
  grid-column: 1 / -1;
  gap: 5px;
}

.why small {
  font-size: 9.5px;
  font-weight: 700;
}

.reason {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.reason i {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: var(--success-soft);
  border-radius: 50%;
  color: var(--success);
}

.reason.gap i {
  background: var(--warning-soft);
  color: var(--warning);
}

.reason svg.i {
  width: 9px;
  height: 9px;
}

.match-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 6px;
}

.match-actions span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}

.match-actions .view {
  background: var(--bg-surface);
}

.match-actions .invite {
  background: var(--action);
  border-color: var(--action-border);
}

.match-actions svg.i {
  width: 11px;
  height: 11px;
}

.match-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 8px 16px;
  border-bottom: 1px solid var(--border-row);
}

.match-row > svg.i {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.matches-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px 10px;
  border-top: 1px solid var(--border-row);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.matches-note svg.i {
  width: 15px;
  height: 15px;
}

/* The phone's gallery controls: CSS scroll markers and buttons, where the browser draws them
   (Chrome and Edge 135+). Elsewhere the cards scroll by swipe and the row stays empty. */
@media (max-width: 1279.98px) {
  .feature::scroll-marker {
    width: 8px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    content: '';
  }

  .feature::scroll-marker:target-current {
    width: 24px;
    background: var(--accent);
  }

  .feature-rows {
    scroll-marker-group: after;
  }

  .feature-rows::scroll-marker-group {
    position: absolute;
    bottom: 16px;
    left: var(--pad);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .feature-rows::scroll-button(*) {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    cursor: pointer;
  }

  .feature-rows::scroll-button(*):disabled {
    border-color: var(--border);
    cursor: default;
  }

  .feature-rows::scroll-button(inline-start) {
    right: calc(var(--pad) + 48px);
    content: url('/assets/chevron-left.1592618877.svg') / 'Tính năng trước';
  }

  .feature-rows::scroll-button(inline-start):disabled {
    content: url('/assets/chevron-left-muted.8b1b72cda3.svg') / 'Tính năng trước';
  }

  .feature-rows::scroll-button(inline-end) {
    right: var(--pad);
    content: url('/assets/chevron-right.cab1081a04.svg') / 'Tính năng tiếp theo';
  }

  .feature-rows::scroll-button(inline-end):disabled {
    content: url('/assets/chevron-right-muted.95485e06b5.svg') / 'Tính năng tiếp theo';
  }

  .feature-rows:lang(en)::scroll-button(inline-start) {
    content: url('/assets/chevron-left.1592618877.svg') / 'Previous feature';
  }

  .feature-rows:lang(en)::scroll-button(inline-start):disabled {
    content: url('/assets/chevron-left-muted.8b1b72cda3.svg') / 'Previous feature';
  }

  .feature-rows:lang(en)::scroll-button(inline-end) {
    content: url('/assets/chevron-right.cab1081a04.svg') / 'Next feature';
  }

  .feature-rows:lang(en)::scroll-button(inline-end):disabled {
    content: url('/assets/chevron-right-muted.95485e06b5.svg') / 'Next feature';
  }
}

@media (min-width: 1280px) {
  .features {
    align-items: center;
    gap: 80px;
    padding: 128px var(--pad);
  }

  .features h2 {
    max-width: 760px;
    padding: 0;
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: -1.2px;
    text-align: center;
  }

  .gallery {
    align-self: stretch;
    padding: 0;
  }

  .feature-rows {
    flex-direction: column;
    gap: 136px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .feature,
  .feature-cv {
    flex-direction: row;
    align-items: center;
    gap: 96px;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background: none;
    border-radius: 0;
  }

  .feature::after,
  .feature::scroll-marker {
    display: none;
    content: none;
  }

  .feature-copy {
    flex: 0 0 460px;
    gap: 22px;
  }

  .feature h3 {
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .feature-body {
    font-size: 17px;
    line-height: 1.6;
  }

  .bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
  }

  .bullets li {
    display: flex;
    gap: 12px;
    font-size: 15px;
    line-height: 1.45;
  }

  .check {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--action);
    border-radius: 50%;
  }

  .check svg.i {
    width: 12px;
    height: 12px;
  }

  .feature-link {
    padding-top: 4px;
    font-size: 15px;
  }

  .feature-visual {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 520px;
    padding: 48px;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 6px;
  }

  .browser {
    flex: 1;
    min-width: 0;
  }

  .banner {
    padding: 28px;
  }

  .banner b {
    font-size: 22px;
    line-height: normal;
  }

  .browser-body {
    flex-direction: row;
    padding: 20px;
  }

  .jobs {
    flex: 1;
    min-width: 0;
  }

  .apply {
    flex: 0 0 230px;
    align-self: flex-start;
  }

  .cv-file {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 10px;
    width: 190px;
    padding: 17px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--text-primary) 10%, transparent);
    font-size: 12px;
    transform: rotate(3deg);
    /* The design lays the turned file out by its bounding box. */
    margin: 0 5.44px;
  }

  .file-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 40px;
    background: var(--danger-soft);
    border-radius: 3px;
    color: var(--danger);
    font-size: 10px;
    font-weight: 700;
  }

  .cv-file i {
    height: 6px;
    background: var(--border-row);
    border-radius: 2px;
  }

  .cv-file .l150 {
    width: 150px;
    background: var(--border);
  }

  .l120 {
    width: 120px;
  }

  .l140 {
    width: 140px;
  }

  .l90 {
    width: 90px;
  }

  .l130 {
    width: 130px;
  }

  .l110 {
    width: 110px;
  }

  .l70 {
    width: 70px;
  }

  .cv-arrow {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 14px;
    background: var(--accent);
    border-radius: 50%;
    color: var(--white);
  }

  .review {
    flex: 0 0 300px;
  }

  .profile {
    flex: 0 0 440px;
  }

  .feature-match .feature-visual {
    padding: 40px;
  }

  .feature-visual > div.matches {
    flex: 0 0 580px;
    border-radius: 8px;
  }

  .matches-head {
    gap: 8px;
    padding: 18px 20px 12px;
  }

  .ai-pill {
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    letter-spacing: 0.4px;
  }

  .ai-pill svg.i {
    width: 12px;
    height: 12px;
  }

  .matches-titles {
    gap: 2px;
  }

  .matches-titles b {
    font-size: 18px;
  }

  .matches-titles small {
    font-size: 13px;
  }

  .matches .avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .top-match {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 10px 4px;
    padding: 13px;
    border-radius: 6px;
  }

  .top-match-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }

  .top-match-head {
    align-items: flex-start;
    gap: 12px;
  }

  .top-match-body {
    display: flex;
    align-items: flex-end;
    gap: 12px;
  }

  .match-id {
    gap: 2px;
  }

  .match-id b {
    font-size: 14.5px;
  }

  .match-id small {
    font-size: 12px;
  }

  .score {
    gap: 1px;
  }

  .score b {
    font-size: 18px;
  }

  .top-match .score b {
    font-size: 24px;
  }

  .score small {
    font-size: 10.5px;
  }

  .why {
    flex: 1;
    gap: 7px;
    min-width: 0;
  }

  .why small {
    font-size: 11.5px;
  }

  .reason {
    gap: 8px;
    font-size: 12px;
  }

  .reason i {
    width: 18px;
    height: 18px;
  }

  .reason svg.i {
    width: 12px;
    height: 12px;
  }

  /* "Xem hồ sơ" stacks above "Mời ứng tuyển" at one width, at the right under the score, so the
     reasons keep the card's width (owner, 2026-10-28, issue 1674); the phone keeps them side by
     side across the card. */
  .match-actions {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .match-actions span {
    flex: none;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 4px;
    font-size: 12px;
  }

  .match-actions svg.i {
    width: 13px;
    height: 13px;
  }

  .match-row {
    gap: 14px;
    padding: 12px 20px 11px 24px;
  }

  .match-row:has(+ .matches-note) {
    padding-bottom: 12px;
    border-bottom: 0;
  }

  .match-row > svg.i {
    width: 16px;
    height: 16px;
  }
}

/* Integrations ------------------------------------------------------------------------------ */

.integrations {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 72px var(--pad);
}

.integrations-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.integrations-head p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.diagram {
  position: relative;
  display: flex;
  flex-direction: column;
}

.channels ul {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.channels-in ul {
  padding-bottom: 8px;
}

.channels-out ul {
  padding-top: 8px;
}

.channels-out li {
  flex: 1;
}

.channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.channel-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--accent);
}

.channel-icon svg.i {
  width: 18px;
  height: 18px;
}

.channel-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.channel-text small {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* The wires. Each runs between two dots: a channel's dot sits in its icon, the hub's dots on the
   profile card's edges (desktop) or on the hub's top and bottom edges (phone). Each wire is an SVG
   whose box spans its two dots; the anchor rules at the end of the section pin those boxes to the
   dots, and without anchor positioning they take the design's fixed layout. */

.merge,
.split {
  position: relative;
  display: flex;
  justify-content: center;
  height: 56px;
}

.merge {
  align-items: flex-end;
}

.split {
  align-items: flex-start;
}

/* A box at least 1px each way, so a wire still draws when its dots come level or cross while the
   rows rise in: an SVG with no height or no width draws nothing. The Mạng xã hội wire's dots sit
   8px apart, as far as the hub's first event rises in. */
.wire {
  position: absolute;
  min-width: 1px;
  min-height: 1px;
}

/* The span stretches between its insets, which an SVG with a viewBox would not. */
.wire svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wire path {
  fill: none;
  stroke: var(--stage-2);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.node {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  background: var(--bg-page);
  border: 1.5px solid var(--stage-3);
  border-radius: 50%;
}

.hub-node {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 0;
}

.mn-hub,
.sn-hub {
  position: relative;
}

.mn-hub {
  bottom: -5px;
}

.sn-hub {
  top: -5px;
}

/* On the phone a channel's dot sits below its tile, in the strip above the hub, or above it. */
.channel,
.timeline li {
  position: relative;
}

.channels .node {
  left: calc(50% - 4px);
}

.channels-in .node {
  top: calc(100% + 12px);
}

.channels-out .node {
  top: -20px;
}

@media (max-width: 1279.98px) {
  .channels-in ul:lang(en) .channel {
    flex: 1 1 0;
  }

  /* Be Vietnam Pro sets the three Vietnamese tiles about 2 % wider than the design tool does: with
     the design's 12 px gaps "Các trang việc làm" and "Tìm kiếm Google" wrap on a 390 px phone.
     space-between still spreads the tiles; the smaller minimum keeps each on one line. */
  .channels-in ul:lang(vi) {
    gap: 6px;
  }

  /* The same 2 %: "Trao đổi trong một nơi." needs 352 px of a 390 px phone's 350 and "Trang tuyển
     dụng riêng." 253 px of its card's 252, so these headings may run 4 px into the gutter rather
     than break before their last word. */
  .integrations h2,
  .feature h3 {
    margin-inline-end: -4px;
  }

  /* Small captions and names that wrap break where their lines come out even, which keeps the
     last words together: "Đã gửi email / mời phỏng vấn", not "Đã gửi email mời phỏng / vấn"; a
     link in running text moves to the next line whole (issue 1670). */
  .card-id b,
  .banner b,
  .who small,
  .event-text b,
  .event-text small,
  .included li > span {
    text-wrap: balance;
  }

  .text-link {
    white-space: nowrap;
  }
}

/* Below 390 px even the 6 px gaps leave too little room, so the incoming tiles' text shrinks with the window, to
   at least 11 px, and each tile keeps its title and its caption on one line each (issue 1670), but
   for the English Google caption, which breaks after "Optimised for" as the design draws it (issue
   2060); a narrower phone breaks them only between whole words (page.mjs whole()). The Vietnamese
   tiles' widest lines add up to 23.71 ems of their 14 px titles beside two 6 px gaps; an English
   tile is a third of the row less two 12 px gaps, and its widest line was "Listed on Google", 7.57
   ems (now "Google Search", 7.43). As Chrome on Linux sets small text up to 4 % wider at some
   sizes, the Vietnamese divisor has 5 % slack and the English one 8 %. */
@media (max-width: 389.98px) {
  .channels-in .channel-text {
    font-size: max(11px, calc((100vw - 64px) / 24.6));
  }

  .channels-in ul:lang(vi) .channel-text {
    font-size: max(11px, calc((100vw - 52px) / 24.9));
  }

  .channels-in .channel-text small {
    font-size: calc(13em / 14);
  }
}

/* The design's phone layout: the Vietnamese tiles take their text's width, spaced apart, and the
   English ones a third of the row each; the two outgoing tiles take half each. */
.w-merge1,
.w-merge2,
.w-merge3 {
  top: 8px;
  bottom: 0;
}

.w-split1,
.w-split2 {
  top: 0;
  bottom: 8px;
}

.w-merge1 {
  right: 50%;
  left: 60.5px;
}

.w-merge2 {
  right: calc(50% - 11.5px);
  left: 50%;
}

.w-merge3 {
  right: 49px;
  left: 50%;
}

.w-merge1:lang(en) {
  left: calc((100% - 24px) / 6);
}

.w-merge2:lang(en) {
  right: calc(50% - 1px);
  left: calc(50% - 1px);
}

.w-merge3:lang(en) {
  right: calc((100% - 24px) / 6);
}

.w-split1 {
  right: 50%;
  left: calc((100% - 12px) / 4);
}

.w-split2 {
  right: calc((100% - 12px) / 4);
  left: 50%;
}

.hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--bg-lavender);
  border-radius: 16px;
}

.hub h3 {
  color: var(--on-accent-soft);
  font-size: 13px;
  font-weight: 600;
}

.hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--text-primary) 10%, transparent);
}

/* The design's 16 × 18 px padding counts from the card's outer edge, as its inside stroke takes no
   room; here the card's 1 px border does, so the padding is 1 px less each way. */
.hub-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--border-row);
}

/* With 12 px gaps "Morning receptionist" ends in an ellipsis on a 390 px phone; the design's
   English phone head takes 11 px (issue 1692). */
@media (max-width: 1279.98px) {
  .hub-head:lang(en) {
    gap: 11px;
  }
}

.hub-head .avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.hub-id {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 15px;
}

.hub-id small {
  color: var(--text-muted);
  font-size: 13px;
}

/* The name and job stay on one line; on a narrow phone they end in an ellipsis before the stage
   pill instead of running under it. */
.hub-id > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--on-accent-soft);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.stage-pill i {
  width: 6px;
  height: 6px;
  background: var(--stage-3);
  border-radius: 50%;
}

.timeline {
  padding: 16px 18px 14px;
}

.timeline li {
  display: flex;
  gap: 12px;
}

.event-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  color: var(--white);
}

.event-icon svg.i {
  width: 14px;
  height: 14px;
}

.quiet .event-icon {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.event-rail i {
  flex: 1;
  width: 1.5px;
  min-height: 18px;
  background: var(--border);
}

.event-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
  font-size: 14px;
}

/* A line that wraps on a phone pushes the next event down; the rail's line stretches with it. */
.timeline li:not(:last-child) .event-text {
  padding-bottom: 6px;
}

.quiet .event-text b {
  font-weight: 500;
}

.event-text small {
  color: var(--text-muted);
  font-size: 12px;
}

@media (min-width: 1280px) {
  .integrations {
    align-items: center;
    gap: 56px;
    padding-block: 128px 120px;
  }

  .integrations-head {
    align-items: center;
    gap: 20px;
    max-width: 760px;
    text-align: center;
  }

  .integrations h2 {
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: -1.2px;
  }

  .integrations-head p {
    max-width: 760px;
    font-size: 18px;
  }

  .diagram {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    height: 433px;
  }

  .channels {
    flex: 0 0 352px;
  }

  .channels h3 {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
  }

  .channels ul,
  .channels-in ul,
  .channels-out ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .channel {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0;
  }

  .channel + .channel {
    padding-top: 19px;
    border-top: 1px solid var(--border-row);
  }

  .channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .channel-icon svg.i {
    width: 17px;
    height: 17px;
  }

  .channel-text {
    flex: 1;
    gap: 6px;
    font-size: 16px;
    line-height: normal;
    text-align: left;
  }

  .channel-text > span:not(.chips) {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
  }

  .chips span {
    padding: 2px 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
  }

  /* The hub sits centred between the channel columns, which the two-line descriptions make taller
     than it. */
  .hub {
    flex: 0 0 448px;
    padding: 28px;
  }

  .channels h3,
  .hub h3 {
    line-height: 16px;
  }

  .channel {
    height: 139px;
  }

  /* A channel's dot sits level with its icon, on the column's inner edge. */
  .channel-icon {
    position: relative;
  }

  .channels .node {
    top: calc(50% - 4px);
  }

  .channels-in .node {
    left: 348px;
  }

  .channels-out .node {
    left: -14px;
  }

  .n-hub-in,
  .n-hub-out1,
  .n-hub-out2 {
    top: 9px;
  }

  .n-hub-in {
    left: -24px;
  }

  .n-hub-out1,
  .n-hub-out2 {
    right: -24px;
  }

  /* The design's desktop layout, in the 433px diagram. */
  .w-in1,
  .w-in2,
  .w-in3 {
    right: calc(50% + 196px);
    left: 352px;
  }

  .w-in1 {
    top: 54px;
    bottom: calc(100% - 185.5px);
  }

  .w-in2 {
    top: 185.5px;
    bottom: calc(100% - 193px);
  }

  .w-in3 {
    top: 185.5px;
    bottom: calc(100% - 332px);
  }

  .w-out1,
  .w-out2 {
    right: 362px;
    left: calc(50% + 196px);
  }

  .w-out1 {
    top: 123.5px;
    bottom: calc(100% - 285.5px);
  }

  .w-out2 {
    top: 262.5px;
    bottom: calc(100% - 335.5px);
  }
}

/* Each wire's box from its two dots' centres, whatever the rows and tiles measure. The strips stop
   being the phone wires' containing block, so the wires can reach the tiles' dots. */
@supports (anchor-name: --a) {
  .merge,
  .split {
    position: static;
  }

  .n-in1 {
    anchor-name: --w-in1;
  }

  .n-in2 {
    anchor-name: --w-in2;
  }

  .n-in3 {
    anchor-name: --w-in3;
  }

  .n-out1 {
    anchor-name: --w-out1;
  }

  .n-out2 {
    anchor-name: --w-out2;
  }

  .n-hub-in {
    anchor-name: --w-hub-in;
  }

  .n-hub-out1 {
    anchor-name: --w-hub-out1;
  }

  .n-hub-out2 {
    anchor-name: --w-hub-out2;
  }

  .mn-hub {
    anchor-name: --w-merge-hub;
  }

  .sn-hub {
    anchor-name: --w-split-hub;
  }

  /* inset: top right bottom left. */
  .diagram .w-merge1 {
    inset: anchor(--w-in1 center) anchor(--w-merge-hub center) anchor(--w-merge-hub center)
      anchor(--w-in1 center);
  }

  .diagram .w-merge2 {
    inset: anchor(--w-in2 center) anchor(--w-in2 center) anchor(--w-merge-hub center)
      anchor(--w-merge-hub center);
  }

  .diagram .w-merge2:lang(en) {
    inset: anchor(--w-in2 center) calc(anchor(--w-in2 center) - 1px) anchor(--w-merge-hub center)
      calc(anchor(--w-in2 center) - 1px);
  }

  .diagram .w-merge3 {
    inset: anchor(--w-in3 center) anchor(--w-in3 center) anchor(--w-merge-hub center)
      anchor(--w-merge-hub center);
  }

  .diagram .w-split1 {
    inset: anchor(--w-split-hub center) anchor(--w-split-hub center) anchor(--w-out1 center)
      anchor(--w-out1 center);
  }

  .diagram .w-split2 {
    inset: anchor(--w-split-hub center) anchor(--w-out2 center) anchor(--w-out2 center)
      anchor(--w-split-hub center);
  }

  .diagram .w-in1 {
    inset: anchor(--w-in1 center) anchor(--w-hub-in center) anchor(--w-hub-in center)
      anchor(--w-in1 center);
  }

  .diagram .w-in2 {
    inset: anchor(--w-hub-in center) anchor(--w-hub-in center) anchor(--w-in2 center)
      anchor(--w-in2 center);
  }

  .diagram .w-in3 {
    inset: anchor(--w-hub-in center) anchor(--w-hub-in center) anchor(--w-in3 center)
      anchor(--w-in3 center);
  }

  .diagram .w-out1 {
    inset: anchor(--w-out1 center) anchor(--w-out1 center) anchor(--w-hub-out1 center)
      anchor(--w-hub-out1 center);
  }

  .diagram .w-out2 {
    inset: anchor(--w-out2 center) anchor(--w-out2 center) anchor(--w-hub-out2 center)
      anchor(--w-hub-out2 center);
  }
}

/* Pricing ----------------------------------------------------------------------------------- */

.pricing {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 72px var(--pad);
  background: var(--bg-lavender);
}

.pricing-head {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pricing-head > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eyebrow,
.caption,
.plan-heads {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.eyebrow {
  color: var(--accent);
}

/* The term: three radio buttons drawn as one control. Every price and quota on the page shows
   its 1-year value until another term is chosen; :has() swaps them all at once. */
.term {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.term label {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  /* "2 năm" and its discount stay on one line on a narrow phone. */
  white-space: nowrap;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--quick) var(--ease),
    color var(--quick) var(--ease);
}

.term input:checked + label {
  background: var(--inverse);
  color: var(--on-inverse);
}

.term input:focus-visible + label {
  outline: 3px solid var(--text-primary);
  outline-offset: 2px;
}

.discount {
  padding: 2px 6px;
  background: var(--action);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
}

.pricing .t6,
.pricing .t24,
.pricing:has(.term-6:checked) .t12,
.pricing:has(.term-24:checked) .t12 {
  display: none;
}

.pricing:has(.term-6:checked) .t6,
.pricing:has(.term-24:checked) .t24 {
  display: inline;
}

.pricing:has(.term-6:checked) .bar.t6,
.pricing:has(.term-24:checked) .bar.t24 {
  display: block;
}

/* The table and, 12px under it, the note that prices exclude VAT. */
.timetable {
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.plan {
  --line: var(--stage-1);
  --bar: var(--stage-3);
  --muted: var(--text-muted);
  --track: var(--bg-sunken);
  --rule: var(--border-row);

  display: grid;
  grid-template-columns: 4px 14px minmax(0, 1fr) auto;
  grid-template-areas:
    'line . info info'
    '. . profiles profiles'
    '. . seats seats'
    '. . price cta';
  padding: 24px 20px;
}

.plan-trial {
  padding-bottom: 23px;
  border-bottom: 1px solid var(--border-row);
}

.plan-starter {
  --line: var(--stage-2);
  --bar: var(--stage-2);
}

.plan-growth {
  --line: var(--action);
  --bar: var(--action);
  --muted: var(--inverse-muted);
  --track: color-mix(in srgb, var(--on-inverse) 12%, transparent);
  --rule: color-mix(in srgb, var(--on-inverse) 12%, transparent);

  background: var(--inverse);
  color: var(--on-inverse);
}

.plan-scale {
  --line: var(--stage-3);
}

.plan-line {
  grid-area: line;
  height: 28px;
  background: var(--line);
  border-radius: 2px;
}

.plan-info {
  display: flex;
  grid-area: info;
  flex-direction: column;
  gap: 6px;
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  font-size: 20px;
  font-weight: 700;
}

.recommended {
  padding: 4px 10px;
  background: var(--action);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.plan-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.plan-profiles {
  display: flex;
  flex-wrap: wrap;
  grid-area: profiles;
  align-items: baseline;
  column-gap: 6px;
  margin-top: 16px;
}

.plan-profiles .num {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.plan .unit {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  color: var(--muted);
  font-size: 14px;
}

.track {
  display: block;
  flex-basis: 100%;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--track);
  border-radius: 3px;
}

.bar {
  display: block;
  min-width: 6px;
  height: 6px;
  background: var(--bar);
  border-radius: 3px;
}

.w0 {
  width: 0;
}

.w10 {
  width: 10%;
}

.w20 {
  width: 20%;
}

.w30 {
  width: 30%;
}

.w40 {
  width: 40%;
}

.w50 {
  width: 50%;
}

.w60 {
  width: 60%;
}

.w70 {
  width: 70%;
}

.w80 {
  width: 80%;
}

.w90 {
  width: 90%;
}

.w100 {
  width: 100%;
}

.plan-seats {
  display: flex;
  flex-wrap: wrap;
  grid-area: seats;
  align-items: center;
  gap: 4px 8px;
  margin-top: 8px;
  padding-top: 4px;
}

.plan-members,
.plan-workspaces {
  display: flex;
  align-items: center;
  gap: 5px;
}

.plan-seats .num {
  font-size: 15px;
  font-weight: 600;
}

.seat-dot {
  color: var(--muted);
  font-size: 14px;
}

.plan-price,
.plan-cta {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--rule);
}

.plan-price {
  display: flex;
  grid-area: price;
  flex-direction: column;
  gap: 2px;
}

.plan-price .num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.plan-price small {
  color: var(--muted);
  font-size: 13px;
}

.plan-cta {
  display: flex;
  grid-area: cta;
  align-items: center;
}

.plan-cta .btn {
  width: 120px;
}

/* A narrow phone gives the price and its button the card's left indent. */
@media (max-width: 479.98px) {
  .plan {
    grid-template-columns: 4px 10px minmax(0, 1fr) auto;
    padding-inline: 14px 16px;
  }

  .plan-cta {
    padding-left: 12px;
  }

  .plan-price .num {
    white-space: nowrap;
  }

  .plan-cta .btn {
    width: auto;
    min-width: 0;
    padding-inline: 14px;
  }

  .plan-cta .i {
    display: none;
  }
}

.below {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.included,
.add-ons,
.included ul,
.add-ons ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caption {
  color: var(--text-muted);
}

.included li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.4;
}

.included svg.i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}

.add-ons li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 9px;
  border-bottom: 1px solid var(--border-row);
  font-size: 15px;
}

.add-ons li span {
  flex: 1;
}

.add-ons i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.add-on-starter i {
  background: var(--stage-2);
}

.add-on-growth i {
  background: var(--action-border);
}

.add-on-scale i {
  background: var(--stage-3);
}

.footnote {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 1280px) {
  .pricing {
    gap: 48px;
    padding-block: 128px;
  }

  .pricing-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .pricing-head > div {
    flex: 0 1 640px;
    gap: 16px;
  }

  .pricing h2 {
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: -1.2px;
  }

  .term label {
    flex: none;
    gap: 8px;
    padding: 10px 16px;
  }

  .plan,
  .plan-heads {
    display: grid;
    grid-template-columns:
      4px 272px 220px 90px 170px minmax(0, 1fr)
      140px;
    column-gap: 24px;
    padding: 30px 28px;
  }

  .plan {
    grid-template-areas: none;
    align-items: start;
  }

  .plan-trial {
    padding-bottom: 29px;
  }

  .plan-heads {
    align-items: end;
    padding: 18px 28px 17px;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text-muted);
  }

  .plan-heads span:first-child {
    grid-column: 1 / 3;
  }

  .plan-heads span:nth-child(4) {
    line-height: 1.2;
  }

  .plan-line,
  .plan-info,
  .plan-profiles,
  .plan-price,
  .plan-cta {
    grid-area: auto;
  }

  .plan-info {
    margin-left: -8px;
  }

  .plan h3 {
    font-size: 22px;
  }

  .plan-profiles {
    display: block;
    margin-top: 0;
  }

  .plan .num {
    display: block;
    font-size: 26px;
    font-weight: 700;
  }

  .plan-profiles .num,
  .plan-price .num {
    letter-spacing: -0.6px;
  }

  .plan .unit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  /* Only the trial caps AI CV reads, so only its row names what its number counts. */
  .plan-trial .plan-profiles .unit {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    color: var(--muted);
    font-size: 13px;
  }

  .track {
    margin-top: 10px;
  }

  .plan-seats {
    display: contents;
  }

  .plan-seats .num {
    font-size: 26px;
    font-weight: 700;
  }

  .plan-price,
  .plan-cta {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .plan-price {
    gap: 4px;
  }

  .plan-price small {
    line-height: 1.4;
  }

  .plan-cta .btn {
    width: 140px;
  }

  .below {
    flex-direction: row;
    gap: 64px;
  }

  .included {
    flex: 1;
  }

  .included li {
    align-items: center;
    line-height: normal;
  }

  .included svg.i {
    margin-top: 0;
  }

  .add-ons {
    flex: 0 0 420px;
  }

  .footnote {
    line-height: normal;
  }
}

/* FAQ --------------------------------------------------------------------------------------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 72px var(--pad);
}

.faq-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-copy p,
.faq-contact {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.questions {
  border-top: 1px solid var(--border);
}

.questions details {
  padding: 20px 0 19px;
  border-bottom: 1px solid var(--border);
}

.questions summary {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.questions summary::-webkit-details-marker {
  display: none;
}

.questions summary span {
  flex: 1;
}

.questions summary svg.i {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.questions .i-minus {
  color: var(--accent);
}

.questions details[open] .i-plus,
.questions details:not([open]) .i-minus {
  display: none;
}

.questions details p {
  padding-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* The answer grows to its height where the browser can animate it (Chrome and Edge). */
@media (prefers-reduced-motion: no-preference) {
  .questions details::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size var(--slow) var(--ease),
      content-visibility var(--slow) allow-discrete;
  }

  .questions details[open]::details-content {
    block-size: auto;
  }
}

@media (min-width: 1280px) {
  .faq {
    flex-direction: row;
    gap: 96px;
    padding-block: 128px;
  }

  .faq-copy {
    flex: 0 0 400px;
  }

  .faq h2 {
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: -1.2px;
  }

  .faq-copy p {
    font-size: 16px;
    line-height: 1.6;
  }

  .questions {
    flex: 1;
    align-self: flex-start;
  }

  .questions details {
    padding: 26px 0 25px;
  }

  .questions summary {
    font-size: 19px;
  }

  .questions details p {
    max-width: 640px;
    font-size: 16px;
  }
}

/* Final CTA --------------------------------------------------------------------------------- */

.final {
  padding: 24px var(--pad) 64px;
}

.final-block {
  overflow: hidden;
  background: var(--inverse);
  border-radius: 6px;
  color: var(--on-inverse);
}

.final-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 24px;
}

.final h2 {
  font-size: clamp(25px, calc((100vw - 88px) / var(--fit, 1)), 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.final-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.final-actions .btn {
  padding: 13px 19px;
}

.final-actions p {
  color: var(--inverse-muted);
  font-size: 14px;
}

.final-actions .text-link {
  display: inline-block;
  margin-left: 1px;
  padding-bottom: 2px;
  border-bottom: 1px solid;
  color: var(--on-inverse);
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow var(--quick) var(--ease);
}

.final-actions .text-link:hover {
  box-shadow: 0 1px 0 currentColor;
}

.stage-strip {
  display: flex;
  height: 8px;
}

.stage-strip i {
  flex: 1;
}

.stage-strip i:nth-child(1) {
  background: var(--stage-1);
}

.stage-strip i:nth-child(2) {
  background: var(--stage-2);
}

.stage-strip i:nth-child(3) {
  background: var(--stage-3);
}

.stage-strip i:nth-child(4) {
  background: var(--stage-4);
}

.stage-strip i:nth-child(5) {
  background: var(--stage-5);
}

@media (min-width: 1280px) {
  .final {
    padding: 0 var(--pad) 128px;
  }

  .final-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 88px 72px;
  }

  .final h2 {
    flex: 0 1 720px;
    font-size: 60px;
    line-height: 1.08;
    letter-spacing: -1.8px;
  }

  .final-actions {
    align-items: flex-end;
    gap: 18px;
  }

  .btn-large,
  .final-actions .btn {
    padding: 15px 27px;
    font-size: 17px;
  }

  .stage-strip {
    height: 10px;
  }
}

/* Footer ------------------------------------------------------------------------------------ */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 39px var(--pad) 32px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
}

/* The social row (issue 1626): 22px logos 20px apart under the tagline, each in a 44px target. The
   targets overlap by 2px, and the row reaches 11px past the logos on every side, so the logos
   line up with the logo and the tagline and sit 4px further down than the block's gap. */
.footer-social {
  display: flex;
  margin: -7px -11px -11px;
}

.footer-social li + li {
  margin-inline-start: -2px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  transition: color var(--quick) var(--ease);
}

.footer-social a:hover {
  color: var(--text-primary);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-column h2 {
  font-size: 13px;
  font-weight: 600;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--quick) var(--ease);
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid var(--border-row);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-bottom svg.i {
  width: 14px;
  height: 14px;
}

@media (min-width: 1280px) {
  .site-footer {
    gap: 48px;
    padding-block: 63px 40px;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-brand {
    flex: 0 0 320px;
    gap: 16px;
  }

  .footer-brand p {
    line-height: 1.5;
  }

  .footer-columns {
    display: flex;
    gap: 80px;
  }

  .footer-column {
    gap: 12px;
  }

  .footer-bottom {
    padding-top: 19px;
  }
}

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

  .btn:active {
    transform: none;
  }
}

/* Motion ------------------------------------------------------------------------------------
 * The owner asked for a livelier page (2026-10-25), past Spec · Interactions & motion: its
 * "left out on purpose" list (no reveals, no count-ups, a still hero) and its plain language
 * switch are set aside; the art direction on issue 906 sets the motion. The resting page is the design:
 * every hidden or moved starting state sits under .js, which home.js sets before the first paint,
 * and under prefers-reduced-motion: no-preference, so without script, with reduced motion, when
 * printing and once every move has settled, the page is exactly as drawn. Only transform,
 * translate, scale, rotate and opacity move; colours change on state; the hero headline's mask
 * (clip-path) and the FAQ answer's height are the two exceptions. Tune it here: home.js reads
 * these tokens too. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-travel: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-exit: cubic-bezier(0.55, 0.06, 0.68, 0.19);

  --t-press: 80ms;
  --t-move: 280ms;
  --t-swap: 480ms;
  --t-reveal: 800ms;
  --t-travel: 900ms;
  --t-count: 1100ms;

  --stagger: 70ms;
  --stagger-line: 90ms;
  --stagger-tick: 40ms;
  --rise: 16px;
  --rise-block: 24px;
}

/* Language switch ---------------------------------------------------------------------------
 * The other language is another page: a cross-document view transition carries the first screen
 * over. The logo holds, the bold current language slides to the other slot, the headline and its
 * sentence flip into the other language, the board crossfades in place. Text keeps its own size
 * (no stretching between the two languages' widths). Every page that loads this sheet opts in,
 * so a move between the site's pages (from /bao-mat to /privacy#..., say) is the root fade below,
 * landing at its anchor at once (issue 4458); without the API it is a plain navigation. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .site-header > .logo {
    view-transition-name: hh-logo;
  }

  .site-header .btn-small {
    view-transition-name: hh-signup;
    view-transition-class: text;
  }

  .menu summary {
    view-transition-name: hh-menu;
  }

  /* Named by language, not by which one is current: named by state, the bold label slid from VI's
     place to EN's and the other one back, so the two seemed to swap places. */
  .lang-short a[lang='vi'] {
    view-transition-name: hh-lang-vi;
    view-transition-class: text;
  }

  .lang-short a[lang='en'] {
    view-transition-name: hh-lang-en;
    view-transition-class: text;
  }

  .hero-eyebrow {
    view-transition-name: hh-hero-eyebrow;
    view-transition-class: text;
  }

  .hero h1 {
    view-transition-name: hh-hero-title;
    view-transition-class: text;
  }

  .hero-sub p {
    view-transition-name: hh-hero-sub;
    view-transition-class: text;
  }

  .hero .stage {
    view-transition-name: hh-hero-stage;
  }

  ::view-transition-group(*) {
    animation-duration: var(--t-move);
    animation-timing-function: var(--ease-out);
  }

  ::view-transition-old(*.text),
  ::view-transition-new(*.text) {
    inline-size: auto;
    block-size: auto;
    object-fit: none;
    object-position: left top;
  }
}

::view-transition-old(root) {
  animation: vt-out 160ms var(--ease-exit) both;
}

::view-transition-new(root) {
  animation: vt-in var(--t-move) var(--ease-out) 60ms both;
}

::view-transition-old(hh-hero-eyebrow),
::view-transition-old(hh-hero-title),
::view-transition-old(hh-hero-sub) {
  animation: vt-flip-out 160ms var(--ease-exit) both;
}

::view-transition-new(hh-hero-eyebrow),
::view-transition-new(hh-hero-title) {
  animation: vt-flip-in var(--t-move) var(--ease-out) 60ms both;
}

::view-transition-new(hh-hero-sub) {
  animation: vt-flip-in var(--t-move) var(--ease-out) 100ms both;
}

::view-transition-old(hh-hero-stage),
::view-transition-new(hh-hero-stage) {
  animation-duration: 240ms;
  animation-timing-function: var(--ease);
}

::view-transition-old(hh-signup),
::view-transition-new(hh-signup) {
  animation-duration: 160ms;
}

::view-transition-group(hh-lang-vi),
::view-transition-group(hh-lang-en) {
  animation-timing-function: var(--ease-travel);
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

@keyframes vt-flip-out {
  to {
    opacity: 0;
    translate: 0 -0.25em;
  }
}

@keyframes vt-flip-in {
  from {
    opacity: 0;
    translate: 0 0.25em;
  }
}

/* Controls under the hand -------------------------------------------------------------------
 * Buttons lift a pixel and cast a soft shadow (a layer whose opacity moves) on hover, and sink a
 * pixel while pressed; the arrow nudges forward. Links grow an underline from the left and
 * retract it to the right. Hover goes behind (hover: hover), so a tap leaves nothing stuck. */
.btn {
  position: relative;
  transition:
    background-color var(--quick) var(--ease),
    translate var(--t-move) var(--ease-out);
}

.btn::after {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 6px 14px -6px var(--btn-shadow);
  content: '';
  opacity: 0;
  transition: opacity var(--t-move) var(--ease-out);
  pointer-events: none;
}

.btn-primary {
  --btn-shadow: color-mix(in srgb, var(--action-border) 70%, transparent);
}

.btn-secondary {
  --btn-shadow: color-mix(in srgb, var(--text-primary) 40%, transparent);
}

.btn:active {
  transform: none;
  translate: 0 1px;
  transition-duration: var(--quick), var(--t-press);
}

.btn:active::after {
  opacity: 0;
  transition: none;
}

.btn .i-arrow-right,
.feature-link .i-arrow-right {
  transition: translate var(--t-move) var(--ease-out);
}

.nav-links a,
.nav-signin,
.lang a,
.footer-column a {
  position: relative;
}

.nav-links a::after,
.nav-signin::after,
.lang a:not([aria-current])::after,
.footer-column a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  content: '';
  scale: 0 1;
  transform-origin: right;
  transition: scale var(--t-move) var(--ease-out);
  pointer-events: none;
}

.footer-column a::after,
.lang-long a::after {
  bottom: -1px;
  height: 1px;
}

/* A social logo lifts and presses like a button, with no underline: that sweep is for text. */
.footer-social svg {
  transition: translate var(--t-move) var(--ease-out);
}

.term label {
  transition:
    background-color var(--quick) var(--ease),
    color var(--quick) var(--ease),
    translate var(--t-press) var(--ease);
}

.term label:active {
  translate: 0 1px;
}

/* With script, a dark pill slides under the chosen term instead of each label filling; the chosen
   label's text turns light as the pill arrives under it. */
.term.has-pill {
  position: relative;
}

.term.has-pill label {
  position: relative;
  z-index: 1;
}

.term.has-pill input:checked + label {
  background: transparent;
  transition-delay: 0s, 100ms, 0s;
}

.term-pill {
  position: absolute;
  background: var(--inverse);
  border-radius: 3px;
  transform-origin: 0 0;
  pointer-events: none;
}

/* A value that changes with the term fades in (the numbers count instead). */
@media (prefers-reduced-motion: no-preference) {
  .js .pricing .unit .t {
    animation: fade 200ms var(--ease) backwards;
  }
}

.questions summary span,
.questions summary svg.i {
  transition: color var(--quick) var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  .questions details[open] p {
    animation: answer-in var(--t-move) var(--ease-out);
  }

  .questions details[open] .i-minus {
    animation: minus-in var(--t-move) var(--ease-out);
  }

  .menu[open] .i-x {
    animation: x-in var(--base) var(--ease-out);
  }

  .menu[open] .menu-panel nav a,
  .menu[open] .menu-panel .lang {
    animation: menu-item-in var(--base) var(--ease-out) backwards;
  }

  .menu[open] .menu-panel nav a:nth-child(2) {
    animation-delay: 30ms;
  }

  .menu[open] .menu-panel nav a:nth-child(3) {
    animation-delay: 60ms;
  }

  .menu[open] .menu-panel nav a:nth-child(4) {
    animation-delay: 90ms;
  }

  .menu[open] .menu-panel nav a:nth-child(5),
  .menu[open] .menu-panel .lang {
    animation-delay: 120ms;
  }
}

@keyframes answer-in {
  from {
    opacity: 0;
    translate: 0 -4px;
  }
}

@keyframes minus-in {
  from {
    rotate: -90deg;
  }
}

@keyframes x-in {
  from {
    opacity: 0;
    rotate: -90deg;
  }
}

@keyframes menu-item-in {
  from {
    opacity: 0;
    translate: 0 -4px;
  }
}

.fragment,
.plan,
.plan-line,
.feature-visual > *,
.channel-icon {
  transition:
    translate var(--t-move) var(--ease-out),
    transform var(--t-move) var(--ease-out),
    scale var(--t-move) var(--ease-out),
    background-color var(--quick) var(--ease),
    border-color var(--quick) var(--ease);
}

.plan-line {
  transform-origin: top;
}

.bar {
  transform-origin: left;
}

@media (hover: hover) {
  .btn:hover {
    translate: 0 -1px;
  }

  .btn:hover::after {
    opacity: 1;
  }

  .btn:hover .i-arrow-right,
  .feature-link:hover .i-arrow-right {
    translate: 3px 0;
  }

  .btn:active {
    translate: 0 1px;
  }

  .nav-links a:hover,
  .nav-signin:hover {
    text-decoration-line: none;
  }

  .nav-links a:hover::after,
  .nav-signin:hover::after,
  .lang a:not([aria-current]):hover::after,
  .footer-column a:hover::after {
    scale: 1 1;
    transform-origin: left;
  }

  .term input:not(:checked) + label:hover {
    background: var(--bg-subtle);
  }

  .questions summary:hover span,
  .questions summary:hover svg.i {
    color: var(--accent);
  }

  .fragment:hover {
    border-color: var(--border-strong);
  }

  .plan:not(.plan-growth):hover {
    background: var(--bg-subtle);
  }

  .channel:hover .channel-icon {
    background: var(--nav-active);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* Touch the mess and it tidies. */
  .fragment:hover {
    transform: none;
    translate: 0 -3px;
  }

  .feature:hover .feature-visual > * {
    translate: 0 -3px;
  }

  .plan:hover .plan-line {
    scale: 1 1.3;
  }

  .footer-social a:hover svg {
    translate: 0 -1px;
  }

  .footer-social a:active svg {
    translate: 0 1px;
    transition-duration: var(--t-press);
  }
}

/* Hero load ---------------------------------------------------------------------------------
 * First load only (not under a language switch's view transition, nor when the switch opened the
 * page further down). The headline's lines rise out of their own baselines and the second warms
 * from ink to violet; the sentence follows; the board rises, the match tags land and the two notes
 * arrive. The button is never hidden. Readable by 0.9 s, settled by 1.75 s. The board rises with
 * Võ Thanh Tâm still in Screening, and a hand then drags him into Phỏng vấn (home.js, Hero
 * board). */
.dragging {
  box-shadow: none;
}

/* The shadow of a card in hand is a layer whose opacity moves. */
.dragging::after,
.lifted::after {
  position: absolute;
  inset: -1px;
  border-radius: 4px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--text-primary) 20%, transparent);
  content: '';
  pointer-events: none;
}

/* Hero board in play -------------------------------------------------------------------------
 * home.js lets visitors drag the board's cards (below desktop with a mouse only; a finger there
 * scrolls the page as anywhere else) and, on desktop, search them. A card in hand (.lifted)
 * leaves its column's flow for the board's own layer; .held casts its shadow, which fades as it
 * settles. The hand that shows the drag once is styled here too. */
.js .hero .board {
  -webkit-touch-callout: none;
  user-select: none;
}

.js .hero .board .card {
  cursor: grab;
}

@media (min-width: 1280px) {
  .js .hero .board .card {
    touch-action: pan-y;
  }
}

.hero .card.lifted {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  transform: none;
}

.board.live .avatar {
  transition:
    background-color var(--t-move) var(--ease),
    color var(--t-move) var(--ease);
}

.lifted::after {
  opacity: 0;
  transition: opacity var(--t-move) var(--ease-out);
}

.lifted.held::after {
  opacity: 1;
}

.holding-card,
.holding-card * {
  cursor: grabbing !important;
}

.drop-slot.ghost {
  visibility: hidden;
}

.card.filtered,
.column:has(> .drop-slot) > .column-empty {
  display: none;
}

.column-empty {
  padding: 4px 2px;
  color: var(--text-muted);
  font-size: 12px;
}

.hand {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 28px;
  height: 28px;
  margin: -16px 0 0 -14px;
  filter: drop-shadow(0 1px 1.5px color-mix(in srgb, var(--text-primary) 40%, transparent));
  pointer-events: none;
}

/* Phosphor's hands (site/cursors/) drawn as a pointer is: white, with a 1.5px dark edge outside
   the shape, the same width at every scale. */
.hand svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hand path {
  fill: var(--white);
  stroke: var(--text-primary);
  stroke-width: 3px;
  stroke-linejoin: round;
  paint-order: stroke;
  vector-effect: non-scaling-stroke;
}

.hand .cursor-hand-grabbing-fill,
.hand.closed .cursor-hand-fill {
  display: none;
}

.hand.closed .cursor-hand-grabbing-fill {
  display: block;
}

/* The search box is a field once script runs, drawn as before: no box of its own, the placeholder
   in the drawn text's colour. */
.search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font: inherit;
  outline: none;
}

.search input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.search input::-webkit-search-cancel-button {
  appearance: none;
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .column-empty:not([hidden]) {
    animation: fade 240ms var(--ease) backwards;
  }

  .search {
    transition:
      border-color var(--quick) var(--ease),
      box-shadow var(--quick) var(--ease);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js:not(.vt-arrived) .hero-eyebrow {
    animation: rise 600ms var(--ease-out) backwards;
  }

  .js:not(.vt-arrived) .hero .h1-a {
    animation: line-up var(--t-reveal) var(--ease-expo) 60ms backwards;
  }

  .js:not(.vt-arrived) .hero .h1-b {
    animation:
      line-up var(--t-reveal) var(--ease-expo) 150ms backwards,
      ink-warm 800ms var(--ease) 500ms backwards;
  }

  .js:not(.vt-arrived) .hero-sub p {
    animation: rise 700ms var(--ease-out) 360ms backwards;
  }

  .js:not(.vt-arrived) .hero .stage {
    animation: rise-stage 1000ms var(--ease-expo) 260ms backwards;
  }

  /* The match tags land card by card, down New and then Screening. Once the board is in play
     (home.js), a card moved to another column keeps its tag. */
  .js:not(.vt-arrived) .hero .board:not(.live) .card-tag {
    animation: pop 320ms var(--ease-out) 850ms backwards;
  }

  .js:not(.vt-arrived) .hero .board:not(.live) .column:first-child .card:nth-child(3) .card-tag {
    animation-delay: 890ms;
  }

  .js:not(.vt-arrived) .hero .board:not(.live) .column:first-child .card:nth-child(4) .card-tag {
    animation-delay: 930ms;
  }

  .js:not(.vt-arrived) .hero .board:not(.live) .column:nth-child(2) .card:nth-child(2) .card-tag {
    animation-delay: 970ms;
  }

  .js:not(.vt-arrived) .hero .board:not(.live) .column:nth-child(2) .card:nth-child(3) .card-tag {
    animation-delay: 1010ms;
  }

  .js:not(.vt-arrived) .hero .board:not(.live) .column:nth-child(2) .card:nth-child(4) .card-tag {
    animation-delay: 1050ms;
  }

  .js:not(.vt-arrived) .hero .callout-ai {
    animation: rise 600ms var(--ease-out) 1000ms backwards;
  }

  .js:not(.vt-arrived) .hero .callout-eval {
    animation: rise 600ms var(--ease-out) 1150ms backwards;
  }

  .js:not(.vt-arrived) .hero .callout-icon svg.i {
    animation: twinkle 500ms var(--ease-out) 1150ms;
  }
}

@keyframes line-up {
  from {
    clip-path: inset(calc(100% + 0.3em) -0.1em -0.3em);
    translate: 0 0.35em;
  }

  to {
    clip-path: inset(-0.4em -0.1em -0.3em);
    translate: none;
  }
}

@keyframes ink-warm {
  from {
    color: var(--text-primary);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}

@keyframes rise-stage {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.85;
  }
}

@keyframes twinkle {
  50% {
    scale: 1.15;
  }
}

@media (min-width: 1280px) {
  @keyframes rise-stage {
    from {
      opacity: 0;
      translate: 0 40px;
    }
  }
}

/* Scroll reveals ----------------------------------------------------------------------------
 * home.js marks each part with data-reveal (its kind) and --d, --r-dur (its delay and duration),
 * and adds .in once its group comes into view, once. Each section's parts arrive in reading
 * order, the manner set by what they are. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    transition:
      opacity min(700ms, var(--r-dur, var(--t-reveal))) var(--ease-out) var(--d, 0ms),
      translate var(--r-dur, var(--t-reveal)) var(--ease-expo) var(--d, 0ms),
      scale var(--r-dur, var(--t-reveal)) var(--r-ease, var(--ease-expo)) var(--d, 0ms);
  }

  .js [data-reveal].instant {
    transition: none;
  }

  .js [data-reveal]:not(.in) {
    opacity: 0;
  }

  .js [data-reveal='up']:not(.in) {
    translate: 0 var(--rise);
  }

  .js [data-reveal='up-12']:not(.in) {
    translate: 0 12px;
  }

  .js [data-reveal='up-8']:not(.in) {
    translate: 0 8px;
  }

  .js [data-reveal='rise']:not(.in) {
    translate: 0 32px;
  }

  .js [data-reveal='settle']:not(.in) {
    translate: 0 var(--rise-block);
    scale: 0.97;
  }

  .js [data-reveal='slide']:not(.in) {
    translate: -16px 0;
  }

  .js [data-reveal='scatter']:not(.in) {
    translate: var(--dx) var(--dy);
  }

  .js [data-reveal='pop'],
  .js [data-reveal='dot'],
  .js [data-reveal='draw'],
  .js [data-reveal='draw-down'] {
    --r-ease: var(--ease-out);
  }

  .js [data-reveal='pop']:not(.in) {
    scale: 0.85;
  }

  .js [data-reveal='dot']:not(.in) {
    scale: 0;
  }

  .js [data-reveal='draw'],
  .js [data-reveal='draw-down'] {
    transform-origin: left;
  }

  .js [data-reveal='draw-down'] {
    transform-origin: top;
  }

  .js [data-reveal='draw']:not(.in) {
    opacity: 1;
    scale: 0 1;
  }

  .js [data-reveal='draw-down']:not(.in) {
    opacity: 1;
    scale: 1 0;
  }
}

/* The fragments start out of place, some past the page's edge: the section keeps them inside. */
.js .problem {
  overflow-x: clip;
}

/* The problem's fragments drift up past the reader a little, against the page's scroll. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .scatter {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes drift {
  from {
    translate: 0 24px;
  }

  to {
    translate: 0 -24px;
  }
}

/* Feature acts: the CV is read by a band that runs down it. */
.cv-file {
  position: relative;
}

.cv-file::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 22px;
  background: linear-gradient(
    transparent,
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent
  );
  content: '';
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .cv-file.scanning::after {
    animation: scan calc(var(--t-reveal) - 100ms + 160ms) var(--ease-travel);
  }

  .js .cv-arrow.twinkle svg.i {
    animation: twinkle 400ms var(--ease-out);
  }
}

@keyframes scan {
  0% {
    opacity: 1;
    translate: 0 0;
  }

  81% {
    opacity: 1;
    translate: 0 var(--scan, 200px);
  }

  100% {
    opacity: 0;
    translate: 0 var(--scan, 200px);
  }
}

/* The Integrations signal: a dot that travels a wire's real geometry (home.js samples it), and
   the ring a dot sends out when a signal arrives. */
.signal {
  position: absolute;
  top: -3px;
  left: -3px;
  z-index: 2;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.signal::after {
  position: absolute;
  inset: -4px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
  content: '';
}

.node::after {
  position: absolute;
  inset: -1.5px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  content: '';
  opacity: 0;
  pointer-events: none;
}

.hub-node::after {
  inset: 0;
}

/* The phone gallery's controls where the browser draws no CSS scroll markers: home.js builds
   them to look as the scroll markers and buttons above do. */
.gallery-nav {
  display: none;
}

@media (max-width: 1279.98px) {
  .gallery-nav {
    position: absolute;
    right: var(--pad);
    bottom: 0;
    left: var(--pad);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
  }

  .gallery-dots {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 6px;
  }

  .gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    background: var(--border);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--quick) var(--ease);
  }

  .gallery-dot[aria-current] {
    width: 24px;
    background: var(--accent);
  }

  .gallery-arrow {
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg-surface) no-repeat center / 18px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    cursor: pointer;
    transition:
      translate var(--t-press) var(--ease),
      border-color var(--quick) var(--ease);
  }

  .gallery-arrow:active:not(:disabled) {
    translate: 0 1px;
  }

  .gallery-arrow:disabled {
    border-color: var(--border);
    cursor: default;
  }

  .gallery-previous {
    background-image: url('/assets/chevron-left.1592618877.svg');
  }

  .gallery-previous:disabled {
    background-image: url('/assets/chevron-left-muted.8b1b72cda3.svg');
  }

  .gallery-next {
    background-image: url('/assets/chevron-right.cab1081a04.svg');
  }

  .gallery-next:disabled {
    background-image: url('/assets/chevron-right-muted.95485e06b5.svg');
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .btn:active,
  .term label:active,
  .gallery-arrow:active:not(:disabled) {
    translate: none;
  }
}
