/* AURA demo · the blended Home (D-CBO-492), premium pass by the CDO (D-CBO-498). One look for the whole page: the hero after america.gov (generous air above
   "Hello, Trang.", a narrower picture with the Ask box inside its top edge, no halo, the scene controls on glass over the photo, D-CBO-500), then every Section in the mock Home's
   own style (pb.css: pb-hsec heading, pb-card, pb-hlist, pb-hvs tiles), on one 1128 px column. Large photos carry a fine film grain (grain.png) and sit at 92 %
   over the night ground, so low resolution reads as texture. Newsreader for headlines, Inter for labels. Tokens only; even sizes only (1 px hairlines). */

/* ---------- the screen ---------- */
.hm-screen { padding: 0; background: var(--paper); }

/* ---------- film grain on every large photo: the photo at 92 % over the night ground, a fine grain over it ---------- */
.hp-grain { background-color: var(--night); }
.hp-grain::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url(grain.png) repeat; background-size: 256px 256px; mix-blend-mode: soft-light; opacity: .64; }

/* ---------- 1 the hero ---------- */
.hp-hero { display: flex; flex-direction: column; align-items: center; padding: 96px 32px 0; } /* D-CBO-604: 96 px above Hello */
.hp-hello { margin: 0; text-align: center; font: 400 80px/88px var(--font-serif); letter-spacing: -.02em; color: var(--ink); } /* design-lint-ignore: the Home greeting, the one size above the scale (D-CBO-177) */
.hp-lead { margin: 16px 0 0; text-align: center; font: 400 var(--fs-2xl)/32px var(--font-serif); color: var(--ink-2); }

/* the picture: narrower than the column, the Ask box inside its top edge, the answer builds under the box */
.hp-media { position: relative; isolation: isolate; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 880px; min-height: 520px; margin-top: 48px; padding: 16px 16px 80px; border-radius: var(--r-stage); box-shadow: 0 32px 64px -32px rgb(var(--shadow-hue) / .32); }
.hp-slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.hp-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1200ms var(--ease-out); }
.hp-slides img.on { opacity: .92; }

/* the Ask box: white, no halo, no shadow; concentric with the picture (24 radius, 16 inset, 8 radius) */
.hp-box { display: flex; align-items: center; gap: 12px; min-height: 72px; box-sizing: border-box; padding: 12px 12px 12px 24px; border-radius: var(--r-card); background: var(--surface); }
.hp-box:focus-within { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
.hp-boxic { flex: none; color: var(--v-600); }
.hp-input { flex: 1; min-width: 0; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; outline: 0; resize: none; overflow: hidden; font: 400 var(--fs-xl)/28px var(--font); color: var(--ink); }
.hp-input::placeholder { color: var(--ink-3); }
.hp-send { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--r-control); background: var(--v-600); color: var(--white); cursor: pointer; transition: background var(--dur-1) var(--ease-out); }
.hp-send:hover { background: var(--v-700); }

/* the scene's question, on a dark glass chip under the box */
.hp-hint { align-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 36px; box-sizing: border-box; padding: 8px 14px 8px 10px; border: 0; border-radius: var(--r-control); background: var(--night-veil); color: var(--white); font: 500 var(--fs-sm)/20px var(--font); text-align: center; cursor: pointer; transition: background var(--dur-1) var(--ease-out); }
@supports (backdrop-filter: blur(1px)) { .hp-hint, .hp-ctl, .hp-pill, .hp-whofig figcaption { backdrop-filter: var(--glass-blur); } }
.hp-hint:hover { background: var(--night); }
.hp-hint .icon.msr { flex: none; color: var(--v-300); }
.hp-hint[hidden] { display: none; }

/* the scene controls on glass over the bottom of the photo (D-CBO-500): back, one dot per scene, pause, next */
.hp-ctl { position: absolute; left: 50%; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-round); background: var(--night-veil); transform: translateX(-50%); }
.hp-ctlbtn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-round); background: transparent; color: var(--white); cursor: pointer; transition: background var(--dur-1) var(--ease-out); }
.hp-ctlbtn:hover { background: var(--on-dark-hover); }
.hp-dots { display: flex; align-items: center; padding: 0 4px; }
.hp-dot { display: grid; place-items: center; width: 20px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hp-dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-round); background: var(--white); opacity: .48; transition: opacity var(--dur-1) var(--ease-out), width var(--dur-2) var(--ease-out); }
.hp-dot:hover::before { opacity: .8; }
.hp-dot.on::before { width: 16px; opacity: 1; }
.hp-dot:focus-visible { outline: var(--focus-outline); outline-offset: -4px; }
.hp-ctlbtn:focus-visible, .hp-hint:focus-visible, .hp-send:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
.hp-ctlbtn:focus-visible { outline-offset: -2px; }

/* the answer, built in place on a light card under the box (the old Home's hj-answer, js/features/grid/moment.js steps), in the mock's type */
.hp-answer { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-raised); }
.hp-answer[hidden] { display: none; }
.hp-close { position: absolute; top: 12px; right: 12px; }
.hp-step { display: none; }
.hp-step.on { display: block; animation: hp-rise 480ms var(--ease-out); } /* D-CBO-601: the card grows as the answer is written */
@keyframes hp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hp-answer a { color: inherit; text-decoration: none; }
.hp-answer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hp-claim { display: block; padding-right: 32px; font: 400 var(--fs-2xl)/32px var(--font-serif); letter-spacing: -.01em; text-wrap: pretty; color: var(--ink); }
.hp-meta { margin: 8px 0 0; font: 400 var(--fs-sm)/20px var(--font); color: var(--ink-3); }
.hp-quote { margin: 0; padding-left: 16px; border-left: 2px solid var(--accent-soft); }
.hp-quote blockquote { margin: 0; font: 400 var(--fs-xl)/28px var(--font-serif); color: var(--ink); }
.hp-quote figcaption { margin-top: 4px; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.hp-label { margin: 0; font: 600 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.hp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.hp-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px; border-radius: var(--r-control); background: var(--surface-2); }
.hp-stat b { font: 400 var(--fs-3xl)/40px var(--font-serif); font-variant-numeric: tabular-nums; color: var(--ink); }
.hp-stat span { font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.hp-verdict { padding-top: 24px; border-top: 1px solid var(--hairline); }
.hp-verdict h4 { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 var(--fs-md)/24px var(--font); color: var(--ink); }
.hp-verdict h4 .icon.msr { flex: none; color: var(--v-600); }
.hp-verdict .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-verdict .hp-meta { margin-top: 12px; }
.hp-answer .hp-more { display: inline-flex; align-items: center; gap: 4px; font: 500 var(--fs-sm)/20px var(--font); color: var(--v-700); }
/* D-CBO-601: the answer writes itself out; what follows a line shows once the line is written; it ends on a clear link to the Answer page */
.hp-after { opacity: 0; transition: opacity 400ms var(--ease-out); }
.hp-step.typed .hp-after { opacity: 1; }
.hp-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--v-600); animation: hp-caret 800ms steps(1) infinite; }
@keyframes hp-caret { 50% { opacity: 0; } }
.hp-open { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.hp-answer .hp-open .btn.primary { gap: 8px; color: var(--on-primary, var(--white)); text-decoration: none; }
.hp-answer .hp-open .btn.primary:hover { text-decoration: none; }

/* ---------- 2 to 10 the Sections, on one column, in the mock Home's style ---------- */
.hp-body { box-sizing: border-box; max-width: 1192px; margin: 0 auto; padding: 120px 32px 160px; } /* D-CBO-609: room at the end for the docked Ask */
.hm-screen .pb-hpage.hm-mock { max-width: none; margin: 0; padding: 0; }
.hp-body .pb-hsec + .pb-hsec, .hp-body .hm-mock + .pb-hsec { margin-top: 96px; }
.hp-lede { max-width: 760px; margin: -8px 0 24px; font: 400 var(--fs-xl)/28px var(--font-serif); text-wrap: pretty; color: var(--ink-2); }
.hp-lede a { color: inherit; text-decoration: none; }
.hp-lede a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.hp-sec h3.pb-ct { margin: 0; }
.hp-sec .pb-hn { margin-left: 8px; }

/* 5 Who are they: one Card, the portrait filling its left side */
.hp-who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 560px; }
.hp-whofig { position: relative; margin: 0; overflow: hidden; }
.hp-whofig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* D-CBO-612: no grain on portraits, only on the hero slider */
.hp-pill { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 4px 8px; border-radius: var(--r-control); background: var(--night-veil); font: 500 var(--fs-xs)/16px var(--font); color: var(--white); }
.hp-whofig figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: var(--r-control); background: var(--night-veil); color: var(--white); }
.hp-whofig figcaption b { font: 400 var(--fs-2xl)/32px var(--font-serif); }
.hp-whofig figcaption span { font: 400 var(--fs-sm)/20px var(--font); }
.hp-whofig figcaption .hp-sim { font-size: var(--fs-xs); line-height: 16px; color: var(--on-dark-text-2); }
.hp-whobody { display: flex; flex-direction: column; min-width: 0; padding: 32px 40px; }
.hp-sub { margin: 0 0 8px; font: 600 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.hp-worries { counter-reset: hp-w; list-style: none; margin: 0 0 24px; padding: 0; }
.hp-worries li { counter-increment: hp-w; display: grid; grid-template-columns: 32px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--hairline); font: 400 var(--fs-xl)/28px var(--font-serif); color: var(--ink); }
.hp-worries li::before { content: counter(hp-w); font: 600 var(--fs-sm)/28px var(--font); color: var(--v-700); }
.hp-says { margin: 0 0 24px; }
.hp-says p a { color: inherit; text-decoration: none; }
.hp-says p a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hp-acts { margin-top: auto; }

/* 6 What are they buying: the bar, then one Card per pack */
.hp-packbar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.hp-count { font: 400 var(--fs-sm)/20px var(--font); color: var(--ink-3); }
.hp-packbar .select { margin-left: auto; width: auto; }
.hp-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hp-pack { min-height: 0; }
.hp-packimg { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--surface-2); } /* D-CBO-601: a square frame, as every product picture */
.hp-packimg img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; } /* the cut-outs are on white: multiply lets them sit on the sand */
.hp-packblank { display: grid; place-items: center; width: 96px; height: 96px; border-radius: var(--r-round); background: var(--surface); font: 400 var(--fs-3xl)/40px var(--font-serif); color: var(--ink-3); }
.hp-badge { position: absolute; top: 12px; left: 12px; padding: 2px 8px; border-radius: var(--r-control); font: 500 var(--fs-xs)/16px var(--font); background: var(--surface); color: var(--ink-2); }
.hp-badge.rising { background: var(--accent-soft); color: var(--on-accent-soft); }
.hp-packbody { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px 20px; }
.hp-packbody h3 { margin: 0 0 4px; font: 600 var(--fs-sm)/20px var(--font); color: var(--ink); }
.hp-packnum { margin: 0; font: 400 var(--fs-3xl)/40px var(--font-serif); font-variant-numeric: tabular-nums; color: var(--ink); }
.hp-packline { margin: 0; font: 400 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.hp-packbody .btn { align-self: flex-start; margin-top: 16px; }

/* 7 What's moving: the move as one Card */
.hp-move .pb-card.mv-row { padding: 32px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-rest); cursor: pointer; transition: box-shadow 200ms var(--ease-out); }
.hp-move .pb-card.mv-row:hover { box-shadow: var(--shadow-raised); }
.hp-move .pb-card.mv-row:hover .mv-title { color: var(--ink); }
.hp-move .mv-row.hero .mv-title { max-width: 760px; font: 400 var(--fs-2xl)/32px var(--font-serif); letter-spacing: -.01em; }
.hp-move .mv-why { max-width: 760px; font: 400 var(--fs-md)/24px var(--font); color: var(--ink-2); }
.hp-draft { max-width: 760px; padding: 16px; border-radius: var(--r-control); background: var(--surface-2); }
.hp-drafted { margin: 0 0 8px; font: 600 var(--fs-xs)/16px var(--font); color: var(--ink-3); }
.hp-move .mv-rsp { font: 400 var(--fs-md)/24px var(--font); color: var(--ink); }
.hp-move .mv-glyphs { max-width: 760px; }

/* 8 How are we doing: four figure Cards */
.hp-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hp-numcell { gap: 8px; padding: 24px; }
.hp-num { font: 400 var(--fs-3xl)/40px var(--font-serif); font-variant-numeric: tabular-nums; color: var(--ink); }
.hp-numlabel { font: 400 var(--fs-sm)/20px var(--font); color: var(--ink-3); }

/* 9 Today's Almanac: three lines in one Card */
.hp-alm .pb-cb { padding: 8px 24px; }
.hp-lines { list-style: none; margin: 0; padding: 0; }
.hp-lines li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.hp-lines li:last-child { border-bottom: 0; }
.hp-kick { font: 600 var(--fs-xs)/28px var(--font); color: var(--ink-3); }
.hp-lines a { font: 400 var(--fs-xl)/28px var(--font-serif); color: var(--ink); text-decoration: none; text-wrap: pretty; }
.hp-lines a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hp-almfoot { padding: 8px 24px 24px; }

/* 10 Go deeper: six door Cards */
.hp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-tile { flex-direction: row; align-items: center; gap: 16px; padding: 20px 24px; color: var(--ink); text-decoration: none; transition: box-shadow 200ms var(--ease-out); }
.hp-tile:hover { box-shadow: var(--shadow-raised); }
.hp-tile b { flex: 1; min-width: 0; font: 400 var(--fs-xl)/28px var(--font-serif); }
.hp-tile > .icon.msr { flex: none; color: var(--ink-3); transition: transform 200ms var(--ease-out), color 200ms var(--ease-out); }
.hp-tile:hover > .icon.msr { color: var(--v-700); transform: translateX(2px); }
.hp-foot { margin-top: 64px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .hp-packs, .hp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-who { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .hp-hero { padding: 56px 16px 0; }
  .hp-hello { font-size: 48px; line-height: 56px; }
  .hp-lead { margin-top: 12px; font-size: var(--fs-xl); line-height: 28px; }
  .hp-media { min-height: 480px; margin-top: 32px; padding: 8px 8px 64px; border-radius: 16px; }
  .hp-box { min-height: 56px; padding: 8px 8px 8px 16px; }
  .hp-boxic { display: none; }
  .hp-input { height: 24px; font-size: var(--fs-md); line-height: 24px; }
  .hp-send { width: 40px; height: 40px; }
  .hp-hint { font-size: var(--fs-xs); line-height: 16px; }
  .hp-ctl { bottom: 8px; }
  .hp-ctlbtn { width: 40px; height: 40px; }
  .hp-dot { width: 16px; }
  .hp-answer { gap: 20px; padding: 24px 16px; }
  .hp-claim { font-size: var(--fs-xl); line-height: 28px; }
  .hp-quote blockquote { font-size: var(--fs-md); line-height: 24px; }
  .hp-stats, .hp-verdict .hp-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hp-body { padding: 72px 16px 160px; }
  .hp-body .pb-hsec + .pb-hsec, .hp-body .hm-mock + .pb-hsec { margin-top: 64px; }
  .hp-lede { margin-top: -4px; }
  .hp-who { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hp-whofig { height: 400px; }
  .hp-whobody { padding: 24px 16px; }
  .hp-acts { margin-top: 0; }
  .hp-packbar { flex-wrap: wrap; }
  .hp-packbody { padding: 12px 14px 16px; }
  .hp-packnum { font-size: var(--fs-2xl); line-height: 32px; }
  .hp-move .pb-card.mv-row { padding: 20px 16px; }
  .hp-move .mv-row.hero .mv-title { font-size: var(--fs-xl); line-height: 28px; }
  .hp-numcell { padding: 16px; }
  .hp-num { font-size: var(--fs-2xl); line-height: 32px; }
  .hp-alm .pb-cb { padding: 4px 16px; }
  .hp-lines li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hp-kick { line-height: 16px; }
  .hp-lines a { font-size: var(--fs-md); line-height: 24px; }
  .hp-almfoot { padding: 8px 16px 16px; }
  .hp-tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hp-tile { padding: 16px; }
}
/* D-CBO-605: the intro after sign-in, about 900 ms: the folded side menu slides in, then Hello, the line and the picture rise in turn */
@media (prefers-reduced-motion: no-preference) {
  html.hp-intro .shell .rail { animation: hp-rail-in 560ms var(--ease-out) both; }
  html.hp-intro .topbar { animation: hp-fade 480ms var(--ease-out) 80ms both; }
  html.hp-intro .hp-hello { animation: hp-rise 560ms var(--ease-out) 120ms both; }
  html.hp-intro .hp-lead { animation: hp-rise 560ms var(--ease-out) 220ms both; }
  html.hp-intro .hp-media { animation: hp-rise 640ms var(--ease-out) 320ms both; }
}
@keyframes hp-rail-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes hp-fade { from { opacity: 0; } to { opacity: 1; } }
.hp-sec .vz-pair { align-items: stretch; }

@media (prefers-reduced-motion: reduce) {
  .hp-slides img, .hp-after { transition: none; }
  .hp-step.on { animation: none; }
  .hp-typing::after { animation: none; }
}

/* a typed Question answered by the engine, in place (hm.js askEngine, liveSteps): the working list, and the claim as plain text */
p.hp-claim { margin: 0; }
.hp-meta .icon.msr, .hp-work .hp-label .icon.msr { vertical-align: -4px; color: var(--v-600); }
.hp-work .hp-label { font-size: var(--fs-sm); line-height: 20px; color: var(--ink-2); }
.hp-worklist { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.hp-worklist li { position: relative; padding-left: 24px; font: 400 var(--fs-md)/24px var(--font); color: var(--ink); animation: hp-rise 320ms var(--ease-out); }
.hp-worklist li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--v-600); animation: hp-caret 800ms steps(1) infinite; }
.hp-worklist li.done { color: var(--ink-3); }
.hp-worklist li.done::before { animation: none; opacity: .45; }
.hp-verdict.hp-failed { padding-top: 0; border-top: 0; }
.hp-verdict.hp-failed h4 .icon.msr { color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .hp-worklist li, .hp-worklist li::before { animation: none; } }
