/* ─── Base ─── */
:root { --ink: #012263; }
html { scroll-behavior: smooth; }
::selection { background: var(--ink); color: #fff; }
.text-ink { color: var(--ink); }

/* ─── Prose ─── */
.prose { font-size: 1.125rem; line-height: 1.85; color: #525252; }
.prose h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.75rem; font-weight: 400; margin-top: 3rem; margin-bottom: 1rem; color: #0a0a0a; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.125rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.5rem; color: #0a0a0a; }
.prose p { margin-bottom: 1.5rem; }
.prose a { color: #0a0a0a; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #d4d4d4; transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: #0a0a0a; }
.prose strong { color: #0a0a0a; font-weight: 600; }
.prose ul, .prose ol { margin: 1.5rem 0; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.75; }
.prose ul li { list-style-type: square; }
.prose ol li { list-style-type: decimal; }
.prose blockquote { border-left: 2px solid #e5e5e5; padding-left: 1.5rem; margin: 2rem 0; color: #737373; font-family: 'Instrument Serif', Georgia, serif; font-size: 1.25rem; font-style: italic; }
.prose code { background: #f5f5f5; color: #262626; padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.875rem; }
.prose pre { background: #0a0a0a; color: #e5e5e5; padding: 1.5rem; border-radius: 8px; overflow-x: auto; margin: 2rem 0; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: 0.875rem; }
.prose img { border-radius: 8px; margin: 2.5rem 0; }
.prose hr { border-color: #e5e5e5; margin: 3rem 0; }

/* ─── Utilities ─── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Hero background ─── */
.hero-shell {
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 51, 153, 0.24), transparent 30rem),
    #050505;
}

/* Shared dark-section background (matches scrolled navbar) */
.dark-shell {
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 51, 153, 0.24), transparent 30rem),
    #050505;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: -8%;
  z-index: 1;
  opacity: 0.42;
  background:
    radial-gradient(ellipse at 72% 42%, rgba(0, 51, 153, 0.26), transparent 34rem);
  mask-image: radial-gradient(ellipse at 72% 48%, black 0 28%, transparent 66%);
  -webkit-mask-image: radial-gradient(ellipse at 72% 48%, black 0 28%, transparent 66%);
  animation: hero-drift 54s linear infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.30) 55%, rgba(5, 5, 5, 0.66)),
    linear-gradient(180deg, rgba(5, 5, 5, 0), #050505 96%);
}

.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.23;
  transform: translate3d(0, 0, 0);
  animation: hero-float 38s ease-in-out infinite alternate;
}

.hero-glow-blue {
  width: min(36vw, 34rem);
  height: min(36vw, 34rem);
  right: 4%;
  top: 16%;
  background: rgba(0, 51, 153, 0.72);
}


@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-44px, 28px, 0); }
}

@keyframes hero-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.5rem, 1.4rem, 0) scale(1.06); }
}


@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-glow { animation: none; }
}

@media (max-width: 767px) {
  .hero-bg::before { opacity: 0.28; mask-image: radial-gradient(ellipse at 70% 56%, black 0 22%, transparent 62%); -webkit-mask-image: radial-gradient(ellipse at 70% 56%, black 0 22%, transparent 62%); }
  .hero-glow-blue { width: 22rem; height: 22rem; right: -8rem; top: 11rem; opacity: 0.14; }
}

/* ─── Scroll Reveal ─── */
html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
html.reveal-ready [data-reveal].revealed { opacity: 1 !important; transform: translateY(0) !important; }

html.reveal-ready [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
html.reveal-ready [data-reveal-stagger].revealed > * { opacity: 1; transform: translateY(0); }
html.reveal-ready [data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0ms; }
html.reveal-ready [data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 120ms; }
html.reveal-ready [data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 240ms; }
html.reveal-ready [data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 360ms; }
html.reveal-ready [data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 480ms; }

/* ─── FAQ ─── */
[data-faq-icon] { transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
[data-faq-content] {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
[data-faq-content].open { grid-template-rows: 1fr; }
[data-faq-content] > div { overflow: hidden; }

/* ─── Navbar states ─── */
#main-nav.nav-transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#main-nav.nav-transparent .nav-logo-text { color: #fff; }
#main-nav.nav-transparent .nav-link { color: rgba(255,255,255,0.7); }
#main-nav.nav-transparent .nav-link:hover { color: #fff; }

#main-nav.nav-solid {
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 51, 153, 0.24), transparent 30rem),
    #050505;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
#main-nav.nav-solid .nav-logo-text { color: #fff; }
#main-nav.nav-solid .nav-link { color: rgba(255,255,255,0.7); }
#main-nav.nav-solid .nav-link:hover { color: #fff; }

#main-nav .nav-logo-gold { color: #FDCB0B; }
#main-nav .nav-logo-mark {
  color: #FDCB0B;
  width: 1rem;
  height: 1rem;
}
#main-nav .nav-cta { color: #FDCB0B; }
#main-nav .nav-cta:hover { color: #ffd933; }
#main-nav .nav-menu-link { font-size: 0.875rem; }
#main-nav .nav-menu-link-mobile { font-size: 1rem; }
.nav-brand-lockup { gap: 0.35rem; }

.section-copy {
  font-size: 0.96875rem;
  line-height: 1.68;
  color: #5f5f5f;
}

.whyus-point {
  font-size: 0.96875rem;
  line-height: 1.68;
  color: #525252;
}

.pricing-desc {
  font-size: 0.96875rem;
  line-height: 1.6;
  color: #5c5c5c;
}

.pricing-feature {
  font-size: 0.96875rem;
  line-height: 1.6;
  color: #353535;
}

.pricing-price-note {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #5f5f5f;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pricing-migration-copy,
.footer-copy,
.pricing-footnote {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.pricing-migration-copy {
  color: #474747;
}

.footer-copy {
  color: #575757;
  font-size: 0.96875rem;
}

.pricing-footnote {
  color: #666666;
}

.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
}

.pricing-card-head {
  display: grid;
  gap: 0.35rem;
}

.pricing-card-title {
  letter-spacing: -0.02em;
}

.pricing-card-eyebrow {
  letter-spacing: 0.08em;
}

.pricing-price-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.pricing-price {
  line-height: 0.95;
}

.pricing-feature-list {
  margin-bottom: 2.25rem;
}

.pricing-card-cta {
  min-height: 3rem;
}

.pricing-sample-link {
  color: #6e6e6e;
}

.footer-heading {
  letter-spacing: 0.04em;
  color: #7d7d7d;
}

.footer-link,
.footer-contact-list {
  font-size: 1rem;
  line-height: 1.65;
  color: #4a4a4a;
}

.footer-meta {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #717171;
  padding-block: 1.5rem;
}

.footer-meta-link {
  color: #5c5c5c;
}

.dark-support-copy {
  color: #c2c2c2;
}

.dark-meta-copy {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #a9a9a9;
}

/* ─── Dark-bg gold override (#FDCB0B for visibility on dark sections) ─── */
.hero-shell .text-gold,
.dark-shell .text-gold,
#main-nav .text-gold { color: #FDCB0B; }
.hero-shell .text-neutral-400,
.dark-shell .text-neutral-400 { color: #b6b6b6; }
.hero-shell .text-neutral-500,
.dark-shell .text-neutral-500 { color: #999999; }
.dark-shell .text-neutral-300 { color: #d4d4d4; }
.hero-shell .bg-gold,
.dark-shell .bg-gold { background-color: #FDCB0B; }
.hero-shell .hover\:text-gold:hover,
.dark-shell .hover\:text-gold:hover,
#main-nav .hover\:text-gold:hover { color: #FDCB0B; }
.hero-shell .hover\:bg-gold\/90:hover,
.dark-shell .hover\:bg-gold\/90:hover { background-color: rgb(253 203 11 / 0.9); }
.hero-shell .focus\:border-gold:focus,
.dark-shell .focus\:border-gold:focus { border-color: #FDCB0B; }

/* ─── Link hover line ─── */
.hover-line { position: relative; display: inline; }
.hover-line::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #0a0a0a;
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.hover-line:hover::after { width: 100%; }
.hover-line-light::after { background: #fff; }
.nav-transparent .hover-line::after { background: #fff; }
.nav-solid .hover-line::after { background: #fff; }

/* ─── Section number ─── */
.section-num {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #a3a3a3;
}

/* ─── Brand wordmark ─── */
.brand-logo {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.015rem;
}
.brand-logo-nav { font-size: 1.4rem; line-height: 1; font-weight: 400; }
.brand-logo-footer { font-size: 1.25rem; line-height: 1; }
@media (min-width: 768px) {
  #main-nav .nav-logo-mark {
    width: 1.125rem;
    height: 1.125rem;
  }
  .brand-logo-nav { font-size: 1.4rem; }
}

/* ─── Numeric/meta accent (Source Sans 3 + tabular figures) ─── */
.font-mono {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

/* Reserve a true 2 lines for pricing descriptions so the price rows align
   across tiers. 2.5rem was too short for the current 15.5px/1.6 copy. */
@media (min-width: 1024px) {
  .pricing-desc { min-height: 3.1rem; }
}
