/* immogenius · animations and page-specific components */

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-standard), transform 800ms var(--ease-standard);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 800ms var(--ease-standard);
}
.reveal-fade.revealed { opacity: 1; }

/* Stagger via data attribute */
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* ============ Ticker / Marquee ============ */
.ticker {
  background: var(--stone-900);
  color: var(--stone-100);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--stone-700);
}

.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: ticker-scroll 48s linear infinite;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stone-400);
  padding-left: 48px;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ticker-track span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--forest-accent);
  border-radius: 50%;
}

.ticker-track strong { color: var(--stone-50); font-weight: 500; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ Stat strip ============ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--stone-200);
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
}

@media (max-width: 768px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.stat-cell {
  background: var(--stone-50);
  padding: 36px 28px;
  text-align: left;
}

.stat-cell.dark { background: var(--stone-900); color: var(--stone-50); }

.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-weight: 500;
  margin-bottom: 14px;
}

.stat-cell.dark .stat-label { color: var(--forest-accent); }

.stat-value {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--stone-900);
}

.stat-cell.dark .stat-value { color: var(--stone-50); }

.stat-sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--stone-500);
  line-height: 1.4;
}

.stat-cell.dark .stat-sub { color: var(--stone-400); }

/* ============ Pull quote ============ */
.pull-quote {
  padding: 64px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.pull-quote-text {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-style: italic;
  color: var(--stone-900);
  max-width: 30ch;
  margin: 0 auto;
}

.pull-quote-text em {
  font-variation-settings: 'opsz' 144, 'SOFT' 90;
  color: var(--forest-500);
}

.pull-quote-attrib {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--stone-500);
}

.pull-quote-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest-500), var(--forest-900));
  color: var(--stone-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
}

.pull-quote-attrib strong { color: var(--stone-900); font-weight: 500; }

/* ============ Comparison table ============ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 10px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--stone-200);
  font-size: 14px;
  vertical-align: middle;
}

.compare-table th {
  background: var(--stone-100);
  font-weight: 600;
  color: var(--stone-900);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.compare-table th:first-child {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-500);
  font-weight: 500;
  background: var(--stone-50);
}

.compare-table th.ig-col {
  background: var(--forest-500);
  color: var(--stone-50);
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table td.ig-cell {
  background: var(--forest-50);
  color: var(--forest-900);
  font-weight: 500;
}

.compare-table .check {
  display: inline-flex;
  width: 20px; height: 20px;
  color: var(--forest-500);
}

.compare-table .cross {
  display: inline-flex;
  width: 20px; height: 20px;
  color: var(--stone-300);
}

.compare-table .partial {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--amber-700);
  font-size: 12px;
}

@media (max-width: 768px) {
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 12px 14px; }
}

/* ============ CTA banner ============ */
.cta-banner {
  background: var(--stone-900);
  color: var(--stone-100);
  border-radius: 12px;
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '⌬';
  position: absolute;
  top: -40px;
  right: -30px;
  font-size: 280px;
  color: var(--forest-accent);
  opacity: 0.08;
  line-height: 1;
  font-family: var(--f-display);
}

@media (max-width: 768px) {
  .cta-banner { padding: 40px 28px; }
  .cta-banner::before { font-size: 180px; }
}

.cta-banner-inner {
  max-width: 680px;
  position: relative;
}

.cta-banner .h2 { color: var(--stone-50); margin-bottom: 20px; }
.cta-banner .h2 em { color: var(--forest-accent); font-variation-settings: 'opsz' 72, 'SOFT' 90; }

.cta-banner-lead {
  font-size: 17px;
  color: var(--stone-300);
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cta-banner .btn-primary { background: var(--stone-50); color: var(--stone-900); }
.cta-banner .btn-primary:hover { background: var(--forest-accent); color: var(--forest-900); }
.cta-banner .btn-secondary { border-color: rgba(242, 239, 230, 0.25); color: var(--stone-50); }
.cta-banner .btn-secondary:hover { background: rgba(242, 239, 230, 0.08); border-color: var(--stone-50); }

/* ============ Mobile drawer ============ */
.nav-mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--stone-50);
  padding: 32px 24px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: all 250ms var(--ease-standard);
  z-index: 99;
}

.nav-mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile-drawer a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  color: var(--stone-900);
  font-family: var(--f-display);
  border-bottom: 1px solid var(--stone-200);
  font-weight: 500;
}

.nav-mobile-drawer .mobile-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============ Feature hero (for feature pages) ============ */
.feature-hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--stone-100) 0%, var(--stone-50) 100%);
  border-bottom: 1px solid var(--stone-200);
}

.feature-hero-wedge {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest-500);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-hero-wedge::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--forest-500);
}

.feature-hero-title { margin-bottom: 24px; }
.feature-hero-lead { max-width: 60ch; }

/* ============ Pricing cards ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.price-card {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  background: var(--stone-900);
  border-color: var(--stone-900);
  color: var(--stone-100);
  transform: scale(1.02);
}

@media (max-width: 1024px) { .price-card.featured { transform: none; } }

.price-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest-accent);
  color: var(--forest-900);
  padding: 4px 14px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-card-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--stone-900);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.price-card.featured .price-card-name { color: var(--stone-50); }

.price-card-tagline {
  font-size: 13px;
  color: var(--stone-500);
  margin-bottom: 28px;
  line-height: 1.5;
  min-height: 40px;
}

.price-card.featured .price-card-tagline { color: var(--stone-400); }

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.price-amount-big {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
  font-size: 56px;
  font-weight: 300;
  color: var(--stone-900);
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-card.featured .price-amount-big { color: var(--stone-50); }

.price-amount-unit { font-size: 14px; color: var(--stone-500); }
.price-card.featured .price-amount-unit { color: var(--stone-400); }

.price-period {
  font-size: 12px;
  color: var(--stone-500);
  margin-bottom: 32px;
  font-family: var(--f-mono);
}

.price-card.featured .price-period { color: var(--stone-400); }

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--stone-200);
  flex: 1;
}

.price-card.featured .price-features { border-top-color: rgba(242, 239, 230, 0.15); }

.price-features li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: var(--stone-700);
  line-height: 1.5;
}

.price-card.featured .price-features li { color: var(--stone-300); }

.price-features svg {
  width: 16px;
  height: 16px;
  color: var(--forest-500);
  margin-top: 2px;
}

.price-card.featured .price-features svg { color: var(--forest-accent); }

.price-card .btn { width: 100%; justify-content: center; }
.price-card.featured .btn-primary { background: var(--forest-accent); color: var(--forest-900); }
.price-card.featured .btn-primary:hover { background: var(--stone-50); }

/* ============ FAQ ============ */
.faq {
  border-top: 1px solid var(--stone-200);
}

.faq-item {
  border-bottom: 1px solid var(--stone-200);
}

.faq-trigger {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 36;
  font-size: 20px;
  font-weight: 500;
  color: var(--stone-900);
  letter-spacing: -0.005em;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-icon {
  width: 20px; height: 20px;
  color: var(--stone-500);
  transition: transform 250ms var(--ease-standard);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--forest-500); }

.faq-body {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--stone-500);
  line-height: 1.7;
  max-width: 68ch;
}

.faq-body p + p { margin-top: 12px; }

/* ============ Blog card ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: block;
  color: inherit;
  transition: transform 250ms var(--ease-standard);
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card-image {
  aspect-ratio: 16/10;
  background: var(--stone-200);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.blog-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 72px;
  color: var(--forest-500);
  background: linear-gradient(135deg, var(--stone-100), var(--forest-50));
  opacity: 0.5;
}

.blog-card-meta {
  display: flex;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 48;
  font-size: 22px;
  font-weight: 500;
  color: var(--stone-900);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--stone-500);
  line-height: 1.6;
}

/* ============ Form ============ */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) { .form-field-row { grid-template-columns: 1fr; } }

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--stone-900);
  letter-spacing: 0.02em;
}

.form-label .req { color: var(--rust-500); margin-left: 3px; }

.form-input, .form-textarea, .form-select {
  padding: 12px 14px;
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--stone-900);
  transition: all 150ms var(--ease-standard);
  width: 100%;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--forest-500);
  box-shadow: 0 0 0 3px rgba(47, 95, 77, 0.1);
}

.form-textarea { min-height: 120px; resize: vertical; font-family: inherit; line-height: 1.5; }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%235E5A50' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
}

.form-hint {
  font-size: 12px;
  color: var(--stone-500);
  line-height: 1.4;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--stone-500);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--forest-500); }

.form-checkbox a { color: var(--forest-500); text-decoration: underline; }

.form-success {
  display: none;
  padding: 32px;
  background: var(--forest-50);
  border: 1px solid var(--forest-100);
  border-radius: 8px;
  text-align: center;
}

.form-success h3 { color: var(--forest-700); margin-bottom: 12px; }
.form-success p { color: var(--stone-700); line-height: 1.6; }

/* ============ Large "ambient" graphic ============ */
.ambient-glyph {
  position: absolute;
  font-family: var(--f-display);
  color: var(--forest-500);
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  font-weight: 300;
}
