/* Guisera — homepage layer.
 *
 * A darker, more deliberate front door. The palette is the brand ramp
 * (indigo -> violet -> cyan) over a near-black field, with content sections
 * dropping back to white so the page breathes between them.
 *
 * Additive and namespaced `h-`: site.css still drives pricing, FAQ, blog and the
 * tool pages, so this cannot disturb them.
 */

:root {
  --h-ink: #0b0e1a;
  --h-ink-2: #151a2e;
  /* These were three separate accents -- violet, indigo, cyan -- lit behind the
     hero. Blurred at 110px they read as a purple-to-cyan wash, which is the
     single most recognisable thing on the page and belonged to no product.
     All three now point at the brand: same depth, one colour. */
  --h-violet: var(--brand);
  --h-indigo: var(--brand);
  --h-cyan: var(--brand-dark);
  --h-ramp: var(--brand);
  --h-muted: #8a93ab;
  --h-line: rgba(255, 255, 255, 0.10);
}

.h-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- hero ---- */
.h-hero {
  position: relative;
  background: var(--h-ink);
  color: #fff;
  padding: 92px 0 104px;
  overflow: hidden;
}
/* Two soft radial pools rather than a flat gradient, so the background has
   somewhere for the eye to rest instead of a hard band. */
.h-hero::before,
.h-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.h-hero::before { width: 620px; height: 620px; top: -240px; left: -160px; background: var(--h-indigo); opacity: .5; }
.h-hero::after  { width: 560px; height: 560px; bottom: -280px; right: -140px; background: var(--h-cyan); opacity: .32; }

.h-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--h-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #c9d1e4;
}
.h-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.22);
}

.h-hero h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 5.1vw, 62px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.h-grad {
  background: var(--h-ramp);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-hero .h-sub {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: #b6bfd4;
  max-width: 33em;
}

.h-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.h-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.h-btn-primary {
  background: var(--h-ramp);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(var(--brand-rgb), 0.75);
}
.h-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(var(--brand-rgb), 0.9); color: #fff; }
.h-btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: var(--h-line); }
.h-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.h-btn-dark { background: var(--h-ink); color: #fff; }
.h-btn-dark:hover { transform: translateY(-2px); color: #fff; }

.h-hero-note { margin-top: 16px; font-size: 13px; color: var(--h-muted); }
.h-hero-note strong { color: #dfe5f2; font-weight: 600; }

/* ---- hero visual: an abstract lens, not a fabricated screenshot ---------- */
.h-stage {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: 22px;
  border: 1px solid var(--h-line);
  background: linear-gradient(160deg, var(--dark-raised), var(--dark));
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
  overflow: hidden;
}
.h-stage-bar {
  height: 38px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--h-line);
  background: rgba(255,255,255,.03);
}
.h-stage-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3450; display: block; }
.h-stage-bar span { margin-left: auto; font-size: 11px; color: var(--h-muted); letter-spacing: .04em; }
.h-stage-body { position: relative; height: calc(100% - 38px); display: grid; place-items: center; }

.h-rings { position: relative; width: 60%; aspect-ratio: 1; }
.h-rings span {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(var(--brand-rgb), .5);
  animation: h-pulse 3.6s ease-in-out infinite;
}
.h-rings span:nth-child(2) { inset: 14%; border-color: rgba(var(--brand-rgb), .45); animation-delay: .5s; }
.h-rings span:nth-child(3) { inset: 28%; border-color: rgba(var(--brand-rgb), .55); animation-delay: 1s; }
.h-rings span:nth-child(4) {
  inset: 40%;
  border: none;
  background: var(--h-ramp);
  opacity: .9;
  animation-delay: 1.4s;
}
@keyframes h-pulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.06); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .h-rings span { animation: none; }
}
.h-chip-float {
  position: absolute;
  padding: 8px 13px;
  border-radius: 10px;
  background: rgba(12,16,30,.86);
  border: 1px solid var(--h-line);
  font-size: 12px;
  font-weight: 600;
  color: #dbe2f2;
  white-space: nowrap;
}

/* ------------------------------------------------- capability strip ------- */
.h-strip {
  background: var(--h-ink-2);
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
  padding: 26px 0;
}
.h-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.h-strip-val { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.h-strip-lab { font-size: 12.5px; color: var(--h-muted); margin-top: 3px; }

/* ------------------------------------------------------------ sections ---- */
.h-section { padding: 88px 0; }
.h-section.alt { background: #f7f8fc; }
.h-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.h-head h2 {
  font-size: clamp(27px, 3.3vw, 40px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 10px 0 0;
}
.h-head p { color: var(--text-medium); font-size: 16.5px; margin: 14px 0 0; }
.h-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--h-violet);
}

/* --------------------------------------------------------------- cards ---- */
.h-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.h-card {
  background: #fff;
  border: 1px solid #e7e9f2;
  border-radius: 18px;
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.h-card:hover {
  transform: translateY(-4px);
  border-color: #d6d9ea;
  box-shadow: 0 22px 45px -26px rgba(20, 24, 50, .38);
}
.h-card h3 { margin: 16px 0 8px; font-size: 18.5px; letter-spacing: -.015em; }
.h-card p { margin: 0; color: var(--text-medium); font-size: 14.6px; line-height: 1.68; }
.h-ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--h-ramp);
  color: #fff;
  font-size: 19px;
}

/* --------------------------------------------------------------- steps ---- */
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.h-step { padding-top: 8px; }
.h-step-n {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--h-ink);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.h-step h3 { margin: 0 0 8px; font-size: 18px; }
.h-step p { margin: 0; color: var(--text-medium); font-size: 14.6px; line-height: 1.68; }

/* --------------------------------------------------------------- tools ---- */
.h-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.h-tool {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid #e7e9f2;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.h-tool:hover { transform: translateY(-3px); border-color: var(--h-violet); box-shadow: 0 18px 34px -22px rgba(var(--brand-rgb), .5); }
.h-tool-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f1f5f9; }
.h-tool-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.h-tool:hover .h-tool-shot img { transform: scale(1.05); }
.h-tool-tag {
  position: absolute; bottom: 9px; left: 9px; padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
}
.h-tool-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: var(--brand);
  box-shadow: 0 6px 16px -6px rgba(var(--brand-rgb), .6);
}
.h-tool-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 15px; }
.h-tool strong { display: block; font-size: 14.6px; color: var(--text-dark); letter-spacing: -.01em; }
/* --text-light is #94a3b8: 2.56:1 on white, which fails at any size and this
   is 12.6px. It is also the only line saying what the tool does.

   Scoped to the BODY on purpose: at `.h-tool span` it also matched the
   POPULAR/TRENDING badges and the BEFORE/AFTER tag (both <span>s inside the
   card), and class+type specificity beat their own white-on-brand rules --
   leaving slate-grey text on the blue badge and on the dark tag, illegible
   in both. */
.h-tool-body span { display: block; font-size: 12.6px; color: var(--ink-muted); margin-top: 4px; }
.h-tool-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px;
  font-size: 12.2px; color: var(--ink-muted); font-style: normal;
}
.h-tool-foot .go { color: var(--h-violet); font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
.h-tool-foot .go i { font-size: 10px; transition: transform .16s ease; }
.h-tool:hover .h-tool-foot .go i { transform: translateX(2px); }
/* Icon-only fallback for tools with no imagery: keeps the old comfortable
   padding, since the image card's padding lives on the body instead. */
.h-tool--ico { padding: 18px; }
.h-tool--ico .h-tool-ico {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--h-indigo);
  font-size: 16px;
  margin-bottom: 12px;
}

/* The full catalogue under the featured rail: every tool, grouped by category.
   Chips rather than a grid because the groups are wildly uneven (sixteen image
   tools, one voice tool) and a grid would leave three-quarters of one row
   empty. */
.h-catlog { margin-top: 38px; display: flex; flex-direction: column; gap: 20px; }
.h-catrow { display: grid; grid-template-columns: 172px 1fr; gap: 14px; align-items: baseline; }
.h-catrow h3 {
  margin: 0; font-size: 11.5px; font-weight: 750; letter-spacing: .1em;
  text-transform: uppercase; color: var(--h-violet);
}
.h-catchips { display: flex; flex-wrap: wrap; gap: 8px; }
.h-catchips a {
  padding: 7px 13px; border-radius: 999px; border: 1px solid #e7e9f2;
  background: #fff; font-size: 13.2px; font-weight: 550; color: var(--text-dark);
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease;
}
.h-catchips a:hover { border-color: var(--brand); color: var(--h-violet); }

/* The "how it works" steps describe the camera's route; this is the tools',
   which has none. Sits under the grid rather than as a fourth step so the
   numbering stays about the app. */
.h-steps-note { margin: 26px auto 0; max-width: 46em; text-align: center; font-size: 14px; color: var(--text-medium); }
.h-steps-note a { color: var(--h-violet); font-weight: 650; }
.h-steps-note a i { font-size: 10px; }

/* ------------------------------------------------------------ benefits ---- */
.h-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 34px; }
.h-benefit { display: flex; gap: 14px; }
.h-benefit > i {
  flex: none;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(var(--brand-rgb), .1);
  color: var(--h-violet);
  font-size: 15px;
}
.h-benefit h3 { margin: 2px 0 5px; font-size: 15.6px; }
.h-benefit p { margin: 0; font-size: 14px; color: var(--text-medium); line-height: 1.62; }

/* The FAQ component lives in faq.css — it is shared by the homepage, the
   pricing page and the FAQ page, and was too big to keep inline here. */

/* --------------------------------------------------------- closing CTA ---- */
.h-final {
  position: relative;
  background: var(--h-ink);
  color: #fff;
  padding: 84px 0;
  text-align: center;
  overflow: hidden;
}
.h-final::before {
  content: "";
  position: absolute; inset: -50% 20% auto 20%; height: 420px;
  background: var(--h-ramp);
  filter: blur(130px);
  opacity: .35;
}
.h-final > * { position: relative; z-index: 1; }
.h-final h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.h-final p { color: #b6bfd4; margin: 16px auto 30px; max-width: 34em; font-size: 16.5px; }
.h-final p a { color: #fff; font-weight: 650; }
.h-final p a:hover { color: var(--brand); }

/* ---------------------------------------------------------- responsive ---- */
@media (max-width: 1000px) {
  .h-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .h-tools { grid-template-columns: repeat(2, 1fr); }
  .h-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .h-hero { padding: 64px 0 72px; }
  .h-section { padding: 62px 0; }
  .h-cards, .h-steps, .h-benefits { grid-template-columns: 1fr; }
  .h-catrow { grid-template-columns: 1fr; gap: 8px; }
  .h-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .h-cta-row .h-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------------- admin-added sections ---------------- */

/*
 * One shape -- kicker, heading, body, optional button, optional picture -- laid
 * out four ways. The arrangement is a class on the section rather than a
 * variant template, so all four share the same spacing, the same type scale and
 * the same breakpoints, and a change to one is a change to all.
 */

.hp-section {
  padding: 84px 0;
  position: relative;
}

.hp-theme-light  { background: #fff; color: var(--text-medium, #475569); }
/* TINTED MEANS A WASH, NOT THE FULL COLOUR.
   The palette sweep flattened this from a soft gradient to solid `var(--brand)`
   and left the text at slate — dark grey body copy on full-saturation blue,
   which is both wrong for the theme's name and a contrast failure. A section an
   operator marked "tinted" is meant to sit quietly between two white ones. */
.hp-theme-tinted { background: var(--brand-soft); color: var(--text-medium, #475569); }
.hp-theme-dark   { background: linear-gradient(170deg, var(--dark), var(--dark-raised)); color: var(--dark-ink-muted); }

.hp-grid {
  display: grid;
  gap: 52px;
  align-items: center;
}

/* Text and picture side by side. `1.05fr 1fr` rather than equal halves: a
   column of prose needs slightly more room than a picture to avoid a ragged
   right edge at this width. */
.hp-image-right .hp-grid { grid-template-columns: 1.05fr 1fr; }
.hp-image-left  .hp-grid { grid-template-columns: 1fr 1.05fr; }
/* `order` rather than reordering the markup: the copy stays first in the
   document, so a screen reader and a phone both get the heading before the
   picture regardless of which side it is drawn on. */
.hp-image-left .hp-copy   { order: 2; }
.hp-image-left .hp-figure { order: 1; }

/* Full width: copy centred above, picture large below. */
.hp-full .hp-grid { grid-template-columns: 1fr; gap: 40px; }
.hp-full .hp-copy { max-width: 720px; margin: 0 auto; text-align: center; }

.hp-text-only .hp-grid { grid-template-columns: 1fr; }
.hp-text-only .hp-copy { max-width: 720px; margin: 0 auto; text-align: center; }

/* ---- the words ---- */

.hp-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.hp-theme-dark .hp-kicker { color: var(--brand); }

.hp-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-dark, #0f172a);
}
.hp-theme-dark .hp-copy h2 { color: #f1f5f9; }

.hp-body {
  font-size: 16.5px;
  line-height: 1.7;
}
.hp-body p { margin: 0 0 14px; }
.hp-body p:last-child { margin-bottom: 0; }
.hp-body ul { margin: 0 0 14px; padding-left: 22px; }
.hp-body li { margin-bottom: 8px; }
.hp-body strong { color: var(--text-dark, #0f172a); }
.hp-theme-dark .hp-body strong { color: #e2e8f0; }

.hp-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.16s ease, transform 0.16s ease;
}
/* Restates its own colours. A `.hp-body a` or a global link rule would
   otherwise out-specify a single-class button and take the label off it --
   which has now happened twice in this project. */
.hp-cta:link,
.hp-cta:visited { color: #fff; }
.hp-cta:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.hp-cta i { font-size: 12px; }

/* ---- the picture ---- */

.hp-figure {
  margin: 0;
  line-height: 0;
  border-radius: 14px;
  overflow: hidden;
}
.hp-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Light sections get a lifted card; dark ones get an edge, because a shadow on
   a dark ground is invisible and a dark screenshot without one loses its
   boundary entirely. */
.hp-theme-light .hp-figure,
.hp-theme-tinted .hp-figure {
  box-shadow: 0 30px 70px -34px rgba(15, 34, 78, 0.4);
}
.hp-theme-dark .hp-figure {
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.8);
}

.hp-full .hp-figure { max-width: 1020px; margin: 0 auto; }

/* ---- responsive ---- */

@media (max-width: 900px) {
  .hp-section { padding: 58px 0; }
  /* Every arrangement becomes one column, copy first. The `order` above is
     reset so an image-left section does not put the picture above its own
     heading on a phone. */
  .hp-grid { grid-template-columns: 1fr !important; gap: 30px; }
  .hp-image-left .hp-copy,
  .hp-image-left .hp-figure { order: 0; }
  .hp-copy { text-align: left; max-width: none; }
  .hp-full .hp-copy,
  .hp-text-only .hp-copy { text-align: left; }
  .hp-body { font-size: 16px; }
}

@media (max-width: 520px) {
  .hp-section { padding: 44px 0; }
  .hp-cta { width: 100%; justify-content: center; }
}

/* ===========================================================================
 * Homepage sections added in the content pass
 *
 * The page already had a hero, three capability cards, the steps, the tool
 * grid, benefits, pricing and an FAQ -- a complete skeleton with very little
 * flesh on it. A visitor could tell WHAT the product was and not whether it
 * was for them, what it worked with, what a credit actually bought, or what
 * happens to a face they upload.
 *
 * These four blocks answer those, and reuse .h-wrap / .h-head / .h-section so
 * the rhythm of the page does not change. Nothing here introduces a colour:
 * everything is --brand, the neutrals, or the status pair.
 * ======================================================================== */

/* ---- who it is for ------------------------------------------------------
 * Four audiences, each with the specific thing that audience is trying to do.
 * A grid rather than a carousel: a visitor scanning for themselves needs to
 * see all four at once, and a carousel hides three quarters of the answer. */
.h-aud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.h-aud-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.h-aud-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: 0 18px 40px -24px rgba(15, 34, 78, 0.35);
}
.h-aud-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 17px;
}
.h-aud-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.h-aud-card p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-body);
}
/* The list is the specific part -- the card headline says who, these say what.
   `margin-top:auto` pins them to the bottom so cards of different copy length
   still line their lists up. */
.h-aud-list {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.h-aud-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.h-aud-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .55;
}

/* ---- works with ---------------------------------------------------------
 * A dark band, deliberately. It sits between two light sections and is the one
 * claim a sceptical visitor most wants confirmed before downloading anything;
 * the contrast makes it a stop rather than more scrolling. */
.h-compat { background: var(--dark); color: var(--dark-ink); padding: 78px 0; }
.h-compat .h-head h2 { color: #fff; }
.h-compat .h-head p { color: var(--dark-ink-muted); }
.h-compat .h-kicker { color: #93c5fd; }

.h-compat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}
.h-compat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  background: var(--dark-raised);
  text-align: center;
}
.h-compat-item i { font-size: 22px; color: #93c5fd; }
.h-compat-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-ink);
  letter-spacing: -.01em;
}

/* The explanation under the grid. It is the actual answer -- the icons only
   illustrate it -- so it gets the width and the weight rather than a caption. */
.h-compat-note {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  background: rgba(var(--brand-rgb), 0.10);
  text-align: center;
  font-size: 15px;
  line-height: 1.68;
  color: var(--dark-ink);
}
.h-compat-note strong { color: #fff; }

/* ---- what a credit buys -------------------------------------------------
 * Three columns rather than prose: the question is arithmetic, and arithmetic
 * laid out as a paragraph is arithmetic nobody does. */
.h-credit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.h-credit-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 16px;
}
.h-credit-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.h-credit-figure {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--brand);
  margin: 10px 0 8px;
}
.h-credit-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-body);
}
.h-credit-foot {
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---- trust and safety ---------------------------------------------------
 * Four cards that each LINK somewhere. A trust section that only asserts
 * trustworthiness is the least trustworthy thing on a page; every claim here
 * opens the document that backs it. */
.h-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.h-trust-card,
.h-trust-card:link,
.h-trust-card:visited {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.h-trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-rgb), 0.4);
  box-shadow: 0 18px 40px -26px rgba(15, 34, 78, 0.35);
}
.h-trust-card i {
  font-size: 19px;
  color: var(--brand);
  margin-bottom: 14px;
}
.h-trust-card h3 {
  margin: 0 0 7px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.h-trust-card p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-body);
}
/* The affordance. Without it these read as four static panels and the links
   go unnoticed, which defeats the point of linking the documents at all. */
.h-trust-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.h-trust-card:hover .h-trust-more { color: var(--brand-dark); }

/* ---- responsive ---------------------------------------------------------
 * Two columns before one, everywhere. The operator's standing rule for this
 * product is that a grid of small cards goes to 2-up on a phone rather than
 * stacking into a column the length of the page. */
@media (max-width: 1000px) {
  .h-aud { grid-template-columns: repeat(2, 1fr); }
  .h-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .h-compat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .h-credit { grid-template-columns: 1fr; gap: 14px; }
  .h-compat { padding: 56px 0; }
  .h-compat-note { font-size: 14.5px; padding: 18px 20px; }
}

@media (max-width: 520px) {
  /* Still two columns. The cards lose their padding and their body copy
     instead -- the headline and the icon are what a thumb is scanning for. */
  .h-aud { gap: 12px; }
  .h-aud-card { padding: 18px 15px; }
  .h-aud-ico { width: 36px; height: 36px; font-size: 15px; margin-bottom: 12px; }
  .h-aud-card h3 { font-size: 15px; }
  .h-aud-card p { font-size: 13.5px; }
  .h-aud-list li { font-size: 12.5px; padding-left: 16px; }

  .h-trust-grid { gap: 12px; }
  .h-trust-card { padding: 18px 15px; }
  .h-trust-card h3 { font-size: 14.5px; }
  .h-trust-card p { font-size: 13px; }

  .h-compat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .h-compat-item { padding: 16px 8px; }
  .h-credit-figure { font-size: 29px; }
}
