/* Altier public site. Tokens and fonts from altier-ai/brand (assets/brand/).
   Layout and components below; docs/visual-system.md explains the visual rules. */

@import './brand/tokens/tokens.css';

:root {
  /* Shorter names used across site markup and legacy content. */
  --paper: var(--color-paper);
  --paper-2: var(--color-paper-2);
  --ink: var(--color-ink);
  --ink-2: var(--color-ink-2);
  --rule: var(--color-hairline);
  --rule-ink: color-mix(in srgb, var(--color-paper) 22%, transparent);
  --accent: var(--color-accent);
  --display: var(--font-display);
  --body: var(--font-text);
  --mono: var(--font-code);
  --wrap: var(--layout-max-width);
  --gut: clamp(var(--layout-gutter-min), 5vw, var(--layout-gutter-max));
  --col-gap: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --text: var(--ink);
  --muted: var(--ink-2);
  --line: var(--rule);
  --midnight: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
p { margin: 0; }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 560; margin: 0; color: inherit; text-wrap: balance; }
/* Large type is pulled left by its side bearing so the stem lines up with the text below. */
h1 { font-size: clamp(2.9rem, 8.4vw, 7.6rem); line-height: 0.92; letter-spacing: -0.052em; margin-left: -0.055em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 0.98; letter-spacing: -0.042em; margin-left: -0.045em; }
h3 { font-size: 1.32rem; line-height: 1.15; letter-spacing: -0.018em; font-weight: 600; }
.lede { font-size: clamp(1.12rem, 1.45vw, 1.32rem); line-height: 1.45; color: var(--ink-2); max-width: 30em; margin-top: clamp(20px, 2.4vw, 32px); text-wrap: pretty; }
.lede b { color: var(--ink); }
.meta { font-size: 0.88rem; color: var(--ink-2); margin-top: 14px; font-variant-numeric: tabular-nums; }
.fine { color: var(--ink-2); font-size: 0.9rem; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus: a real, visible ring in the accent, square like everything else. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0; }
.band :focus-visible { outline-color: var(--paper); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { left: 8px; }

/* ---- Grid -------------------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
section { position: relative; padding: clamp(64px, 9vw, 136px) 0; }
.rule-top { border-top: 1px solid var(--rule); }
/* The signature: a short bar lifted clear of the rule, as on the mark. */
.rule-top::before { content: ""; position: absolute; top: -13px; left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); width: 34px; height: 4px; background: var(--ink); }

/* ---- Buttons and links -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 22px 1px; border: 0; border-radius: 0; font: 500 1rem/1 var(--body); text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.btn-primary, .btn-cta { background: var(--ink); color: var(--paper); }
.btn-primary:hover, .btn-cta:hover { background: var(--accent); color: var(--color-white); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 3vw, 40px); }
.link-arrow, .quiet-cta a, .more { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.28em; }
.link-arrow::after { content: "\00a0\2192"; }
.quiet-cta { margin-top: 24px; }
.more { display: inline-block; margin-top: 18px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--accent); }

/* ---- Header ------------------------------------------------------------------------- */
header.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
header.top.scrolled { border-bottom-color: var(--rule); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: flex-end; gap: 0.36em; flex-shrink: 0; text-decoration: none; color: var(--ink); font: 600 1.5rem/0.8 var(--display); letter-spacing: -0.05em; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo svg { display: block; width: 0.66em; height: 0.8em; }
.logo svg rect { fill: var(--accent); }
header.top nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
header.top .nav-link { color: var(--ink); text-decoration: none; font: 450 0.98rem/1 var(--body); white-space: nowrap; padding: 8px 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .2s ease; }
header.top .nav-link:hover { color: var(--ink); background-size: 100% 1px; }
header.top .nav-link[aria-current="page"] { background-size: 100% 2px; }
header.top nav .btn { min-height: 40px; padding: 0 16px 1px; font-size: 0.94rem; }
.menu-btn { display: none; margin-left: auto; padding: 10px 0; border: 0; background: none; color: var(--ink); font: 500 1rem var(--body); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  header.top nav { display: none; }
  body.menu-open header.top { border-bottom-color: var(--rule); }
  body.menu-open header.top nav { display: flex; position: fixed; inset: 72px 0 auto 0; z-index: 25; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 28px; background: var(--paper); border-bottom: 1px solid var(--ink); max-height: calc(100vh - 72px); overflow: auto; }
  body.menu-open header.top .nav-link { padding: 18px 0; border-bottom: 1px solid var(--rule); font: 560 2rem/1 var(--display); letter-spacing: -0.04em; background: none; }
  body.menu-open header.top .nav-link[aria-current="page"] { color: var(--accent); }
  body.menu-open header.top nav .btn { margin-top: 24px; min-height: 52px; font-size: 1rem; }
}
html.nav-compact .menu-btn { display: inline-flex; }
html.nav-compact header.top nav { display: none; }
html.nav-compact body.menu-open header.top nav { display: flex; position: fixed; inset: 72px 0 auto 0; z-index: 25; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 28px; background: var(--paper); border-bottom: 1px solid var(--ink); }
html.nav-compact body.menu-open header.top .nav-link { padding: 18px 0; border-bottom: 1px solid var(--rule); font: 560 2rem/1 var(--display); letter-spacing: -0.04em; background: none; }
html.nav-compact body.menu-open header.top nav .btn { margin-top: 24px; }
.subnav { border-bottom: 1px solid var(--rule); }
.subnav .wrap { display: flex; gap: 6px 22px; align-items: center; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; font-size: 0.9rem; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav-t { font-weight: 600; }
.subnav a { color: var(--ink-2); text-decoration: none; }
.subnav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.35em; }

/* ---- Home hero ---------------------------------------------------------------------- */
/* The headline spans the page; the lede and button sit on the left, the day sheet on the right. */
.vision { padding: clamp(20px, min(5vw, 4vh), 72px) 0 clamp(72px, 9vw, 128px); }
.vision-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.vision-txt { display: contents; }
.vision h1 { grid-column: 1 / -1; grid-row: 1; font-size: clamp(3.2rem, min(9.5vw, 17vh), 10.4rem); line-height: 0.84; white-space: nowrap; letter-spacing: -0.064em; font-weight: 540; margin-left: -0.06em; }
.vision-lede { grid-column: 1 / span 4; grid-row: 2; margin-top: clamp(28px, min(6vw, 5vh), 96px); font-size: clamp(1.15rem, 1.5vw, 1.38rem); line-height: 1.42; color: var(--ink); max-width: 20em; text-wrap: pretty; }
.vision .actions { grid-column: 1 / span 4; grid-row: 3; }
.hero-visual { grid-column: 6 / -1; grid-row: 2 / span 3; margin-top: clamp(28px, min(6vw, 5vh), 96px); min-width: 0; }
@media (max-width: 960px) {
  .vision-lede, .vision .actions { grid-column: 1 / -1; }
  .vision-lede { margin-top: 28px; max-width: 24em; }
  .hero-visual { grid-column: 1 / -1; grid-row: 4; margin-top: 56px; }
}

/* ---- Statements --------------------------------------------------------------------- */
.statement h2 { font-size: clamp(2.5rem, 7.4vw, 7rem); line-height: 0.9; letter-spacing: -0.056em; max-width: 13ch; margin-left: -0.055em; }
.statement > .wrap > p { margin: clamp(28px, 4vw, 56px) 0 0 41.66%; max-width: 24em; font-size: clamp(1.15rem, 1.55vw, 1.4rem); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
#belief { padding: clamp(96px, 14vw, 220px) 0 clamp(96px, 13vw, 200px); }
#belief h2 { max-width: 11ch; }
#belief > .wrap > p { color: var(--ink); }

/* An ordered method or a set of lines: label in the margin, the sentence in the text columns. */
.method, .day-lines { list-style: none; padding: 0; margin: clamp(40px, 5vw, 72px) 0 0; border-bottom: 1px solid var(--rule); }
.method li, .day-lines li { position: relative; padding: clamp(18px, 2.2vw, 28px) 0 clamp(20px, 2.4vw, 32px) 41.66%; border-top: 1px solid var(--rule); font-size: clamp(1.08rem, 1.45vw, 1.32rem); line-height: 1.42; color: var(--ink); text-wrap: pretty; }
.method li > b, .day-lines li > b { position: absolute; left: 0; top: clamp(18px, 2.2vw, 28px); width: 36%; }
.method li > b { font: 560 clamp(1.6rem, 2.8vw, 2.6rem)/0.95 var(--display); letter-spacing: -0.04em; }
.method li:not(:has(> b)) { padding-left: 0; font: 500 clamp(1.3rem, 2.3vw, 2rem)/1.15 var(--display); letter-spacing: -0.028em; max-width: none; }
.method li:not(:has(> b)) { padding-right: 16.66%; }
.day-lines li { padding-left: 25%; font: 450 clamp(1.35rem, 2.5vw, 2.3rem)/1.16 var(--display); letter-spacing: -0.026em; }
.day-lines li > b { width: 22%; font: 500 0.98rem/1.3 var(--body); color: var(--ink-2); padding-top: 0.45em; }
@media (max-width: 760px) {
  .method li, .day-lines li, .method li:not(:has(> b)) { padding-left: 0; padding-right: 0; }
  .method li > b, .day-lines li > b { position: static; display: block; width: auto; margin-bottom: 10px; padding-top: 0; }
}
/* Map, Build, Elevate: the bar lifts a little further at each step, and arrives in the accent. */
.method li > b { display: block; }
#how .method li > b::before { content: ""; position: absolute; left: 0.05em; width: 0.62em; height: 0.11em; background: currentColor; top: calc(-0.2em - var(--lift, 0em)); }
#how .method li:nth-child(2) > b { --lift: 0.14em; }
#how .method li:nth-child(3) > b { --lift: 0.3em; }
@media (max-width: 760px) { #how .method li > b { position: relative; margin: 0.4em 0 20px; line-height: 1.1; } }

/* Ink band: the one solid field besides paper. */
.band { background: var(--ink); color: var(--paper); }
.band .method, .band .method li, .band .day-lines, .band .day-lines li, .band .card { border-color: var(--rule-ink); }
.band .method li, .band .day-lines li { color: var(--paper); }
.band .day-lines li > b { color: color-mix(in srgb, var(--color-paper) 72%, transparent); }
.band p, .band .lede, .band .fine { color: color-mix(in srgb, var(--color-paper) 72%, transparent); }
.band a:hover { color: var(--color-white); }
.band .btn-primary { background: var(--paper); color: var(--ink); }
.band .btn-primary:hover { background: var(--accent); color: var(--color-white); }
#how { padding: clamp(80px, 10vw, 150px) 0; }
#how h2 { font-size: clamp(2.5rem, 7.4vw, 7rem); line-height: 0.9; letter-spacing: -0.056em; }
#how .method li:nth-child(3) > b::before { background: var(--color-accent-on-ink); }
.band.statement > .wrap > p { color: color-mix(in srgb, var(--color-paper) 72%, transparent); }

/* Quiet links: an index line, not buttons. */
.quiet-links { display: flex; flex-wrap: wrap; gap: 12px 44px; margin-top: 28px; font: 500 1.05rem var(--body); }
nav.quiet-links { margin-top: 0; padding-top: 22px; padding-bottom: 22px; background: linear-gradient(var(--rule), var(--rule)) 50% 0 / calc(100% - 2 * var(--gut)) 1px no-repeat, linear-gradient(var(--rule), var(--rule)) 50% 100% / calc(100% - 2 * var(--gut)) 1px no-repeat; }
.quiet-links a { text-decoration: none; }
.quiet-links a::after { content: "\00a0\2192"; display: inline-block; transition: transform .15s ease; }
.quiet-links a:hover::after { transform: translateX(3px); }

/* ---- Closing ------------------------------------------------------------------------ */
section:has(> .wrap > .cta) { padding-top: clamp(56px, 7vw, 112px); }
.cta { position: relative; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--ink); }
.cta h2 { position: relative; display: inline-block; margin-top: 0.3em; font-size: clamp(2.8rem, 9.4vw, 9rem); line-height: 0.88; letter-spacing: -0.06em; max-width: 11ch; }
.cta h2::before { content: ""; position: absolute; left: 0.06em; top: -0.26em; width: 0.6em; height: 0.085em; background: var(--accent); }
.cta .lede { margin-top: 28px; }
.cta .actions { margin-top: clamp(32px, 4vw, 56px); }
.cta .alt { margin-top: 18px; font-size: 0.95rem; color: var(--ink-2); }

/* ---- Inner pages -------------------------------------------------------------------- */
.page-hero { padding: clamp(32px, min(8vw, 8vh), 128px) 0 clamp(40px, 6vw, 96px); }
.page-hero h1 { max-width: 12ch; font-size: clamp(2.9rem, min(8.4vw, 12.5vh), 7.6rem); }
.page-hero + .statement { padding-top: clamp(8px, 2vw, 32px); }
.page-hero .lede { margin: clamp(20px, min(4vw, 4vh), 56px) 0 0 41.66%; max-width: 24em; color: var(--ink); }
.page-hero .lede + .actions, .page-hero .lede + .quiet-cta { margin-left: 41.66%; }
.kicker-txt, .crumbs { font-size: 0.92rem; color: var(--ink-2); margin-bottom: clamp(20px, 3vw, 40px); }
.kicker-txt a, .crumbs a { color: inherit; text-decoration: none; }
.kicker-txt a:hover, .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.eyebrow-txt { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 14px; }
.sec-head { max-width: 44rem; }
@media (max-width: 760px) {
  .statement > .wrap > p, .page-hero .lede, .page-hero .lede + .actions, .page-hero .lede + .quiet-cta { margin-left: 0; margin-right: 0; }
}
.statement > .statements > p { margin: 0; font: 500 clamp(1.7rem, 3.6vw, 3.2rem)/1.06 var(--display); letter-spacing: -0.036em; max-width: 21ch; color: var(--ink); text-wrap: balance; margin: 0; }
.statement > .statements > p:nth-child(even) { margin-left: 41.66%; }
.statement > .statements > p + p { margin-top: clamp(40px, 6vw, 88px); }
@media (max-width: 760px) { .statement > .statements > p:nth-child(even) { margin-left: 0; } }

.split-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 96px); align-items: start; }
.split-row > div { min-width: 0; }
.split-row p { color: var(--ink-2); }
.split-row p + p { margin-top: 14px; }
@media (max-width: 860px) { .split-row { grid-template-columns: 1fr; } }

/* Cards are ruled columns: an ink rule on top, no box, no shadow, no tile. */
.grid2, .grid3 { display: grid; gap: clamp(40px, 4vw, 56px) var(--col-gap); margin-top: clamp(32px, 4vw, 56px); }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.card { display: block; padding: 20px 0 0; border-top: 1px solid var(--ink); color: inherit; }
.card h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.05; letter-spacing: -0.032em; font-weight: 560; }
.card p { margin-top: 12px; color: var(--ink-2); }
.card .gets { color: var(--ink); }
.card ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--ink-2); }
a.card { text-decoration: none; }
a.card:hover { color: inherit; }
a.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.card.soft { border-top-color: var(--rule); }
.role-grid { margin-top: 0; }
.team-grid + p { margin-top: clamp(40px, 5vw, 72px); }
.card.dark-card { padding: clamp(28px, 4vw, 52px); border: 0; background: var(--ink); color: var(--paper); }
.card.dark-card p { color: var(--paper); font: 500 clamp(1.3rem, 2.3vw, 2rem)/1.16 var(--display); letter-spacing: -0.028em; max-width: 28ch; margin: 0; }
.card.dark-card::before { content: ""; display: block; width: 34px; height: 4px; margin-bottom: 30px; background: var(--paper); }

.ticklist { list-style: none; padding: 0; margin: 16px 0 0; }
.ticklist li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--rule); color: var(--ink); }
.ticklist li:first-child { border-top: 0; }
.ticklist li::before { content: ""; position: absolute; left: 0; top: calc(10px + 0.7em); width: 12px; height: 2px; background: currentColor; }

.numbered { list-style: none; counter-reset: n; padding: 0; margin: 40px 0 0; border-bottom: 1px solid var(--rule); }
.numbered > li { counter-increment: n; display: grid; grid-template-columns: 3fr 9fr; gap: var(--col-gap); padding: 26px 0; border-top: 1px solid var(--rule); }
.numbered > li::before { content: counter(n, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.numbered p { color: var(--ink-2); margin-top: 8px; max-width: 40rem; }
@media (max-width: 560px) { .numbered > li { grid-template-columns: 44px 1fr; } }

.stat-line { display: flex; flex-wrap: wrap; gap: 24px 64px; margin: 36px 0 8px; padding-top: 20px; border-top: 1px solid var(--ink); }
.stat-line b { display: block; font: 540 clamp(2.4rem, 5vw, 4rem)/1 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat-line span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 0.92rem; }

/* Prices: a short typeset table. */
.price-mini { width: min(100%, 560px); margin: clamp(56px, 7vw, 96px) 0 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-mini caption { text-align: left; color: var(--ink-2); font-size: 0.92rem; padding-bottom: 12px; }
.price-mini th, .price-mini td { text-align: left; font-weight: 400; padding: 16px 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.price-mini tbody tr:first-child th, .price-mini tbody tr:first-child td { border-top-color: var(--ink); }
.price-mini tr:last-child th, .price-mini tr:last-child td { border-bottom: 1px solid var(--rule); }
.price-mini td { text-align: right; font: 540 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--display); letter-spacing: -0.035em; }
.price-lines { list-style: none; padding: 0; margin: 0; }
.price-lines li { padding: 12px 0; border-top: 1px solid var(--rule); }

/* ---- Hospitality live demo ---------------------------------------------------------- */
.band:has(> .wrap > .fine:only-child) { padding: 28px 0; }
#demo.band { background: var(--paper-2); color: var(--ink); }
#demo.band p { color: var(--ink-2); }
.demo-frame { max-width: 480px; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
#demo .demo-frame { margin: 0 8.33% 0 auto; }
@media (max-width: 760px) { #demo .demo-frame { margin: 0 auto; } }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ink); font-size: 0.84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.demo-bar .live { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.demo-bar .live::before { content: ""; width: 16px; height: 3px; background: var(--accent); transform: translateY(-0.32em); }
#hfx-chat { position: relative; min-height: 560px; display: flex; justify-content: center; }
#hfx-chat > div { max-width: 100% !important; border-radius: 0 !important; box-shadow: none !important; }
.noscript { padding: 24px; color: var(--ink-2); }

/* ---- Prose (articles, legal) -------------------------------------------------------- */
.prose { max-width: 40rem; }
.prose > p:first-child { font-size: 1.22rem; line-height: 1.5; color: var(--ink); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.08; letter-spacing: -0.03em; margin: 56px 0 0; }
.prose h3 { font-size: 1.12rem; margin-top: 30px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin-top: 16px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-top: 1px solid var(--rule); }
.prose thead th { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); border-top: 0; border-bottom: 1px solid var(--ink); }
.note { margin-top: 22px; padding: 4px 0 4px 20px; border-left: 3px solid var(--ink); font-size: 0.96rem; color: var(--ink-2); }
.placeholder { background: #fff2a8; padding: 0 4px; }
@media (max-width: 560px) {
  .prose table.stack thead { display: none; }
  .prose table.stack, .prose table.stack tbody, .prose table.stack tr, .prose table.stack td, .prose table.stack th { display: block; width: auto; }
  .prose table.stack tr { border-top: 1px solid var(--rule); padding: 10px 0; }
  .prose table.stack td, .prose table.stack th { border-top: 0; padding: 2px 0; }
}
.who { display: flex; flex-direction: column; gap: 10px; }
.who-l { font-size: 0.9rem; color: var(--ink-2); }
.snippet { margin: 16px 0; padding: 18px; background: var(--ink); color: var(--paper-2); overflow-x: auto; font: 0.86rem/1.6 var(--mono); }
.diagram { margin-top: 32px; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.diagram svg { display: block; width: 100%; height: auto; max-width: 900px; }
@media (max-width: 640px) { .diagram { overflow-x: auto; } .diagram svg { min-width: 620px; } }
.connect-diagram { margin-left: 0; margin-right: 0; }
.connect-diagram .cd-tall { display: none; }
@media (max-width: 640px) {
  .connect-diagram { overflow-x: visible; }
  .connect-diagram .cd-wide { display: none; }
  .connect-diagram svg.cd-tall { display: block; min-width: 0; max-width: 420px; }
  .connect-diagram .cd-tall .cd-h { font-size: 18px; }
  .connect-diagram .cd-tall .cd-s, .connect-diagram .cd-tall .cd-l { font-size: 13.5px; }
}
.connect-diagram text { font-family: var(--body); }
.connect-diagram .cd-h { font: 600 17px var(--display); letter-spacing: -0.01em; }
.connect-diagram .cd-s { font-size: 12.5px; }
.connect-diagram .cd-l { font-size: 12.5px; font-weight: 500; }
.connect-diagram figcaption { margin-top: 18px; max-width: 62ch; font-size: 0.95rem; color: var(--muted); }
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 44px; }
@media (max-width: 980px) { .maps { grid-template-columns: 1fr; gap: 36px; } }
.map { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.map caption { text-align: left; font: 600 1.1rem var(--display); letter-spacing: -0.02em; padding-bottom: 12px; }
.map th, .map td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--rule); }
.map thead th { font-size: 0.85rem; font-weight: 500; color: var(--ink-2); padding-top: 0; border-top: 0; }
.map tbody th { font-weight: 500; width: 46%; }
.map td { color: var(--ink-2); }
@media (max-width: 560px) {
  .map thead { display: none; }
  .map, .map tbody, .map tr, .map th, .map td { display: block; width: auto; }
  .map tr { border-top: 1px solid var(--rule); padding: 12px 0; }
  .map th, .map td, .map tbody th { border-top: 0; padding: 0; width: auto; }
}
.compare-wrap { margin-top: 28px; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 760px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 14px 14px 0; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; border-bottom: 1px solid var(--ink); font-weight: 600; vertical-align: bottom; }
.compare thead th small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.82rem; margin-top: 3px; }
.compare tbody th { font-weight: 500; width: 26%; }
.compare td { color: var(--ink-2); }
.compare .mk { display: inline-block; width: 1.1em; font-weight: 600; }
.compare .us { background: var(--ink); color: var(--paper); padding-left: 14px; }
.compare thead th.us small { color: color-mix(in srgb, var(--color-paper) 65%, transparent); }
.compare td.us { border-top-color: var(--rule-ink); }

/* ---- Developer docs ----------------------------------------------------------------- */
.docs-main { border-top: 1px solid var(--rule); }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 48px; padding-top: 48px; padding-bottom: 96px; align-items: start; }
.docs-side, .docs-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.docs-menu summary { list-style: none; font-size: 0.85rem; color: var(--ink-2); margin-bottom: 12px; pointer-events: none; }
.docs-menu summary::-webkit-details-marker { display: none; }
.docs-menu summary .cur { display: none; }
.docs-menu ul, .docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-menu li a { display: block; padding: 7px 0 7px 12px; border-left: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.docs-menu li a:hover { color: var(--ink); border-left-color: var(--ink); }
.docs-menu li a[aria-current="page"] { color: var(--ink); border-left: 3px solid var(--accent); padding-left: 10px; font-weight: 500; }
.docs-toc .toc-h { font-size: 0.85rem; color: var(--ink-2); margin: 0 0 12px; }
.docs-toc li a { display: block; padding: 4px 0 4px 12px; border-left: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; font-size: 0.88rem; line-height: 1.4; }
.docs-toc li a:hover, .docs-toc li a.on { color: var(--ink); border-left-color: var(--ink); }
.doc { max-width: 46rem; min-width: 0; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 0.96; letter-spacing: -0.045em; }
.doc h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); letter-spacing: -0.03em; margin-top: 52px; margin-left: 0; }
.doc h3 { margin-top: 30px; font-size: 1.12rem; }
.doc p { margin-top: 14px; }
.doc ul, .doc ol { margin-top: 14px; padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc .lede { margin-top: 18px; max-width: 40rem; }
.doc h2, .doc h3 { scroll-margin-top: 96px; position: relative; }
.doc .hash { margin-left: 8px; color: var(--ink-2); text-decoration: none; opacity: 0; font-weight: 400; }
.doc h2:hover .hash, .doc h3:hover .hash, .doc .hash:focus { opacity: 1; }
.doc :not(pre) > code { font: 0.86em var(--mono); background: var(--paper-2); padding: 1px 5px; overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-top: 1px solid var(--rule); }
.doc thead th { font-weight: 500; color: var(--ink-2); border-top: 0; border-bottom: 1px solid var(--ink); }
.code { margin-top: 20px; background: var(--ink); color: var(--paper-2); overflow: hidden; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--rule-ink); font-size: 0.78rem; color: color-mix(in srgb, var(--color-paper) 60%, transparent); }
.code-bar .copy { border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--rule-ink); color: var(--paper); font: 500 0.78rem var(--body); padding: 5px 10px; cursor: pointer; }
.code-bar .copy:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font: 0.85rem/1.65 var(--mono); tab-size: 2; }
.code .t-com { color: #8d8a83; font-style: italic; }
.code .t-str { color: var(--color-white); }
.code .t-tag, .code .t-kw { color: var(--color-white); font-weight: 600; }
.code .t-attr { color: #b9b5ac; }
.tbl { overflow-x: auto; margin-top: 20px; }
.tbl table { margin-top: 0; min-width: 34rem; }
.tbl td code, .tbl th code { white-space: nowrap; }
.doc .note b { color: var(--ink); }
.doc ol.steps { counter-reset: s; list-style: none; padding-left: 0; }
.doc ol.steps > li { counter-increment: s; position: relative; padding: 14px 0 0 44px; margin-top: 14px; border-top: 1px solid var(--rule); }
.doc ol.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--col-gap); margin-top: 22px; }
.doc-cards a { display: block; padding: 16px 0 18px; border-top: 1px solid var(--ink); text-decoration: none; color: var(--ink); }
.doc-cards a:hover b { text-decoration: underline; text-underline-offset: 0.2em; }
.doc-cards b { display: block; font-weight: 600; }
.doc-cards span { display: block; color: var(--ink-2); font-size: 0.92rem; margin-top: 4px; }
.doc-pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ink); }
.doc-pn a { text-decoration: none; color: var(--ink); font-weight: 500; }
.doc-pn a small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.82rem; }
.doc-pn .next { text-align: right; margin-left: auto; }
@media (max-width: 1180px) { .docs { grid-template-columns: 200px minmax(0, 1fr); } .docs-toc { display: none; } }
@media (max-width: 960px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
  .docs-side { position: static; max-height: none; overflow: visible; }
  .docs-menu { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
  .docs-menu summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 14px 0; }
  .docs-menu summary .cur { display: inline; color: var(--ink); font-size: 0.95rem; }
  .docs-menu summary::after { content: "+"; font-size: 1.2rem; color: var(--ink); }
  .docs-menu[open] summary::after { content: "\2212"; }
  .docs-menu ul { padding-bottom: 12px; }
  .doc-cards { grid-template-columns: 1fr; }
}

/* ---- Footer: a typeset colophon ----------------------------------------------------- */
footer.site { margin-top: clamp(48px, 7vw, 112px); padding: 0 0 28px; font-size: 0.95rem; }
footer.site > .wrap > .f-grid { border-top: 1px solid var(--ink); }
.f-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; padding-top: 28px; }
.f-say { grid-column: 1 / span 6; }
.f-say .logo { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.f-say p { margin-top: 20px; max-width: 21em; color: var(--ink-2); }
.f-col { grid-column: span 2; }
.f-col.f-first { grid-column: 7 / span 2; }
.f-h { display: block; font-size: 0.85rem; color: var(--ink-2); margin-bottom: 12px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.f-col a { text-decoration: none; }
.f-col a:hover { color: var(--ink); text-decoration: underline; }
.f-mail { grid-column: 1 / -1; margin-top: clamp(8px, 3vw, 40px); font: 540 clamp(2rem, 6.4vw, 5.6rem)/1 var(--display); letter-spacing: -0.05em; margin-left: -0.05em; overflow-wrap: anywhere; }
.f-mail a { text-decoration: none; }
.f-mail a:hover { color: var(--accent); }
footer.site .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: clamp(32px, 4vw, 56px); padding-top: 16px; border-top: 1px solid var(--rule); font-size: 0.84rem; color: var(--ink-2); }
footer.site .f-legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.site .legal a, footer.site .linkish { color: var(--ink-2); text-decoration: none; }
footer.site .legal a:hover, footer.site .linkish:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) {
  .f-say { grid-column: 1 / -1; }
  .f-col, .f-col.f-first { grid-column: span 6; }
}

/* ---- Consent and sticky call -------------------------------------------------------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--ink); padding: 16px 0; }
.consent[hidden] { display: none; }
.consent .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.consent p { font-size: 0.93rem; max-width: 50rem; }
.consent p a { color: var(--ink-2); }
.consent-btns { display: flex; gap: 8px; }
.consent-btns .btn { min-width: 112px; min-height: 44px; font-size: 0.95rem; }
@media (max-width: 560px) { .consent p { font-size: 0.86rem; } .consent-btns { width: 100%; } .consent-btns .btn { flex: 1; } }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--ink); }
.sticky-cta .btn { width: 100%; }
@media (max-width: 760px) { .sticky-cta.on { display: block; } }
body.consent-open .sticky-cta { bottom: var(--consent-h, 0px); }

/* ---- Phones ------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .vision h1 { font-size: 14vw; white-space: normal; }
  .statement h2, #how h2, .cta h2 { font-size: 13.6vw; }
  main .actions { flex-direction: column; align-items: stretch; }
  main .actions .btn { width: 100%; justify-content: space-between; }
}

/* No scroll reveals: content is simply there. */
.reveal-on [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---- 404: the mark with its bar lifted out of reach ---------------------------------- */
.nf .wrap { position: relative; }
.nf-mark { display: block; width: clamp(80px, 10vw, 136px); height: auto; margin: 0 0 clamp(32px, 5vw, 64px) -0.02em; fill: var(--ink); overflow: visible; }
.nf-bar { fill: var(--accent); transform: translateY(-6px); }
.nf .kicker-txt { font-variant-numeric: tabular-nums; }
.nf h1 { max-width: 11ch; }
@media (max-height: 500px) and (orientation: landscape) {
  header.top { position: relative; }
  .vision h1 { font-size: 8.6vw; }
  .vision-lede { margin-top: 24px; }
  .nf-mark { width: 72px; margin-bottom: 24px; }
}

/* Site assistant launcher: clear the mobile sticky Talk to us bar */
@media (max-width: 760px) { #hfx-launcher, #hfx-teaser { bottom: 84px !important; } }
/* While the consent bar is open, lift the chat launcher above it so it never covers the bar's text or buttons. */
body.consent-open #hfx-launcher, body.consent-open #hfx-teaser { bottom: calc(var(--consent-h, 0px) + 16px) !important; }

/* Hospitality funnel: in-page index, price table, questions, Start form. Flat, square, hairlines. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-index { margin-top: clamp(40px, 5vw, 64px); padding-top: 18px; border-top: 1px solid var(--rule); gap: 10px 32px; font-size: 0.98rem; }
.page-index a::after { content: "\00a0\2193"; }
.page-index a:hover::after { transform: translateY(2px); }
section[id] { scroll-margin-top: 72px; }
#demo .demo-h { font-size: clamp(2.5rem, 7.4vw, 7rem); line-height: 0.9; letter-spacing: -0.056em; margin: 0 0 clamp(32px, 4vw, 56px) -0.055em; }
.price-table { width: 100%; margin-top: clamp(40px, 5vw, 72px); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; color: var(--ink-2); font-size: 0.95rem; padding-bottom: 14px; }
.price-table thead th { text-align: left; font: 500 0.85rem/1.3 var(--body); color: var(--ink-2); padding: 0 0 10px; }
.price-table thead th:nth-child(2) { text-align: right; }
.price-table tbody th, .price-table tbody td { text-align: left; font-weight: 400; padding: clamp(18px, 2.2vw, 28px) 0; border-top: 1px solid var(--rule); vertical-align: baseline; }
.price-table tbody tr:first-child > * { border-top-color: var(--ink); }
.price-table tbody tr:last-child > * { border-bottom: 1px solid var(--ink); }
.price-table tbody th { font: 500 clamp(1.3rem, 2.3vw, 2rem)/1.1 var(--display); letter-spacing: -0.028em; }
.price-table tbody th span { display: block; margin-top: 8px; font: 400 0.92rem/1.35 var(--body); letter-spacing: 0; color: var(--ink-2); }
.price-table .p { text-align: right; font: 540 clamp(2rem, 4.4vw, 4rem)/1 var(--display); letter-spacing: -0.045em; white-space: nowrap; }
.price-table .p.t { font-size: clamp(1.3rem, 2.3vw, 2rem); letter-spacing: -0.028em; }
.price-table td:last-child { text-align: right; width: 1%; padding-left: clamp(16px, 4vw, 64px); white-space: nowrap; }
.price-table td:last-child a { font: 500 1rem var(--body); text-decoration: none; }
.price-table td:last-child a::after { content: "\00a0\2192"; }
@media (max-width: 560px) {
  .price-table thead { display: none; }
  .price-table tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; border-top: 1px solid var(--rule); padding: 18px 0; }
  .price-table tbody tr:first-child { border-top-color: var(--ink); }
  .price-table tbody tr:last-child { border-bottom: 1px solid var(--ink); }
  .price-table tbody th, .price-table tbody td { border: 0 !important; padding: 0; }
  .price-table td:last-child { grid-column: 1 / -1; text-align: left; padding: 12px 0 0; width: auto; }
}
.faq { margin-top: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: clamp(18px, 2.2vw, 26px) 0; font: 500 clamp(1.2rem, 2vw, 1.7rem)/1.2 var(--display); letter-spacing: -0.024em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 clamp(20px, 2.4vw, 28px) 41.66%; max-width: 32em; color: var(--ink-2); }
@media (max-width: 760px) { .faq details p { margin-left: 0; } }
.start-form { margin-top: clamp(40px, 5vw, 72px); }
.start-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.start-form legend, .start-form .fields label > span { display: block; font: 500 0.85rem/1.3 var(--body); color: var(--ink-2); padding: 0 0 10px; }
.plans label { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); cursor: pointer; font-size: 1.08rem; }
.plans label:first-of-type { border-top-color: var(--ink); }
.plans label:last-of-type { border-bottom: 1px solid var(--rule); }
.plans input { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--ink); border-radius: 0; transform: translateY(2px); }
.plans input:checked { background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.plans input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.plans label span { flex: 1; }
.plans label b { font: 540 1.25rem/1 var(--display); letter-spacing: -0.03em; }
.plans label:has(input:checked) b { color: var(--accent); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--col-gap, 32px); margin-top: 40px; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.fields input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 8px 0 10px; font: 400 1.1rem/1.3 var(--body); color: var(--ink); }
.fields input::placeholder { color: var(--rule); }
.fields input:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.fields input[aria-invalid="true"] { border-bottom-color: #b3261e; }
.start-form .actions { margin-top: 36px; }
.form-note { margin-top: 18px; color: var(--ink-2); font-size: 0.95rem; }
.form-note.err { color: #b3261e; }
.form-note.ok { color: var(--ink); font: 500 clamp(1.3rem, 2.3vw, 2rem)/1.16 var(--display); letter-spacing: -0.028em; }
.start-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.price-terms { margin-top: 18px; color: var(--ink-2); font-size: 0.95rem; }
