/* Home page (/). Page-only classes use the hm- prefix or the home-specific names below.
   Shared shell classes (.wrap, .sec, .split, .dark, .white, .pm, .btn, .caption, .more) come from style.css.
   App renders (.appui) come from app-ui/appui.css via jobs.css. Nothing under 13px. */

/* hero media: real chat screenshot (test data). Harvey measured 2026-11-13 at 1440: 8px radius, no shadow, no border, about 1.84:1.
   object-fit cover crops the top and bottom edge of the 1440x900 source. */
.hero-card .frame.home-shot { height: auto; aspect-ratio: 1.84 / 1; border: 0; border-radius: 8px; box-shadow: none; background: none; }
.hero-card .frame.home-shot img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }

/* intro blocks */
.hm-intro { max-width: 760px; margin-bottom: var(--space-8); }
.hm-intro.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.hm-intro.is-center .hm-sub { margin-left: auto; margin-right: auto; }
.hm-sub { margin: var(--space-4) 0 0; font: 400 18px/26px var(--sans); color: #33312C; max-width: 620px; }
.hm-caption { margin: var(--space-5) 0 0; font-size: var(--text-sm); line-height: 1.5; color: var(--grey-ink); }

/* two-audience split */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.aud { display: flex; flex-direction: column; min-width: 0; }
.aud-media { display: flex; flex-direction: column; gap: var(--space-4); justify-content: center; min-height: 360px; padding: var(--space-6); background: #EFEDE9; border-radius: 14px; overflow: hidden; }
.aud-h { margin: var(--space-6) 0 0; font: 400 var(--text-2xl)/1.05 var(--serif); letter-spacing: -0.2px; color: var(--ink); }
.aud-p { margin: var(--space-3) 0 0; font: 400 var(--text-base)/24px var(--sans); color: #33312C; max-width: 460px; }
.aud-btn { margin: var(--space-5) 0 0; }
.aud-media.aud-shot { padding: 0; min-height: 0; background: none; border-radius: 8px; }
.aud-media.aud-shot img { display: block; width: 100%; height: auto; border-radius: 8px; }
@media (max-width: 720px) { .aud-media.aud-shot, .aud-media.aud-shot img { border-radius: 4px; } }

.mk { padding: 14px var(--space-4); background: var(--card); border: 1px solid var(--edge); border-radius: 14px; font: 400 15px/1.5 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.mk-rem { display: flex; gap: 10px; align-items: flex-start; }
.mk-rem .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mk-paper { background: #fff; border-color: var(--line); font: 400 var(--text-xs)/1.5 "Times New Roman", Tinos, serif; color: #111; }
.mk-paper-head { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-3); text-align: center; margin-bottom: 10px; }
.mk-paper p { margin: 0 0 6px; }
.mk-paper .u { text-decoration: underline; text-underline-offset: 3px; }
.mk-paper-trich { text-align: center; }

/* six jobs: tab list on the left, one changing pane on the right */
.jobs-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-8); align-items: start; }
.hm-item + .hm-item { border-top: 1px solid var(--hair); }
.hm-h { margin: 0; font: inherit; }
.hm-tab { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; padding: 22px 0; margin: 0; background: none; border: 0; text-align: left; font: 500 var(--text-lg)/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.hm-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.hm-item .pm { flex: none; }
.hm-item .pm::after { transition: transform 200ms ease; }
.hm-item.is-open .pm::after { transform: rotate(0deg); }
.hm-panel { display: none; padding: 0 0 var(--space-5); }
.hm-item.is-open .hm-panel { display: block; }
.hm-panel p { margin: 0; max-width: 520px; font: 400 var(--text-base)/24px var(--sans); color: #33312C; }
.jobs-grid .more { margin-top: var(--space-2); }

.hm-stage { position: relative; min-height: 440px; background: #EFEDE9; border-radius: 14px; overflow: hidden; }
/* render panes stack in normal flow: only the .on pane shows, and it grows with its content (appui.css positions them absolute) */
.hm-stage .appui { display: none; }
.hm-stage .appui.on { display: block; position: relative; inset: auto; opacity: 1; visibility: visible; min-height: 440px; }
.hm-stage .appui.on .app-card { position: relative; inset: auto; margin: var(--space-6); max-height: none; }
.hm-stage .appui.on .app-card::after { display: none; }

/* dark band: data and limits teaser */
.hm-data { align-items: start; }
.hm-list-dark { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.hm-list-dark li { display: flex; gap: var(--space-4); align-items: flex-start; font: 500 var(--text-base)/1.5 var(--sans); color: #fff; }
.hm-list-dark svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: #CCCAC6; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* The dark band (#cach-lam-viec) keeps light text; the light band (#gioi-han) uses the dark ink, so its list reads on white. */
#cach-lam-viec .aud-h { color: #fff; }
#cach-lam-viec .aud-p { color: var(--on-dark); }
#gioi-han .hm-list-dark li { color: var(--ink); }
#gioi-han .hm-list-dark svg { stroke: var(--grey-ink); }

@media (max-width: 720px) {
  /* phone: media stacks under the text at full column width, 4px radius (Harvey 390), phone shot at its own 390:844 ratio */
  .hero .hero-card { height: auto; background: none; border-radius: 0; }
  .hero .hero-card .ink, .hero .hero-card .grain { display: none; }
  .hero-card .frame.home-shot { position: relative; top: auto; left: auto; transform: none; width: 100%; aspect-ratio: 390 / 844; border-radius: 4px; }
  .jobs-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .aud-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .aud-media { min-height: 0; padding: var(--space-4); }
  .aud-h { font-size: 28px; }
  .hm-intro { margin-bottom: 40px; }
  .hm-tab { padding: 20px 0; font-size: var(--text-2xl); }
  .hm-stage { min-height: 0; }
  .hm-stage .appui.on { min-height: 0; }
  .hm-stage .appui.on .app-card { margin: var(--space-3) var(--space-2); }
  .mk-paper-head { grid-template-columns: 1fr; gap: 6px; }
  .mk-paper { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-item .pm::after { transition: none; }
}

/* ghost buttons on light sections were white-on-white */
.aud-btn .btn-ghost{color:var(--ink);border-color:transparent}

/* fp-oxy-home-top: Harvey measured values mapped to our tokens. Hero h1 is 48px at 721-1024 (Harvey text-5xl); 72px stays from 1025 up. Card and tab copy line-height 1.3. */
@media (min-width: 721px) and (max-width: 1024px) {
  .hero h1 { font-size: var(--text-4xl); line-height: 1.05; }
}
.aud-p, .hm-panel p { line-height: 1.3; }

/* Harvey parity r22: section padding by width (160 px desktop measured live on Harvey's matched section, 112 px tablet, 56 px phone) on the audience band; 128 px column gap on the limits split */
@media (min-width: 1200px) {
  #doi-tuong { padding-top: 160px; padding-bottom: 160px; }
  #gioi-han .split { gap: var(--space-10); }
}
@media (min-width: 721px) and (max-width: 1199px) {
  #doi-tuong { padding-top: 112px; padding-bottom: 112px; }
}
@media (max-width: 720px) {
  #doi-tuong { padding-top: 56px; padding-bottom: 56px; }
}
/* tablet side gutter 28 px (Harvey's paddingX 28 px at 1024 and 768) */
@media (min-width: 721px) and (max-width: 1199px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
}

/* oxy-home-policy-links (Harvey main[8] policy list): the home link band becomes stacked rows with a 1 px bottom border; row padding 20 px above 1024 px and 28 px at 1024 and below, row gap 20 px / 8 px */
#kham-pha .aud-grid { display: flex; flex-direction: column; gap: 20px; }
#kham-pha .aud { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 20px 0; border-bottom: 1px solid var(--hair); }
#kham-pha .aud-h { margin: 0; }
#kham-pha .aud-btn { margin: 0; flex: none; }
@media (max-width: 1024px) {
  #kham-pha .aud-grid { gap: var(--space-2); }
  #kham-pha .aud { padding: 28px 0; }
}

/* Motion (spec A). Only html.reveal-on (set by home.js when JS runs and motion is not reduced) hides anything. */
html.reveal-on [data-rv] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms var(--ease-out) calc(var(--rv-i, 0) * 60ms), transform 300ms var(--ease-out) calc(var(--rv-i, 0) * 60ms);
  will-change: opacity, transform;
}
html.reveal-on [data-rv].rv-in { opacity: 1; transform: none; will-change: auto; }

/* Pinned product list (spec A, #viec): at 1025 px and up, the section is a scroll track of 100vh + 6 x 40vh and its inner block sticks under the 106 px header. */
@media (min-width: 1025px) {
  html.reveal-on #viec { box-sizing: border-box; height: calc(100vh + 240vh); }
  html.reveal-on #viec > .wrap { position: sticky; top: var(--hdr-height); }
}

/* Media slots (spec B): an empty figure stays hidden until a real product screen is placed in it. */
.sec-media { margin: 0; }
.sec-media:not(:has(img)) { display: none; }
.sec-media img { display: block; width: 100%; height: auto; border: 0; border-radius: 8px; box-shadow: none; }
@media (max-width: 720px) { .sec-media img { border-radius: 4px; } }
/* the phone source is 390x844 but the img keeps the desktop width/height attributes: pin the phone ratio so the box does not jump when it loads */
@media (max-width: 720px) { .sec-media img { aspect-ratio: 390 / 844; } }
#du-lieu-gioi-han .sec-media, #gioi-han .sec-media { margin-bottom: 40px; }
#cach-lam-viec .sec-media-wide { margin-top: 56px; }
.hd-split { display: block; }
.hd-split:has(.sec-media img) { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 720px) { .hd-split:has(.sec-media img) { grid-template-columns: 1fr; gap: 24px; } }

/* Rhythm (spec D, 1200 px and up): sections 3, 4, 8 at 720 px min height, content centred; CTA 440 px. */
@media (min-width: 1200px) {
  #du-lieu-gioi-han, #cach-lam-viec, #kham-pha { min-height: 720px; display: flex; flex-direction: column; justify-content: center; }
  #du-lieu-gioi-han > .wrap, #cach-lam-viec > .wrap, #kham-pha > .wrap { width: 100%; }
  .cta { min-height: 560px; display: flex; flex-direction: column; justify-content: center; }
  .cta > .cta-in { width: 100%; }
}

/* oxy-harvey-scroll-fix2 (round 3), Vietnamese home. Item 1: one dark section, 1000 px or less at 1440: limits and heading left, one product picture right, three steps in one row below. */
#du-lieu-gioi-han { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.hm-dark-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sec-split-gap); align-items: start; }
.hm-dark-top .hm-list-dark { margin-top: var(--space-5); }
.hm-crop { position: relative; margin: 0; overflow: hidden; border-radius: 8px; background: #161514; }
/* crop of the sign-in shot (1440x900): the card's buttons, no floating logo. 16:10 box; the image is 327% wide, offset to source x 500-940, y 262-537 */
.hm-crop-login { aspect-ratio: 16 / 10; }
.hm-crop-login img { position: absolute; top: -95.2%; left: -113.5%; width: 327%; max-width: none; height: auto; }
.hm-steps { margin-top: var(--space-7); }
.hm-steps-h { margin: 0 0 var(--space-5); font: 400 var(--text-2xl)/1.05 var(--serif); letter-spacing: -0.2px; color: #fff; }
.hm-steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.hm-step { min-width: 0; }
/* small product pictures: crops of existing shots at 2.4:1 */
.hm-crop-band { aspect-ratio: 12 / 5; }
.hm-crop-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-p1 img { object-position: 50% 0%; }
.hm-p2 img { object-position: 50% 45%; }
.hm-p3 img { object-position: 50% 30%; }
#du-lieu-gioi-han .aud-h { color: #fff; }
#du-lieu-gioi-han .aud-p { color: var(--on-dark); }
#du-lieu-gioi-han .hm-step .aud-h { margin: var(--space-4) 0 0; font-size: var(--text-xl); line-height: 1.3; font-family: var(--sans); font-weight: 500; }
#du-lieu-gioi-han .hm-step .aud-p { margin-top: var(--space-2); }
@media (max-width: 720px) {
  .hm-dark-top { grid-template-columns: 1fr; gap: 40px; }
  .hm-steps-row { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* Item 2: the questions picture sits in a 1fr column (about 668 px at 1440, over 560) */
/* Item 3: questions collapsed (answers open on tap; the text stays in the html) */
.hd-list { min-width: 0; border-bottom: 1px solid var(--hair); }
.hd-q { display: block; border-top: 1px solid var(--hair); }
.hd-q summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 22px 0; font: 500 var(--text-lg)/1.3 var(--sans); color: var(--ink); cursor: pointer; list-style: none; }
.hd-q summary::-webkit-details-marker { display: none; }
.hd-q summary::after { content: "+"; flex: none; font: 400 var(--text-xl)/1 var(--sans); color: var(--grey-ink); }
.hd-q[open] summary::after { content: "\2212"; }
.hd-q summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.hd-q .aud-p { margin: 0 0 var(--space-5); }

/* Item 4: 16:9 shots in the audience band (#doi-tuong keeps its 160 px padding, decision 2026-11-13) */
.aud-media.aud-shot img { aspect-ratio: 16 / 9; object-fit: cover; }
