/* ==========================================================================
   FEATURE CARDS AND FEATURE PAGES

   Two things in one file, both loaded only where they are used.

   This first half is the compact card grid a feature page uses to offer the
   rest of its product. The applications index uses the big picture card
   instead, styled in pages.css; this is the small one.
   ========================================================================== */

.feat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.feat__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  text-decoration: none;
  transition:
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.feat__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: color-mix(in srgb, var(--accent, var(--blue)) 34%, var(--line));
}

/* The product's own mark, on a tint of that product's accent, so the grid
   reads by colour before it reads by word. */
.feat__logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 16%, var(--line));
}
.feat__logo img { width: 24px; height: 24px; object-fit: contain; }
.feat__logo svg { width: 20px; height: 20px; color: var(--accent, var(--blue)); }

.feat__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 4px;
}

/* Two or three words, on purpose. The card is for scanning; the page behind it
   is where the explaining happens. */
.feat__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Which product this belongs to, held back so it never competes with the
   feature name. */
.feat__app {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent, var(--blue)) 78%, var(--muted));
}

.feat__foot {
  margin-top: 30px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .feat {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 22px;
  }
  .feat__card { padding: 14px 13px 13px; }
  .feat__logo { width: 36px; height: 36px; margin-bottom: 11px; border-radius: 10px; }
  .feat__logo img { width: 20px; height: 20px; }
  .feat__name { font-size: 0.88rem; }
  .feat__desc { font-size: 0.75rem; }
}

/* ==========================================================================
   A SINGLE FEATURE PAGE

   templates/feature.php. Shorter than a product page on purpose: it explains
   one capability and hands over to the product it belongs to. Everything here
   sits on the site's own tokens, so a feature page and a product page read as
   the same family.
   ========================================================================== */

/* ---------------- hero photograph ---------------- */
.ftr-hero__media {
  position: relative;
  margin-top: 42px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.ftr-hero__media img {
  display: block;
  width: 100%;
  height: clamp(240px, 38vw, 460px);
  object-fit: cover;
}
/* Names the product this belongs to, over the corner of the shot. */
.ftr-hero__tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 30px -18px rgba(15, 32, 51, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.ftr-hero__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 10%, #fff);
}
.ftr-hero__mark img { width: 18px; height: 18px; object-fit: contain; }

/* ---------------- what it does ---------------- */
.ftr-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.ftr-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 16px;
}
.ftr-does {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ftr-does li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-1);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.ftr-does__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 12%, #fff);
  color: var(--accent, var(--blue));
}

/* ---------------- worth having when ---------------- */
.ftr-good {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.ftr-good__card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-1);
}
.ftr-good__n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 12%, #fff);
  color: var(--accent, var(--blue));
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}
.ftr-good__card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------------- one shared core ---------------- */
.ftr-core {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.ftr-core__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ftr-core__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}
.ftr-core__list svg { flex: none; margin-top: 2px; color: var(--accent, var(--blue)); }

/* ---------------- narrow ---------------- */
@media (max-width: 900px) {
  .ftr-split,
  .ftr-core { grid-template-columns: minmax(0, 1fr); }
  .ftr-good { grid-template-columns: minmax(0, 1fr); }
  .ftr-hero__media { margin-top: 28px; }
  .ftr-hero__tag { left: 12px; bottom: 12px; font-size: 0.8rem; }
}
