/* V4 inner pages — shared visual language with the homepage. */
body.v4-page {
  --v4-ink: #080a09;
  --v4-paper: #f0efe8;
  --v4-lime: #cfff4a;
  --v4-mint: #70f0bf;
  --v4-violet: #7358df;
  --v4-white: #f7f7f2;
  --v4-line: rgba(255, 255, 255, 0.16);
  --v4-line-dark: rgba(8, 10, 9, 0.18);
  --bg: var(--v4-ink);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: #111412;
  --text: var(--v4-white);
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.16);
  --brand: var(--v4-lime);
  --brand-soft: rgba(207, 255, 74, 0.12);
  --dark: var(--v4-ink);
  color: var(--v4-white);
  background: var(--v4-ink);
  background-image: none;
}

body.v4-page .page-shell {
  position: relative;
  overflow: clip;
  color: inherit;
  background: transparent;
  isolation: isolate;
}

body.v4-page .page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(112, 240, 191, 0.08), transparent 28%),
    radial-gradient(circle at 88% 34%, rgba(128, 104, 232, 0.08), transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.018) 46px 47px);
}

body.v4-page .page-shell > main,
body.v4-page .page-shell > footer {
  position: relative;
  z-index: 1;
}

body.v4-page .container {
  width: min(1440px, calc(100% - clamp(40px, 6vw, 104px)));
}

/* Header */
body.v4-page .site-header,
html.motion-ui body.v4-page .site-header.is-scrolled {
  color: #fff;
  background: rgba(8, 10, 9, 0.84);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

body.v4-page .site-brand-icon {
  filter: brightness(0) invert(1);
}

body.v4-page :is(.site-brand-name, .site-nav a.active, .site-nav a:hover) {
  color: #fff;
}

body.v4-page :is(.site-brand-sub, .site-nav a) {
  color: rgba(255, 255, 255, 0.62);
}

body.v4-page .site-nav a::after {
  background: var(--v4-lime);
}

body.v4-page .nav-dropdown-content {
  color: #fff;
  background: rgba(17, 20, 18, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

body.v4-page .nav-dropdown-content a {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.v4-page .nav-dropdown-content a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

body.v4-page .menu-toggle {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

body.v4-page .menu-toggle span,
body.v4-page .menu-toggle span::before,
body.v4-page .menu-toggle span::after {
  background: #fff;
}

/* Controls */
body.v4-page .btn-primary {
  color: var(--v4-ink) !important;
  background: var(--v4-lime) !important;
  border-color: var(--v4-lime) !important;
  box-shadow: 0 0 34px rgba(207, 255, 74, 0.12) !important;
}

body.v4-page .btn-primary:hover {
  color: var(--v4-ink) !important;
  background: #dcff75 !important;
}

body.v4-page .btn-secondary,
body.v4-page .btn-dark {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
}

body.v4-page .btn-secondary:hover,
body.v4-page .btn-dark:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Hero */
body.v4-page .hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 54px);
  padding: clamp(84px, 9vw, 142px) 0 clamp(72px, 8vw, 126px);
  color: #fff;
  background: var(--v4-ink);
  border-bottom: 1px solid var(--v4-line);
  isolation: isolate;
  overflow: clip;
}

body.v4-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 54%, rgba(112, 240, 191, 0.1), transparent 36%),
    radial-gradient(ellipse at 28% 12%, rgba(207, 255, 74, 0.045), transparent 28%);
}

body.v4-page .hero::after {
  content: "";
  position: absolute;
  inset: 40% -8% -18%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.58;
  background: repeating-linear-gradient(0deg, rgba(246, 247, 242, 0.2) 0 1px, transparent 1px 12px);
  mask-image: radial-gradient(ellipse 58% 90% at 72% 96%, #000 0 46%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 58% 90% at 72% 96%, #000 0 46%, transparent 74%);
  transform: perspective(700px) rotateX(58deg) scale(1.2);
  transform-origin: center bottom;
  animation: v4PageField 12s ease-in-out infinite alternate;
}

body.v4-page .page-hero-grid,
body.v4-page .about-hero-grid,
body.v4-page .contact-layout {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-items: center !important;
  gap: clamp(24px, 3vw, 52px) !important;
}

body.v4-page .page-hero-grid > :first-child,
body.v4-page .about-hero-grid > :first-child,
body.v4-page .contact-layout > :first-child {
  grid-column: 1 / 8;
}

body.v4-page .page-hero-grid > :last-child,
body.v4-page .about-hero-grid > :last-child,
body.v4-page .contact-layout > :last-child {
  grid-column: 8 / 13;
}

body.v4-page .page-copy,
body.v4-page .hero-copy {
  max-width: 760px;
  color: #fff;
}

body.v4-page :is(.hero .section-title, .hero .hero-title, .hero .display-title) {
  max-width: 900px;
  margin-top: 24px;
  color: var(--v4-white);
  background: none;
  -webkit-text-fill-color: currentcolor;
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 440;
  line-height: 0.98;
  letter-spacing: -0.062em;
}

body.v4-page :is(.section-kicker, .hero-tag, .eyebrow) {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  color: var(--v4-mint);
  background: transparent;
  border: 1px solid rgba(112, 240, 191, 0.38);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.14em;
}

body.v4-page :is(.hero .section-intro, .hero .section-copy, .hero-copy p, .page-copy p) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.75;
}

body.v4-page :is(.micro-list, .support-tags, .hero-stats) span {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.17);
}

body.v4-page .hero .visual-panel {
  position: relative;
  min-height: clamp(420px, 46vw, 680px);
  padding: clamp(18px, 2vw, 30px);
  overflow: hidden;
  color: #fff;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: clamp(24px, 3vw, 42px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24) !important;
}

body.v4-page .hero .visual-panel::before {
  background: radial-gradient(circle at 50% 44%, rgba(112, 240, 191, 0.13), transparent 54%);
}

body.v4-page .hero .visual-panel img {
  filter: saturate(0.86) contrast(1.04);
}

body.v4-page.app-page .app-hero-shot-shell {
  min-height: 0;
}

body.v4-page.app-page .visual-agent .app-hero-shot {
  max-height: min(64svh, 620px) !important;
}

body.v4-page .hero .device-artwork {
  mix-blend-mode: normal;
}

body.v4-page .contact-hero-image {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(24px, 3vw, 42px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24);
  filter: saturate(0.82) contrast(1.04);
}

/* Sections and typography */
body.v4-page main > .section,
body.v4-page main.section {
  position: relative;
  padding: clamp(94px, 10vw, 158px) 0;
  color: var(--v4-white);
  background: var(--v4-ink);
  border-top: 1px solid var(--v4-line);
}

body.v4-page main > .section:nth-of-type(even) {
  --surface: rgba(8, 10, 9, 0.035);
  --surface-strong: #fff;
  --text: var(--v4-ink);
  --muted: rgba(8, 10, 9, 0.62);
  --line: rgba(8, 10, 9, 0.18);
  --brand: #355f45;
  color: var(--v4-ink);
  background: var(--v4-paper);
  border-top-color: var(--v4-line-dark);
}

body.v4-page main > .section:nth-of-type(even) :is(.section-kicker, .hero-tag, .eyebrow) {
  color: #355f45;
  border-color: rgba(53, 95, 69, 0.34);
}

body.v4-page main > .section:nth-of-type(even) .btn-secondary {
  color: var(--v4-ink) !important;
  border-color: rgba(8, 10, 9, 0.28) !important;
  background: transparent !important;
}

body.v4-page main > .section:nth-of-type(even) .service-card.featured .btn-secondary {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
}

body.v4-page :is(.section-head, .section-header, .section-header-left) {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  max-width: none;
  margin-bottom: clamp(46px, 6vw, 86px);
}

body.v4-page :is(.section-head, .section-header, .section-header-left) .section-kicker,
body.v4-page :is(.section-head, .section-header, .section-header-left) .eyebrow {
  grid-column: 1 / 4;
  justify-self: start;
}

body.v4-page :is(.section-head, .section-header, .section-header-left) .section-title {
  grid-column: 4 / 11;
  margin-top: 0;
}

body.v4-page :is(.section-head, .section-header, .section-header-left) .section-intro {
  grid-column: 9 / 13;
  margin-top: 4px;
}

body.v4-page :is(.section-title, .display-title) {
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentcolor;
  font-size: clamp(44px, 5.8vw, 84px);
  font-weight: 470;
  line-height: 1;
  letter-spacing: -0.058em;
}

body.v4-page :is(.section-copy, .section-intro, .muted) {
  color: rgba(255, 255, 255, 0.58);
}

body.v4-page main > .section:nth-of-type(even) :is(.section-copy, .section-intro, .muted) {
  color: rgba(8, 10, 9, 0.62);
}

/* Cards and grids */
body.v4-page :is(.service-grid, .content-split, .contact-grid, .purchase-grid, .storyboard-shell) {
  gap: clamp(12px, 1.4vw, 20px);
}

body.v4-page :is(.service-card, .detail-panel, .audience-card, .contact-card, .order-shell, .info-shell, .panel, .legal-card, .success-card, .trust-panel, .storyboard-card) {
  color: var(--v4-white);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(22px, 2.4vw, 34px);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.v4-page :is(.service-card, .detail-panel, .audience-card, .contact-card, .order-shell, .info-shell, .panel, .trust-panel) {
  padding: clamp(26px, 3vw, 46px);
}

body.v4-page :is(.service-card, .detail-panel, .audience-card, .contact-card, .order-shell, .info-shell, .panel, .trust-panel) h2,
body.v4-page :is(.service-card, .detail-panel, .audience-card, .contact-card, .order-shell, .info-shell, .panel, .trust-panel) h3 {
  color: inherit;
}

body.v4-page :is(.service-card, .detail-panel, .audience-card, .contact-card, .order-shell, .info-shell, .panel, .trust-panel) p {
  color: rgba(255, 255, 255, 0.58);
}

body.v4-page main > .section:nth-of-type(even) :is(.service-card, .detail-panel, .audience-card, .contact-card, .order-shell, .info-shell, .panel, .trust-panel, .storyboard-card) {
  color: var(--v4-ink);
  background: transparent;
  border-color: rgba(8, 10, 9, 0.22);
}

body.v4-page main > .section:nth-of-type(even) :is(.service-card, .detail-panel, .audience-card, .contact-card, .order-shell, .info-shell, .panel, .trust-panel, .storyboard-card) p {
  color: rgba(8, 10, 9, 0.62);
}

body.v4-page .service-card.featured {
  color: #fff;
  background: var(--v4-violet);
  border-color: var(--v4-violet);
}

body.v4-page .service-card.featured :is(h2, h3, p, strong, .section-copy, .section-intro, .info-kicker) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.v4-page :is(.info-kicker, .metric-label, .storyboard-card small) {
  color: var(--v4-mint);
  background: transparent;
  border-color: rgba(112, 240, 191, 0.38);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  letter-spacing: 0.13em;
}

body.v4-page main > .section:nth-of-type(even) :is(.info-kicker, .metric-label, .storyboard-card small) {
  color: rgba(8, 10, 9, 0.7);
  background: transparent;
  border-color: rgba(8, 10, 9, 0.24);
}

body.v4-page main > .section:nth-of-type(even) .service-card.featured {
  color: #fff;
  background: var(--v4-violet);
  border-color: var(--v4-violet);
}

body.v4-page .service-card.featured .info-kicker {
  background: rgba(8, 10, 9, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

body.v4-page :is(.check-list, .info-list, .contact-list, .trust-points) > * {
  border-color: rgba(255, 255, 255, 0.14);
}

body.v4-page main > .section:nth-of-type(even) :is(.check-list, .info-list, .contact-list, .trust-points) > * {
  border-color: rgba(8, 10, 9, 0.16);
}

body.v4-page .storyboard-card.accent {
  color: var(--v4-ink);
  background: var(--v4-lime);
  border-color: var(--v4-lime);
}

body.v4-page .storyboard-card.accent :is(strong, p, small, .section-copy) {
  color: var(--v4-ink) !important;
  -webkit-text-fill-color: var(--v4-ink) !important;
}

body.v4-page .plan-band {
  color: var(--v4-ink);
  background: var(--v4-lime);
  border: 1px solid var(--v4-lime);
  border-radius: clamp(24px, 2.8vw, 40px);
  box-shadow: none;
}

body.v4-page .plan-band :is(.section-title, .section-intro, .section-copy, .section-kicker, h2, h3, p) {
  color: var(--v4-ink) !important;
  -webkit-text-fill-color: var(--v4-ink) !important;
}

body.v4-page .plan-band .section-kicker {
  border-color: rgba(8, 10, 9, 0.34);
}

body.v4-page .plan-band .metric-chip {
  color: var(--v4-ink) !important;
  -webkit-text-fill-color: var(--v4-ink) !important;
  background: transparent;
  border-color: rgba(8, 10, 9, 0.28);
}

body.v4-page .visual-panel {
  color: inherit;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
}

body.v4-page main > .section:nth-of-type(even) .visual-panel {
  background: rgba(8, 10, 9, 0.035) !important;
  border-color: rgba(8, 10, 9, 0.18) !important;
}

body.v4-page .cta-card {
  color: var(--v4-ink);
  background: var(--v4-lime);
  border: 0;
  border-radius: clamp(26px, 3vw, 44px);
  box-shadow: none;
}

body.v4-page .cta-card :is(.section-title, .section-intro, .section-kicker) {
  color: var(--v4-ink) !important;
  -webkit-text-fill-color: var(--v4-ink) !important;
}

body.v4-page .cta-card :is(h2, h3, p, .section-copy) {
  color: var(--v4-ink) !important;
  -webkit-text-fill-color: var(--v4-ink) !important;
}

body.v4-page .cta-card .section-kicker {
  border-color: rgba(8, 10, 9, 0.34);
}

body.v4-page .cta-card .btn-primary {
  color: #fff !important;
  background: var(--v4-ink) !important;
  border-color: var(--v4-ink) !important;
}

body.v4-page .cta-card .btn-secondary {
  color: var(--v4-ink) !important;
  border-color: rgba(8, 10, 9, 0.3) !important;
  background: transparent !important;
}

/* Forms, commerce and legal reading */
body.v4-page :is(.field input, .field select, .field textarea, .search-input) {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

body.v4-page :is(.field input, .field select, .field textarea, .search-input):focus {
  border-color: var(--v4-mint);
  box-shadow: 0 0 0 3px rgba(112, 240, 191, 0.12);
}

body.v4-page .field label {
  color: rgba(255, 255, 255, 0.72);
}

body.v4-page main > .section:nth-of-type(even) :is(.field input, .field select, .field textarea) {
  color: var(--v4-ink);
  background: rgba(8, 10, 9, 0.035);
  border-color: rgba(8, 10, 9, 0.2);
}

body.v4-page main > .section:nth-of-type(even) .field label {
  color: rgba(8, 10, 9, 0.72);
}

body.v4-page :is(.field input, .field textarea, .search-input)::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

body.v4-page main > .section:nth-of-type(even) :is(.field input, .field textarea)::placeholder {
  color: rgba(8, 10, 9, 0.62);
}

body.v4-page .qr-popover {
  color: #16211b;
}

body.v4-page :is(.summary-box, .safety-note) {
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.15);
}

body.v4-page main > .section:nth-of-type(even) :is(.summary-box, .safety-note) {
  background: rgba(8, 10, 9, 0.035);
  border-color: rgba(8, 10, 9, 0.16);
}

body.v4-page main.section {
  min-height: calc(100svh - 54px);
}

body.v4-page .legal-card {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 72px);
}

body.v4-page .legal-list > div {
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body.v4-page .legal-list strong {
  color: var(--v4-white);
}

body.v4-page .trust-point {
  color: var(--v4-white);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.16);
}

body.v4-page .trust-point h3 {
  color: var(--v4-white);
}

body.v4-page .trust-point p {
  color: rgba(255, 255, 255, 0.58);
}

body.v4-page main > .section:nth-of-type(even) .trust-point {
  color: var(--v4-ink);
  background: rgba(8, 10, 9, 0.035);
  border-color: rgba(8, 10, 9, 0.16);
}

body.v4-page main > .section:nth-of-type(even) .trust-point h3 {
  color: var(--v4-ink);
}

body.v4-page main > .section:nth-of-type(even) .trust-point p {
  color: rgba(8, 10, 9, 0.62);
}

/* Status and authentication */
body.v4-page :is(.success-shell, .login-shell) {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

body.v4-page :is(.success-card, .login-shell .panel) {
  width: min(100%, 760px);
  padding: clamp(34px, 5vw, 68px);
  text-align: center;
}

body.v4-page :is(.success-card, .login-shell .panel) .section-title,
body.v4-page .success-card h1 {
  color: var(--v4-white);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 470;
  letter-spacing: -0.055em;
}

body.v4-page .success-icon {
  color: var(--v4-ink);
  background: var(--v4-lime);
}

/* Login gateway */
body.v4-page .login-gateway-hero {
  min-height: calc(100svh - 72px);
}

body.v4-page .login-gateway-shell {
  width: min(1180px, calc(100% - clamp(32px, 6vw, 96px)));
}

body.v4-page .login-gateway-shell .section-header {
  max-width: 860px;
}

body.v4-page .gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 54px);
}

body.v4-page .gateway-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

body.v4-page .gateway-card .button-row {
  margin-top: auto;
  padding-top: 28px;
}

body.v4-page .gateway-meta {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body.v4-page .gateway-meta span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  letter-spacing: 0.08em;
}

body.v4-page .gateway-meta strong {
  color: var(--v4-white);
  font-size: 15px;
  font-weight: 560;
}

/* Admin remains information-first, but uses the same palette. */
body.v4-page .admin-shell {
  min-height: 100svh;
  padding: clamp(24px, 4vw, 56px) 0;
}

body.v4-page .admin-shell > .container {
  position: relative;
  z-index: 1;
}

body.v4-page .admin-grid {
  gap: 18px;
}

body.v4-page :is(.admin-side, .admin-main, .stats-card, .table-shell) {
  color: var(--v4-white);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.16);
}

body.v4-page .table-shell {
  overflow: auto;
}

body.v4-page :is(.mini-btn, .inline-actions button) {
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

body.v4-page.admin-page .tag.paid {
  color: #9df3ba;
  background: rgba(52, 199, 89, 0.14);
}

body.v4-page.admin-page .tag.pending {
  color: #ffe59c;
  background: rgba(255, 204, 0, 0.12);
}

body.v4-page.admin-page .tag.failed,
body.v4-page.admin-page .tag.cancelled {
  color: #ffb0a8;
  background: rgba(255, 69, 58, 0.14);
}

body.v4-page .admin-nav :is(a, button) {
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

body.v4-page .admin-nav .active {
  color: var(--v4-ink);
  background: var(--v4-lime);
}

body.v4-page .data-table :is(th, td) {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Footer */
body.v4-page .footer {
  margin: 0;
  padding: 64px 0 42px;
  color: #fff;
  background: var(--v4-ink);
  border-top-color: rgba(255, 255, 255, 0.14);
}

body.v4-page .footer .brand-name {
  color: #fff;
}

body.v4-page :is(.footer .brand-sub, .footer-copy, .footer-disclaimer, .footer-compliance, .footer-links) {
  color: rgba(255, 255, 255, 0.62);
}

body.v4-page .footer-shell {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.14);
}

body.v4-page .footer-compliance-divider {
  background: rgba(255, 255, 255, 0.2);
}

body.v4-page :is(.footer-compliance a, .footer-links a):hover {
  color: #fff;
}

body.v4-page :where(a, button, input, select, textarea):focus-visible {
  outline-color: var(--v4-violet);
}

/* Standalone sound launchers */
body.v4-page.portal-page {
  position: relative;
  overflow: hidden;
}

body.v4-page.portal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 80%, rgba(112, 240, 191, 0.13), transparent 32%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 14px);
  mask-image: linear-gradient(transparent 18%, #000 66%);
  -webkit-mask-image: linear-gradient(transparent 18%, #000 66%);
}

body.v4-page.portal-page .panel {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 760px);
  padding: clamp(34px, 5vw, 64px);
  border-radius: 34px;
}

body.v4-page.portal-page h1 {
  margin: 0 0 18px;
  color: var(--v4-white);
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 470;
  line-height: 1;
  letter-spacing: -0.058em;
}

/* Agency presentation keeps its Swiper interaction. */
body.v4-page.agency-page {
  color: var(--v4-white);
  background: var(--v4-ink);
}

body.v4-page.agency-page .swiper-slide {
  background:
    radial-gradient(circle at 50% 115%, rgba(112, 240, 191, 0.08), transparent 38%),
    var(--v4-ink);
}

body.v4-page.agency-page .title {
  color: var(--v4-white);
  background: none;
  -webkit-text-fill-color: currentcolor;
  font-weight: 470;
  letter-spacing: -0.055em;
}

body.v4-page.agency-page :is(.highlight, .step-num, .data-highlight) {
  color: var(--v4-lime) !important;
}

body.v4-page.agency-page :is(.treatment-card, .workflow-step, .dashboard-mockup, .content-box > .grid > div) {
  background-color: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: none;
}

body.v4-page.agency-page .swiper-pagination-bullet-active {
  background: var(--v4-lime);
}

body.v4-page.agency-page :is(#submit-btn, .agent-btn, .primary-btn) {
  color: var(--v4-ink) !important;
  background: var(--v4-lime) !important;
  border-color: var(--v4-lime) !important;
}

body.v4-page.agency-page .password-container {
  background: rgba(17, 20, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

body.v4-page.agency-page :is(.text-gray-500, .text-gray-600) {
  color: #a9adb5 !important;
}

body.v4-page.agency-page .text-gray-500.animate-pulse {
  color: #fff !important;
}

body.v4-page.agency-page :is(.settlement-metric span, .settlement-steps, .settlement-row span, .agent-interaction-module p, .agent-box-spec span) {
  color: #a9adb5;
}

body.v4-page.agency-page #password-input::placeholder {
  color: #a9adb5;
}

body.v4-page.agency-page [class~="bg-[#2997ff]"] {
  background-color: #0068cc !important;
}

@keyframes v4PageField {
  from { transform: perspective(700px) rotateX(58deg) translate3d(-2%, 0, 0) scale(1.2); }
  to { transform: perspective(700px) rotateX(58deg) translate3d(2%, -2%, 0) scale(1.24); }
}

@media (max-width: 1024px) {
  body.v4-page .site-mobile-sheet {
    color: #fff;
    background: #111412;
    border-color: rgba(255, 255, 255, 0.14);
  }

  body.v4-page .site-mobile-nav a {
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.06);
  }

  body.v4-page .site-mobile-nav a.active {
    color: var(--v4-ink);
    background: var(--v4-lime);
  }

  body.v4-page .site-mobile-sheet .btn-secondary {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
  }

  body.v4-page .page-hero-grid,
  body.v4-page .about-hero-grid,
  body.v4-page .contact-layout {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }

  body.v4-page .page-hero-grid > :first-child,
  body.v4-page .about-hero-grid > :first-child,
  body.v4-page .contact-layout > :first-child {
    grid-column: 1 / 6;
  }

  body.v4-page .page-hero-grid > :last-child,
  body.v4-page .about-hero-grid > :last-child,
  body.v4-page .contact-layout > :last-child {
    grid-column: 6 / 9;
  }

  body.v4-page :is(.hero .section-title, .hero .hero-title, .hero .display-title) {
    font-size: clamp(44px, 5.8vw, 60px);
  }

  body.v4-page .gateway-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.v4-page .container {
    width: min(100%, calc(100% - 28px));
  }

  body.v4-page .site-mobile-sheet {
    color: #fff;
    background: #111412;
    border-color: rgba(255, 255, 255, 0.14);
  }

  body.v4-page .site-mobile-nav a {
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.06);
  }

  body.v4-page .site-mobile-nav a.active {
    color: var(--v4-ink);
    background: var(--v4-lime);
  }

  body.v4-page .site-mobile-sheet .btn-secondary {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
  }

  body.v4-page .hero {
    display: block;
    min-height: auto;
    padding: 70px 0 64px;
  }

  body.v4-page .gateway-card {
    min-height: auto;
  }

  body.v4-page .page-hero-grid,
  body.v4-page .about-hero-grid,
  body.v4-page .contact-layout {
    grid-template-columns: 1fr !important;
  }

  body.v4-page .page-hero-grid > :first-child,
  body.v4-page .page-hero-grid > :last-child,
  body.v4-page .about-hero-grid > :first-child,
  body.v4-page .about-hero-grid > :last-child,
  body.v4-page .contact-layout > :first-child,
  body.v4-page .contact-layout > :last-child {
    grid-column: 1;
  }

  body.v4-page :is(.hero .section-title, .hero .hero-title, .hero .display-title) {
    font-size: clamp(42px, 12vw, 58px);
  }

  body.v4-page .hero .visual-panel {
    min-height: 340px;
    margin-top: 18px;
  }

  body.v4-page.app-page .visual-agent .app-hero-shot {
    max-height: min(58svh, 460px) !important;
  }

  body.v4-page main > .section,
  body.v4-page main.section {
    padding: 76px 0;
  }

  body.v4-page :is(.section-head, .section-header, .section-header-left) {
    display: block;
    margin-bottom: 42px;
  }

  body.v4-page :is(.section-head, .section-header, .section-header-left) .section-title {
    margin-top: 18px;
  }

  body.v4-page :is(.section-head, .section-header, .section-header-left) .section-intro {
    margin-top: 18px;
  }

  body.v4-page :is(.section-title, .display-title) {
    font-size: clamp(40px, 11.5vw, 56px);
  }

  body.v4-page :is(.service-card, .detail-panel, .audience-card, .contact-card, .order-shell, .info-shell, .panel, .trust-panel) {
    padding: 26px;
  }

  body.v4-page .admin-grid {
    grid-template-columns: 1fr;
  }

  body.v4-page.agency-page .swiper-slide {
    padding: 3.5rem 1rem 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.v4-page .hero::after {
    animation: none;
  }
}
