/* ============================================================
   FEATURES PAGE — in-depth feature deep-dives
   Built entirely on tokens.css + site.css variables so it inherits
   the dark/light theme automatically. No new colors introduced.
   ============================================================ */

/* ---------- Hero ---------- */
.feat-hero {
  padding: 88px 0 36px;
  text-align: center;
}
.feat-hero .wrap { max-width: 880px; }
.feat-hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 18px 0 0;
}
.feat-hero h1 .accent { color: var(--orange); }
.feat-hero-lede {
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin: 20px auto 0;
}
.feat-hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px;
}
.feat-hero-micro {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Jump nav ---------- */
.feat-jump {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feat-jump-inner {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  padding: 14px 0;
}
.feat-jump a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  text-decoration: none;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.feat-jump a:hover {
  color: var(--orange);
  border-color: var(--orange-tint);
  background: var(--orange-soft);
}
.feat-jump a.is-active {
  color: var(--orange);
  border-color: var(--orange);
  background: var(--orange-soft);
  font-weight: 600;
}

/* Breadcrumb */
.feat-breadcrumb { padding: 16px 0 0; }
.feat-breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
}
.feat-breadcrumb li { color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.feat-breadcrumb li + li::before { content: "/"; color: var(--ink-4, #B7AE9F); }
.feat-breadcrumb a { color: var(--ink-3); text-decoration: none; }
.feat-breadcrumb a:hover { color: var(--orange); }
.feat-breadcrumb li[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Contextual cross-link at the foot of each deep-dive block */
.feat-cross {
  display: inline-flex; align-items: center;
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.feat-cross:hover { border-bottom-color: var(--orange); }

/* ---------- Deep-dive blocks ---------- */
.feat { padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.feat:nth-child(even) { background: var(--cream-2); }

.feat-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: start;
}
.feat-aside {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  position: sticky; top: 84px;
}
.feat-num {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
}
.feat-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--orange-soft);
  border: 1px solid var(--orange-tint);
  color: var(--orange);
  display: grid; place-items: center;
}
.feat-ico svg { width: 26px; height: 26px; }

.feat-content { max-width: 760px; }
.feat-title {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
}
.feat-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 22px;
}
.feat-lead strong { color: var(--ink); font-weight: 700; }

.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feat-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
}
.feat-list li strong { color: var(--ink); font-weight: 600; }
.feat-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 17px; height: 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234FBFA8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Inline chip rows (signals / languages) */
.feat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.feat-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.feat-chip b { color: var(--orange); font-weight: 700; }
html[data-theme="light"] .feat-chip { background: rgba(0, 0, 0, 0.02); }

/* ---------- "Other features" extra grid ---------- */
.feat-extra { padding: 80px 0; }
.feat-extra .section-head { margin-bottom: 36px; }

/* ---------- Closing CTA ---------- */
.feat-cta {
  padding: 80px 0 96px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.feat-cta h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.feat-cta h2 .accent { color: var(--orange); }
.feat-cta p { color: var(--ink-2); font-size: 17px; max-width: 560px; margin: 0 auto 26px; }
.feat-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.feat-cta-micro { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .feat-inner { grid-template-columns: 1fr; gap: 22px; }
  .feat-aside { flex-direction: row; align-items: center; position: static; gap: 14px; }
  .feat { padding: 48px 0; }
  .feat-hero { padding: 64px 0 28px; }
}
