/*
  Axari site · v5 · styles for /demo, /demo/thanks, /blog, /integrations, /security.html and /404.html.
  Only layout that site.css does not already own. No new font sizes, colours or families:
  every value is a site.css token.
*/

/* ---------- /demo: one form beside the headline (round 2, 10 Nov) ----------
   Wide screens: the intro on the left (5 of 12), the form panel on the right (6 of 12), and the
   free-trial line as a quiet link under the button. Below 1200 the two stack. No panel around the form (10 Nov, Avi: "too many boxes"): the options and fields
   are already bordered controls, so a frame around them was a box of boxes; the column alone holds
   the form together. Restore: class="demo-form panel" and background: var(--surface) on .demo-form.
   Round 1 (two sections, cards with descriptions, team dropdown): _legacy/demo-v7-sections.css. */
.demo-hero { padding-bottom: var(--s11); }
.demo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s8); align-items: start; }
.demo-intro { grid-column: 1 / span 5; }
.demo-intro .lede { margin-top: var(--s5); }
.demo-form { grid-column: 7 / span 6; }
@media (max-width: 1199px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-intro, .demo-form { grid-column: 1; }
  .demo-form { max-width: 640px; }
}

/* The form: every answer is one block with the same label above it and the same gap between. */
.demo-form { display: flex; flex-direction: column; gap: var(--s6); }
.pick { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s2); }
.pick-l { float: left; width: 100%; padding: 0; margin-bottom: var(--s2); font-size: var(--fs-small); color: var(--ink-80); } /* the .field label; floated so the legend joins the fieldset's flex flow */
.pick-grid { display: grid; gap: var(--s2); }
.pick-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Phones: one option per row for both groups. Three team options side by side left ~33px for a label at 375. */
@media (max-width: 519px) { .pick-grid.c2, .pick-grid.c3 { grid-template-columns: minmax(0, 1fr); } }

/* An option is a field-height control in the .input kit: square, hairline, the native radio kept so
   it reads as a choice. Chosen = ink-60 border and the 5% fill (no accent: accent is never a state). */
.opt { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: var(--s2) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-frame); cursor: pointer; transition: border-color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.opt:hover { border-color: var(--ink-40); }
.opt input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.opt input:focus-visible { outline: 2px solid var(--ink-80); outline-offset: 2px; }
.opt:has(input:checked), .opt.is-on { border-color: var(--ink-60); background: var(--fill-soft); }
.opt-t { font-size: var(--fs-small); line-height: 1.35; color: var(--ink); min-width: 0; }
.is-invalid .opt { border-color: var(--ink-40); }

.form-end { display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); margin-top: var(--s2); }
.form-end .btn { width: 100%; min-height: 48px; }
.form-end .small { text-align: center; }
.alt-free { margin-top: var(--s3); }
.alt-free a { color: var(--ink-80); text-decoration: underline; text-decoration-color: var(--ink-40); text-underline-offset: 3px; transition: color var(--t-hover) var(--ease); }
.alt-free a:hover { color: var(--ink); }

/* Errors (10 Nov). The site has no red: a line under the answer in ink-80 led by the review dot, and the
   field's border goes to ink-60 (its focus colour). The send-failure note is the sign-in page's error
   (login.css .auth-err), same values; [follow-up] lift both into one site.css rule once /login/ lands. */
.input[aria-invalid="true"] { border-color: var(--ink-60); }
.field-err { display: flex; gap: var(--s2); font-size: var(--fs-small); color: var(--ink-80); }
.field-err::before, .form-err::before { content: ""; flex: none; width: 4px; height: 4px; margin-top: 9px; background: var(--st-review); }
.form-err { display: flex; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-frame); font-size: var(--fs-small); color: var(--ink); }
.form-err a { text-decoration: underline; text-underline-offset: 3px; }
.form-err[hidden], .field-err[hidden] { display: none; }
.demo-form[aria-busy="true"] [data-submit] { cursor: default; opacity: 0.6; }
.form-noscript { color: var(--ink-80); }
.form-noscript a { text-decoration: underline; text-underline-offset: 3px; }
/* The spam trap: off screen, out of the tab order and the accessibility tree. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- /blog: a plain list of posts ---------- */
.posts { border-top: 1px solid var(--line); }
.posts li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s2); padding-block: var(--s6); border-bottom: 1px solid var(--line); }
.posts .cat { grid-column: 1 / span 3; padding-top: 6px; }
.posts .h3 { grid-column: 4 / span 7; }
.posts .h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) var(--ease); }
.posts .h3 a:hover { text-decoration-color: currentColor; }
.posts .by { grid-column: 4 / span 7; font-size: var(--fs-small); color: var(--ink-60); }
@media (max-width: 767px) {
  .posts li { grid-template-columns: 1fr; }
  .posts .cat, .posts .h3, .posts .by { grid-column: auto; padding-top: 0; }
}

/* ---------- /integrations: the catalogue as text ----------
   One row per category: name on the left, its tools on the right. Logos are greyed like the
   homepage .tools grid; the name is always text beside them. A row layout, not a grid of
   boxes, because categories hold one to six tools and a fixed grid left ragged empty cells. */
.stats.c4 { --cols: 4; }
.cat-group + .cat-group { margin-top: var(--s10); }
.cat-group > .h3 { margin-bottom: var(--s5); }
.cat-rows { border-top: 1px solid var(--line); }
.cat-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s3); padding-block: var(--s5); border-bottom: 1px solid var(--line); }
.cat-row > .h4 { grid-column: 1 / span 4; }
.cat-row > ul { grid-column: 5 / span 8; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); }
.cat-row li { display: flex; align-items: center; gap: var(--s3); color: var(--ink-80); }
.cat-row img, .cat-row .nologo { width: 20px; height: 20px; object-fit: contain; filter: grayscale(1); opacity: 0.8; flex: none; }
@media (max-width: 767px) {
  .cat-row { grid-template-columns: 1fr; }
  .cat-row > .h4, .cat-row > ul { grid-column: auto; }
  .cat-row > ul { gap: var(--s3) var(--s5); }
}
.points { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s5); color: var(--ink-80); max-width: 60ch; }
.points li { padding-left: var(--s5); position: relative; }
.points li::before { content: "·"; position: absolute; left: 6px; color: var(--ink-60); }

/* ---------- /security.html ---------- */
/* A quote is a real object, so it gets a card (the one card on the page). */
.qcard { margin-top: var(--s7); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-frame); background: var(--surface); max-width: 60ch; }
.qcard figcaption { margin-top: var(--s4); font-size: var(--fs-small); color: var(--ink-60); }
.qcard figcaption b { color: var(--ink); }
.cells .h4 + .body { margin-top: var(--s3); }
.sp-group + .sp-group { margin-top: var(--s9); }
.sp-group > .h3 { margin-bottom: var(--s5); }
.attest { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s6); align-items: start; }
.attest > div { grid-column: 1 / span 6; }
.attest > .rows { grid-column: 8 / span 5; }
.attest .rows > li { justify-content: space-between; flex-wrap: wrap; padding-block: var(--s4); }
@media (max-width: 1199px) { .attest { grid-template-columns: 1fr; } .attest > div, .attest > .rows { grid-column: auto; } }
.hero-links { display: flex; flex-wrap: wrap; gap: 0 var(--s6); margin-top: var(--s5); }

/* ---------- /demo/thanks and /404 ---------- */
.plain-end { margin-top: var(--s7); }
.plain-end .linkrow { margin-top: var(--s5); }
.attest .h3 + .body { margin-top: var(--s3); }

/* /security/ (10 Nov, round 2). The gate track (site.css) then the three cells, as on home. Each protection
   group is one joined grid: its first block is the drawing and title, centred, spanning both rows. */
.sec-updated { margin-top: var(--s6); color: var(--ink-60); }
.gates.panel { margin-bottom: var(--s9); } /* 12 Nov: stacked blocks 64px apart */
.g-cap { margin-top: var(--s7); font-size: var(--fs-small); color: var(--ink-60); }
.sec-cells .h4 + .body { margin-top: var(--s3); }
.sp-group + .sp-group { margin-top: var(--s9); } /* 12 Nov: stacked blocks 64px apart. Was s6 (32px). */
/* 10 Nov (Avi): left-aligned, drawing on the text edge as on home's Start tiers; still centred top to bottom. */
.sp-cells > .sp-head { grid-row: span 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; }
.sp-head .path-frame { justify-content: flex-start; margin-bottom: var(--s6); }
.sp-head .body { margin-top: var(--s2); color: var(--ink-60); max-width: 26ch; }
@media (max-width: 1199px) { .sp-cells > .sp-head { grid-column: 1 / -1; grid-row: auto; padding-block: var(--s8); } }
@media (max-width: 767px) { .sp-head .path-art { zoom: 0.8; } /* one factor for all three, so the optical sizing holds (was a fixed 80px height) */ .sp-cells > .sp-head { padding-block: var(--s6); } }
/* Same title block in all three groups (10 Nov, Avi). The head is always a quarter of the grid: the four-item
   groups give their two item columns 1.5fr each, so the head column matches the six-item group's 1fr of 4. */
@media (min-width: 1200px) { .sp-cells[style*="--cols:3"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr); } }

/* /security/ agent controls (10 Nov, Avi: the gate track repeated home). The site's one table (.tbl): the control
   name, then the answer in ink with its detail under it, so a reviewer can scan the answers alone. Phones stack
   each row (the hub's pattern), no sideways scroll. */
.sec-tbl tbody th { width: 24%; }
.sec-tbl td b { display: block; font-weight: 500; color: var(--ink); }
.sec-tbl td .s { margin-top: var(--s1); max-width: 68ch; }
@media (max-width: 767px) {
  .sec-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sec-tbl tr, .sec-tbl th, .sec-tbl td { display: block; width: auto !important; }
  .sec-tbl tbody tr { padding-block: var(--s5); border-bottom: 1px solid var(--line); }
  .sec-tbl th, .sec-tbl td { border: 0; padding: 0; }
  .sec-tbl tbody th { font-size: var(--fs-cap); color: var(--ink-60); }
  .sec-tbl tbody th b { font-weight: 400; color: inherit; }
  .sec-tbl td { margin-top: var(--s2); }
}
