/* =============================================
   IdleForged, Custom Stylesheet
   Aesthetic: Editorial precision, warm neutrals,
   a single strong accent. Designed, not generated.
   ============================================= */

:root {
  --accent: #2A6EBB;          /* Slate blue, trust + action */
  --accent-dark: #1d5299;
  --accent-light: #e8f0fb;
  --wa: #128C7E;
  --wa-dark: #075E54;
  --wa-light: #dcf8c6;
  --text: #1a1a1a;
  --text-muted: #5c5c6e;
  --text-light: #8a8a9a;
  --bg: #fafaf8;
  --bg-alt: #f3f3ef;
  --bg-card: #ffffff;
  --border: #e4e4e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --transition: 220ms ease;
  --section-py: 5rem;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* mobile sticky bar clearance */
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.display-serif {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-dark); text-decoration: none; }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Navbar === */
.site-nav {
  background: rgb(223 211 195);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-brand { text-decoration: none !important; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 8px;
  letter-spacing: 0.03em;
  vertical-align: middle;
  margin-right: 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  vertical-align: middle;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text) !important;
  background: var(--bg-alt);
}

/* === Buttons === */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(42, 110, 187, 0.3);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-outline-primary {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-wa {
  background: var(--wa);
  border: none;
  color: #fff !important;
  text-decoration: none !important;
}
.btn-wa:hover {
  background: var(--wa-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(18, 140, 126, 0.35);
}
.btn-wa:focus-visible {
  outline: 3px solid var(--wa);
  outline-offset: 2px;
}

.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; }

/* === Sections === */
.section-py { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.section-py-sm { padding-top: 3rem; padding-bottom: 3rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }
.section-intro { color: var(--text-muted); max-width: 560px; margin-bottom: 2.5rem; }

/* === Hero === */
.hero {
  padding: 5rem 0 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(42,110,187,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* === Trust Strip === */
.trust-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.trust-item h6 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: var(--text);
}

.trust-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* === Cards === */
.card-if {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card-if:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* === Steps === */
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    margin: 0px auto;
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.step-connector {
  display: none;
}

@media (min-width: 992px) {
  .steps-row {
    position: relative;
  }
.step-connector {
    display: block;
    position: absolute;
    top: 50px;
    z-index: 2;
    left: calc(16.66% + 22px);
    width: calc(33.33% - 44px);
    height: 1px;
    border-top: 2px dashed var(--border);
}
  .step-connector:last-of-type {
    left: calc(66.66% + 22px);
    width: calc(33.33% - 44px);
  }
}

/* === Pricing === */
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  height: 100%;
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(145deg, #fafaf8 0%, #f0f5fc 100%);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin: 0.75rem 0;
}

.pricing-price small {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bg-alt);
  color: var(--text);
}

.pricing-list li:last-child { border-bottom: none; }

.pricing-list .icon-check { color: var(--wa); flex-shrink: 0; }
.pricing-list .icon-opt { color: var(--text-light); flex-shrink: 0; }

/* === Metrics section === */
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.metric-icon {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* === FAQ === */
.accordion-item {
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.accordion-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  padding: 1.1rem 0;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--accent);
  background: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%232A6EBB' d='M8 4l4 4H4z'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}

.accordion-button.collapsed::after {
  transform: rotate(0deg);
}

.accordion-body {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0 0 1.1rem;
  line-height: 1.7;
}

/* === Forms === */
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 110, 187, 0.12);
  outline: none;
}

.form-text {
  font-size: 0.78rem;
  color: var(--text-light);
}

.honeypot { display: none !important; }

/* === Audit page === */
.audit-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.audit-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.audit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-alt);
  gap: 1rem;
}

.audit-item:last-child { border-bottom: none; }

.audit-question {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.audit-toggle {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.toggle-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}

.toggle-btn.yes.active {
  background: var(--wa);
  border-color: var(--wa);
  color: #fff;
}

.toggle-btn.no.active {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}

.score-display {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: sticky;
  top: 90px;
}

.score-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.score-progress {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  overflow: hidden;
  margin: 1rem 0;
}

.score-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transition: width 0.4s ease;
}

.score-band {
  font-size: 0.85rem;
  font-weight: 600;
}

.score-recs {
  text-align: left;
  margin-top: 1rem;
}

.score-recs li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

/* === Demos page === */
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}

.demo-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.demo-card-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.demo-card-body {
  padding: 1.25rem;
}

.demo-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

/* === Footer === */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.site-footer .footer-brand .brand-mark { background: rgba(255,255,255,0.15); }
.site-footer .footer-brand .brand-name { color: #fff; }

.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0;
  line-height: 1.6;
}

.footer-meta a {
  color: rgba(255,255,255,0.65);
}

.footer-hr {
  border-color: rgba(255,255,255,0.1);
  margin: 2.5rem 0 1.5rem;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal-link:hover { color: rgba(255,255,255,0.8); }

/* === Mobile sticky bar === */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  padding: 0.65rem 1rem;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

/* === Reveal animation === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === CTA section === */
.cta-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a35 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
}

.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.7); }

/* === Alert / Notice === */
.notice {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Success message === */
.success-box {
  background: var(--wa-light);
  border: 1px solid rgba(18,140,126,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.success-box .success-icon {
  font-size: 2.5rem;
  color: var(--wa);
  margin-bottom: 0.75rem;
}

/* === Hero SVG illustration === */
.hero-illustration {
  width: 100%;
  max-width: 460px;
  height: auto;
}

/* === Bg alt === */
.bg-alt { background: var(--bg-alt); }
.bg-card { background: var(--bg-card); }

/* === About page === */
.principle-card {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.principle-card h5 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.principle-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* === Privacy / Terms minimal pages === */
.legal-content h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal-content p, .legal-content li { font-size: 0.92rem; color: var(--text-muted); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
