/* ============================================================================
   Arihant Spec-Sheet Design System (Flagon-Inspired Tactile Architecture)
   Unified across Homepage, Solution Hubs, Industry Pages, Pricing, Booking & Blog
   ============================================================================ */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/arihantai_website/static/src/fonts/schibsted-grotesk-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Schibsted Fallback';
  font-weight: 400 500;
  src: local('Arial'), local('ArialMT');
  size-adjust: 106%; ascent-override: 92.2%; descent-override: 24.3%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Schibsted Fallback';
  font-weight: 600 800;
  src: local('Arial Bold'), local('Arial-BoldMT');
  size-adjust: 102.5%; ascent-override: 95.3%; descent-override: 25.2%; line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/arihantai_website/static/src/fonts/jetbrains-mono-var.woff2') format('woff2');
}

:root {
  --ah-paper: #FFFDF8;
  --ah-card: #FFFFFF;
  --ah-panel: #F6F1E7;
  --ah-panel-2: #EAE0CF;
  --ah-line: #E8DFD1;
  --ah-line-strong: #D3C5B2;

  --ah-ink: #1D1B18;
  --ah-ink-2: #4A433B;
  --ah-ink-3: #6C6358;
  --ah-dark: #181614;
  --ah-dark-2: #24211E;
  --ah-on-dark: #F7F2E8;
  --ah-on-dark-2: #C9BFA9;
  --ah-dark-line: rgba(247, 242, 232, 0.14);

  --ah-accent: #1E40AF;
  --ah-accent-hover: #17328E;
  --ah-accent-soft: #E8EEFD;
  --ah-brass: #C29642;
  --ah-brass-soft: #F3E6C4;
  --ah-moss: #1F6F50;
  --ah-moss-soft: #E3F1EA;
  --ah-hot: #9E3A22;
  --ah-hot-bg: #F6DCCF;

  --ah-r-sm: 8px;
  --ah-r: 14px;
  --ah-r-lg: 22px;
  --ah-shadow-sm: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(29,27,24,.06), 0 4px 12px -6px rgba(29,27,24,.14);
  --ah-shadow-fig: 0 1px 0 rgba(255,255,255,.75) inset, 0 4px 10px rgba(29,27,24,.06), 0 28px 56px -22px rgba(29,27,24,.28);
  --ah-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ah-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --ah-font: 'Schibsted Grotesk', 'Schibsted Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ah-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ah-wrap: 1260px;
  --ah-gutter: clamp(16px, 4vw, 40px);
  --ah-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}

@media (min-width: 1680px) { :root { --ah-wrap: 1420px; } }

html {
  background: var(--ah-paper);
  color: var(--ah-ink);
  overflow-x: clip;
  scroll-padding-top: 88px;
}
body:not(.editor_enable) {
  background: var(--ah-paper) !important;
  color: var(--ah-ink) !important;
  font-family: var(--ah-font) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:not(.editor_enable)::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: var(--ah-grain);
  background-size: 180px;
  opacity: 0.038;
  mix-blend-mode: multiply;
}
h1, h2, h3, h4, h5, h6, .erp-hero-title, .erp-section-title, .erp-ind-title {
  font-family: var(--ah-font) !important;
}
.ah-mono, code, kbd, pre { font-family: var(--ah-mono); }
.ah-tnum, .erp-stat-num { font-variant-numeric: tabular-nums; }
.ah-wrap { max-width: var(--ah-wrap); margin: 0 auto; padding: 0 var(--ah-gutter); }
.ah-grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* Sticky Translucent Navbar */
header#top, header.o_header_standard {
  background: rgba(255, 253, 248, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ah-line) !important;
  box-shadow: none !important;
  transition: background-color .25s ease, box-shadow .25s ease;
}
header#top.ah-scrolled, header.o_header_standard.ah-scrolled {
  background: rgba(255, 253, 248, 0.96) !important;
  box-shadow: 0 8px 28px -18px rgba(29, 27, 24, 0.25) !important;
}
header#top .nav-link, header.o_header_standard .nav-link {
  color: var(--ah-ink-2) !important;
  font-weight: 500;
  font-size: 0.92rem;
}
header#top .nav-link:hover, header.o_header_standard .nav-link:hover {
  color: var(--ah-ink) !important;
}

/* SVG Mega Menu Icons */
.ah-nav-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
  background: var(--ah-panel); border: 1px solid var(--ah-line);
  color: var(--ah-accent);
  transition: transform .25s var(--ah-ease-out), background-color .25s ease, color .25s ease;
}
.ah-nav-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.erp-mega-card-compact:hover .ah-nav-ico,
.erp-mobile-ind-card:hover .ah-nav-ico {
  background: var(--ah-accent);
  border-color: var(--ah-accent);
  color: #fff;
  transform: translateY(-1px) scale(1.04);
}
.erp-mega-menu-dropdown {
  background: var(--ah-paper) !important;
  border: 1px solid var(--ah-line-strong) !important;
  border-radius: var(--ah-r-lg) !important;
  box-shadow: var(--ah-shadow-fig) !important;
}
.erp-mega-card-compact {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--ah-r);
  border: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease;
  text-decoration: none !important;
}
.erp-mega-card-compact:hover {
  background: var(--ah-panel) !important;
  border-color: var(--ah-line-strong) !important;
}
.erp-mega-title-compact { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 0.86rem; color: var(--ah-ink); }
.erp-mega-desc-compact { margin: 2px 0 0; font-size: 0.74rem; color: var(--ah-ink-3); line-height: 1.35; }
.erp-mobile-ind-card {
  display: flex !important; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: var(--ah-card); border: 1px solid var(--ah-line);
  text-decoration: none !important; color: var(--ah-ink) !important;
}
.erp-mobile-ind-title { font-size: 0.84rem; font-weight: 600; color: var(--ah-ink); }

/* Section Rhythm */
.ah-sec { position: relative; padding: clamp(72px, 9vw, 132px) 0; background: var(--ah-paper); color: var(--ah-ink); }
.ah-sec--panel { background: var(--ah-panel); border-top: 1px solid var(--ah-line); border-bottom: 1px solid var(--ah-line); }
.ah-sec--dark { background: var(--ah-dark); color: var(--ah-on-dark); }
.ah-sec-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 68px); }
.ah-h1 {
  margin: 0; font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; text-wrap: balance;
  color: var(--ah-ink);
}
.ah-h2 {
  margin: 0; font-size: clamp(30px, 3.9vw, 56px);
  line-height: 1.04; font-weight: 650; letter-spacing: -0.038em; text-wrap: balance;
}
.ah-soft { color: var(--ah-ink-3); font-weight: 500; }
.ah-sec--dark .ah-h2, .ah-sec--dark .ah-h1 { color: var(--ah-on-dark); }
.ah-sec--dark .ah-soft { color: var(--ah-on-dark-2); }
.ah-lede { margin: 18px 0 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--ah-ink-2); max-width: 60ch; }
.ah-sec--dark .ah-lede { color: var(--ah-on-dark-2); }
.ah-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--ah-panel); border: 1px solid var(--ah-line-strong);
  font: 500 12px/1 var(--ah-mono); color: var(--ah-ink-2); letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.ah-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ah-moss); }

/* Tactile Pill Buttons */
.ah-btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  isolation: isolate; overflow: hidden; text-decoration: none !important;
  transform: translate(var(--mx), var(--my));
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .3s var(--ah-ease-out), transform .4s var(--ah-ease-out);
}
.ah-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.26), transparent 60%);
  opacity: 0; transition: opacity .25s ease;
}
.ah-btn:hover::before { opacity: 1; }
.ah-btn:hover { box-shadow: 0 12px 26px -12px rgba(29,27,24,.45); }
.ah-btn:active { transform: translate(var(--mx), var(--my)) scale(.97); transition-duration: .08s; }
.ah-btn-ink { background: var(--ah-ink); color: var(--ah-paper) !important; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 18px -10px rgba(29,27,24,.55); }
.ah-btn-ink:hover { background: #2D2924; }
.ah-btn-accent { background: var(--ah-accent); color: #fff !important; box-shadow: 0 8px 20px -10px rgba(30,64,175,.55); }
.ah-btn-accent:hover { background: var(--ah-accent-hover); }
.ah-btn-line { background: var(--ah-card); color: var(--ah-ink) !important; border-color: var(--ah-line-strong); box-shadow: var(--ah-shadow-sm); }
.ah-btn-line:hover { border-color: var(--ah-ink); }
.ah-btn-light { background: var(--ah-paper); color: var(--ah-ink) !important; }
.ah-btn-ghost { background: transparent; color: var(--ah-on-dark) !important; border-color: rgba(247,242,232,0.28); }
.ah-btn-ghost:hover { border-color: var(--ah-on-dark); background: rgba(255,255,255,.06); }

/* Glow & Tilt Surfaces */
.ah-glow { position: relative; overflow: hidden; }
.ah-glow::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(194, 150, 66, 0.14), transparent 60%);
  transition: opacity .35s ease;
}
.ah-glow:hover::after { opacity: 1; }
[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ah-ease-out), box-shadow .35s ease;
  will-change: transform;
}

/* Hero Split & Video Console Frame */
.ah-hero {
  position: relative; overflow: hidden; padding-top: clamp(44px, 5vw, 76px);
  background:
    radial-gradient(42% 52% at 84% 26%, rgba(194,150,66,.16), transparent 70%),
    radial-gradient(34% 44% at 62% 72%, rgba(30,64,175,.08), transparent 70%),
    var(--ah-paper);
}
.ah-hero-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; row-gap: 36px; align-items: center; padding-bottom: clamp(44px, 5vw, 68px); }
.ah-hero-copy { grid-column: 1 / span 6; }
.ah-hero-fig { grid-column: 7 / span 6; margin: 0; }
.ah-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ah-hero-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ah-ink-3); }

.ah-metrics { border-top: 1px solid var(--ah-line); border-bottom: 1px solid var(--ah-line); background: var(--ah-paper); }
.ah-metrics ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ah-metrics li { padding: 24px 22px; border-left: 1px solid var(--ah-line); }
.ah-metrics li:first-child { border-left: 0; padding-left: 0; }
.ah-metrics .n { display: block; font-size: clamp(26px, 2.5vw, 38px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; color: var(--ah-ink); font-variant-numeric: tabular-nums; }
.ah-metrics .l { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ah-ink-3); }

.ah-ls {
  background: var(--ah-card); border: 1px solid var(--ah-line-strong);
  border-radius: var(--ah-r-lg); box-shadow: var(--ah-shadow-fig); overflow: hidden;
}
.ah-ls-bar {
  height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-bottom: 1px solid var(--ah-line); background: var(--ah-panel);
}
.ah-ls-dots { display: flex; gap: 6px; }
.ah-ls-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ah-line-strong); display: block; }
.ah-ls-url {
  flex: 1; max-width: 310px; height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 10px;
  border-radius: 6px; background: var(--ah-paper); border: 1px solid var(--ah-line);
  font: 11.5px/1 var(--ah-mono); color: var(--ah-ink-3); white-space: nowrap; overflow: hidden;
}
.ah-ls-url b { color: var(--ah-ink); font-weight: 600; }
.ah-ls-live { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--ah-moss); font-family: var(--ah-mono); }
.ah-dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ah-moss); box-shadow: 0 0 0 3px var(--ah-moss-soft); }

.ah-vid-box {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--ah-panel); overflow: hidden;
}
.ah-vid-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-vid-badge {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 253, 248, 0.92); backdrop-filter: blur(8px);
  border: 1px solid var(--ah-line-strong); box-shadow: var(--ah-shadow-sm);
  font-size: 12.5px; color: var(--ah-ink);
}
.ah-vid-badge strong { font-weight: 650; }
.ah-vid-badge span.pill { padding: 3px 9px; border-radius: 999px; background: var(--ah-moss-soft); color: var(--ah-moss); font: 600 11px/1 var(--ah-mono); white-space: nowrap; }

/* Contrast Split (.ah-par) */
.ah-par { display: grid; grid-template-columns: 5fr 7fr; border: 1px solid var(--ah-dark-line); border-radius: var(--ah-r-lg); overflow: hidden; box-shadow: 0 32px 64px -32px rgba(0,0,0,.65); }
.ah-par-col { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; min-width: 0; }
.ah-par-old { background: var(--ah-panel); color: var(--ah-ink); }
.ah-par-new { background: var(--ah-dark-2); color: var(--ah-on-dark); position: relative; }
.ah-par-tag { font: 600 12px/1 var(--ah-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ah-ink-3); }
.ah-par-new .ah-par-tag { color: var(--ah-brass); }
.ah-par-num { margin-top: 22px; display: flex; align-items: baseline; gap: 10px; }
.ah-par-num b { font-size: clamp(46px, 5.5vw, 84px); line-height: .92; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.ah-par-num span { font-size: 15px; color: var(--ah-ink-3); }
.ah-par-new .ah-par-num span { color: var(--ah-on-dark-2); }
.ah-par-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ah-par-list li { padding: 10px 12px; border-radius: 8px; background: var(--ah-card); border: 1px solid var(--ah-line-strong); font-size: 13.5px; color: var(--ah-ink-2); }
.ah-lanes { margin-top: 24px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ah-lane { display: flex; width: max-content; gap: 8px; animation: ahLane var(--d, 48s) linear infinite; }
.ah-lane:nth-child(even) { animation-direction: reverse; }
.ah-lane span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--ah-dark-line); background: rgba(255,255,255,.03); font-size: 12.5px; color: var(--ah-on-dark); white-space: nowrap; }
.ah-lane span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; flex: none; }
.ah-lanes.paused .ah-lane { animation-play-state: paused; }
@keyframes ahLane { to { transform: translateX(-50%); } }

/* Capabilities Stage (.ah-capx) */
.ah-capx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.ah-capx-list { border-top: 1px solid var(--ah-line-strong); }
.ah-capx-item { position: relative; border-bottom: 1px solid var(--ah-line-strong); }
.ah-capx-tab {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 18px 0; font-size: 17px; font-weight: 500; color: var(--ah-ink-3);
  transition: color .2s ease;
}
.ah-capx-tab:hover { color: var(--ah-ink); }
.ah-capx-n { font: 600 12px/1 var(--ah-mono); color: var(--ah-ink-3); width: 22px; }
.ah-capx-item.on .ah-capx-tab { color: var(--ah-accent); font-weight: 650; }
.ah-capx-item.on .ah-capx-n { color: var(--ah-accent); }
.ah-capx-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ah-ease-out); }
.ah-capx-item.on .ah-capx-body { grid-template-rows: 1fr; }
.ah-capx-inner { overflow: hidden; }
.ah-capx-inner p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--ah-ink-2); }
.ah-capx-stage {
  background: var(--ah-panel); border: 1px solid var(--ah-line-strong); border-radius: var(--ah-r-lg);
  padding: clamp(14px, 2vw, 24px); box-shadow: var(--ah-shadow-fig);
}
.ah-capx-panel { display: none; }
.ah-capx-panel.on { display: block; animation: ahFadeUp .35s var(--ah-ease-out); }
@keyframes ahFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Sticky Scroll Dealt Deck (.ah-deck-sec) */
.ah-deck-sec { position: relative; background: var(--ah-panel); border-top: 1px solid var(--ah-line); border-bottom: 1px solid var(--ah-line); }
@media (min-width: 992px) {
  .ah-deck-sec { padding: 0; height: calc(var(--steps, 4) * 65vh + 95vh); }
  .ah-deck-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
  .ah-deck-list-mobile { display: none !important; }
}
@media (max-width: 991.98px) {
  .ah-deck-sec { padding: 64px 0; height: auto !important; }
  .ah-deck-pin { display: none !important; }
  .ah-deck-list-mobile { display: flex; flex-direction: column; gap: 18px; }
}
.ah-deck-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; width: 100%; }
.ah-deck-copy { grid-column: 1 / span 5; }
.ah-deck-step { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ah-line-strong); }
.ah-deck-count { display: flex; align-items: baseline; gap: 6px; font-family: var(--ah-mono); }
.ah-deck-count b { font-size: 20px; font-weight: 700; color: var(--ah-accent); }
.ah-deck-count span { font-size: 14px; color: var(--ah-ink-3); }
.ah-deck-title { margin: 12px 0 0; font-size: clamp(32px, 3.8vw, 56px); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; color: var(--ah-ink); }
.ah-deck-ticks { display: flex; gap: 6px; margin-top: 22px; }
.ah-deck-ticks i { width: 28px; height: 4px; border-radius: 4px; background: var(--ah-line-strong); transition: background-color .35s ease, width .35s ease; display: block; }
.ah-deck-ticks i.on { background: var(--ah-accent); width: 42px; }
.ah-deck-stage { grid-column: 6 / span 7; position: relative; display: grid; align-items: center; justify-items: center; min-height: 440px; }
.ah-deck-card {
  grid-area: 1 / 1; width: 100%; max-width: 560px;
  background: var(--ah-card); border-radius: 22px; padding: 18px; border: 1px solid var(--ah-line-strong);
  box-shadow: 0 4px 12px rgba(29,27,24,.06), 0 36px 64px -32px rgba(29,27,24,.35);
  transform-origin: 20% 110%;
  transition: transform .85s var(--ah-ease-out), opacity .55s ease, filter .55s ease;
  transform: translate3d(calc(var(--d, 0) * 28px), calc(var(--d, 0) * 14px), 0) rotate(calc(var(--d, 0) * 3.5deg)) scale(calc(1 + var(--d, 0) * 0.04));
  opacity: clamp(0, calc(1 + var(--d, 0) * 0.28), 1);
  z-index: calc(10 - var(--d, 0) * var(--d, 0));
}
.ah-deck-card:not(.front) { filter: saturate(.82) brightness(.96); pointer-events: none; }
.ah-deck-card.up { transform: translate3d(48px, 108%, 0) rotate(5deg); opacity: 0; pointer-events: none; }

/* Interior Spec Harmonization across Existing Pages */
.erp-hero-modern, .erp-ind-hero, .legal-hero-section {
  background: var(--ah-panel) !important;
  color: var(--ah-ink) !important;
  border-bottom: 1px solid var(--ah-line-strong) !important;
}
.erp-hero-modern .erp-hero-title, .erp-ind-hero .erp-ind-title, .legal-hero-section .legal-hero-title {
  color: var(--ah-ink) !important;
}
.erp-hero-modern .erp-hero-subtitle, .erp-ind-hero p {
  color: var(--ah-ink-2) !important;
}
.erp-glass-stat {
  background: var(--ah-card) !important;
  border: 1px solid var(--ah-line-strong) !important;
  border-radius: var(--ah-r) !important;
  color: var(--ah-ink) !important;
  box-shadow: var(--ah-shadow-sm) !important;
}
.erp-glass-stat .erp-stat-label { color: var(--ah-ink-3) !important; }
.btn-erp-primary {
  background: var(--ah-ink) !important; color: var(--ah-paper) !important;
  border-radius: 999px !important; border: 1px solid var(--ah-ink) !important;
}
.btn-erp-outline {
  background: var(--ah-card) !important; color: var(--ah-ink) !important;
  border-radius: 999px !important; border: 1px solid var(--ah-line-strong) !important;
}

/* Editorial FAQ & Footer */
.ah-faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.ah-faq-head { grid-column: 1 / span 4; position: sticky; top: 96px; }
.ah-faq-list { grid-column: 5 / span 8; border-top: 1px solid var(--ah-line-strong); }
.ah-faq-list details { border-bottom: 1px solid var(--ah-line); }
.ah-faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-size: clamp(16.5px, 1.4vw, 19px); font-weight: 600; color: var(--ah-ink);
}
.ah-faq-list summary::-webkit-details-marker { display: none; }
.ah-faq-list details p { margin: -4px 0 0; padding: 0 40px 22px 0; font-size: 15px; line-height: 1.6; color: var(--ah-ink-2); }
.ah-faq-ico { width: 20px; height: 20px; flex: none; color: var(--ah-ink-3); transition: transform .25s var(--ah-ease-out); }
.ah-faq-list details[open] .ah-faq-ico { transform: rotate(45deg); color: var(--ah-accent); }

footer#bottom, footer.o_footer {
  background: var(--ah-dark) !important;
  color: var(--ah-on-dark) !important;
  border-top: 1px solid var(--ah-dark-line) !important;
}
footer#bottom a, footer.o_footer a { color: var(--ah-on-dark-2) !important; }
footer#bottom a:hover, footer.o_footer a:hover { color: var(--ah-on-dark) !important; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ah-rv {
      animation: ahRv linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 36%;
    }
    @keyframes ahRv {
      from { opacity: 0; transform: translateY(24px) scale(0.99); }
      to { opacity: 1; transform: none; }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ah-lane, .ah-rv, [data-tilt], .ah-btn { animation: none !important; transition: none !important; transform: none !important; }
}

@media (max-width: 991.98px) {
  .ah-hero-copy, .ah-hero-fig, .ah-faq-head, .ah-faq-list { grid-column: 1 / -1; position: static; }
  .ah-metrics ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-metrics li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ah-par { grid-template-columns: 1fr; }
  .ah-capx { grid-template-columns: 1fr; }
  .ah-faq { row-gap: 28px; }
}


/* === UNIFIED FLAGON BRAND BRIDGE V2 === */
header#top, header.o_header_standard, #top_menu_container {
  background: rgba(255, 253, 248, 0.90) !important;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ah-line) !important;
}
header#top .nav-link, header#top .navbar-nav .nav-link {
  color: var(--ah-ink-2) !important;
  font-weight: 500;
  letter-spacing: -0.01em;
}
header#top .nav-link:hover, header#top .nav-link.active {
  color: var(--ah-ink) !important;
}

.erp-section {
  background: var(--ah-paper) !important;
  color: var(--ah-ink) !important;
}
.erp-section-light, .erp-ind-steps-section, .erp-ind-included-section,
.erp-ind-pairs-section, .erp-ind-comp-section {
  background: var(--ah-panel) !important;
  color: var(--ah-ink) !important;
  border-top: 1px solid var(--ah-line) !important;
  border-bottom: 1px solid var(--ah-line) !important;
}
.erp-cta-modern, .erp-ind-cta-banner, .erp-suite-cta-banner, .erp-suite-section, .erp-ind-deliverables-section {
  background: var(--ah-dark) !important;
  color: var(--ah-on-dark) !important;
  border-top: 1px solid var(--ah-dark-line) !important;
  border-bottom: 1px solid var(--ah-dark-line) !important;
}
.erp-cta-modern h2, .erp-cta-modern h3, .erp-cta-title,
.erp-ind-cta-banner h2, .erp-ind-cta-title,
.erp-suite-cta-banner h2, .erp-suite-cta-title,
.erp-suite-section .erp-suite-title,
.erp-ind-deliverables-section h2, .erp-ind-deliverables-section h3 {
  color: var(--ah-on-dark) !important;
}
.erp-cta-desc, .erp-ind-cta-desc, .erp-suite-cta-subtitle, .erp-suite-subtitle,
.erp-ind-deliverables-section p {
  color: var(--ah-on-dark-2) !important;
}

.erp-hero-modern h1 span[style*="-webkit-text-fill-color"] {
  background: none !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: var(--ah-ink-3) !important;
  color: var(--ah-ink-3) !important;
}

.erp-pill-badge, .erp-pill-badge-light, .erp-ind-pill, .erp-ind-eyebrow, .erp-ind-category-pill, .erp-section-tag {
  background: rgba(29, 27, 24, 0.05) !important;
  border: 1px solid var(--ah-line-strong) !important;
  color: var(--ah-ink-2) !important;
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 999px !important;
}
.erp-cta-modern .erp-pill-badge, .erp-ind-deliverables-section .erp-ind-deliv-eyebrow {
  background: rgba(247, 242, 232, 0.08) !important;
  border-color: var(--ah-dark-line) !important;
  color: var(--ah-on-dark) !important;
}
.erp-cta-modern .btn-erp-primary, .erp-ind-cta-banner .btn-erp-primary, .erp-suite-cta-banner .btn-erp-primary, [style*="--ah-dark"] .btn-erp-primary {
  background: var(--ah-paper) !important;
  color: var(--ah-ink) !important;
  border-color: var(--ah-paper) !important;
}
.erp-cta-modern .btn-erp-outline, .erp-ind-cta-banner .btn-erp-outline, .erp-suite-cta-banner .btn-erp-outline, [style*="--ah-dark"] .btn-erp-outline {
  background: transparent !important;
  color: var(--ah-on-dark) !important;
  border-color: var(--ah-dark-line) !important;
}

.erp-card-modern, .erp-card-bento, .erp-ind-card-v2, .erp-ind-module-card,
.erp-ind-cap-card, .erp-ind-pair-card, .erp-ind-step-card, .erp-ind-who-card,
.erp-calculator-card, .erp-scoping-card, .erp-dock-card, .erp-spotlight-card {
  background: var(--ah-card) !important;
  border: 1px solid var(--ah-line-strong) !important;
  border-radius: var(--ah-r) !important;
  color: var(--ah-ink) !important;
  box-shadow: var(--ah-shadow-sm) !important;
  transition: transform .3s var(--ah-ease-out), border-color .2s, box-shadow .3s !important;
}
.erp-card-modern:hover, .erp-card-bento:hover, .erp-ind-cap-card:hover,
.erp-ind-pair-card:hover, .erp-ind-module-card:hover, .erp-spotlight-card:hover {
  transform: translateY(-2px);
  border-color: var(--ah-ink-3) !important;
  box-shadow: var(--ah-shadow-lg) !important;
}
.erp-ind-deliv-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--ah-dark-line) !important;
  border-radius: var(--ah-r) !important;
  color: var(--ah-on-dark) !important;
}
.erp-card-title, .erp-ind-title-v2, .erp-ind-cap-title, .erp-ind-pair-title,
.erp-ind-step-title, .erp-ind-who-title, .erp-spotlight-title, .erp-section-title, .erp-workflow-title {
  font-family: 'Schibsted Grotesk', sans-serif !important;
  color: var(--ah-ink) !important;
  letter-spacing: -0.02em !important;
}
.erp-card-text, .erp-ind-desc-v2, .erp-ind-cap-desc, .erp-ind-step-desc,
.erp-ind-who-desc, .erp-section-desc, .erp-workflow-desc {
  color: var(--ah-ink-2) !important;
}
.erp-card-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: var(--ah-panel) !important;
  border: 1px solid var(--ah-line-strong) !important;
  color: var(--ah-accent) !important;
  display: inline-grid !important;
  place-items: center !important;
  margin-bottom: 14px !important;
}
.erp-card-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }

.erp-browser-frame {
  background: var(--ah-dark) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: var(--ah-r-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--ah-shadow-xl) !important;
}
.erp-browser-header {
  background: #141210 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  padding: 12px 16px !important;
}
.erp-browser-url { font-family: 'JetBrains Mono', monospace !important; color: rgba(247,242,232,0.7) !important; font-size: 11.5px !important; }
.erp-browser-body { background: var(--ah-dark) !important; padding: 0 !important; }

/* Spec Blueprint Card inside Stepper Frames */
.ah-spec-bp {
  padding: 28px 26px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(600px 260px at 85% 15%, rgba(30, 64, 175, 0.14), transparent 65%), #181614;
  color: #F7F2E8;
}
.ah-spec-bp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid rgba(247,242,232,0.1); padding-bottom: 14px; }
.ah-spec-bp-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #93C5FD; letter-spacing: 0.08em; text-transform: uppercase; }
.ah-spec-bp-badge { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #5FD38D; background: rgba(31, 111, 80, 0.2); border: 1px solid rgba(95, 211, 141, 0.35); padding: 3px 10px; border-radius: 999px; }
.ah-spec-bp-title { font-family: 'Schibsted Grotesk', sans-serif; font-size: 22px; font-weight: 600; color: #FFFDF8; margin: 18px 0 12px; letter-spacing: -0.02em; }
.ah-spec-bp-rows { display: grid; gap: 10px; margin-bottom: 18px; }
.ah-spec-bp-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: rgba(247,242,232,0.86); }
.ah-spec-bp-row b { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: #E2D5B8; font-weight: 500; }

/* Blog Index & Article Cards Editorial Spec Match */
#o_wblog_index_content, .o_wblog_index_wrap { background: var(--ah-paper) !important; }
.o_wblog_post {
  background: var(--ah-card) !important;
  border: 1px solid var(--ah-line-strong) !important;
  border-radius: var(--ah-r) !important;
  overflow: hidden;
  transition: transform .3s var(--ah-ease-out), box-shadow .3s;
}
.o_wblog_post:hover { transform: translateY(-2px); box-shadow: var(--ah-shadow-lg) !important; }
.o_wblog_post_title { font-family: 'Schibsted Grotesk', sans-serif !important; font-weight: 600 !important; letter-spacing: -0.02em; color: var(--ah-ink) !important; }

#arihant-mobile-thumb-bar {
  background: rgba(255, 253, 248, 0.94) !important;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ah-line-strong) !important;
}
#arihant-mobile-thumb-bar .btn { font-family: 'Schibsted Grotesk', sans-serif !important; font-size: 13px !important; border-radius: 999px !important; min-height: 44px !important; }
#arihant-mobile-thumb-bar .btn-primary { background: var(--ah-ink) !important; color: var(--ah-paper) !important; border-color: var(--ah-ink) !important; }
/* === DARK CONTRAST & BTT OBSIDIAN POLISH V3 === */
.ah-sec--dark .ah-lede,
.ah-sec--dark p.ah-lede,
.ah-sec--dark .ah-h2 .ah-soft,
.erp-cta-modern .ah-lede {
  color: rgba(247, 242, 232, 0.78) !important;
}
#erp-back-to-top {
  background: #181614 !important;
  color: #F7F2E8 !important;
  border: 1px solid rgba(247, 242, 232, 0.20) !important;
  box-shadow: 0 10px 24px -8px rgba(24, 22, 20, 0.45) !important;
}
#erp-back-to-top:hover {
  background: #1E40AF !important;
  border-color: #1E40AF !important;
}
@media (max-width: 640px) {
  /* On mobile phones where centered Ask Bar is visible, keep viewport clean by hiding redundant back-to-top */
  body:has(#ah-ask-wrap.is-on) #erp-back-to-top {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
