/* HONLAN AI. The canvas and interface share the VI's ink-ocean reference. */
body.hn-ai {
  --gs-bg: #10384b;
  --gs-surface: #16465b;
  --gs-surface-2: #1c5061;
  --gs-surface-3: #275c69;
  --gs-text: #ffffff;
  --gs-text-soft: #deebea;
  --gs-text-muted: #bbd0d1;
  --gs-line: rgba(185, 220, 218, .23);
  --gs-line-strong: rgba(185, 220, 218, .48);
  --gs-red: #1268b3;
  --gs-red-dark: #0d558f;
  --gs-red-glow: #a4dfd7;
  --gs-red-line: rgba(139, 210, 203, .58);
  --ai-card: #184759;
  --ai-gutter: clamp(1rem, 3.5vw, 3.75rem);
  --ai-hero-type: clamp(2rem, calc(1.1rem + 4.5vw), 5.25rem);
  --ai-title-type: clamp(1.65rem, calc(1.26rem + 1.95vw), 3.4rem);
  --ai-section-type: clamp(1.45rem, calc(1.14rem + 1.56vw), 2.45rem);
  --ai-lead-type: clamp(.9375rem, calc(.88rem + .3vw), 1.14rem);
  --fs-body: clamp(.9375rem, calc(.9rem + .16vw), 1.03rem);
  --fs-h3: clamp(1.05rem, calc(.91rem + .74vw), 1.6rem);
  --ai-card-hover: #205365;
  --ai-inset: #123c4f;
  --ai-tag: rgba(221, 239, 232, .055);
  --ai-focus: #a4dfd7;
  --ai-primary: #1268b3;
  --ai-primary-hover: #0d558f;
  --font-body: var(--hn-font, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif);
  color: var(--gs-text);
  background: var(--gs-bg);
}
html:has(> body.hn-ai) {
  background: #10384b;
  scrollbar-color: #527d87 #10384b;
}
@media (pointer: coarse) {
  html:has(> body.hn-ai), body.hn-ai { scrollbar-width: none; }
  html:has(> body.hn-ai)::-webkit-scrollbar, body.hn-ai::-webkit-scrollbar { width: 0; height: 0; }
}
.hn-ai::before { opacity: .14; }
.hn-ai ::selection { color: white; background: #1268b3; }
.hn-ai :focus-visible { outline: 3px solid var(--ai-focus); outline-offset: 4px; }
body.hn-ai.menu-open #greatsell-damai-ai-guide-root { display: none; }
.hn-ai .guide-launcher { background-color: var(--guide-white, #fff); }
.hn-ai .u { color: var(--gs-red-glow); text-shadow: none; }
.hn-ai .layout__gl { background-color: #10384b; }
.hn-ai .layout__gl::before {
  background: radial-gradient(ellipse at 75% 36%, #205764 0%, transparent 54%), #10384b;
}
.hn-ai .layout__gl::after {
  background-image: url("/honlan-vi/mark-white.svg");
  aspect-ratio: 119 / 106;
  filter: none;
}
body.hn-ai[data-page="home"]:not([data-motion-profile]) .layout__gl::before { opacity: 1; }
body.hn-ai[data-page="home"]:is(:not([data-motion-profile]), [data-gl-context="lost"], [data-gl-context="unavailable"]) .layout__gl::after {
  opacity: .24;
  transform: translate(0, -46%);
}
body.hn-ai[data-works_phase="logo"] #gl-canvas { filter: none; }
.hn-ai #loading-overlay, .hn-ai #page-fade { background-color: #10384b; }
.hn-ai #loading-overlay:empty, .hn-ai:not([data-motion-profile]) #loading-overlay {
  opacity: 0;
  visibility: hidden;
}
.hn-ai:not([data-motion-profile]) :is([data-reveal], .reveal-line),
.hn-ai :is(.alche-hero, .page-hero) [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}
.hn-ai .site-header {
  background: rgba(16, 56, 75, .96);
  border-bottom-color: rgba(184, 215, 214, .18);
}
.hn-ai .site-header.is-scrolled,
body.hn-ai:is([data-current_section="works_intro"], [data-current_section="works"], [data-current_section="works_outro"]) .site-header.is-scrolled {
  background: rgba(16, 56, 75, .97);
  border-bottom-color: var(--gs-line);
}
.hn-ai .brand__mark, .hn-ai .footer-logo__mark { filter: none; }
.hn-ai .nav__link {
  color: #e0ebe9;
  font-weight: 560;
  text-shadow: none;
  letter-spacing: .02em;
}
.hn-ai .nav__link:hover, .hn-ai .nav__link[aria-current="page"] { color: white; }
.hn-ai .nav__menu {
  background: #16465b;
  border-color: var(--gs-line-strong);
  box-shadow: 0 12px 28px rgba(var(--ai-shade-rgb), .3);
}
.hn-ai .menu-link:hover, .hn-ai .menu-link:focus-visible { background: #205365; }
.hn-ai .menu-link__desc { color: #c4d6d6; }
.hn-ai .side-menu__backdrop { background: rgba(16, 56, 75, .9); }
.hn-ai .side-menu__panel { background: linear-gradient(118deg, #10384b 10%, rgba(20, 75, 86, .92) 100%); }
.hn-ai .side-menu__mark { filter: none; }
.hn-ai .slot-button, .hn-ai .btn {
  color: var(--gs-text);
  border-color: var(--gs-line-strong);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .025em;
}
.hn-ai :is(.btn, .slot-button):hover {
  color: var(--gs-text);
  background: var(--ai-card-hover);
  border-color: var(--gs-red-glow);
}
.hn-ai .btn--primary, .hn-ai .slot-button--primary {
  background: var(--ai-primary);
  color: white;
  border-color: var(--ai-primary);
  box-shadow: none;
}
.hn-ai :is(.btn--primary, .slot-button--primary):is(:hover, :focus-visible) {
  color: white;
  background: var(--ai-primary-hover);
  border-color: var(--ai-primary-hover);
}
.hn-ai .eyebrow { color: var(--gs-text-muted); }
.hn-ai .eyebrow::before { background: var(--gs-red-glow); box-shadow: none; }
.hn-ai .alche-hero__title--cn {
  max-width: none;
  width: max-content;
  max-inline-size: 100%;
  color: white;
  font-family: var(--font-body);
  font-size: var(--ai-hero-type);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.hn-ai .alche-hero__title--cn .u { color: #a4dfd7; text-shadow: none; }
.hn-ai .alche-hero__title--cn + .alche-hero__sub {
  color: #d8e7e6;
  font-size: var(--ai-lead-type);
  line-height: 1.82;
  max-width: 35em;
}
.hn-ai .alche-hero__scroll, .hn-ai .alche-hud { color: #bbd0d1; }
.hn-ai .works-head h2, .hn-ai .works-outro__signal { color: #b5cfd0; }
.hn-ai .works-head .measure, .hn-ai .work-item__cn { color: var(--gs-text-soft); }
.hn-ai .works-list[data-works-static="true"] .work-item__visual {
  overflow: hidden;
  background: var(--ai-inset);
  filter: none;
}
.hn-ai .works-list[data-works-static="true"] .work-item__image {
  display: block;
  object-fit: cover;
  filter: none;
}
.hn-ai .works-list[data-works-static="true"] .work-item__visual::before,
.hn-ai .works-list[data-works-static="true"] .work-item__visual::after { opacity: 0; }

/* Light reading surfaces appear at the change from introduction to evidence. */
.hn-ai :is(.home-clarity,
  .section[aria-labelledby$="-pain"], .section[aria-labelledby="cards-title"],
  .section[aria-labelledby="faq-title"], .section[aria-labelledby="proc-title"],
  .section[aria-labelledby="pick-title"], .section[aria-labelledby="path-title"],
  .section[aria-labelledby="diag-title"], .section[aria-labelledby="about-values"],
  .section[aria-labelledby="form-title"]) {
  --gs-text: #10384b;
  --gs-text-soft: #294c59;
  --gs-text-muted: #4d6268;
  --gs-red-glow: #186b69;
  --gs-line: #c5d3d1;
  --gs-line-strong: #839c9e;
  --gs-red-line: #187d78;
  --ai-card: #ffffff;
  --ai-card-hover: #f5f9f6;
  --ai-inset: #e9efeb;
  --ai-tag: #eef3f0;
  --ai-focus: #1268b3;
  color: var(--gs-text);
  background: #f4f5ef;
  border-color: #c5d3d1;
}
.hn-ai .home-clarity::before { display: none; }
.hn-ai .home-clarity :is(.home-clarity__head h2, .home-clarity__modules h3, .home-clarity__routes h3,
  .home-clarity__proof h3, .home-proof-grid b, .home-clarity__pipeline b) {
  color: var(--gs-text);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.hn-ai .home-clarity__head h2 { font-size: clamp(1.85rem, 3.7vw, 3.15rem); }
.hn-ai .home-clarity :is(p, .home-route-list i) { color: var(--gs-text-muted); }
.hn-ai .home-clarity :is(.home-clarity__pipeline > div, .home-clarity__modules > article,
  .home-clarity__routes, .home-clarity__proof, .home-proof-grid > article) {
  background: var(--ai-card);
  border-color: var(--gs-line);
}
.hn-ai .home-clarity :is(.home-clarity__modules, .home-clarity__pipeline, .home-proof-grid, .home-clarity__lower) {
  border-color: var(--gs-line);
  background: var(--gs-line);
}
.hn-ai .home-clarity :is(.home-clarity__modules a, .home-route-list a) { color: #125d96; }
.hn-ai .home-clarity :is(.home-clarity__modules a, .home-route-list a):hover { color: #105752; }
.hn-ai .home-clarity :is(.home-clarity__modules article, .home-clarity__routes, .home-clarity__proof)::before {
  background: #187d78;
  width: 2.3rem;
  opacity: 1;
}

.hn-ai .page-hero::before {
  background:
    radial-gradient(ellipse at 83% 44%, rgba(24, 125, 120, .16), transparent 47%),
    linear-gradient(105deg, rgba(16, 56, 75, .83), rgba(16, 56, 75, .21) 70%);
}
.hn-ai .page-hero::after { opacity: .05; filter: none; }
.hn-ai .page-hero h1 {
  font-family: var(--font-body);
  font-size: var(--ai-title-type);
  font-weight: 630;
  line-height: 1.22;
  letter-spacing: -.032em;
  color: #fff;
  word-break: normal;
}
.hn-ai .page-hero__sub, .hn-ai .section-head__sub { color: var(--gs-text-soft); }
.hn-ai .page-hero__sub { max-inline-size: 43em; line-height: 1.85; }
.hn-ai .page-hero--center { min-height: min(41rem, 78svh); }
.hn-ai .page-hero--center .page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
}
.hn-ai .page-hero--center .page-hero__foot { max-inline-size: 60em; margin-top: 1.5rem; }
.hn-ai .hero-panel {
  background: linear-gradient(150deg, #24576a, #153f52 76%);
  border: 1px solid #49707b;
  box-shadow: 0 14px 36px rgba(var(--ai-shade-rgb), .23);
}
.hn-ai .hero-panel__bar { color: #dbeae7; }
.hn-ai .page-hero .ct-card {
  --gs-text: #10384b;
  --gs-text-muted: #435e67;
  background: #f4f5ef;
  color: var(--gs-text);
  border-color: #bacdcb;
  box-shadow: none;
}
.hn-ai .page-hero .ct-card h3 { color: #10384b; }
.hn-ai .page-hero .ct-card p { color: #435e67; }
.hn-ai .page-hero .ct-card .btn-text, .hn-ai .page-hero .ct-card p a { color: #105c93; }
.hn-ai .page-hero .ct-card :is(.btn-text, p a):hover { color: #105b58; }
.hn-ai .page-hero .ct-card__ico { color: #186b69; background: #e0ece7; border-color: #c1d2ce; }
.hn-ai .page-hero .ct-card:hover .ct-card__ico { color: #fff; background: #187d78; }
.hn-ai :is(.fac-pain .card__num, .fac-scene__mix li b, .emp-chat .ai b, .cob-role b.h,
  .ret-meter__head small, .ret-loss, .ret-fly__act, .ret-fly__value, .ret-node__role) {
  color: var(--gs-red-glow);
}
.hn-ai .hero-panel__dots i { box-shadow: none; }
.hn-ai .section--gray { border-block: 1px solid var(--gs-line); }
.hn-ai .section--gray:not([aria-labelledby="faq-title"]):not([aria-labelledby="proc-title"]):not([aria-labelledby="diag-title"]):not([aria-labelledby="about-values"]):not([aria-labelledby="form-title"]) {
  background-color: rgba(27, 74, 89, .8);
}
.hn-ai .section-head__title {
  color: var(--gs-text);
  font-family: var(--font-body);
  line-height: 1.28;
  letter-spacing: -.025em;
  text-wrap: pretty;
  word-break: normal;
}
.hn-ai .section :is(.card, .step, .role-card, .price-card, .logo-cat, .promise, .metric-card, .ct-card, .vs-card, .acc__item) {
  background: var(--ai-card);
  color: var(--gs-text);
  border-color: var(--gs-line);
  box-shadow: none;
}
.hn-ai .section :is(.card, .step, .role-card, .price-card, .logo-cat, .promise, .metric-card, .ct-card, .vs-card):hover {
  background: var(--ai-card-hover);
  border-color: var(--gs-red-line);
}
.hn-ai .section :is(.card__title, .price-card__price, .step h4, .acc__btn, .vs-card h3, .role-card h3) { color: var(--gs-text); }
.hn-ai .section :is(.step p, .price-card__tag, .price-card li, .acc__inner, .card__desc, .footnote) { color: var(--gs-text-soft); }
.hn-ai .section :is(.pill, .step__tags span, .chain__node) {
  background: var(--ai-tag);
  color: var(--gs-text-soft);
  border-color: var(--gs-line);
}
.hn-ai .section :is(.chain__arrow, .step__num, .node-num, .card__ico) { color: var(--gs-red-glow); }
.hn-ai .section :is(.step__num, .node-num, .card__ico, .role-card__icon) { background: var(--ai-tag); box-shadow: none; }
.hn-ai .section .price-card__list li::before, .hn-ai .section .eyebrow::before { box-shadow: none; }
.hn-ai .section .price-card--hot { border-color: #187d78; border-top: 3px solid #187d78; }
.hn-ai .pr-flow { background: var(--ai-card); border-color: var(--gs-line); color: var(--gs-text); }
.hn-ai .price-card__price, .hn-ai .price-card__name { letter-spacing: -.015em; }
.hn-ai .price-card .hot-tag { color: #fff; background: #187d78; }
.hn-ai .section :is(.acc, .table-wrap) {
  color: var(--gs-text);
  border-color: var(--gs-line);
  background: var(--ai-inset);
  box-shadow: none;
}
.hn-ai .section :is(table, th, td) { color: var(--gs-text); }
.hn-ai .section .price-card__name { color: var(--gs-red-glow); }
.hn-ai .section .price-card h3 { color: var(--gs-text); }

/* Outcome headings share a row per group; a zoomed or narrow card gets fewer neighbours. */
.outcome-layout { container: outcomes / inline-size; }
.hn-ai .section .outcome-layout > .outcome-grid {
  grid-template-columns: repeat(var(--outcome-columns, 1), minmax(0, 1fr));
}
.outcome-grid > *,
.outcome-intro { min-inline-size: 0; }
.hn-ai .section .outcome-grid > .step { padding: clamp(1rem, 1.65vw, 1.5rem); }
.hn-ai .section :is(.steps, .pricing-grid).outcome-grid > :is(.step, .price-card) { border: 0; }
.hn-ai .section .pricing-grid.outcome-grid > .price-card--hot {
  box-shadow: inset 0 2px 0 var(--gs-red-line);
}
.hn-ai .outcome-grid > :is(.step, .card, .price-card):hover { transform: none; }
.outcome-intro :is(h3, h4) { text-wrap: balance; }
.outcome-intro { overflow-wrap: anywhere; }
.price-card > .outcome-intro {
  display: grid;
  align-content: start;
  gap: .65rem;
}
.outcome-intro .price-card__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-block-size: 1.8rem;
  gap: .3rem .6rem;
}
.outcome-grid .price-card > .btn {
  margin-block-start: 1.1rem;
  align-self: end;
}
@supports (grid-template-rows: subgrid) {
  .outcome-grid > * { grid-row: span 2; }
  .outcome-grid > .price-card { grid-row: span 3; }
  .outcome-grid > :has(> .step__out) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    align-items: start;
    row-gap: 0;
  }
}
@container outcomes (min-width: 34rem) {
  .outcome-grid { --outcome-columns: 2; }
}
@container outcomes (min-width: 51rem) {
  .outcome-grid:is([data-columns="3"], [data-columns="6"]) { --outcome-columns: 3; }
}
@container outcomes (34rem <= width < 62rem) {
  .outcome-grid[data-columns="5"] { --outcome-columns: 1; }
  .outcome-grid[data-columns="5"] > .step {
    display: grid;
    grid-row: auto;
    grid-template: auto / minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 4cqi, 3rem);
  }
  .outcome-grid[data-columns="5"] .step__out { margin-block-start: 0; }
}
@container outcomes (min-width: 62rem) {
  .outcome-grid[data-columns="4"] { --outcome-columns: 4; }
  .outcome-grid[data-columns="5"] { --outcome-columns: 5; }
}
@container outcomes (min-width: 75rem) {
  .outcome-grid[data-columns="6"] { --outcome-columns: 6; }
}
.hn-ai .section .step__tags span:hover { color: var(--gs-text); }
.hn-ai #form .hero-panel { background: var(--ai-card); border-color: var(--gs-line); color: var(--gs-text); box-shadow: none; }
.hn-ai #form :is(.hero-panel__bar, label, h2, h3, h4, .check span) { color: var(--gs-text); }
.hn-ai #form :is(.input, .select, .textarea, .check) { color: var(--gs-text); background: #fff; border-color: var(--gs-line-strong); }
.hn-ai #form :is(.input, .textarea)::placeholder { color: #5e7278; }
.hn-ai #form .select option { color: #10384b; background: #fff; }
.hn-ai #form .check:has(input:checked) { border-color: #187d78; background: #edf5ef; }
.hn-ai #form :is(.input, .select, .textarea):focus { border-color: #1268b3; }
.hn-ai .site-footer {
  color: #fff;
  background: #10384b;
  border-color: #446a76;
}
.hn-ai .site-footer::before { opacity: .18; }
.hn-ai .site-footer :is(.footer-brand__desc, .footer-link, .footer-contact-button__text) { color: #d5e4e3; }
.hn-ai .site-footer :is(.footer-brand__meta, .footer-bottom, .footer-legal) { color: #bbd0d1; }
.hn-ai .site-footer :is(a, button):hover { color: #b8e8df; }
.hn-ai .footer-contact-button { background: #16465b; }

/* Industry workflow diagrams keep their instrument palette on light reading surfaces. */
.hn-ai .section .explorer {
  --gs-text: #fff;
  --gs-red-glow: #a4dfd7;
  background: #16465b;
  color: #fff;
}
.hn-ai .explorer__cell p, .hn-ai .explorer__note, .hn-ai .explorer__tab small { color: #d6e6e3; }
.hn-ai .explorer__pills span { background: #214f60; color: #e6efeb; }
.hn-ai .explorer__pills--hot span { background: #255c64; color: #fff; }
.hn-ai .explorer__tab:focus-visible { outline: 3px solid #a4dfd7; outline-offset: -4px; }

@media (min-width: 901px) {
  body.hn-ai[data-motion-profile="full"] .home-clarity__pipeline > div {
    opacity: 1;
    filter: none;
    transform: translateY(calc((1 - var(--clarity-item, 0)) * .45rem));
  }
  body.hn-ai[data-motion-profile="full"] .home-clarity__pipeline > div::after {
    background: #187d78;
    box-shadow: none;
  }
}

/* Native links are replaced as soon as the animated gallery is initialized. */
body.hn-ai:has(.works-fallback) :is(.works-intro, .works-outro, .section-bridge) { display: none; }
body.hn-ai:has(.works-fallback) :is(.statement-section, .outro-cta, .cobuild-promo) {
  min-height: auto;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
body.hn-ai:has(.works-fallback) :is(.statement, .outro-cta__screen, .cobuild-promo__stage, .cobuild-promo__inner) {
  position: relative;
  inset: auto;
  min-height: auto;
  opacity: 1;
  --line-reveal: 1;
  --statement-lift: 0px;
  --mv-progress: 1;
  --stellla-progress: 1;
}
body.hn-ai:has(.works-fallback) :is(.statement__lines > span, .statement__en, .outro-cta__content) {
  opacity: 1;
  transform: none;
  filter: none;
}
body.hn-ai:has(.works-fallback) .outro-cta__content { padding-block: 1rem; }
.hn-ai #works:has(.works-fallback) {
  min-height: auto;
  padding-block: clamp(4rem, 7vw, 6rem);
  background: #16465b;
}
.hn-ai #works:has(.works-fallback)::before, .hn-ai #works:has(.works-fallback)::after { display: none; }
.hn-ai #works:has(.works-fallback) .works-sticky,
.hn-ai #works:has(.works-fallback) .works-head {
  position: relative;
  inset: auto;
  min-height: auto;
  opacity: 1;
  transform: none;
}
.hn-ai #works:has(.works-fallback) .works-head { margin-bottom: 1.75rem; }
.hn-ai #works:has(.works-fallback) .works-head h2 { color: #fff; }
.hn-ai .works-fallback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.hn-ai .works-fallback a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: .6rem .35rem;
  color: #e3efec;
  border-bottom: 1px solid #577b83;
}
.hn-ai .works-fallback a::after { content: "→"; color: #a4dfd7; }
.hn-ai .works-fallback a:hover { color: white; border-color: #a4dfd7; }
@media (max-width: 560px) {
  .hn-ai .works-fallback { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hn-ai .works-list[data-works-static="true"] .work-item__visual {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .hn-ai .works-list[data-works-static="true"] .work-item__image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
  }
}
@media (max-width: 760px) {
  .hn-ai .alche-hero__title--cn { line-height: 1.16; }
  .hn-ai .alche-hero__title--cn + .alche-hero__sub { max-width: 30em; line-height: 1.75; }
  .hn-ai .page-hero h1 { line-height: 1.25; }
  .hn-ai .page-hero--center { min-height: auto; }
}

/* Typography and gutters follow the reading width across the AI site. */
.hn-ai .page-hero__sub, .hn-ai .section-head__sub,
.hn-ai .home-clarity__head p { font-size: var(--ai-lead-type); }
.hn-ai .section-head__title { font-size: var(--ai-section-type); }
.hn-ai .home-clarity__head h2,
body.hn-ai[data-motion-profile="full"] .home-clarity__head h2 {
  font-size: clamp(1.55rem, calc(1.05rem + 2.5vw), 3.25rem);
  line-height: 1.25;
}
.hn-ai :is(.page-hero__inner, .alche-hero__inner) {
  width: min(calc(100% - 2 * var(--ai-gutter)), 82.5rem);
}
.hn-ai :is(.page-hero__inner > *, .alche-hero__inner > *, .section .grid > *, .section .steps > *,
  .pricing-grid > *, .ct-form-grid > *, .explorer__panes, .table-wrap, .section .container) { min-width: 0; }
.hn-ai .section :is(.card h3, .step h4, .role-card h3, .ct-card h3) {
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.hn-ai :is(.page-hero__cta, .alche-hero__actions, .sub-cta__actions, .cta-band__actions) {
  gap: .65rem .8rem;
  align-items: center;
}
.hn-ai :is(.btn, .slot-button) {
  max-inline-size: 100%;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.hn-ai .table-wrap { max-inline-size: 100%; overscroll-behavior-x: contain; }
.hn-ai .table-wrap table { min-inline-size: min(100%, 40rem); }
.hn-ai .page-hero :is(h1, h2), .hn-ai .section :is(h2, h3, p) { overflow-wrap: break-word; }
.hn-ai #gl-canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}
body.hn-ai:is([data-motion-profile="lite"], [data-motion-profile="reduced"]) #gl-canvas {
  opacity: 0;
  visibility: hidden;
}
body.hn-ai:is([data-motion-profile="lite"], [data-motion-profile="reduced"]) .layout__gl::before { opacity: 1; }
body.hn-ai[data-page="home"]:is([data-motion-profile="lite"], [data-motion-profile="reduced"]) .layout__gl::after {
  opacity: .24;
  transform: translate(0, -46%);
}
@media (min-width: 601px) and (max-width: 950px) {
  .hn-ai .section :is(.pricing-grid, .steps, .metric-grid, .logo-cats) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 950px) {
  .hn-ai .page-hero__inner { grid-template-columns: minmax(0, 1fr); gap: clamp(1.55rem, 4.2vw, 2.5rem); }
  .hn-ai .page-hero__inner > [data-reveal] { max-inline-size: 100%; }
  .hn-ai .page-hero { padding-block: calc(var(--header-h) + clamp(1.8rem, 4vw, 3rem)) clamp(2.5rem, 6vw, 4rem); min-height: auto; }
  .hn-ai .hero-panel { min-height: 0; }
  .hn-ai .page-hero--center .page-hero__inner { gap: 0; }
  .hn-ai .home-clarity > .container, .hn-ai .section > .container {
    width: min(calc(100% - 2 * var(--ai-gutter)), var(--container));
  }
  .hn-ai .page-hero__sub { max-inline-size: 37em; }
}
@media (max-width: 600px) {
  body.hn-ai {
    --header-h: 4rem;
    --section-y: clamp(3.1rem, 9vw, 4.5rem);
  }
  .hn-ai .site-header__inner { width: calc(100% - 2 * var(--ai-gutter)); gap: .6rem; }
  .hn-ai .site-header .brand { min-height: 2.75rem; }
  .hn-ai .site-header img.brand__mark { width: clamp(6.5rem, calc(3.8rem + 13.5vw), 8rem); }
  .hn-ai .page-hero__sub, .hn-ai .section-head__sub { margin-top: .85rem; line-height: 1.72; }
  .hn-ai .page-hero__tags { margin-top: 1.1rem; }
  .hn-ai :is(.alche-hero__actions, .page-hero__cta) { margin-top: 1.2rem; }
  .hn-ai .alche-hero { min-height: auto; padding: calc(var(--header-h) + 2.1rem) 0 2.6rem; }
  .hn-ai .alche-hero__inner { min-height: 0; gap: 0; }
  .hn-ai .page-hero__foot { overflow-wrap: anywhere; }
  .hn-ai .btn--lg, .hn-ai .alche-hero__actions .slot-button { min-height: 44px; padding-inline: .9rem; }
  .hn-ai .slot-button__inner { height: 1.25em; line-height: 1.25; }
  .hn-ai .page-hero__cta > *, .hn-ai .alche-hero__actions > * { flex: 0 1 auto; }
  .hn-ai .section .card, .hn-ai .section .step, .hn-ai .price-card { padding: clamp(1rem, 4.2vw, 1.5rem); }
  .hn-ai .table-wrap table { min-inline-size: max-content; }
  .hn-ai .table-wrap :is(th, td) { max-width: 16rem; white-space: normal; }
}
@media (max-width: 760px) {
  body.hn-ai[data-page="home"]:is(:not([data-motion-profile]), [data-gl-context="lost"], [data-gl-context="unavailable"], [data-motion-profile="lite"], [data-motion-profile="reduced"]) .layout__gl::after {
    right: var(--ai-gutter);
    top: 24%;
    width: min(36vw, 145px);
    opacity: .23;
  }
}
@media (max-width: 480px) {
  .hn-ai[data-page="home"] .layout__gl::after { display: none; }
  .hn-ai .alche-hero__title--cn { inline-size: 100%; }
  .hn-ai .alche-hero__title--cn > .u {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .3em;
  }
  body.hn-ai:is(:not([data-motion-profile]), [data-gl-context="lost"], [data-gl-context="unavailable"], [data-motion-profile="lite"], [data-motion-profile="reduced"]) .alche-hero__title--cn > .u::after {
    content: "";
    flex: 0 1 min(15vw, 1em);
    aspect-ratio: 119 / 106;
    background: url("/honlan-vi/mark-white.svg") center / contain no-repeat;
    opacity: .24;
  }
}
@media (max-width: 360px) and (max-height: 650px) and (orientation: portrait) {
  .hn-ai .alche-hero { padding-block-start: calc(var(--header-h) + 1.25rem); }
  .hn-ai .alche-hero__actions { margin-top: .85rem; }
}
@media (max-height: 650px) and (min-width: 601px) {
  body.hn-ai { --header-h: 3.75rem; }
  .hn-ai .site-header .brand { min-height: 2.75rem; }
  .hn-ai .site-header img.brand__mark { width: 7.2rem; }
  .hn-ai .alche-hero { padding-block: calc(var(--header-h) + 1.2rem) 1.75rem; min-height: 100svh; }
  .hn-ai .alche-hero__inner { min-height: auto; }
  .hn-ai .alche-hero__title--cn { font-size: min(var(--ai-hero-type), clamp(2.25rem, 9.2svh, 4.25rem)); }
  .hn-ai .alche-hero__title--cn + .alche-hero__sub { margin-top: .8rem; }
  .hn-ai .alche-hero__actions { margin-top: 1rem; }
  .hn-ai .page-hero { min-height: auto; padding-block: calc(var(--header-h) + 1.75rem) 2.25rem; }
}
@media (max-height: 520px) and (orientation: landscape) {
  body.hn-ai { --header-h: 3.5rem; }
  .hn-ai .alche-hero { min-height: 100svh; padding-block: calc(var(--header-h) + 1rem) 1.25rem; }
  .hn-ai .alche-hero__title--cn { font-size: clamp(1.9rem, 7.2svh, 2.35rem); }
  .hn-ai .page-hero { padding-block: calc(var(--header-h) + 1.35rem) 2rem; }
  .hn-ai .alche-hero__inner { min-height: 0; }
  .hn-ai .alche-hero__title--cn + .alche-hero__sub { margin-top: .65rem; }
}
@media (orientation: landscape) and (min-width: 500px) and (max-width: 950px) and (max-height: 500px) {
  .hn-ai .alche-hero { padding-block-start: calc(var(--header-h) + .5rem); }
  .hn-ai .alche-hero__title--cn {
    grid-template-columns: max-content max-content;
    gap: 0 .18em;
  }
  .hn-ai .alche-hero__title--cn > :first-child { grid-column: 1 / -1; }
  .hn-ai .alche-hero__title--cn + .alche-hero__sub { margin-top: .4rem; }
  .hn-ai .alche-hero__actions { margin-top: .85rem; }
}

/* The drawer scrolls independently of a locked page in short windows. */
@media (max-width: 950px), (max-height: 700px) {
  .hn-ai .side-menu__panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    min-height: 0;
    max-height: 100%;
    padding: max(.6rem, env(safe-area-inset-top)) max(var(--ai-gutter), env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom)) max(var(--ai-gutter), env(safe-area-inset-left));
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .hn-ai .side-menu__close {
    position: sticky;
    inset: auto;
    top: 0;
    margin-left: auto;
    width: 44px;
    height: 44px;
    flex: none;
    z-index: 3;
    color: white;
    background-color: #16465b;
  }
  .hn-ai .side-menu__nav, .hn-ai .side-menu__social, .hn-ai .side-menu__meta {
    position: relative;
    inset: auto;
    flex: none;
    width: 100%;
    max-width: 42rem;
    margin-inline: auto;
    transform: none;
  }
  .hn-ai .side-menu__nav a { font-size: clamp(.96rem, calc(.84rem + .55vw), 1.18rem); line-height: 1.3; min-height: 44px; }
  .hn-ai .side-menu__social {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .2rem 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--gs-line);
  }
  .hn-ai .side-menu__social a { display: inline-flex; align-items: center; min-height: 44px; }
  .hn-ai .side-menu__meta { flex-wrap: wrap; overflow: visible; }
  .hn-ai .side-menu__visual { opacity: .2; }
  .hn-ai .side-menu__eyebrow { display: none; }
}

/* Workflow panel labels and examples share a column when space is limited. */
.hn-ai .page-hero, .hn-ai .hero-panel, .hn-ai .hero-panel .chain--v {
  grid-template-columns: minmax(0, 1fr);
}
.hn-ai .hero-panel .chain--v { min-inline-size: 0; }
.hn-ai .hero-panel:has(.chain--v) {
  container-type: inline-size;
}
.hn-ai .hero-panel .chain--v :is(.chain__node, .chain__cloud, .chain__node b) {
  min-width: 0;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
@container (max-width: 34rem) {
  .hn-ai .hero-panel .chain--v .chain__node:has(.chain__cloud) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: .4rem;
  }
  .hn-ai .hero-panel .chain--v .chain__cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .45rem;
  }
}
.hn-ai .section:has(.vs-grid, .grid.cols-2 > [data-reveal="right"]) { overflow-x: clip; }
.hn-ai .vs-card .chain--v {
  grid-template-columns: minmax(0, 1fr);
}
.hn-ai .vs-card .chain--v .chain__node {
  min-inline-size: 0;
  flex-wrap: wrap;
  gap: .2rem .45rem;
}
.hn-ai .vs-card .chain--v .chain__node :is(b, small) {
  margin-inline: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (min-width: 761px) and (max-width: 950px) {
  .hn-ai[data-page="home"] .layout__gl::after {
    right: clamp(1.5rem, 6vw, 3.75rem);
    top: clamp(7rem, 26svh, 18rem);
    width: clamp(10rem, 27vw, 15rem);
  }
}
@media (min-width: 601px) and (max-width: 950px) and (orientation: portrait) {
  .hn-ai .alche-hero { min-height: clamp(34rem, 66svh, 46rem); }
  .hn-ai .alche-hero__inner {
    min-height: 0;
    align-content: center;
    align-items: center;
  }
}
/* Keep the assistant and its welcome actions together above the bottom safe area. */
@media (max-width: 600px) and (max-height: 740px), (orientation: landscape) and (max-height: 500px) {
  .hn-ai .intro-prompt {
    left: max(8px, env(safe-area-inset-left));
    right: max(72px, calc(env(safe-area-inset-right) + 64px));
    bottom: max(.75rem, env(safe-area-inset-bottom));
    width: auto;
    max-width: 240px;
    min-height: 0;
    margin-left: auto;
    padding-inline-start: 8px;
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .hn-ai .intro-prompt-portrait { display: none; }
  .hn-ai .intro-prompt-copy { padding-block: 5px; gap: 2px; }
  .hn-ai .intro-prompt-copy:has(.intro-audio-notice) > strong { display: none; }
  .hn-ai .intro-prompt-actions { gap: 4px; }
  .hn-ai .intro-prompt .intro-prompt-close { margin-inline-end: 0; }
  .hn-ai .guide-launcher.is-prompted {
    right: max(6px, env(safe-area-inset-right));
    bottom: max(.75rem, env(safe-area-inset-bottom));
    width: 58px;
    min-width: 58px;
    height: 58px;
    padding: 6px;
  }
  .hn-ai .guide-launcher.is-prompted > :is(.launcher-copy, svg) { display: none; }
  .hn-ai .guide-launcher.is-prompted .guide-avatar { width: 44px; height: 44px; }
}
@media (max-width: 480px), (max-width: 600px) and (max-height: 740px), (orientation: landscape) and (max-height: 500px) {
  .hn-ai:has(.intro-stage) .guide-launcher { visibility: hidden; }
  .hn-ai .intro-stage {
    left: auto;
    right: max(6px, env(safe-area-inset-right));
    bottom: max(.75rem, env(safe-area-inset-bottom));
    width: min(300px, calc(100% - 16px));
    height: 76px;
  }
  .hn-ai .intro-stage .intro-character {
    right: 0;
    bottom: 0;
    width: 56px;
    height: 76px;
  }
  .hn-ai .intro-stage .intro-speech-bubble {
    inset: auto 64px 0 0;
    width: auto;
    min-height: 0;
  }
  .hn-ai .intro-stage .intro-caption-button {
    min-height: 56px;
    padding: 6px 45px 6px 10px;
    align-content: center;
    gap: 2px;
  }
  .hn-ai .intro-stage .intro-caption-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
  }
  .hn-ai .intro-stage .intro-caption-button small { line-height: 1.3; }
  .hn-ai .intro-stage .intro-stage-close { width: 44px; height: 44px; inset: 1px 1px auto auto; }
}
