/* ============================================================
   HiVi Labs — Reference-layout pattern primitives
   Additive layer on tokens.css + base.css. These encode the
   recurring shapes from the 2026 reference layouts (Notion /
   Airbus / Prompt) so every section composes the SAME building
   blocks: big-type section heads, eyebrow+accent-bar, checklists,
   feature-split (copy | media), dark highlight cards, logo strips
   and bento grids. Sections may extend these with scoped inline
   styles, but should not redefine the shapes.
   ============================================================ */

/* --- Bigger, more spacious section heads (Airbus/Prompt display type) --- */
.section-head--xl { max-width: 880px; }
.section-head--xl h2 { font-size: var(--fs-64); line-height: var(--lh-tight); }
.section-head--xl p { font-size: var(--fs-20); max-width: 60ch; }
/* solid accent bar under a heading (Airbus motif) */
.accent-bar {
  width: 56px; height: 4px; border-radius: var(--r-pill);
  background: var(--grad-accent); margin: 1.25rem 0 0;
}
.section-head--center .accent-bar { margin-inline: auto; }

/* --- Checklist (Prompt feature lists) --- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.checklist li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start;
  color: var(--text-mid); font-size: var(--fs-16); line-height: 1.5;
}
.checklist li > .check {
  flex: none; width: 26px; height: 26px; margin-top: 1px;
  display: grid; place-items: center; border-radius: var(--r-pill);
  background: rgba(13,148,136,0.12); border: 1px solid rgba(13,148,136,0.28);
  color: var(--accent-2);
}
.checklist li > .check .icon { width: 15px; height: 15px; }
.checklist--accent li > .check {
  background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.28); color: var(--accent-hi);
}

/* --- Feature split: copy on one side, media/UI mock on the other --- */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.feature-split--reverse .feature-split__media { order: -1; }
.feature-split__copy { max-width: 52ch; }
.feature-split__media { position: relative; min-width: 0; }
@media (max-width: 900px) {
  .feature-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-split--reverse .feature-split__media { order: 0; }
}

/* media frame — soft tinted panel that hosts an SVG / UI mock (Prompt) */
.media-frame {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(160deg, rgba(59,130,246,0.10), rgba(0,194,160,0.06));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
  overflow: hidden;
}
.media-frame--plain { background: var(--glass-bg-strong); }

/* --- Card row with a dark highlight (Notion "see what X can do") --- */
.spot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
}
.spot-card {
  position: relative;
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.spot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: var(--border-strong); }
.spot-card__title { font-family: var(--font-display); font-weight: 600; color: var(--text-hi); font-size: var(--fs-20); }
.spot-card__sub { color: var(--text-lo); font-size: var(--fs-14); }

/* the dark "create your own" highlight tile */
.card--dark {
  background: linear-gradient(155deg, var(--accent-deep) 0%, #0B1124 115%);
  border-color: transparent; color: #EAF1FF;
}
.card--dark .spot-card__title, .card--dark h3, .card--dark h4 { color: #fff; }
.card--dark .spot-card__sub, .card--dark p { color: rgba(234,241,255,0.74); }

/* --- Icon tile (mega-menu / pillar glyphs, colorful) --- */
.tile {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: rgba(59,130,246,0.10); border: 1px solid rgba(59,130,246,0.20);
  color: var(--accent-hi);
}
.tile .icon { width: 22px; height: 22px; }
.tile--teal { background: rgba(13,148,136,0.10); border-color: rgba(13,148,136,0.22); color: var(--accent-2); }

/* --- Logo / trust strip (Prompt "trusted by") --- */
.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  opacity: 0.85;
}
.logo-strip__label {
  width: 100%; text-align: center; margin-bottom: 1.5rem;
  font-family: var(--font-mono); font-size: var(--fs-12);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
}
.logo-strip__item {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-20);
  color: var(--text-lo); letter-spacing: -0.02em;
  transition: color var(--dur-fast) var(--ease-out);
}
.logo-strip__item:hover { color: var(--text-hi); }

/* --- Bento grid (Notion testimonial/proof mosaic) --- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
}
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .row-2 { grid-row: span 2; }
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 2; }
  .bento .row-2 { grid-row: auto; }
}

/* --- Stat figure (big tabular number + mono caption) --- */
.figure-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-64); line-height: 1; letter-spacing: var(--tracking-tight);
  color: var(--text-hi); font-variant-numeric: tabular-nums;
}
.figure-cap {
  display: block; margin-top: 0.6rem;
  font-family: var(--font-mono); font-size: var(--fs-12);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-lo);
}

/* --- Pill tab switcher (Prompt feature tabs) --- */
.pill-tabs { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.35rem; border-radius: var(--r-pill); background: var(--bg-inset); border: 1px solid var(--border); }
.pill-tab {
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-14);
  color: var(--text-lo); padding: 0.55em 1.1em; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 0.45em;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.pill-tab .icon { width: 16px; height: 16px; }
.pill-tab[aria-selected="true"], .pill-tab.is-active { background: var(--bg-raised); color: var(--text-hi); box-shadow: var(--shadow-sm); }

@media (prefers-reduced-motion: reduce) {
  .spot-card:hover { transform: none; }
}
