/* ==========================================================================
   features.css — /features page-specific styles
   Colors/type/spacing come from tokens.css via base.css. Layout primitives
   (.feature, .check-list, .security, .final-cta, .breadcrumb-idioms) are
   reused from home.css; this sheet adds ONLY what /features needs on top:
   the page hero, the icon-card grid (for the imageless features), and the
   security-band tweaks. Mobile-first; @media (min-width:900px) enhances.
   Cards use borders, never shadows. No horizontal overflow at 390px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   BREADCRUMB — same treatment as /security and /pricing.
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 20px;
}
.breadcrumb a { font-size: 0.8rem; }
.breadcrumb span[aria-current] { color: var(--color-muted); }

/* --------------------------------------------------------------------------
   PAGE HERO — copy on the left, product shot on the right (same grid idiom
   as the homepage hero, but opens with a breadcrumb like the other subpages).
   -------------------------------------------------------------------------- */
.features-hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.features-hero h1 { margin: 12px 0 16px; }
.features-hero .sub {
  font-size: 1.15rem;
  color: var(--color-ink);
  margin: 0 0 20px;
  max-width: 48ch;
}
.features-hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
@media (min-width: 900px) {
  .features-hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  /* The breadcrumb spans the full width, above the two-column split. */
  .features-hero .breadcrumb { grid-column: 1 / -1; margin-bottom: 4px; }
}

/* --------------------------------------------------------------------------
   SECTION INTRO — small centered lead-in above a group (e.g. the icon grid).
   -------------------------------------------------------------------------- */
.features-intro .section-head { margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   ICON-CARD GRID — for features that have no product screenshot
   (Accountants, Data Integrity, GST Invoicing, Pricing). Same bordered-card
   idiom as .pain-card / .plan-card; inline stroke-SVG icon in a violet chip.
   -------------------------------------------------------------------------- */
.icon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
.icon-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: color-mix(in srgb, var(--color-primary) 3%, var(--color-bg));
  display: flex;
  flex-direction: column;
  /* Match the hover-lift micro-interaction used by .pain-card / .testi-card. */
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.icon-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
}
.icon-badge {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  margin-bottom: 18px;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-card h3 { margin: 0 0 6px; }
.icon-card .hook {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 0.98rem;
}
/* Proof points inside a card always stack single-column, overriding the
   two-column .check-list default from home.css. */
.icon-card .check-list { grid-template-columns: 1fr !important; gap: 12px !important; }
.icon-card .check-list li { font-size: 0.96rem; }

@media (min-width: 768px) {
  .icon-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}

/* --------------------------------------------------------------------------
   SECURITY BAND — reuses .security grid from home.css; here the right column
   anchors the <cf-stamp> web component + a DPDP wordmark badge underneath.
   -------------------------------------------------------------------------- */
.features-security .security-stamp {
  flex-direction: column;
  gap: 16px;
}
.dpdp-badge {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4em 0.9em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   ALTERNATING FEATURE ROWS — a portrait screenshot (insights.jpg is 2:3)
   shouldn't tower over its copy column; cap its height and center it.
   -------------------------------------------------------------------------- */
.feature-media img.portrait {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}
