/* Berri home, plans and 404. Prefix hm-. Builds on /b2.css tokens; never edits them.
   Motion states, keyframes and scene playback live in /home-motion.css (home page only). */

/* Reveal: visible without JS. Only pages where home.mjs ran (html.js) start hidden. */
html:not(.js) .b2-rise { opacity: 1; transform: none; }
[id] { scroll-margin-top: calc(var(--b2-bar) + 16px); }

/* Header sits under any notch; mobile menu is a sheet under the bar. */
.b2-nav { padding-top: env(safe-area-inset-top); height: calc(var(--b2-bar) + env(safe-area-inset-top)); }
.b2-nav__in { padding-inline: max(var(--b2-gutter), env(safe-area-inset-left)) max(var(--b2-gutter), env(safe-area-inset-right)); }
.b2-nav__menu { width: 44px; height: 44px; margin-right: -6px; }
.b2-nav__links a { position: relative; }
.b2-nav__links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1.5px; border-radius: 2px;
  background: var(--b2-berry); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--b2-ease);
}
.b2-nav__links a:hover, .b2-nav__links a[aria-current="page"] { background: transparent; }
.b2-nav__links a:hover::after, .b2-nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hm-menu {
  position: fixed; inset: calc(var(--b2-bar) + env(safe-area-inset-top)) 0 auto 0;
  width: 100%; max-width: none; margin: 0; border: 0; border-bottom: 1px solid var(--b2-line);
  background: var(--b2-bg); color: var(--b2-ink); box-shadow: var(--b2-shadow-2);
  padding: 8px max(var(--b2-gutter), env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(var(--b2-gutter), env(safe-area-inset-left));
  max-height: calc(100dvh - var(--b2-bar) - env(safe-area-inset-top)); overflow-y: auto;
}
.hm-menu::backdrop { background: rgb(27 26 31 / .18); }
.hm-menu nav { display: grid; }
.hm-menu a {
  display: flex; align-items: center; min-height: 52px; text-decoration: none;
  font: 600 1.125rem/1 var(--b2-display); letter-spacing: -.01em; border-bottom: 1px solid var(--b2-line);
}
.hm-menu a:last-child { border-bottom: 0; color: var(--b2-ink-2); }
@media (min-width: 861px) { .hm-menu { display: none; } }

/* Language chooser: globe button + native popover (header), button rows in the menu sheet and footer */
.hm-langbtn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--b2-line); background: var(--b2-surface); color: var(--b2-ink); cursor: pointer;
  font: 500 .9rem/1 var(--b2-body); transition: border-color .2s, transform .2s var(--b2-ease);
}
.hm-langbtn:hover { border-color: var(--b2-line-strong); }
.hm-langbtn:active { transform: scale(.97); }
.hm-langbtn svg { width: 17px; height: 17px; color: var(--b2-berry); }
.hm-lang {
  position: fixed; inset: auto; top: calc(var(--b2-bar) + env(safe-area-inset-top) - 4px);
  right: max(var(--b2-gutter), calc((100vw - var(--b2-max)) / 2 + var(--b2-gutter)));
  margin: 0; width: 248px; padding: 8px; border: 1px solid var(--b2-line); border-radius: 18px;
  background: var(--b2-surface); color: var(--b2-ink); box-shadow: 0 1px 0 #fff inset, var(--b2-shadow-2);
}
.hm-lang__h { margin: 6px 10px 6px; font-size: .75rem; color: var(--b2-ink-3); }
.hm-lang__opt, .hm-menu__lang button, .hm-footlang button {
  position: relative; display: grid; gap: 2px; justify-items: start; width: 100%; min-height: 48px; padding: 8px 40px 8px 12px;
  border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; color: var(--b2-ink);
}
.hm-lang__opt:hover { background: var(--b2-bg-soft); }
.hm-lang__name { font: 600 1rem/1.2 var(--b2-display); }
.hm-lang__sub { font-size: .78rem; color: var(--b2-ink-2); }
.hm-lang__opt::after, .hm-menu__lang button::after, .hm-footlang button::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 11px; margin-top: -7px;
  border: solid var(--b2-berry); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.4); opacity: 0;
  transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.hm-lang__opt[aria-checked="true"], .hm-menu__lang [aria-pressed="true"], .hm-footlang [aria-pressed="true"] { background: var(--b2-berry-soft); }
.hm-lang__opt[aria-checked="true"]::after, .hm-menu__lang [aria-pressed="true"]::after, .hm-footlang [aria-pressed="true"]::after { opacity: 1; transform: rotate(45deg) scale(1); }
.hm-menu__lang, .hm-footlang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hm-menu__lang { padding-top: 14px; }
.hm-menu__lang > svg, .hm-footlang > svg { width: 18px; height: 18px; color: var(--b2-berry); margin-right: 2px; }
.hm-menu__lang button, .hm-footlang button { width: auto; min-height: 44px; padding: 0 30px 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--b2-line); border-radius: 999px; }
.hm-menu__lang button::after, .hm-footlang button::after { right: 13px; width: 5px; height: 9px; margin-top: -6px; }
.hm-menu__lang .hm-lang__sub, .hm-footlang .hm-lang__sub { display: none; }
.hm-menu__lang .hm-lang__name, .hm-footlang .hm-lang__name { font: 500 .9rem/1 var(--b2-body); }
.hm-footlang { margin-top: 18px; }
@media (max-width: 860px) { .hm-langbtn { display: none; } .hm-lang { display: none; } }

/* Micro-interactions shared by every page that uses this file */
.b2-btn:active, .hm-send:active { transform: scale(.97); }
.b2-chip { transition: border-color .2s, color .2s, transform .3s var(--b2-ease); }
.b2-chip:hover { transform: translateY(-2px); }

/* Shared type and links */
.hm-h { font: 700 clamp(1.75rem, 3.4vw, 2.5rem)/1.1 var(--b2-display); letter-spacing: -.028em; margin: 0; text-wrap: balance; }
.hm-h--s { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.hm-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--b2-line-strong);
  text-underline-offset: 5px; transition: text-decoration-color .2s;
}
.hm-link::after { content: "\2192"; transition: transform .3s var(--b2-ease); }
.hm-link:hover { text-decoration-color: currentColor; }
.hm-link:hover::after { transform: translateX(3px); }
.hm-sec { padding-block: clamp(72px, 11vw, 136px); }

/* Highlighted word: a hand drawn underline under one word of a headline */
.hm-mark { position: relative; white-space: nowrap; }
.hm-mark__line { position: absolute; left: -2%; width: 104%; bottom: -.16em; height: .3em; max-width: none; overflow: visible; pointer-events: none; }
.hm-mark__line path { fill: none; stroke: var(--b2-berry); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hm-mark--gold .hm-mark__line path { stroke: var(--b2-mango); }

/* ---------- Hero: sunrise wash ---------- */
.hm-hero { position: relative; isolation: isolate; padding-top: clamp(56px, 10vw, 120px); overflow: clip; }
.hm-hero__in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.hm-hero__title { max-width: 16ch; }
.hm-hero__lede { margin-top: 22px; max-width: 34em; }
.hm-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent 96%); mask-image: linear-gradient(#000 55%, transparent 96%); }
.hm-sky i { position: absolute; display: block; border-radius: 50%; }
.hm-sky__a { width: 780px; height: 780px; left: -260px; top: -320px; background: radial-gradient(closest-side, rgb(246 193 211 / .85), rgb(246 193 211 / 0)); }
.hm-sky__b { width: 720px; height: 720px; right: -240px; top: -280px; background: radial-gradient(closest-side, rgb(251 217 194 / .95), rgb(251 217 194 / 0)); }
.hm-sky__c { width: 640px; height: 640px; left: 50%; margin-left: -320px; top: 120px; background: radial-gradient(closest-side, rgb(246 226 168 / .7), rgb(246 226 168 / 0)); }
.hm-sky__d { width: 520px; height: 520px; right: 4%; top: 420px; background: radial-gradient(closest-side, rgb(207 214 247 / .75), rgb(207 214 247 / 0)); }
.hm-sky__dots {
  inset: 0; border-radius: 0; background-image: radial-gradient(rgb(206 36 96 / .16) 1.1px, transparent 1.6px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 55% 45% at 50% 28%, #000, transparent); mask-image: radial-gradient(ellipse 55% 45% at 50% 28%, #000, transparent);
}

.hm-askwrap { position: relative; isolation: isolate; width: 100%; max-width: 720px; margin-top: clamp(36px, 5vw, 52px); }
.hm-ask {
  position: relative; width: 100%; text-align: left;
  background: var(--b2-surface); border: 1px solid var(--b2-line); border-radius: var(--b2-radius-l);
  box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, var(--b2-shadow-2); padding: 18px 14px 12px 22px;
  transition: border-color .2s;
}
.hm-askwrap::before {
  content: ""; position: absolute; z-index: -1; inset: 18% -6% -22%; border-radius: 50%;
  background: radial-gradient(closest-side at 30% 50%, rgb(246 193 211 / .9), transparent), radial-gradient(closest-side at 72% 50%, rgb(246 226 168 / .9), transparent);
  filter: blur(28px); opacity: .85;
}
.hm-ask::after {
  content: ""; position: absolute; top: -1px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--b2-light-berry), var(--b2-light-gold), transparent);
}
.hm-ask:focus-within { border-color: var(--b2-line-strong); }
.hm-ask__input {
  display: block; width: 100%; min-height: 56px; max-height: 200px; resize: none; overflow-y: auto;
  border: 0; outline: 0; background: transparent; padding: 4px 8px 0 0;
  font-size: 1.0625rem; line-height: 1.55; field-sizing: content;
}
.hm-ask__input::placeholder { color: var(--b2-ink-3); }
.hm-ask:has(.hm-ask__input:focus-visible) { outline: 2px solid var(--b2-focus); outline-offset: 3px; }
.hm-ask__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.hm-ask__hint { font-size: .8125rem; color: var(--b2-ink-3); }
.hm-send {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto;
  border: 0; border-radius: 999px; background: var(--b2-berry); color: #fff; cursor: pointer;
  transition: transform .2s var(--b2-ease);
}
.hm-send:hover { transform: translateY(-1px); }
.hm-send svg { width: 20px; height: 20px; }
.hm-chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; }
.hm-chips .b2-chip { min-height: 40px; background: rgb(255 255 255 / .8); }
@media (max-width: 520px) { .hm-ask__hint { display: none; } }

/* Hero stage: the big app window, lit from below, with floating fragments on wide screens */
.hm-stage { position: relative; z-index: 1; max-width: 1040px; margin: clamp(56px, 8vw, 96px) auto 0; }
.hm-stage::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 4% -4%; border-radius: 40px;
  background: radial-gradient(closest-side at 25% 60%, rgb(246 193 211 / .9), transparent), radial-gradient(closest-side at 75% 55%, rgb(207 214 247 / .9), transparent), radial-gradient(closest-side at 50% 90%, rgb(246 226 168 / .9), transparent);
  filter: blur(40px);
}
.hm-float { position: absolute; z-index: 2; display: none; }
@media (min-width: 1180px) {
  .hm-float { display: block; }
  .hm-float--rem { right: -150px; top: 24px; }
  .hm-float--src { left: -140px; top: 330px; }
  .hm-float--voice { right: 60px; bottom: -24px; }
}
.hm-float--rem { display: none; }
@media (min-width: 1180px) { .hm-float--rem { display: flex; } }
.hm-float--rem {
  align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px;
  background: var(--b2-surface); border: 1px solid var(--b2-line); box-shadow: var(--b2-shadow-2); font-size: .875rem;
}
.hm-float--rem > span:last-child { display: grid; gap: 1px; }
.hm-float--rem > span:last-child span { color: var(--b2-ink-3); font-size: .8125rem; }
.hm-float .hm-src { box-shadow: var(--b2-shadow-2); font-size: .8125rem; padding: 6px 12px 6px 6px; }
.hm-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--b2-ink); color: var(--b2-bg); font-size: .8125rem; font-weight: 500; box-shadow: var(--b2-shadow-2);
}
.hm-pill .hm-voice__play { background: var(--b2-berry); }

/* ---------- The app window (shared by every scene) ---------- */
.hm-sc { position: relative; text-align: left; }
.hm-app {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--b2-surface); border: 1px solid var(--b2-line); border-radius: 20px;
  box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 1px 2px rgb(27 26 31 / .05), 0 12px 32px -8px rgb(27 26 31 / .12), 0 40px 80px -24px rgb(120 40 70 / .18);
  font-size: .875rem; line-height: 1.5; color: var(--b2-ink); user-select: none;
}
.hm-app::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--b2-light-berry), var(--b2-light-gold), var(--b2-light-blue), transparent);
}
.hm-app svg { width: 16px; height: 16px; flex: none; }
.hm-app--full { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.hm-app__side { border-right: 1px solid var(--b2-line); padding: 18px 14px; background: #FCFAF6; }
.hm-app__brand { display: flex; align-items: center; gap: 8px; font: 700 1rem/1 var(--b2-display); padding: 2px 6px 18px; }
.hm-app__brand img { border-radius: 6px; }
.hm-app__new { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--b2-line); background: var(--b2-surface); font-weight: 600; }
.hm-plus { position: relative; width: 14px; height: 14px; flex: none; }
.hm-plus::before, .hm-plus::after { content: ""; position: absolute; left: 6px; top: 0; width: 2px; height: 14px; border-radius: 2px; background: currentColor; }
.hm-plus::after { transform: rotate(90deg); }
.hm-app__label { margin: 22px 6px 6px; font-size: .75rem; color: var(--b2-ink-3); }
.hm-app__threads { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hm-app__threads li { padding: 7px 10px; border-radius: 8px; color: var(--b2-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-app__threads .is-on { background: var(--b2-berry-soft); color: var(--b2-ink); }
.hm-app__chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; flex: 1; }
.hm-app__top { display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-bottom: 1px solid var(--b2-line); }
.hm-app__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-app__thread { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 22px clamp(16px, 3vw, 32px) 10px; overflow: hidden; }
.hm-sc--hero .hm-app__thread { padding-inline: clamp(16px, 5vw, 56px); }

.hm-m p { margin: 0; }
.hm-m--you { align-self: flex-end; max-width: 82%; display: grid; justify-items: end; gap: 8px; }
.hm-m--you .hm-m__t { background: var(--b2-bg-soft); padding: 9px 14px; border-radius: 16px 16px 4px 16px; }
.hm-m__tr { font-size: .8125rem; color: var(--b2-ink-2); text-align: right; max-width: 30em; }
.hm-m--b { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.hm-m__av { border-radius: 6px; margin-top: 1px; }
.hm-m__c { position: relative; display: grid; gap: 10px; justify-items: start; min-width: 0; }
.hm-m__c > p { max-width: 36em; }

.hm-think { display: inline-flex; align-items: center; gap: 4px; height: 0; overflow: visible; opacity: 0; color: var(--b2-ink-2); font-size: .8125rem; translate: 0 10px; }
.hm-think i { width: 6px; height: 6px; border-radius: 50%; background: var(--b2-berry); }
.hm-think i:nth-child(2) { background: var(--b2-mango); }
.hm-think i:nth-child(3) { background: var(--b2-blueberry); margin-right: 6px; }

.hm-file {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 10px;
  border: 1px solid var(--b2-line); background: var(--b2-surface); font-size: .8125rem; color: var(--b2-ink-2);
}
.hm-badge { display: grid; place-items: center; height: 22px; padding: 0 6px; border-radius: 6px; font: 600 .625rem/1 var(--b2-mono); letter-spacing: .02em; }
.hm-badge--pdf { background: #FCE3EA; color: #A81B4E; }
.hm-badge--img { background: #E3E6FA; color: #3B3F9E; }

.hm-tbl { width: 100%; max-width: 520px; border-collapse: separate; border-spacing: 0; font-size: .8125rem; font-variant-numeric: tabular-nums; border: 1px solid var(--b2-line); border-radius: 12px; overflow: hidden; }
.hm-tbl th { text-align: left; font-weight: 600; color: var(--b2-ink-2); background: #FCFAF6; padding: 7px 12px; border-bottom: 1px solid var(--b2-line); }
.hm-tbl td { padding: 8px 12px; border-bottom: 1px solid var(--b2-line); white-space: nowrap; }
.hm-tbl tr:last-child td { border-bottom: 0; }
.hm-tick { display: inline-block; vertical-align: -2px; margin-right: 8px; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--b2-leaf); background: var(--b2-leaf); position: relative; }
.hm-tick::after { content: ""; position: absolute; left: 3.5px; top: 0.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hm-tick--off { border-color: var(--b2-line-strong); background: transparent; }
.hm-tick--off::after { display: none; }

.hm-list { margin: 0; padding: 0 0 0 4px; list-style: none; display: grid; gap: 6px; }
.hm-list li { position: relative; padding-left: 18px; }
.hm-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--b2-berry); }
.hm-list li:nth-child(2)::before { background: var(--b2-mango); }
.hm-list li:nth-child(3)::before { background: var(--b2-blueberry); }
.hm-list li:nth-child(4)::before { background: var(--b2-leaf); }
.hm-list--src li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hm-list--src .hm-src { font-size: .72rem; padding: 2px 8px 2px 2px; }

.hm-src {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px;
  border: 1px solid var(--b2-line); background: var(--b2-surface); font-size: .78rem; color: var(--b2-ink-2); white-space: nowrap;
}
.hm-src__n { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; font: 600 .68rem/1 var(--b2-mono); }
.hm-src--berry { background: #FDF0F4; border-color: #F6CFDC; } .hm-src--berry .hm-src__n { background: #F6C1D3; color: #7A1238; }
.hm-src--blue { background: #F2F4FD; border-color: #D5DBF6; } .hm-src--blue .hm-src__n { background: #CFD6F7; color: #2D3080; }
.hm-src--gold { background: #FDF7E6; border-color: #F0DFAE; } .hm-src--gold .hm-src__n { background: #F6E2A8; color: #6B4A06; }
.hm-src--mint { background: #EEF8F3; border-color: #CBE6D8; } .hm-src--mint .hm-src__n { background: #CDEBDD; color: #1D5A43; }
.hm-srcs { display: flex; flex-wrap: wrap; gap: 6px; }

.hm-rem {
  align-self: flex-start; margin-left: 34px; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
  border-radius: 14px; border: 1px solid #F0DFAE; background: linear-gradient(180deg, #FFFCF2, #FDF6E2); box-shadow: var(--b2-shadow-1);
}
.hm-rem > span:nth-child(2) { display: grid; gap: 1px; }
.hm-rem > span:nth-child(2) span { color: var(--b2-ink-2); font-size: .78rem; }
.hm-rem__ok { margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: #E3F3EB; color: #1D5A43; font-size: .72rem; font-weight: 600; }
.hm-bell { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--b2-light-gold); }
.hm-bell::before { content: ""; width: 14px; height: 13px; border-radius: 7px 7px 2px 2px; background: #B07A0B; margin-top: -3px; }
.hm-bell::after { content: ""; position: absolute; bottom: 8px; left: 50%; width: 6px; height: 3px; margin-left: -3px; border-radius: 0 0 3px 3px; background: #B07A0B; }

.hm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 34em; }
.hm-checks li { position: relative; padding-left: 26px; }
.hm-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; }
.hm-checks li::after { content: ""; position: absolute; }
.hm-checks .is-ok::before { background: var(--b2-leaf); }
.hm-checks .is-ok::after { left: 6px; top: calc(.2em + 3px); width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hm-checks .is-bad::before { background: #F6C1D3; }
.hm-checks .is-bad::after { left: 7px; top: calc(.2em + 3px); width: 2px; height: 10px; border-radius: 1px; background: #A81B4E; box-shadow: 0 0 0 0 transparent; }

.hm-draft { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--b2-line); background: #FCFAF6; max-width: 34em; }
.hm-draft__k { font-size: .72rem; font-weight: 600; color: var(--b2-ink-2); }
.hm-draft__copy { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--b2-line-strong); font-size: .75rem; font-weight: 600; background: var(--b2-surface); }

/* A paper bill, drawn in CSS */
.hm-bill {
  position: relative; overflow: hidden; width: 230px; padding: 14px 16px 12px; border-radius: 6px;
  background: #FFFDF6; border: 1px solid #EADFC6; box-shadow: 0 1px 2px rgb(27 26 31 / .06), 0 10px 24px -10px rgb(27 26 31 / .25);
  font: 500 .72rem/1.5 var(--b2-mono); color: #3A352C; rotate: -1.5deg; text-align: left;
}
.hm-bill p { margin: 0; }
.hm-bill__h { font: 700 .82rem/1.3 var(--b2-display); color: var(--b2-ink); }
.hm-bill__d { color: #7A7264; margin-bottom: 6px !important; }
.hm-bill ul { list-style: none; margin: 0; padding: 6px 0; border-block: 1px dashed #D9CDB0; display: grid; gap: 2px; }
.hm-bill li, .hm-bill__tot { display: flex; justify-content: space-between; gap: 10px; padding: 0 3px; border-radius: 3px; }
.hm-bill__tot { padding-top: 6px; font-weight: 600; color: var(--b2-ink); }
.hm-bill--inv { width: min(300px, 100%); rotate: 0deg; }
.hm-bill__bad { background: #FBE0E9; }
.hm-bill__beam { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(180deg, transparent 75%, rgb(246 193 211 / .35) 94%, rgb(206 36 96 / .75) 100%); transform: translateY(-100%); }

/* Voice note */
.hm-voice {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: var(--b2-bg-soft); font: 500 .78rem/1 var(--b2-mono); color: var(--b2-ink-2);
}
.hm-voice__play { position: relative; width: 26px; height: 26px; border-radius: 999px; background: var(--b2-ink); flex: none; }
.hm-voice__play::after { content: ""; position: absolute; left: 10px; top: 8px; border: 5px solid transparent; border-left: 7px solid #fff; border-right: 0; }
.hm-wave { position: relative; display: inline-flex; align-items: center; gap: 2px; height: 20px; }
.hm-wave i { display: block; flex: none; width: 3px; height: 40%; border-radius: 2px; background: var(--b2-line-strong); }
.hm-wave i:nth-child(3n) { height: 85%; }
.hm-wave i:nth-child(3n+1) { height: 55%; }
.hm-wave i:nth-child(4n) { height: 100%; }
.hm-wave i:nth-child(5n) { height: 30%; }
.hm-wave__on { position: absolute; inset: 0; overflow: hidden; }
.hm-wave__on > span { display: inline-flex; align-items: center; gap: 2px; height: 100%; }
.hm-wave__on i { background: var(--b2-berry); }

/* Composer: the same look as the app, mode picker included */
.hm-cmp { margin: 8px 14px 14px; padding: 10px 10px 8px 14px; border: 1px solid var(--b2-line-strong); border-radius: 16px; background: var(--b2-surface); box-shadow: var(--b2-shadow-1); }
.hm-cmp__f { display: flex; flex-direction: column; justify-content: flex-end; height: 3em; overflow: hidden; color: var(--b2-ink-3); padding-bottom: 6px; }
.hm-cmp__bar { display: flex; align-items: center; gap: 8px; }
.hm-cmp__plus { position: relative; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--b2-line); }
.hm-cmp__plus::before, .hm-cmp__plus::after { content: ""; position: absolute; left: 13px; top: 8px; width: 2px; height: 12px; border-radius: 2px; background: var(--b2-ink-2); }
.hm-cmp__plus::after { transform: rotate(90deg); }
.hm-cmp__mode { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 5px 24px 5px 10px; border-radius: 8px; font-weight: 500; color: var(--b2-ink-2); white-space: nowrap; position: relative; }
.hm-cmp__mode::after { content: ""; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid var(--b2-ink-3); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.hm-dot { width: 9px; height: 9px; border-radius: 50%; }
.hm-dot--straw { background: var(--b2-strawberry); }
.hm-cmp__send { position: relative; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--b2-berry); }
.hm-cmp__send::before { content: ""; position: absolute; left: 15px; top: 9px; width: 2px; height: 14px; border-radius: 2px; background: #fff; }
.hm-cmp__send::after { content: ""; position: absolute; left: 11px; top: 9px; width: 7px; height: 7px; border: solid #fff; border-width: 2px 0 0 2px; transform: rotate(45deg); }

/* Canvas pane beside the chat */
.hm-app--split .hm-cmp__plus { display: none; }
.hm-app--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.hm-canvas { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--b2-line); background: #FFFDF8; }
.hm-canvas__top { display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-bottom: 1px solid var(--b2-line); }
.hm-canvas__k { padding: 3px 9px; border-radius: 999px; background: var(--b2-light-blue); color: #2D3080; font-size: .72rem; font-weight: 600; }
.hm-canvas__n { font-weight: 600; }
.hm-canvas__doc { padding: 22px clamp(18px, 3vw, 32px); display: grid; gap: 12px; align-content: start; font-size: .9rem; line-height: 1.6; }
.hm-canvas__doc p { margin: 0; }
@media (max-width: 640px) {
  .hm-app--split { grid-template-columns: minmax(0, 1fr); }
  .hm-canvas { border-left: 0; border-top: 1px solid var(--b2-line); order: -1; }
  .hm-app--split .hm-app__chat .hm-app__top { display: none; }
}

/* Phone (WhatsApp) scene */
.hm-sc--phone { display: grid; place-items: center; }
.hm-phone { width: 100%; max-width: 330px; border-radius: 40px; padding: 10px; background: var(--b2-ink); box-shadow: 0 30px 60px -20px rgb(27 26 31 / .45), 0 0 0 1px rgb(255 255 255 / .08) inset; user-select: none; font-size: .875rem; line-height: 1.45; }
.hm-phone__top { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; background: var(--b2-surface); border-radius: 30px 30px 0 0; border-bottom: 1px solid var(--b2-line); }
.hm-phone__top img { border-radius: 999px; }
.hm-phone__top > span { display: grid; gap: 1px; }
.hm-phone__top > span span { font-size: .75rem; color: var(--b2-leaf); }
.hm-phone__chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; background: #F1ECE2; min-height: 380px; }
.hm-phone__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: #F1ECE2; border-radius: 0 0 30px 30px; }
.hm-phone__bar .hm-cmp__f { flex: 1; height: auto; min-height: 38px; justify-content: center; padding: 6px 14px; border-radius: 999px; background: var(--b2-surface); white-space: nowrap; overflow: hidden; }
.hm-phone__bar .hm-cmp__send { background: var(--b2-leaf); }
.hm-m--wa { max-width: 92%; }
.hm-m--wa .hm-bill { width: 200px; }
.hm-voice--wa { background: #DDF1E5; }
.hm-voice--wa .hm-voice__play { background: var(--b2-leaf); }
.hm-voice--wa .hm-wave__on i { background: var(--b2-leaf); }
.hm-wa { margin: 0; max-width: 86%; padding: 8px 12px; border-radius: 14px; font-size: .84rem; box-shadow: 0 1px 1px rgb(27 26 31 / .08); }
.hm-wa--b { align-self: flex-start; background: var(--b2-surface); border-radius: 4px 14px 14px 14px; }
.hm-wa--y { align-self: flex-end; background: #DDF1E5; border-radius: 14px 4px 14px 14px; }

@media (max-width: 720px) {
  .hm-app--full { grid-template-columns: minmax(0, 1fr); }
  .hm-tbl td { white-space: normal; }
  .hm-app__side { display: none; }
  .hm-app { font-size: .8125rem; border-radius: 18px; }
  .hm-m--you { max-width: 92%; }
  .hm-tbl th, .hm-tbl td { padding-inline: 8px; }
  .hm-rem { margin-left: 0; flex-wrap: wrap; }
  .hm-rem__ok { margin-left: 46px; }
  .hm-cmp__mode { padding-left: 6px; }
}

/* ---------- Story: cream, pinned stage on wide screens ---------- */
.hm-story { padding-block: clamp(80px, 11vw, 140px) clamp(40px, 6vw, 80px); }
.hm-story__title { max-width: 18ch; }
.hm-story__grid { margin-top: clamp(40px, 6vw, 72px); }
.hm-story__stage, .hm-story__rail { display: none; }
.hm-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 48px); }
.hm-step__copy { max-width: 30rem; }
.hm-step__copy .b2-lede { margin-top: 16px; }
@media (max-width: 960px) {
  .hm-step { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 44px; }
}

.hm-story.is-pinned .hm-story__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(40px, 5vw, 72px); }
.hm-story.is-pinned .hm-story__stage {
  display: block; position: sticky; height: 620px; align-self: start;
  top: calc(var(--b2-bar) + max(20px, (100dvh - var(--b2-bar) - 620px) / 2));
}
.hm-story__glow { position: absolute; inset: 10% 6% 0; border-radius: 40px; filter: blur(44px); background: radial-gradient(closest-side at 30% 40%, rgb(246 193 211 / .8), transparent), radial-gradient(closest-side at 70% 70%, rgb(246 226 168 / .8), transparent); }
.hm-story.is-pinned .hm-story__stage > .hm-sc { position: absolute; inset: 0; }
.hm-story.is-pinned .hm-story__stage .hm-app { height: 100%; }
.hm-story.is-pinned .hm-story__steps { position: relative; padding-left: 36px; }
.hm-story.is-pinned .hm-story__rail { display: block; position: absolute; left: 0; top: 18dvh; bottom: 18dvh; width: 2px; border-radius: 2px; background: var(--b2-line); overflow: hidden; }
.hm-story__rail i { display: block; height: 100%; background: linear-gradient(var(--b2-berry), var(--b2-mango)); transform-origin: top; transform: scaleY(var(--hm-p, .25)); transition: transform .6s var(--b2-ease); }
.hm-story.is-pinned .hm-step { display: flex; min-height: 78dvh; padding: 0; }
.hm-story.is-pinned .hm-step__scene { display: none; }

/* ---------- Work showcase: peach to cream wash ---------- */
.hm-work { padding-block: clamp(80px, 11vw, 140px); background: linear-gradient(180deg, var(--b2-bg), #FDEEE3 22%, #FCEFE6 72%, var(--b2-bg)); }
.hm-work__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px, 5vw, 56px); align-items: start; }
.hm-tabs { display: grid; gap: 6px; }
.hm-tab {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; cursor: pointer;
  font: 600 1rem/1.25 var(--b2-display); letter-spacing: -.01em; color: var(--b2-ink-2);
  transition: background-color .25s, color .25s, transform .25s var(--b2-ease);
}
.hm-tab:hover { color: var(--b2-ink); background: rgb(255 255 255 / .5); }
.hm-tab:active { transform: scale(.98); }
.hm-tab[aria-selected="true"] { color: var(--b2-ink); background: var(--b2-surface); border-color: var(--b2-line); box-shadow: var(--b2-shadow-1); }
.hm-tab__k { width: 10px; height: 10px; border-radius: 50%; }
.hm-tab__k--berry { background: var(--b2-strawberry); } .hm-tab__k--gold { background: var(--b2-mango); }
.hm-tab__k--blue { background: var(--b2-blueberry); } .hm-tab__k--mint { background: var(--b2-leaf); }
.hm-tab__k--peach { background: #E0773A; }
.hm-tab__bar { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px; border-radius: 2px; overflow: hidden; background: transparent; }
.hm-tab[aria-selected="true"] .hm-tab__bar { background: var(--b2-bg-soft); }
.hm-tab__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--b2-berry), var(--b2-mango)); transform: scaleX(0); transform-origin: left; }
.hm-panels { min-width: 0; }
.hm-panel { border-radius: 22px; }
.hm-panel + .hm-panel { margin-top: 24px; }
.hm-work.is-tabbed .hm-panel + .hm-panel { margin-top: 0; }
@media (min-width: 861px) { .hm-work.is-tabbed .hm-panels .hm-app { height: 560px; } }
@media (max-width: 860px) {
  .hm-work__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tab { padding: 0 12px; gap: 8px; font-size: .9rem; min-height: 54px; }
  .hm-tab__bar { left: 12px; right: 12px; }
}

/* ---------- Modes: four fruit cards ---------- */
.hm-modes { padding-block: clamp(72px, 10vw, 120px); }
.hm-modes__list { list-style: none; margin: clamp(32px, 5vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-mode {
  position: relative; isolation: isolate; display: grid; gap: 6px; align-content: start; padding: 22px 22px 26px; border-radius: 22px;
  border: 1px solid rgb(27 26 31 / .06); overflow: hidden; transition: transform .45s var(--b2-ease);
}
.hm-mode::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(120% 70% at 15% 0%, rgb(255 255 255 / .85), transparent 55%); }
.hm-mode::after { content: ""; position: absolute; z-index: -2; inset: 0; border-radius: inherit; box-shadow: 0 24px 48px -18px rgb(27 26 31 / .25); opacity: 0; transition: opacity .45s var(--b2-ease); }
.hm-mode:hover { transform: translateY(-6px); }
.hm-mode:hover::after { opacity: 1; }
.hm-mode--blue { background: #ECEDFB; } .hm-mode--straw { background: #FCE8EF; }
.hm-mode--mango { background: #FCF0D6; } .hm-mode--code { background: #ECEAF0; }
.hm-mode b { margin-top: 18px; font: 650 1.2rem/1.25 var(--b2-display); letter-spacing: -.012em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hm-mode > span:last-child { color: var(--b2-ink-2); }
.hm-soon { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; background: rgb(255 255 255 / .75); border: 1px solid rgb(27 26 31 / .1); font: 600 .72rem/1 var(--b2-body); color: var(--b2-ink-2); letter-spacing: 0; }
@media (max-width: 960px) { .hm-modes__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .hm-mode { padding: 18px 16px 20px; } .hm-mode b { font-size: 1.05rem; } }

.hm-fruit { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgb(255 255 255 / .7); box-shadow: 0 1px 0 #fff inset, 0 6px 16px -8px rgb(27 26 31 / .3); }
.hm-fruit i { position: relative; display: block; }
.hm-fruit--blueberry i { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #9A9CF0, var(--b2-blueberry) 55%, #2C2E7A); }
.hm-fruit--blueberry i::before { content: ""; position: absolute; left: 50%; top: 4px; width: 12px; height: 12px; margin-left: -6px; background: #24265F; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 35%); }
.hm-fruit--blueberry i::after { content: ""; position: absolute; left: 9px; top: 10px; width: 6px; height: 4px; border-radius: 50%; background: rgb(255 255 255 / .55); }
.hm-fruit--strawberry i { width: 36px; height: 40px; margin-top: 6px; border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; transform: rotate(180deg);
  background: radial-gradient(circle, rgb(255 236 200 / .95) 1px, transparent 1.6px) 0 0 / 8px 8px, radial-gradient(circle at 60% 70%, #F2668F, var(--b2-strawberry) 55%, #9A1544); }
.hm-fruit--strawberry i::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 22px; height: 12px; margin-left: -11px; background: var(--b2-leaf); clip-path: polygon(0 100%, 15% 0, 32% 70%, 50% 0, 68% 70%, 85% 0, 100% 100%); }
.hm-fruit--mango i { width: 40px; height: 32px; border-radius: 60% 45% 55% 45% / 60% 50% 50% 45%; transform: rotate(-24deg); background: radial-gradient(circle at 70% 70%, #EE7B3B, transparent 45%), radial-gradient(circle at 35% 30%, #FBD777, var(--b2-mango) 65%, #C77812); }
.hm-fruit--mango i::after { content: ""; position: absolute; right: -4px; top: -6px; width: 16px; height: 8px; border-radius: 0 100% 0 100%; background: var(--b2-leaf); transform: rotate(-10deg); }
.hm-fruit--code { background: var(--b2-ink); }
.hm-fruit--code i { width: 34px; height: 20px; }
.hm-fruit--code i::before, .hm-fruit--code i::after { content: ""; position: absolute; top: 4px; width: 10px; height: 10px; border: solid #F6E2A8; border-width: 0 0 2.5px 2.5px; }
.hm-fruit--code i::before { left: 2px; transform: rotate(45deg); }
.hm-fruit--code i::after { right: 2px; transform: rotate(-135deg); }

/* ---------- Business: pale blue light ---------- */
.hm-biz { padding-block: clamp(80px, 11vw, 140px); background: linear-gradient(180deg, var(--b2-bg), #EEF1FC 18%, #EDF0FB 82%, var(--b2-bg)); }
.hm-biz__title { max-width: 18ch; }
.hm-biz__help { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 10px; }
.hm-biz__p { margin: 0; color: var(--b2-ink-2); font-size: 1.0625rem; max-width: 32em; }
.hm-helpers { list-style: none; margin-block: 24px 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-helpers li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--b2-surface); border: 1px solid var(--b2-line); font-size: .875rem; }
.hm-marq { display: grid; gap: 12px; margin-block: 28px 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hm-marq__row { overflow: hidden; }
.hm-marq__track { display: flex; width: max-content; }
.hm-marq__chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 12px; margin-right: 10px; border-radius: 999px;
  background: var(--b2-surface); border: 1px solid #DADFF4; font: 500 .9rem/1 var(--b2-body); white-space: nowrap; box-shadow: 0 1px 2px rgb(45 48 128 / .06);
  transition: transform .3s var(--b2-ease);
}
.hm-marq__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--b2-strawberry); }
.hm-marq__chip--1::before { background: var(--b2-blueberry); }
.hm-marq__chip--2::before { background: var(--b2-mango); }
.hm-marq__chip--3::before { background: var(--b2-leaf); }
.hm-marq__chip:hover { transform: translateY(-2px); }
.hm-desk {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: rgb(255 255 255 / .75); border: 1px solid #DADFF4; box-shadow: 0 1px 0 #fff inset, var(--b2-shadow-1);
}
.hm-desk__copy { display: grid; gap: 14px; justify-items: start; }
.hm-desk__art { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: #F1ECE2; }
@media (max-width: 760px) { .hm-desk { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Plans teaser ---------- */
.hm-plans-band { padding-block: clamp(40px, 6vw, 64px); }
.hm-plans-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px; border-block: 1px solid var(--b2-line); }
.hm-plans-band__h { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

/* ---------- Privacy: pale mint light ---------- */
.hm-trust { padding-block: clamp(80px, 11vw, 140px); background: linear-gradient(180deg, var(--b2-bg), #E8F5EE 20%, #E7F4ED 80%, var(--b2-bg)); }
.hm-trust__list { list-style: none; margin: clamp(32px, 5vw, 48px) 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
.hm-trust__list li {
  display: grid; gap: 18px; align-content: start; padding: 26px 24px 28px; border-radius: 22px; background: rgb(255 255 255 / .72); border: 1px solid #CFE6DA;
  font: 600 clamp(1.1rem, 1.7vw, 1.25rem)/1.35 var(--b2-display); letter-spacing: -.012em; text-wrap: balance;
}
.hm-ico { width: 56px; height: 56px; }
.hm-ico--pin { color: var(--b2-strawberry); }
.hm-ico--lock { color: var(--b2-blueberry); }
.hm-ico--erase { color: var(--b2-leaf); }
.hm-ico__dot { fill: currentColor; stroke: none; }
.hm-ico__ring { opacity: .35; }
@media (max-width: 760px) { .hm-trust__list { grid-template-columns: minmax(0, 1fr); } .hm-trust__list li { grid-template-columns: 56px 1fr; align-items: center; } }

/* ---------- Closing band: sunrise again ---------- */
.hm-cta { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(96px, 14vw, 180px); text-align: center; }
.hm-sky--end { -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.hm-sky--end .hm-sky__a { top: -80px; left: 0; }
.hm-sky--end .hm-sky__b { top: 40px; right: -120px; }
.hm-sky--end .hm-sky__c { top: 160px; }
.hm-sky--end .hm-sky__d { top: -60px; right: 30%; }
.hm-cta__in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 32px; }
.hm-cta__h { margin: 0; font: 700 clamp(2.2rem, 6vw, 4.25rem)/1.04 var(--b2-display); letter-spacing: -.035em; text-wrap: balance; max-width: 14ch; }
.hm-cta__btn { min-height: 56px; padding-inline: 32px; font-size: 1.05rem; box-shadow: 0 12px 30px -10px rgb(206 36 96 / .55); }

.hm-foot { margin-top: 0; }
.hm-foot__brand p { margin: 14px 0 0; }

/* Plans */
.hm-page { padding-top: clamp(56px, 9vw, 112px); }
.hm-page .b2-lede { margin-top: 20px; }
.hm-plans { list-style: none; margin: clamp(48px, 7vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-plan { padding: 32px 28px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; justify-items: start; }
.hm-plan__price { margin: 0; font: 700 clamp(1.75rem, 3vw, 2.25rem)/1.1 var(--b2-display); letter-spacing: -.025em; }
.hm-plan__price small { font: 500 1rem/1 var(--b2-body); color: var(--b2-ink-2); letter-spacing: 0; }
.hm-plan p { margin: 0; color: var(--b2-ink-2); }
.hm-plan .b2-btn { margin-top: 12px; }
.hm-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; margin-left: 8px; vertical-align: middle; border-radius: 999px; background: var(--b2-bg-soft); border: 1px solid var(--b2-line); font: 600 .75rem/1 var(--b2-body); color: var(--b2-ink-2); }
@media (max-width: 860px) { .hm-plans { grid-template-columns: 1fr; } }

/* 404 */
.hm-404 { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 32px var(--b2-gutter) calc(32px + env(safe-area-inset-bottom)); }
.hm-404__in { display: grid; justify-items: center; gap: 24px; }
.hm-404__in img { width: 56px; height: 56px; border-radius: 14px; }

@media (prefers-reduced-motion: reduce) {
  .hm-send, .hm-link::after, .b2-chip, .hm-tab, .hm-mode, .b2-nav__links a::after { transition: none; }
  .hm-send:hover, .hm-link:hover::after, .b2-chip:hover, .hm-mode:hover, .b2-btn:active { transform: none; }
}

/* ---------- Shared chrome (owner: tools/sync-chrome.mjs copies the markup from index.html) ---------- */
.b2-nav__links { align-items: center; }
.hm-navprod { display: inline-flex; align-items: center; gap: 4px; }
.hm-caret { width: 12px; height: 12px; transition: transform .3s var(--b2-ease); }
.hm-navprod[aria-expanded="true"] .hm-caret { transform: rotate(180deg); }
@media (max-width: 1080px) and (min-width: 861px) {
  .b2-nav__in { gap: 12px; }
  .b2-nav__links { margin-left: 4px; gap: 0; }
  .b2-nav__links a { padding-inline: 9px; }
  .hm-langbtn [data-lang-now] { display: none; }
  .hm-langbtn { padding: 0; width: 40px; justify-content: center; }
}
/* Product mega menu: a soft card that drops under the Product link (desktop only). */
.hm-mega {
  position: fixed; inset: auto; top: calc(var(--b2-bar) + env(safe-area-inset-top) - 6px); left: var(--hm-mega-x, 50%);
  margin: 0; width: min(560px, calc(100vw - 2 * var(--b2-gutter))); padding: 10px; border: 1px solid var(--b2-line); border-radius: 20px;
  background: var(--b2-surface); color: var(--b2-ink); box-shadow: 0 1px 0 #fff inset, var(--b2-shadow-2);
  transition: opacity .25s var(--b2-ease), transform .35s var(--b2-ease), display .35s allow-discrete, overlay .35s allow-discrete;
}
.hm-mega__in { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.hm-mega a { display: grid; align-content: start; gap: 3px; padding: 12px 14px; border-radius: 14px; text-decoration: none; transition: background-color .2s, opacity .3s var(--b2-ease), transform .35s var(--b2-ease); }
.hm-mega a:hover, .hm-mega a:focus-visible { background: var(--b2-bg-soft); }
.hm-mega a[aria-current="page"] { background: var(--b2-berry-soft); }
.hm-mega b { font: 650 1rem/1.2 var(--b2-display); letter-spacing: -.01em; }
.hm-mega span { font-size: .85rem; line-height: 1.35; color: var(--b2-ink-2); }
.hm-mega a:first-child { grid-column: 1 / -1; }
@starting-style {
  .hm-mega:popover-open { opacity: 0; transform: translateY(-10px) scale(.98); }
  .hm-mega:popover-open a { opacity: 0; transform: translateY(-6px); }
}
.hm-mega a:nth-child(2), .hm-mega a:nth-child(3) { transition-delay: 30ms; }
.hm-mega a:nth-child(4), .hm-mega a:nth-child(5) { transition-delay: 60ms; }
.hm-mega a:nth-child(6), .hm-mega a:nth-child(7) { transition-delay: 90ms; }
@media (max-width: 860px) { .hm-mega { display: none; } }

/* Phone menu sheet: grouped. */
.hm-menu__h { margin: 18px 0 2px; font: 600 .75rem/1 var(--b2-body); letter-spacing: .04em; text-transform: uppercase; color: var(--b2-ink-3); }
.hm-menu__nav a { min-height: 48px; font-size: 1.05rem; }
.hm-menu__nav a:last-child { color: var(--b2-ink); }
.hm-menu__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 18px; }
.hm-menu__acts a { border-bottom: 0; justify-content: center; font: 600 .95rem/1 var(--b2-body); min-height: 48px; }
.hm-menu__acts a:last-child { color: var(--b2-bg); }

/* Footer: five link columns, then the language row and the company line. */
.hm-foot__grid { display: grid; grid-template-columns: 1.1fr repeat(5, 1fr); gap: 32px 24px; }
.hm-foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--b2-line); }
.hm-foot__base .hm-footlang { margin-top: 0; }
.hm-foot__co { margin: 0; display: grid; gap: 2px; text-align: right; font-size: .875rem; color: var(--b2-ink-2); }
.hm-foot__co span:first-child { color: var(--b2-ink); font-weight: 600; }
@media (max-width: 1000px) { .hm-foot__grid { grid-template-columns: repeat(3, 1fr); } .hm-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .hm-foot__grid { grid-template-columns: 1fr 1fr; } .hm-foot__co { text-align: left; } }

/* No JS module, no stranded content: if home.mjs never marks the page ready, reveals finish anyway. */
@keyframes b2-reveal { to { opacity: 1; transform: none; } }
.js:not(.js-ready) .b2-rise, .js:not(.js-ready) .hm-scrollin { animation: b2-reveal .7s var(--b2-ease) 1.2s forwards; }
@media (prefers-reduced-motion: reduce) { .hm-mega, .hm-mega a, .hm-caret { transition: none; } }
.hm-badge--xls { background: #DDF1E6; color: #1D5A43; }
.hm-badge--txt { background: #F6EBD3; color: #6B4E12; }
.hm-shot .hm-mega, .hm-shot .hm-mega a, .hm-shot .hm-caret, .hm-shot .hm-menu, .hm-shot .hm-menu a { transition: none !important; }
.hm-foot .b2-brand { color: var(--b2-ink); font-size: 1.25rem; }
