/* AiB Platform — public surface (guest free-tools pages + auth screens).
   Ink header/footer band around a light canvas. Tokens live in css/tokens.css,
   primitives in css/base.css; loaded after the css/components/ sheets. */

body { display: flex; flex-direction: column; }

/* ---------- header / footer band ---------- */
.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 16px var(--pad);
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--hairline-dark);
}
/* the lockup wears 28px on the public band (21px base elsewhere) — the
   suffix and tittle are em-sized, so the whole mark scales as one piece;
   on phones it eases down so the CTA pill keeps its room */
.public-header .mark { font-size: clamp(23px, 6.5vw, 28px); }
.public-state { margin-left: auto; display: flex; align-items: center; gap: 18px; }
@media (max-width: 719px) {
  .public-header { gap: 16px; }
  .public-state { gap: 12px; }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px 10px;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: inherit; /* <button> pills wear the band's ink like <a> pills do */
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.pill:hover {
  background: color-mix(in srgb, currentColor 15%, transparent);
  border-color: color-mix(in srgb, currentColor 60%, transparent);
}

.public-main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(40px, 7vh, 80px) var(--pad) clamp(56px, 9vh, 110px);
}
.public-hero { margin-bottom: clamp(28px, 5vh, 48px); }
.public-hero .eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 14px;
}
.public-hero .eyebrow, .public-hero .stats {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.public-statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.public-sub { margin: 14px 0 0; color: var(--grey); font-size: clamp(15px, 1.3vw, 18px); max-width: 56ch; }

/* min() keeps the card track narrower than any phone screen */
.free-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}
.free-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.free-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.free-card .type-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.free-card .type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey);
}
.free-card .name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.free-card .sum { margin: 0; color: var(--grey); font-size: 13.5px; flex: 1; }
.free-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Collapsible bands of free tools — the aib-site section language
   (sections.css .sec-head, base.css .label): a hairline rule, ONE quiet
   mono metadata row (index left, count + state right), then the display
   voice does the talking — the section heading with its sentence in a
   measured right-hand column. Mono never plays the heading; that's the
   site's hierarchy. Native <details>, no JS. */
.free-section + .free-section { margin-top: clamp(56px, 9vh, 96px); }
.free-section > summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(auto, 44ch);
  grid-template-areas:
    "row   row"
    "title para";
  gap: 22px 48px;
  align-items: start;
  padding-top: 18px;
  margin-bottom: clamp(28px, 4.5vh, 44px);
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.free-section > summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.18;
}
.free-section > summary::-webkit-details-marker { display: none; }
.free-section > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.free-section .fs-row {
  grid-area: row;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.free-section .fs-meta { color: var(--grey); }
.free-section .fs-state { transition: color 0.3s; }
.free-section .fs-state::before { content: '·'; margin: 0 8px; }
.free-section .fs-state::after { content: 'Hide'; }
.free-section:not([open]) .fs-state::after { content: 'Show'; }
.free-section > summary:hover .fs-state {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.free-section .fs-title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 740;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  transition: transform 0.5s cubic-bezier(0.16, 0.84, 0.24, 1);
}
.free-section > summary:hover .fs-title { transform: translateX(6px); }
.free-section .fs-sub {
  grid-area: para;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.4;
  text-wrap: pretty;
}
@media (max-width: 860px) {
  .free-section > summary {
    grid-template-columns: 1fr;
    grid-template-areas: "row" "title" "para";
    gap: 14px;
  }
  .free-section .fs-sub { max-width: 44ch; }
}

.teams-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 7vh, 72px);
  padding: 24px 26px;
}
.teams-band .band-title { margin: 0 0 4px; font-family: var(--font-display); font-weight: 640; font-size: 19px; }
.teams-band .band-sub { margin: 0; color: var(--grey); font-size: 14px; max-width: 52ch; }
.pill--ink { color: var(--ink); }

.public-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px var(--pad);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  overflow-wrap: anywhere; /* the contact address breaks before the page does */
}
.public-footer .ul:hover { color: var(--white); opacity: 1; }
/* the legal links huddle with the imprint at the band's right edge */
.public-footer .foot-right { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; }

/* ---------- auth (sign-in, password resets, invitations) ---------- */
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 22px; }
/* The wordmark is this page's hero. Color inherits the page ink (base.css),
   but the base 21px size left the mono "Platform" suffix (0.34em ≈ 7px, at
   0.55 opacity) barely legible — size it up like the sidebar/header mark so
   the suffix clears ~11px and the whole mark reads as a proper logo. */
.auth-brand .mark { font-size: clamp(30px, 8vw, 34px); }
.auth-foot { margin-top: 16px; display: flex; justify-content: space-between; font-size: 13px; gap: 12px; flex-wrap: wrap; }

/* ---------- free-tool disclaimer ---------- */
/* A quiet, always-visible trust block under an interactive free tool. Paper
   ground + hairline (no card shadow) so it reads as fine print, not a feature. */
.free-disclaimer {
  margin-top: clamp(22px, 4vh, 36px);
  padding: clamp(18px, 2vw, 22px) clamp(20px, 2.4vw, 26px);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.free-disclaimer .label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.free-disclaimer p { margin: 0; max-width: 68ch; color: var(--grey); font-size: 13px; line-height: 1.6; }
.free-disclaimer p + p { margin-top: 10px; }
.free-disclaimer .accept {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--grey-dark);
}
