/* ============================================================
   FEATURES PAGE — Operations, Finance, Compliance
   Modern SaaS feature layout with centred sections + sexy cards
   ============================================================ */

/* ===== HERO ===== */
.feat-hero {
  min-height: calc(85vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: clip;
  padding: 30px 0;
}
.feat-hero-inner {
  max-width: 64rem;
  margin: 0 auto;
}
.feat-hero .eyebrow {
  display: inline-block;
}
.feat-hero h1 {
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 16px auto 22px;
  max-width: 18ch;
  text-wrap: balance;
}
.feat-hero h1 .accent { color: var(--green); }
.feat-hero .hero-lede {
  font-size: 19px;
  max-width: 56ch;
  margin: 0 auto 28px;
  color: var(--ink-3);
}
.feat-hero .hero-cta { justify-content: center; }

/* ===== CATEGORY SECTION ===== */
.feat-cat {
  min-height: calc(100vh - 80px);
  padding: 80px 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.feat-cat--dark {
  background: var(--ink);
  color: #fff;
}
.feat-cat .wrap { width: 100%; }
.feat-cat--dark .feat-cat-head .eyebrow { color: rgba(255,255,255,0.6); }
.feat-cat--dark .feat-cat-head h2 { color: #fff; }
.feat-cat--dark .feat-cat-head p { color: rgba(255,255,255,0.7); }

.feat-cat-head {
  text-align: center;
  max-width: 60rem;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.feat-cat-head .eyebrow { margin: 0; }
.feat-cat-head h2 {
  font-weight: 800;
  font-size: clamp(36px, 4.8vw, 68px);
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 0;
  max-width: 16ch;
}
.feat-cat-head h2 .accent { color: var(--green); }
.feat-cat-head p {
  font-size: 17px;
  color: var(--ink-3);
  margin: 0;
  max-width: 56ch;
  line-height: 1.55;
}

/* ===== FEATURE GRID ===== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 14px;
  width: 100%;
}
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .feat-grid { grid-template-columns: repeat(4, 1fr); } }
.feat-grid--wide { gap: 18px; }
@media (min-width: 880px) {
  .feat-grid--wide { grid-template-columns: repeat(2, 1fr); }
}

.feat-grid-note {
  width: 100%;
  text-align: center;
  margin: 32px 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-3);
}
.feat-grid-note .accent { color: var(--green); }
.feat-cat--dark .feat-grid-note { color: rgba(255,255,255,0.6); }

/* ===== FEATURE CARD — modern SaaS style ===== */
.feat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              border-color .25s ease,
              box-shadow .35s ease,
              background .25s ease;
  cursor: default;
}
/* Top green accent line — animates in on hover */
.feat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.feat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(15, 169, 104, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow:
    0 18px 36px -22px rgba(15, 169, 104, 0.35),
    0 4px 12px -6px rgba(0,0,0,0.06);
}
.feat-card:hover::before { transform: scaleX(1); }
.feat-card:hover::after { opacity: 1; }
.feat-card:hover .feat-icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 10px 20px -10px rgba(15, 169, 104, 0.45);
}
.feat-card:hover .feat-arrow {
  opacity: 1;
  transform: translateX(0);
}

.feat-card h3 {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.feat-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
  flex: 1;
}

/* Icon — colorful gradient chip */
.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease;
  box-shadow: 0 6px 14px -8px rgba(15, 169, 104, 0.4);
}

/* Hover-reveal arrow */
.feat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  flex: none;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s ease, transform .25s ease;
}

/* Wide variant for Compliance section */
.feat-card--wide {
  padding: 32px 28px 30px;
  gap: 18px;
  border-radius: 24px;
}
.feat-card--wide h3 { font-size: 22px; }
.feat-card--wide p { font-size: 15px; }
.feat-card--wide .feat-icon { width: 54px; height: 54px; border-radius: 16px; }

/* ===== DARK SECTION VARIANT ===== */
.feat-cat--dark .feat-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
}
.feat-cat--dark .feat-card::after {
  background: radial-gradient(circle at top left, rgba(15, 169, 104, 0.16), transparent 60%);
}
.feat-cat--dark .feat-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--green);
  box-shadow: 0 18px 36px -22px rgba(15, 169, 104, 0.6);
}
.feat-cat--dark .feat-card h3 { color: #fff; }
.feat-cat--dark .feat-card p { color: rgba(255,255,255,0.66); }

/* ===== MOBILE ===== */
@media (max-width: 879px) {
  .feat-hero { padding: 30px 0; min-height: calc(100vh - 80px); }
  .feat-hero h1 { font-size: clamp(34px, 9vw, 56px); }
  .feat-cat {
    min-height: auto;
    padding: 60px 0;
  }
  .feat-cat-head { margin-bottom: 36px; gap: 14px; }
  .feat-cat-head h2 { font-size: clamp(32px, 8vw, 48px); }
  .feat-cat-head p { font-size: 15px; }
  .feat-card { padding: 22px 20px; }
  .feat-card h3 { font-size: 14px; }
  .feat-card p { font-size: 13.5px; }
  .feat-card--wide h3 { font-size: 19px; }
  .feat-card--wide p { font-size: 14.5px; }
  .feat-card:hover { transform: none; }
}

/* Active nav state */
.nav-links a.active { color: var(--green); font-weight: 700; }

/* ============================================================
   BENTO GRID per section
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
}
@media (min-width: 880px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(190px, auto);
    gap: 18px;
  }
}

/* Featured card spans 2x2 cells */
.bento .feat-card--featured {
  border-radius: 24px;
  padding: 32px 30px 28px;
  background: linear-gradient(160deg, var(--bg-soft) 0%, var(--bg) 100%);
}
@media (min-width: 880px) {
  .bento .feat-card--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}
.feat-card--featured h3 { font-size: 24px; }
.feat-card--featured > p { font-size: 15px; }
.feat-card--featured .feat-icon { width: 56px; height: 56px; border-radius: 16px; }

/* Dark variant */
.feat-cat--dark .bento .feat-card--featured {
  background: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
}

/* Small cards show just icon + title; the description (and screenshot) are
   revealed when a card is clicked into the featured slot. */
.bento .feat-card:not(.feat-card--featured) > p { display: none; }

/* ============================================================
   MINI PRODUCT MOCKUPS inside featured cards
   ============================================================ */
.mockup {
  margin-top: auto;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 28px -18px rgba(0,0,0,0.18);
  overflow: hidden;
  position: relative;
}
.feat-cat--dark .mockup {
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.08);
}

/* Featured card image mockup */
.mockup-image {
  padding: 8px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  margin-top: auto;
}
.feat-cat--dark .mockup-image {
  background: rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.08);
}
.mockup-image image-slot {
  border-radius: 10px;
  display: block;
}
.mockup-rota {
  display: grid;
  grid-template-columns: 48px repeat(5, 1fr);
  grid-template-rows: auto repeat(4, 22px);
  gap: 4px;
  font-family: var(--font-sans);
}
.mockup-rota .col-head {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0;
  text-align: center;
}
.mockup-rota .col-head:first-child { color: transparent; }
.mockup-rota .row-time {
  font-size: 9px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-rota .cell { background: var(--bg-soft); border-radius: 5px; }
.mockup-rota .shift {
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 9.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.mockup-rota .shift-green { background: var(--green); }
.mockup-rota .shift-ink { background: var(--ink); }
.mockup-rota .shift-soft { background: var(--green-soft); color: var(--green-deep); }

.feat-cat--dark .mockup-rota .cell { background: rgba(255,255,255,0.05); }
.feat-cat--dark .mockup-rota .col-head { color: rgba(255,255,255,0.5); }
.feat-cat--dark .mockup-rota .row-time { color: rgba(255,255,255,0.4); }

/* Mockup: P&L dashboard */
.mockup-pnl {
  display: grid;
  gap: 10px;
}
.mockup-pnl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.mockup-pnl-num {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.feat-cat--dark .mockup-pnl-num { color: #fff; }
.mockup-pnl-delta {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 3px 7px;
  border-radius: 999px;
}
.feat-cat--dark .mockup-pnl-delta {
  color: #84e0b6;
  background: rgba(15, 169, 104, 0.18);
}
.mockup-pnl-chart {
  height: 56px;
  position: relative;
  color: var(--green);
}
.mockup-pnl-chart svg { width: 100%; height: 100%; display: block; }
.mockup-pnl-rows {
  display: grid;
  gap: 6px;
  font-size: 10.5px;
}
.mockup-pnl-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--ink-3);
}
.feat-cat--dark .mockup-pnl-row { color: rgba(255,255,255,0.6); }
.mockup-pnl-row strong { color: var(--ink); font-weight: 700; }
.feat-cat--dark .mockup-pnl-row strong { color: #fff; }

/* Mockup: checklist */
.mockup-check {
  display: grid;
  gap: 8px;
}
.mockup-check-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
}
.mockup-check-row:last-child { border-bottom: 0; }
.feat-cat--dark .mockup-check-row { border-color: rgba(255,255,255,0.08); }
.mockup-check-row .tick {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.mockup-check-row .tick.empty {
  background: transparent;
  border: 1.5px solid var(--rule);
}
.feat-cat--dark .mockup-check-row .tick.empty { border-color: rgba(255,255,255,0.18); }
.mockup-check-row .label { font-weight: 600; color: var(--ink); }
.feat-cat--dark .mockup-check-row .label { color: #fff; }
.mockup-check-row .meta { font-size: 10px; color: var(--ink-3); }
.feat-cat--dark .mockup-check-row .meta { color: rgba(255,255,255,0.5); }

/* Mobile: featured card spans the full row (it carries a screenshot, so it
   would otherwise be far taller than the card beside it). */
@media (max-width: 879px) {
  .bento .feat-card--featured { grid-column: 1 / -1; grid-row: auto; padding: 24px 22px; }
  .feat-card--featured h3 { font-size: 20px; }
  .mockup { padding: 10px; }
  .mockup-rota { grid-template-rows: auto repeat(4, 18px); }
}
