/* The home page: one column, one thing per section, nothing drawn around the content.
   Every class starts with hm- so that no rule of site.css can reach in by accident. */
.home { --hm-r: 14px; }

/* ---------- first screen ---------- */
.hm-hero { padding: clamp(16px, 1.7vw, 24px) 0 0; }
.hm-hero-t { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hm-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 13px 4px 4px; border-radius: var(--r-pill); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1.3 var(--font); color: var(--soft); transition: box-shadow .2s, color .2s; }
.hm-pill:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.hm-pill b { flex: none; padding: 0 10px; border-radius: var(--r-pill); background: var(--blue-wash); color: var(--blue); font: 600 12.5px/26px var(--font); }
.hm-pill svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s var(--ease); }
.hm-pill:hover svg { transform: translateX(3px); }
.hm-hero h1 { margin-top: clamp(14px, 1.3vw, 18px); font: 600 clamp(34px, 4.5vw, 64px)/1.03 var(--font); letter-spacing: -.045em; text-wrap: balance; }
.hm-hero h1 span { display: block; }
.hm-lead { margin-top: clamp(12px, 1.1vw, 14px); max-width: 50em; font: 400 clamp(17px, 1.45vw, 20.5px)/1.5 var(--font); color: var(--soft); text-wrap: balance; }
.hm-cta { margin-top: clamp(18px, 1.5vw, 20px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@keyframes hm-fill { to { transform: scaleX(1); } }

/* ---------- sections ---------- */
.hm-sec { padding: clamp(72px, 9vw, 124px) 0 0; }
.hm-sec.hm-after { padding-top: clamp(44px, 5vw, 68px); }
.hm-head { max-width: 800px; margin: 0 auto clamp(34px, 4.2vw, 56px); text-align: center; }
.hm-head h2 { font: 600 clamp(29px, 3.7vw, 48px)/1.06 var(--font); letter-spacing: -.04em; text-wrap: balance; }
.hm-head .lead { margin-top: 16px; font-size: clamp(16.5px, 1.4vw, 20px); }
.hm-foot { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--dim); }
.hm-foot .arrow { color: var(--ink); }

/* three facts under the product */
.hm-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 44px; }
.hm-three li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; }
.hm-three svg, .hm-runs svg, .hm-col h3 svg, .hm-ticks svg, .hm-never svg { fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hm-three svg { width: 22px; height: 22px; margin-top: 2px; }
.hm-three b { font: 600 17px/1.3 var(--font); letter-spacing: -.015em; }
.hm-three p { margin-top: 5px; font-size: 15px; line-height: 1.5; color: var(--soft); }

/* the agent CLIs */
.hm-clis { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hm-clis li { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 15px; border-radius: 11px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font: 550 15.5px/1 var(--font); letter-spacing: -.01em; }
.hm-clis svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* six cards, each with one whole element of the app at its own scale */
.hm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-card { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--hm-r); overflow: hidden; }
.hm-card .tile { height: 264px; border-bottom: 1px solid var(--line); }
.hm-card h3 { margin: 22px 24px 0; font: 600 19px/1.25 var(--font); letter-spacing: -.022em; text-wrap: balance; }
.hm-card p { margin: 8px 24px 26px; font-size: 15px; line-height: 1.5; color: var(--soft); }

/* the phone app: three whole phones (the frame is demo.css's .iph) on the stage the first screen
   stands on, each with what it is for; on a phone they are a row to swipe, one at a time */
.hm-stage { padding: clamp(28px, 3.6vw, 48px) clamp(16px, 3vw, 40px) clamp(36px, 4.4vw, 60px); }
.hm-phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(22px, 5.4vw, 80px); }
.hm-phone { flex: 0 1 244px; min-width: 0; margin: 0; display: flex; flex-direction: column; }
.hm-phone:nth-child(2) { margin-top: clamp(0px, 2.4vw, 34px); }
.hm-phone figcaption { order: -1; margin: 0 4px clamp(14px, 1.6vw, 20px); display: grid; gap: 3px; min-height: 4.2em; }
.hm-phone figcaption b { font: 600 18px/1.25 var(--font); letter-spacing: -.02em; }
.hm-phone figcaption span { font-size: 14.5px; line-height: 1.45; color: var(--soft); }
.hm-ticks { margin: clamp(26px, 3vw, 40px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 36px; }
.hm-ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 15.5px; line-height: 1.45; }
.hm-ticks svg { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2; }

/* where it runs */
.hm-runs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hm-runs li { display: flex; flex-direction: column; min-width: 0; padding: 24px 24px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--hm-r); }
.hm-runs svg { width: 24px; height: 24px; }
.hm-runs h3 { margin-top: 18px; font: 600 18px/1.25 var(--font); letter-spacing: -.02em; }
.hm-runs p { margin-top: 8px; flex: 1; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.hm-runs .req { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 11.5px/1.45 var(--mono); letter-spacing: .03em; color: var(--dim); }

/* what stays, what leaves: two plain columns */
.hm-ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.hm-col { min-width: 0; padding: 26px 28px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--hm-r); }
.hm-col h3 { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); font: 600 20px/1.2 var(--font); letter-spacing: -.022em; }
.hm-col h3 svg { width: 20px; height: 20px; flex: none; }
/* a row is a name and a few words; a status, if any, stands at its right */
.hm-col li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hm-col li:last-child { border-bottom: 0; }
.hm-col li b { grid-column: 1; font: 550 15.5px/1.35 var(--font); letter-spacing: -.008em; }
.hm-col li > span:not(.st) { grid-column: 1; font-size: 14.5px; line-height: 1.45; color: var(--soft); }
.hm-col li > .st { grid-column: 2; grid-row: 1 / span 2; }
.hm-never { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 16px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--hm-r); font-size: 15px; line-height: 1.4; }
.hm-never b { font-weight: 600; letter-spacing: -.008em; color: var(--ink); }
.hm-never > span { color: var(--soft); }
.hm-never > svg { flex: none; width: 18px; height: 18px; }
.hm-never .arrow { margin-left: auto; color: var(--blue); }

/* three links, one per reader, under the table */
.hm-roles { margin-top: 12px; }

/* what exists today */
.hm-table { max-width: 1000px; margin: 0 auto; padding: 22px 28px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--hm-r); }
.hm-table .tbl th { border-bottom-color: var(--line-2); }
.hm-table .tbl tbody tr:hover { background: none; }
.hm-table .tbl tbody tr:last-child, .hm-table .tbl tbody tr:last-child td { border-bottom: 0; }
.hm-table .tbl td:nth-child(2) { white-space: nowrap; }

/* the proof that exists */
.hm-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-figs li { min-width: 0; padding: 30px 20px 26px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--hm-r); }
.hm-figs b { display: block; font: 600 clamp(38px, 4.6vw, 60px)/1 var(--font); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.hm-figs li > span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--soft); }
.hm-src { margin-top: 14px; text-align: center; font-size: 13px; color: var(--dim); }
.hm-proof-b { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; }
.hm-live, .hm-not { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--hm-r); }
.hm-live { transition: border-color .25s, transform .3s var(--ease); }
.hm-live:hover { border-color: var(--ink); transform: translateY(-2px); }
.hm-live b { font: 600 19px/1.2 var(--font); letter-spacing: -.02em; }
.hm-live p, .hm-not p { font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.hm-not p b { color: var(--ink); }
.hm-not p { max-width: 68ch; }
.hm-live .arrow, .hm-not .arrow { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--blue); }

/* questions */
.hm-faq .wrap { max-width: calc(820px + 2 * var(--gut)); }
.hm-faq .hm-head { margin-bottom: clamp(26px, 3vw, 40px); }
.hm-faq .faq { border-top-color: var(--line-2); }

/* ---------- narrower ---------- */
@media (max-width: 1100px) {
  .hm-grid, .hm-runs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-proof-b { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hm-ledger { grid-template-columns: minmax(0, 1fr); }
  .hm-ticks { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
  .hm-three { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .hm-never .arrow { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 700px) {
  .hm-hero h1 span { display: inline; }
  .hm-cta { width: 100%; }

  .hm-cta .btn { flex: 1 1 100%; justify-content: center; height: 50px; }

  .hm-wide { display: none; }

  /* three phones do not fit side by side: a row to swipe, each screen whole and at a size that reads */
  .hm-stage { padding: 22px 0 30px; }
  .hm-phones { justify-content: flex-start; gap: 18px; padding: 0 19vw 26px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hm-phones::-webkit-scrollbar { display: none; }
  .hm-phone { flex: 0 0 62vw; max-width: 280px; scroll-snap-align: center; }
  .hm-phone:nth-child(2) { margin-top: 0; }
  .hm-phone figcaption { min-height: 4.6em; }

  .hm-grid, .hm-runs, .hm-figs, .hm-proof-b { grid-template-columns: minmax(0, 1fr); }
  .hm-card .tile { height: auto; min-height: 220px; }
  .hm-col { padding: 22px 20px 6px; }
  /* a long status word goes under its row instead of squeezing it */
  .hm-col li { grid-template-columns: minmax(0, 1fr); }
  .hm-col li > .st { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .hm-never, .hm-table { padding-left: 20px; padding-right: 20px; }

  .hm-foot { flex-direction: column; }
  .hm-roles { margin-top: 26px; }
}

/* the line under the first screen's buttons */
.hm-under { margin: 10px auto 0; max-width: 48em; font-size: 14px; line-height: 1.5; color: var(--dim); text-wrap: balance; }

/* the plans on the home: the Pricing page's three cards, each with its first lines */
.hm-plans .pr-card { padding-bottom: 26px; }

/* Portuguese runs longer: the headline keeps to one line on a wide screen, and the four cards of
   "where it runs" keep their titles and their last lines level */
html[lang="pt-BR"] .hm-hero h1 { font-size: clamp(34px, 4.05vw, 58px); }
@media (min-width: 1101px) {
  html[lang="pt-BR"] .hm-runs h3 { min-height: 2.5em; }
  html[lang="pt-BR"] .hm-runs .req { min-height: 4.4em; }
}
