/* ═══════════════════════════════════════════════
   Components  -  Cards, Buttons, Badges, Forms
   ═══════════════════════════════════════════════ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--duration-fast) var(--ease-smooth);
  cursor: pointer;
  white-space: nowrap;
}

.btn .arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: var(--bg);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: none;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: var(--white);
}

/* ── Hero CTA Glow Pulse  -  attention-grabbing animation on page load ── */
.hero .btn-accent {
  position: relative;
  overflow: visible;
}

.hero .btn-accent::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--accent);
  opacity: 0;
  z-index: -1;
  animation: hero-cta-glow-pulse 2s ease-out 0.8s forwards;
}

@keyframes hero-cta-glow-pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
    filter: blur(8px);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.15);
    filter: blur(12px);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
    filter: blur(16px);
  }
}

/* Disable glow pulse for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero .btn-accent::before {
    animation: none;
  }
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-1);
  border-color: var(--accent-line);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
}

.btn-ghost:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn:disabled,
.btn.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  transition: border-color var(--duration) var(--ease-out),
              transform 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

/* Blueprint grid reveal on hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration) ease;
  background-image:
    linear-gradient(rgba(45,122,232,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,122,232,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

/* ── Card with schematic corner marks ── */
.card--schematic::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 24px; height: 24px;
  border-top: 1px solid var(--accent-line);
  border-left: 1px solid var(--accent-line);
  pointer-events: none;
  z-index: 2;
  border-radius: var(--radius-lg) 0 0 0;
}

.card--schematic .corner-br {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 24px; height: 24px;
  border-bottom: 1px solid var(--accent-line);
  border-right: 1px solid var(--accent-line);
  pointer-events: none;
  z-index: 2;
  border-radius: 0 0 var(--radius-lg) 0;
}

/* ── Card Icon ── */
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

/* ── Card Content ── */
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: var(--text-base);
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: gap 0.3s var(--ease-out);
}

.card-link:hover {
  gap: 10px;
  color: var(--accent-hover);
}

/* ── Card Variant: Panel (Tools) ── */
/* Left accent stripe, inline icon+title, control panel feel */
.card--panel {
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-xl);
}

.card--panel::before {
  display: none;
}

/* Tool card shimmer effect on hover */
.card--panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45, 122, 232, 0.06) 50%,
    transparent 100%
  );
  transition: left 0.6s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.card--panel:hover::after {
  left: 100%;
}

.card--panel:hover {
  border-left-color: var(--accent-hover);
  border-color: var(--border-hover);
  border-left-color: var(--accent-hover);
  transform: translateX(4px);
}

/* Tool card icon animation on hover */
.card--panel .card-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s var(--ease-out),
              background 0.3s var(--ease-out);
}

.card--panel:hover .card-icon {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 0 24px var(--accent-glow);
  background: rgba(45, 122, 232, 0.18);
}

.card--panel .card-icon svg {
  transition: stroke 0.3s var(--ease-out);
}

.card--panel:hover .card-icon svg {
  stroke: var(--white);
}

.card--panel .panel-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.card--panel .card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.card--panel .card-icon svg {
  width: 20px;
  height: 20px;
}

.card--panel .card-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0;
}

.card--panel .card-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.card--panel .card-link {
  font-size: var(--text-xs);
  margin-top: var(--space-md);
}

/* ── Card Variant: Document (Resources) ── */
/* Top accent bar, file/document metaphor */
.card--document {
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.card--document::before,
.card--document::after {
  display: none;
}

.card--document .doc-bar {
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--accent-glow), rgba(45,122,232,0.02));
  border-bottom: 1px solid var(--accent-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card--document .doc-type {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.card--document .doc-access {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card--document .doc-access--free {
  color: var(--success);
}

.card--document .doc-access--gated {
  color: var(--text-mute);
}

.card--document .doc-body {
  padding: var(--space-lg);
}

.card--document .card-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.card--document .card-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.card--document .card-link {
  font-size: var(--text-xs);
  margin-top: var(--space-md);
}

.card--document:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
}

.card--document:hover .doc-bar {
  background: linear-gradient(135deg, rgba(45,122,232,0.12), rgba(45,122,232,0.04));
}

/* Resource card shimmer effect on hover  -  matches tool cards */
.card--document .doc-body {
  position: relative;
  overflow: hidden;
}

.card--document .doc-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45, 122, 232, 0.06) 50%,
    transparent 100%
  );
  transition: left 0.6s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.card--document:hover .doc-body::after {
  left: 100%;
}

/* Ensure doc-body content stays above shimmer */
.card--document .doc-body > * {
  position: relative;
  z-index: 1;
}

/* ── Card Variant: Editorial (Blog) ── */
/* Bottom accent line on hover, magazine feel, title emphasis */
.card--editorial {
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  border-bottom: 2px solid transparent;
}

.card--editorial::before,
.card--editorial::after {
  display: none;
}

.card--editorial:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-3px);
}

.card--editorial .editorial-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  margin-top: var(--space-xs);
}

.card--editorial .editorial-category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.card--editorial .editorial-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

.card--editorial .editorial-date {
  font-size: var(--text-xs);
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.card--editorial .editorial-reading {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-xs);
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.card--editorial .editorial-reading svg {
  opacity: 0.5;
}

.card--editorial .card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.35;
  transition: color 0.25s var(--ease-out);
}

.card--editorial:hover .card-title {
  color: var(--accent);
}

/* Title shimmer effect on hover  -  premium editorial feel */
.card--editorial .card-title {
  position: relative;
  display: inline;
  background: linear-gradient(
    90deg,
    var(--white) 0%,
    var(--white) 40%,
    var(--accent) 50%,
    var(--white) 60%,
    var(--white) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.card--editorial:hover .card-title {
  color: transparent;
  animation: title-shimmer 0.8s ease forwards;
}

@keyframes title-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Disable shimmer on mobile for performance */
@media (max-width: 768px) {
  .card--editorial .card-title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
  .card--editorial:hover .card-title {
    color: var(--accent);
    animation: none;
  }
}

.card--editorial .card-desc {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.card--editorial .card-link {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  display: flex;
  width: 100%;
}

/* ── Badges / Tags ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.badge-accent {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-glow);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Tags / Pills ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ── Form Elements ── */
.input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color var(--duration-fast) ease;
}

.input::placeholder {
  color: var(--text-mute);
}

.input:focus {
  border-color: var(--accent-line);
  outline: none;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-mute);
  margin-top: var(--space-sm);
  text-align: center;
}

/* ── Section Headers ── */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--text-2xl);
  margin-top: var(--space-md);
}

.section-desc {
  font-size: var(--text-md);
  color: var(--text-dim);
  max-width: 560px;
  margin-top: var(--space-md);
  font-weight: 300;
  line-height: 1.7;
}

/* ── Technical Readout (for tool results) ── */
.tech-readout {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: inline-block;
}

.result-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.result-unit {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: var(--space-sm);
}

/* ── How It Works Steps ── */
.how-step {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: all var(--duration-fast) var(--ease-smooth);
}
.how-step:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.how-step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}
.how-step__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.how-step__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.how-step__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.how-step__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-dim);
}

/* ── Testimonial Cards ── */
.testimonial-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--duration-fast) var(--ease-smooth);
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
}
.testimonial-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.testimonial-card__quote {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-dim);
  font-style: italic;
  padding-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.testimonial-card__author {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.testimonial-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--text-mute);
  margin-top: 2px;
}

/* ── Credibility Banner ── */
.credibility-banner {
  position: relative;
  padding: var(--space-2xl);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-glow), rgba(45,122,232,0.02));
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  overflow: visible;
}

/* Glow pulse animation on scroll into view */
.credibility-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), rgba(45,122,232,0.3));
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  animation: credibilityGlowPulse 2.5s ease-out forwards;
  animation-play-state: paused;
}

.credibility-banner.reveal.visible::before {
  animation-play-state: running;
}

@keyframes credibilityGlowPulse {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  20% {
    opacity: 0.6;
    transform: scale(1.02);
  }
  40% {
    opacity: 0.4;
    transform: scale(1);
  }
  60% {
    opacity: 0.5;
    transform: scale(1.01);
  }
  80% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
}

/* Disable glow pulse for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .credibility-banner::before {
    animation: none;
    opacity: 0.15;
  }
}
@media (min-width: 768px) {
  .credibility-banner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
  }
}
.credibility-banner__icon {
  flex-shrink: 0;
}
.credibility-banner__icon svg {
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.credibility-banner__content {
  flex: 1;
}
.credibility-banner__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.credibility-banner__desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-dim);
}
.credibility-banner__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .credibility-banner__badges {
    flex-direction: column;
    align-items: flex-end;
  }
}
.cred-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(45,122,232,0.08);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  white-space: nowrap;
}

/* ── FAQ Accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease;
}
.faq-item:hover {
  border-color: rgba(45, 122, 232, 0.4);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
  text-align: left;
  list-style: none;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question-text {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}
.faq-question:hover .faq-question-text {
  color: var(--accent);
}
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
  margin-top: 2px;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.75;
  font-weight: 300;
  border-top: 1px solid var(--border);
  /* Smooth animation for JS-based FAQs */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.35s var(--ease-out),
              opacity 0.25s ease 0.05s,
              padding 0.35s var(--ease-out);
}
/* JS-based FAQ open state */
.faq-item.active .faq-answer {
  max-height: 600px;
  opacity: 1;
  padding-top: var(--space-md);
  padding-bottom: var(--space-lg);
}
/* Details-based FAQ open state */
.faq-item[open] .faq-answer {
  max-height: 600px;
  opacity: 1;
  padding-top: var(--space-md);
  padding-bottom: var(--space-lg);
}
.faq-answer p {
  margin-bottom: var(--space-sm);
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
/* Legacy JS-based FAQ support */
.faq-question__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform 0.3s ease;
  stroke: var(--text-mute);
  fill: none;
  stroke-width: 2;
}
.faq-item.active .faq-question__icon {
  transform: rotate(45deg);
  stroke: var(--accent);
}

/* ── About Page Stats ── */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}
.about-stat {
  text-align: center;
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.about-stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.about-stat__label {
  font-size: var(--text-xs);
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
}

/* ── Mission Tenets ── */
.mission-tenet {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.mission-tenet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 3px;
  height: calc(100% - 4px);
  background: var(--accent);
  border-radius: 2px;
}
.mission-tenet__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xs);
}
.mission-tenet__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-dim);
}

/* ── Breadcrumb Navigation ── */
.breadcrumb {
  margin-bottom: var(--space-sm);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-xs);
  color: var(--text-dim);
}

.breadcrumb-item a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 2px 0;
}

.breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-item a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.breadcrumb-current span {
  color: var(--text-dim);
  font-weight: 400;
}

/* Truncate long breadcrumb items on mobile */
@media (max-width: 640px) {
  .breadcrumb-list {
    font-size: 10px;
  }

  .breadcrumb-current span {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ── Calculator Mode Toggle ── */
.mode-toggle {
  display: flex;
  gap: var(--space-xs);
  background: var(--bg-raised);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.mode-toggle__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.mode-toggle__btn:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}

.mode-toggle__btn--active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

.mode-toggle__btn--active:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.mode-toggle__btn svg {
  opacity: 0.7;
}

.mode-toggle__btn--active svg {
  opacity: 1;
  stroke: var(--accent);
}

/* ── Portfolio Stats Grid ── */
.portfolio-stat {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.portfolio-stat--highlight {
  border-color: var(--accent-line);
  background: var(--accent-glow);
}

.portfolio-stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.portfolio-stat--highlight .portfolio-stat__value {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.portfolio-stat__label {
  font-size: var(--text-xs);
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-xs);
}

/* ── Form Hint Text ── */
.form-hint {
  font-size: var(--text-xs);
  color: var(--text-mute);
  line-height: 1.4;
}

/* ── Hidden Costs Accordion ── */
.hidden-costs-section {
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hidden-costs-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: background var(--duration-fast) ease;
}

.hidden-costs-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hidden-costs-toggle__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.hidden-costs-toggle__label {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hidden-costs-toggle__preview {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--warning);
  padding: 2px 8px;
  background: rgba(234, 179, 8, 0.1);
  border-radius: var(--radius-sm);
}

.hidden-costs-toggle__chevron {
  color: var(--text-mute);
  transition: transform 0.3s var(--ease-out);
}

.hidden-costs-toggle[aria-expanded="true"] .hidden-costs-toggle__chevron {
  transform: rotate(180deg);
}

.hidden-costs-content {
  padding: 0 var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border);
}

.hidden-costs-intro {
  padding-top: var(--space-md);
}

.hidden-costs-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hidden-cost-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color var(--duration-fast) ease;
}

.hidden-cost-item:hover {
  border-color: var(--accent-line);
}

.hidden-cost-item__icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
}

.hidden-cost-item__content {
  flex: 1;
  min-width: 0;
}

.hidden-cost-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.hidden-cost-item__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-light);
}

.hidden-cost-item__cost {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--warning);
  white-space: nowrap;
}

.hidden-cost-item__detail {
  font-size: var(--text-xs);
  color: var(--text-mute);
  line-height: 1.4;
}

.hidden-cost-item__description {
  font-size: var(--text-xs);
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: var(--space-xs);
}

/* Hidden Costs Total Section */
.hidden-costs-total {
  border: 1px solid var(--accent-line);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .hidden-cost-item {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hidden-cost-item__header {
    flex-direction: column;
  }

  .hidden-cost-item__cost {
    align-self: flex-start;
  }
}

/* ── Product Demo Section ── */
.product-demo {
  padding: var(--space-3xl) 0;
  background: linear-gradient(to bottom, var(--surface-1), var(--bg));
}

.demo-flow {
  display: grid;
  gap: var(--space-2xl);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .demo-flow {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.demo-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.demo-step-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.demo-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  font-weight: 600;
  font-size: var(--text-sm);
}

.demo-step-text {
  font-weight: 500;
  color: var(--text-dim);
}

.demo-screenshot {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  background: var(--surface-2);
  position: relative;
}

/* Browser frame mockup styling */
.demo-screenshot::before {
  content: '';
  display: block;
  height: 28px;
  background: linear-gradient(to bottom, var(--surface-2), var(--surface-1));
  border-bottom: 1px solid var(--border);
  position: relative;
}

.demo-screenshot::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  box-shadow: 14px 0 0 var(--border), 28px 0 0 var(--border);
}

.demo-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
