/* ============================================
   TryEstatePlanning.ai — Design System v2
   Apple-inspired precision minimalism
   Competitive enhancements baked in
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-base: #fbfbfd;
  --bg-alt: #f5f5f7;
  --bg-card: #ffffff;
  --bg-dark: #000000;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-on-dark: rgba(255,255,255,0.92);
  --text-on-dark-muted: rgba(255,255,255,0.56);
  --divider: #d2d2d7;
  --btn-blue: #0071e3;
  --btn-blue-hover: #0077ed;
  --link-blue: #0066cc;
  --accent-start: #0071e3;
  --accent-end: #147CE5;
  --apple-green: #34c759;
  --apple-red: #ff3b30;

  --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-w: 980px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-family: var(--font-stack);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}
body { background: var(--bg-base); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* --- Scroll Progress --- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  z-index: 10001;
  pointer-events: none;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo svg { height: 24px; width: auto; }
.nav-logo span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nav-logo .dot-ai {
  color: var(--btn-blue);
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--btn-blue) !important;
  color: #fff !important;
  border-radius: 980px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 400;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--btn-blue-hover) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Sections --- */
.section {
  padding: 100px 24px;
  display: flex;
  justify-content: center;
}
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-inner {
  max-width: var(--max-w);
  width: 100%;
}

/* --- Hero --- */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  display: flex;
  justify-content: center;
}
.hero-inner {
  max-width: var(--max-w);
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 980px;
  background: transparent;
  border: 1px solid var(--divider);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.38;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--btn-blue);
  color: #fff;
  border-radius: 980px;
  padding: 12px 28px;
  font-size: 17px;
  font-weight: 400;
  transition: background 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--btn-blue-hover); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--divider);
  border-radius: 980px;
  padding: 12px 28px;
  font-size: 17px;
  font-weight: 400;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--bg-alt); border-color: rgba(0,0,0,0.2); }
.btn-secondary:active { transform: scale(0.98); }

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--text-primary);
  border-radius: 980px;
  padding: 12px 28px;
  font-size: 17px;
  font-weight: 400;
  transition: background 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary-dark:hover { background: rgba(255,255,255,0.88); }

/* --- Section Titles --- */
.section-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.003em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.section-dark .section-title { color: var(--text-on-dark); }
.section-sub {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.38;
  color: var(--text-secondary);
  max-width: 680px;
}
.section-dark .section-sub { color: var(--text-on-dark-muted); }
.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 0;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}
.trust-bar-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--btn-blue);
}

/* --- Problem --- */
.problem-text {
  font-size: 21px;
  line-height: 1.52;
  color: var(--text-secondary);
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
}
.problem-text strong { color: var(--text-primary); font-weight: 600; }

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.stat-card {
  text-align: center;
  padding: 40px 24px;
}
.stat-number {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--btn-blue);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 17px;
  line-height: 1.38;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}
.stat-source {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  opacity: 0.6;
}

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.step-card {
  background: var(--bg-card);
  border-radius: 0px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 40px 32px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}
.step-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 980px;
  background: var(--btn-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.step-heading {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.step-body {
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-secondary);
}
/* Step connector line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 58px;
  left: calc(33.33% + 4px);
  right: calc(33.33% + 4px);
  height: 2px;
  background: var(--divider);
  z-index: 1;
}

/* --- Two Column Section --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.two-col-card {
  background: var(--bg-card);
  border-radius: 0px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 40px 32px;
}
.two-col-heading {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-primary);
}
.check-item .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.icon-check { color: var(--apple-green); }
.icon-x { color: var(--apple-red); }

/* --- Checklist (What's Included) --- */
.included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px 40px;
  margin-top: 48px;
}
.included-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.47;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.included-item:last-child,
.included-item:nth-last-child(2):nth-child(odd) { }
.included-item .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--apple-green);
  margin-top: 2px;
}

/* --- Calculator --- */
.calc-card {
  background: var(--bg-card);
  border-radius: 0px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 48px;
  margin-top: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.calc-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.calc-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.calc-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--divider);
  border-radius: 2px;
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--btn-blue);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,113,227,0.3);
}
.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--btn-blue);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0,113,227,0.3);
}
.calc-slider-val {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 48px;
  text-align: right;
}
.calc-divider {
  width: 100%;
  height: 1px;
  background: var(--divider);
  margin: 24px 0;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.calc-result-label {
  font-size: 17px;
  color: var(--text-secondary);
}
.calc-result-value {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--btn-blue);
  font-variant-numeric: tabular-nums;
}
.calc-result-sub {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 4px;
}
.calc-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
  opacity: 0.7;
}

/* --- Founder Quote (Dark Section) --- */
.quote-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.quote-text {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.38;
  color: var(--text-on-dark);
  font-style: italic;
}
.quote-text::before { content: '\201C'; }
.quote-text::after { content: '\201D'; }
.quote-attribution {
  margin-top: 24px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-on-dark);
}
.quote-role {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}

/* --- Call Agenda --- */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  max-width: 640px;
}
.agenda-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
}
.agenda-item:last-child { border-bottom: none; }
.agenda-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 980px;
  background: var(--btn-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.agenda-text {
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-primary);
}
.agenda-note {
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-secondary);
  margin-top: 24px;
  max-width: 640px;
}

/* --- FAQ --- */
.faq-list {
  margin-top: 48px;
  max-width: 720px;
}
.section-center .faq-list { margin-left: auto; margin-right: auto; }
.faq-item {
  border-bottom: 1px solid var(--divider);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-q:hover { color: var(--btn-blue); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 0;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 0 20px;
}
.faq-a p {
  font-size: 17px;
  line-height: 1.58;
  color: var(--text-secondary);
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: 100px 24px;
}
.final-cta .section-title { margin-bottom: 8px; }
.final-cta .section-sub { margin: 0 auto 32px; }

/* --- Sticky Bottom CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(251, 251, 253, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta-inner {
  max-width: var(--max-w);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sticky-cta-text {
  font-size: 14px;
  color: var(--text-secondary);
}
.sticky-cta-text strong {
  color: var(--text-primary);
  font-weight: 600;
}
.sticky-cta .btn-primary {
  padding: 8px 24px;
  font-size: 14px;
}

/* --- Footer --- */
.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: center;
  margin-bottom: 60px; /* space for sticky CTA */
}
.footer-inner {
  max-width: var(--max-w);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-left {
  font-size: 12px;
  color: var(--text-secondary);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-primary); }

/* --- Form Page Styles --- */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 0px;
  color: var(--text-primary);
  font-size: 17px;
  padding: 12px 16px;
  min-height: 48px;
  font-family: var(--font-stack);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--btn-blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}
.form-input::placeholder { color: var(--text-secondary); opacity: 0.6; }
textarea.form-input { min-height: 100px; resize: vertical; }
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* --- Thank You Page --- */
.video-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--divider);
  border-radius: 0px;
  aspect-ratio: 16 / 9;
  max-width: 680px;
  margin: 32px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.video-placeholder .play-icon {
  width: 56px;
  height: 56px;
  border-radius: 980px;
  background: var(--btn-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder .play-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}
.video-placeholder p {
  font-size: 14px;
  color: var(--text-secondary);
}

.prepare-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  max-width: 560px;
}
.prepare-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-primary);
}
.prepare-item .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--btn-blue);
  margin-top: 3px;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered reveals */
.reveal-stagger > .reveal-child {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > .reveal-child {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > .reveal-child:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > .reveal-child:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.visible > .reveal-child:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.visible > .reveal-child:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.visible > .reveal-child:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.visible > .reveal-child:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger.visible > .reveal-child:nth-child(7) { transition-delay: 600ms; }
.reveal-stagger.visible > .reveal-child:nth-child(8) { transition-delay: 700ms; }
.reveal-stagger.visible > .reveal-child:nth-child(9) { transition-delay: 800ms; }

/* --- Enhanced Motion System --- */

/* Smooth scale-fade for cards */
.reveal-scale {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Blur-fade for text elements */
.reveal-blur {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-blur.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Letter-by-letter text reveal */
.text-reveal {
  display: inline;
}
.text-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.text-reveal.visible .char {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger each character */
.text-reveal.visible .char { transition-delay: calc(var(--char-index, 0) * 0.025s + 0.1s); }

/* Enhanced step card interactions */
.step-card {
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.step-card .step-num {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-card:hover .step-num {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,113,227,0.3);
}

/* Stat number subtle glow on reveal */
.stat-number {
  transition: text-shadow 0.6s ease;
}
.stat-card.reveal-child-active .stat-number,
.reveal-stagger.visible .stat-number {
  text-shadow: 0 0 40px rgba(0,113,227,0.15);
}

/* Smoother FAQ transitions */
.faq-item {
  transition: background-color 0.3s ease;
}
.faq-item.open {
  background-color: rgba(0,113,227,0.02);
}
.faq-q {
  transition: color 0.2s ease, padding-left 0.3s ease;
}
.faq-item.open .faq-q {
  color: var(--btn-blue);
  padding-left: 4px;
}

/* Calculator enhanced interactions */
.calc-result-value {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
.calc-card:hover .calc-result-value {
  transform: scale(1.02);
}
.calc-slider::-webkit-slider-thumb {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.calc-slider:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(0,113,227,0.4);
}

/* Enhanced scroll progress */
#scroll-progress {
  height: 2px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end), var(--accent-start));
  background-size: 200% 100%;
  animation: progressShimmer 3s ease infinite;
}
@keyframes progressShimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

/* Dashboard Preview Container */
.dashboard-preview-wrapper {
  position: relative;
  max-width: 980px;
  margin: 48px auto 0;
  perspective: 1200px;
}
.dashboard-preview {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  transform: rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  background: #FCFCFD;
  border: 1px solid var(--divider);
}
.dashboard-preview:hover {
  transform: rotateX(0deg);
  box-shadow: 0 24px 72px rgba(0,0,0,0.15), 0 12px 32px rgba(0,0,0,0.1);
}
/* Glow effect under the preview */
.dashboard-preview-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0,113,227,0.08) 0%, transparent 70%);
  filter: blur(12px);
  z-index: -1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { padding: 120px 24px 80px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 18px; }
  .section { padding: 72px 24px; }
  .section-title { font-size: 32px; }
  .section-sub { font-size: 18px; }
  .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .stat-number { font-size: 48px; }
  .stat-card { padding: 24px 16px; }
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .steps-grid::before { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 12px; }
  .two-col-heading { font-size: 21px; }
  .included-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 48px;
    left: 0; right: 0;
    background: rgba(251, 251, 253, 0.96);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--divider);
  }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .trust-bar { gap: 20px; }
  .trust-bar-item { font-size: 12px; }
  .sticky-cta-text { display: none; }
  .sticky-cta-inner { justify-content: center; }
  .quote-text { font-size: 21px; }
  .calc-card { padding: 32px 24px; }
  .calc-result-value { font-size: 36px; }
  .footer { margin-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-stagger > .reveal-child { opacity: 1; transform: none; transition: none; }
  .reveal-scale, .reveal-left, .reveal-right, .reveal-blur { opacity: 1; transform: none; filter: none; transition: none; }
  .text-reveal .char { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
