/* Features page — extends styles.css.
   Includes: split sections (text + mockup), feature card grids,
   detail-list bullets, and four CSS-built mockup widgets:
   attestation receipt, permission picker, scrambled keypad,
   profile switcher.
   ----------------------------------------------------- */

.site-nav a.active { color: var(--fg-strong); }

/* Tinted alternating sections for rhythm */
.section-tinted {
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.025) 0%, transparent 100%);
}

/* ─── Split layout (text on one side, mockup on the other) ─── */
.feat-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.feat-split-reverse .feat-text { order: 2; }
.feat-split-reverse .feat-mockup { order: 1; }
@media (max-width: 980px) {
  .feat-split, .feat-split-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feat-split-reverse .feat-text,
  .feat-split-reverse .feat-mockup { order: initial; }
}

.feat-text h2 { max-width: 560px; }
.feat-text .section-lede { margin-bottom: 36px; }

/* Feature detail list (used inside split sections) */
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.feat-list li {
  position: relative;
  padding-left: 22px;
}
.feat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}
.feat-list h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.feat-list p {
  color: var(--fg-mute);
  font-size: 14.5px;
  line-height: 1.6;
}
.feat-list em {
  font-style: normal;
  font-weight: 600;
  color: var(--fg);
}

/* ─── Feature card grid (full-width sections) ───────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
@media (max-width: 880px) { .feat-grid { grid-template-columns: 1fr; } }
@media (min-width: 881px) and (max-width: 1140px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 24px 26px;
  transition: transform 0.18s, border-color 0.18s;
}
.feat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.feat-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feat-card p {
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Mockup chrome (shared) ────────────────────────────────── */
.feat-mockup {
  position: relative;
}
.mock-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 30px 60px -25px rgba(0, 0, 0, 0.6);
}

.mock-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  margin: 0;
}
.mock-sub {
  font-size: 12px;
  color: var(--fg-mute);
  margin: 2px 0 0;
}
.mock-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.mock-section-foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--fg-dim);
  text-align: center;
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.mock-pill code {
  font-family: inherit;
  color: var(--fg-strong);
}

.mock-toggle {
  display: inline-block;
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.mock-toggle span {
  position: absolute;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
}
.mock-toggle-on    { background: var(--accent); }
.mock-toggle-on span    { left: 18px; }
.mock-toggle-off   { background: var(--bg-deep); border: 1px solid var(--line-strong); }
.mock-toggle-off span   { left: 2px; background: var(--fg-mute); width: 14px; height: 14px; top: 2px; }

/* ─── Mockup #1: hardware-attestation receipt ───────────────── */
.mock-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mock-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mock-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
}
.mock-key {
  color: var(--fg-mute);
}
.mock-val {
  color: var(--fg-strong);
  font-weight: 500;
}
.mock-val-ok {
  color: #22c55e;
  font-weight: 600;
}
.mock-val-mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--fg);
}

/* ─── Mockup #2: per-app permission picker ──────────────────── */
.mock-perm-app {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mock-perm-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(59, 109, 255, 0.18));
  border: 1px solid rgba(124, 92, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright, #a08aff);
  flex-shrink: 0;
}
.mock-perm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mock-perm-list > li {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.mock-perm-list > li:first-child {
  border-top: none;
  padding-top: 0;
}
.mock-perm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.mock-perm-key {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-strong);
}
.mock-perm-desc {
  font-size: 12px;
  color: var(--fg-mute);
  margin-top: 4px;
}
.mock-pill-scope {
  background: rgba(124, 92, 255, 0.10);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--fg);
}

/* ─── Mockup #3: scrambled-PIN keypad ───────────────────────── */
.mock-keypad-frame {
  background: linear-gradient(180deg, #0a0d14 0%, #131927 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 28px 28px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 30px 60px -25px rgba(0, 0, 0, 0.6);
  max-width: 320px;
  margin: 0 auto;
}
.mock-keypad-prompt {
  text-align: center;
  font-size: 13px;
  color: var(--fg-mute);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.mock-keypad-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.mock-keypad-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
}
.mock-keypad-dots span.filled {
  background: var(--fg-strong);
  border-color: var(--fg-strong);
}
.mock-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 240px;
  margin: 0 auto;
}
.mock-keypad-grid button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  font-family: inherit;
  font-size: 22px;
  font-weight: 400;
  color: var(--fg-strong);
  cursor: default;
  transition: background 0.12s;
}
.mock-keypad-grid button:hover {
  background: rgba(255, 255, 255, 0.07);
}
.mock-keypad-btn-empty {
  visibility: hidden;
  pointer-events: none;
}
.mock-keypad-btn-back {
  color: var(--fg-mute) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-keypad-hint {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}
.mock-keypad-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
  animation: mock-pulse 2.4s ease-in-out infinite;
}
@keyframes mock-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ─── Mockup #4: profile switcher ───────────────────────────── */
.mock-profile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-profile-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
}
.mock-profile-list li.active {
  border-color: rgba(124, 92, 255, 0.35);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), var(--bg-deep) 80%);
}
.mock-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.mock-profile-avatar-personal { background: linear-gradient(135deg, #7c5cff, #3b6dff); }
.mock-profile-avatar-work     { background: linear-gradient(135deg, #10b981, #0ea5a3); }
.mock-profile-avatar-travel   { background: linear-gradient(135deg, #f59e0b, #d97706); }

.mock-profile-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0;
  letter-spacing: -0.01em;
}
.mock-profile-meta {
  font-size: 11px;
  color: var(--fg-mute);
  margin: 2px 0 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.mock-pill-active {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #22c55e;
  font-family: inherit;
}
.mock-pill-locked {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--fg-mute);
  font-family: inherit;
}

/* ─── Final CTA ─────────────────────────────────────────────── */
.section-cta {
  padding: 60px 0 100px;
}
.cta-card {
  background:
    radial-gradient(ellipse at top left, rgba(124, 92, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(59, 109, 255, 0.18) 0%, transparent 50%),
    var(--bg-card);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 22px;
  padding: 56px 48px;
  text-align: center;
}
.cta-card h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-card p {
  color: var(--fg-mute);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-card .cta-row { justify-content: center; }
@media (max-width: 600px) { .cta-card { padding: 36px 24px; } }
