/* ── Feature Detail page ── */

.fd-header {
  padding-top: calc(var(--nav-h) + var(--s16));
  padding-bottom: var(--s10);
  text-align: center;
  background: var(--bg);
}

.fd-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.fd-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fd-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fd-header h1 {
  font-size: clamp(var(--t-4xl), 5.5vw, var(--t-6xl));
  margin: 0 auto var(--s5);
  letter-spacing: -0.025em;
  max-width: 680px;
  line-height: 1.1;
}

.fd-subtitle {
  font-size: var(--t-lg);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Visual band (screenshot + nav arrows) ── */

.fd-visual-band {
  background: var(--surface-2);
  padding: var(--s10) 0 0;
  position: relative;
}

.fd-screenshot {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--s6);
  position: relative;
  z-index: 1;
}

.fd-screen-wrap {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow:
    0 32px 64px rgba(0,0,0,0.14),
    0 8px 20px rgba(0,0,0,0.09);
}

.fd-chrome-bar {
  background: #e2e2e2;
  padding: 10px 16px;
  display: flex;
  gap: 7px;
  align-items: center;
}

.fd-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.fd-dot:nth-child(1) { background: #ff5f57; }
.fd-dot:nth-child(2) { background: #febc2e; }
.fd-dot:nth-child(3) { background: #28c840; }

.fd-screen-body {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--surface-2) 0%, #e5e4df 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  color: var(--text-dim);
}

.fd-screen-feat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fd-screen-feat-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fd-screen-label {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Prev/Next arrows — fixed to viewport so they never jump ── */

.fd-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 100;
}

.fd-nav-arrow:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(10,132,255,0.28);
  transform: translateY(-50%) scale(1.1);
}

.fd-nav-arrow.is-pressed {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-50%) scale(0.92);
}

.fd-nav-arrow svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fd-nav-prev { left: var(--s5); }
.fd-nav-next { right: var(--s5); }


/* ── Long description body ── */

.fd-body {
  background: var(--surface-2);
  padding: var(--s16) 0 var(--s28);
}

.fd-prose {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 var(--s6);
}

.fd-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: var(--s10);
  transition: gap 0.15s;
}
.fd-back:hover { gap: var(--s3); }
.fd-back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fd-prose p {
  font-size: var(--t-lg);
  line-height: 1.78;
  color: var(--text-muted);
  margin: 0 0 var(--s6);
}
.fd-prose p:last-child { margin-bottom: 0; }
.fd-prose strong { color: var(--text); font-weight: 600; }

/* ── Bottom feature nav ── */
.fd-bottom-nav {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: var(--s8) 0;
}
.fd-bottom-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--s6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
}
.fd-bottom-link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  color: var(--text-muted);
  font-size: var(--t-sm);
  font-weight: 600;
  transition: color 0.15s;
}
.fd-bottom-link:hover { color: var(--accent); }
.fd-bottom-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.fd-bottom-link span {
  display: flex;
  flex-direction: column;
}
.fd-bottom-link em {
  font-style: normal;
  font-size: var(--t-xs);
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 1px;
}
.fd-bottom-all {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: var(--s2) var(--s4);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color 0.15s, border-color 0.15s;
}
.fd-bottom-all:hover { color: var(--accent); border-color: var(--accent); }

/* ── Homepage feature card links ── */
a.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

@media (max-width: 600px) {
  .fd-nav-prev { left: var(--s2); }
  .fd-nav-next { right: var(--s2); }
  .fd-nav-arrow { width: 36px; height: 36px; }
  .fd-nav-arrow svg { width: 15px; height: 15px; }
}
