/* Ported from the Yuta Digital style.css by scripts/port_styles.py: same layout, DEVA colours. Do not edit by hand. */
@font-face {
  font-family: 'Libron';
  src: url('../fonts/Libron-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libron';
  src: url('../fonts/Libron-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-serif: 'Libron', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --brand-forest: #121A4D;
  --brand-forest-card: #141D55;
  --brand-forest-border: #26307A;
  --brand-cream: #F7F9FC;
  --brand-surface: #FFFFFF;
  --brand-border: #DFE5EF;
}

html {
  background-color: var(--brand-cream);
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-cream);
  color: #26272D;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-libron {
  font-family: var(--font-serif);
}

.font-mono-code {
  font-family: var(--font-mono);
}

/* Custom Accordion transition */
.faq-answer {
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.faq-answer.open {
  max-height: 400px;
  opacity: 1;
}

.text-balance {
  text-wrap: balance;
}

/* Custom toggle switch */
.switch-input:checked + .switch-track {
  background-color: #121A4D;
}

.switch-input:checked + .switch-track .switch-thumb {
  transform: translateX(18px);
  background-color: #FFFFFF;
}

/* Scorecard table badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.pill-behind {
  background-color: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.pill-ahead {
  background-color: rgba(59, 130, 246, 0.2);
  color: #7DB8FF;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.pill-level {
  background-color: rgba(156, 163, 175, 0.2);
  color: #D1D5DB;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Region switcher */
.yh-region-switch {
  display: inline-flex;
  align-items: center;
  background-color: #E1E5EE;
  padding: 2px;
  border-radius: 9999px;
  border: 1px solid #CAD0DD;
  gap: 2px;
}

.yh-region-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #7F8290;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.yh-region-btn:hover {
  color: var(--brand-forest);
}

.yh-region-btn.is-active {
  background-color: #FFFFFF;
  color: var(--brand-forest);
  box-shadow: 0 1px 3px rgba(18, 26, 77, 0.12);
}

/* DEVA AUDIT SEARCH BAR & TERMINAL (EXPLICIT BULLETPROOF STYLING)           */
/* ========================================================================= */

.deva-console-window {
  background-color: #0C122E;
  border: 1.5px solid #313D74;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  margin-top: 1.5rem;
}

.deva-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #070C1E;
  border-bottom: 1px solid #252E57;
  padding: 12px 20px;
}

.deva-card {
  background-color: #070C21;
  border: 1px solid #252E57;
  border-radius: 12px;
  padding: 16px;
}

/* ========================================================================= */
/* SHADCN-INSPIRED BROWSER MOCKUP & PILLAR CARDS                             */
/* ========================================================================= */

.browser-mockup {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2F3D7A;
  background-color: #090D21;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.08);
}

.browser-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background-color: #060918;
  border-bottom: 1px solid #1E2851;
}

.browser-mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  display: inline-block;
}

.browser-mockup-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  background-color: #0C1332;
  border: 1px solid #273369;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ABB0C7;
}

.browser-mockup-body {
  padding: 20px 24px;
  background-color: #0A112C;
}

.pillar-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: #B9BFDE;
  box-shadow: 0 10px 25px -5px rgba(18, 26, 77, 0.08);
}

.deva-three-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .deva-three-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}



/* ========================================================================= */
/* HERO (mobile-first, editorial)                                            */
/* ========================================================================= */

.yh {
  padding: 2.25rem 1.25rem 3.5rem;
}

.yh-inner {
  max-width: 64rem;
  margin: 0 auto;
}

.yh-copy {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.yh-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2C3A9E;
  margin-bottom: 0.875rem;
}

.yh-title {
  font-weight: 700;
  font-size: clamp(2.25rem, 8.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--brand-forest);
  text-wrap: balance;
}

/* Hero tagline carousel: every slide shares one grid cell, so the
   block is always as tall as the longest tagline (no layout shift). */

.yh-rotator {
  display: grid;
  overflow: hidden;
  position: relative;
}

.yh-slide {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5rem);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  pointer-events: none;
}

.yh-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.4s ease 0.08s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s, visibility 0s;
  pointer-events: auto;
}

.yh-slide.is-exiting {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.yh-slide-line,
.yh-slide-accent {
  display: block;
  text-wrap: balance;
}

.yh-slide-accent {
  color: #2C3A9E;
  margin-top: 0.08em;
}

.yh-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.125rem;
}

.yh-dot,
.yh-carousel-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 32px;
  padding: 0 0.375rem;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.yh-dot:focus-visible,
.yh-carousel-toggle:focus-visible {
  outline: 2px solid #2C3A9E;
  outline-offset: 2px;
}

.yh-dot-label {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7F8290;
  transition: color 0.3s ease;
}

.yh-dot.is-active .yh-dot-label,
.yh-dot:hover .yh-dot-label {
  color: var(--brand-forest);
}

.yh-dot-track {
  position: relative;
  display: block;
  width: 2rem;
  height: 3px;
  border-radius: 9999px;
  background-color: #D2D8E3;
  overflow: hidden;
}

.yh-dot-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--brand-forest);
  transform: scaleX(0);
  transform-origin: left center;
}

.yh-dot.is-active .yh-dot-fill {
  animation: yh-dot-fill var(--yh-slide-ms, 5000ms) linear forwards;
}

.yh-carousel.is-paused .yh-dot.is-active .yh-dot-fill {
  animation-play-state: paused;
}

@keyframes yh-dot-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.yh-carousel-toggle {
  width: 32px;
  padding: 0;
  margin-left: 0.25rem;
  color: #6E7283;
  border: 1px solid #CDD3DE;
  border-radius: 9999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.yh-carousel-toggle:hover {
  color: var(--brand-forest);
  border-color: var(--brand-forest);
}

.yh-carousel-toggle svg {
  width: 12px;
  height: 12px;
}

.yh-carousel-toggle .yh-icon-play { display: none; }
.yh-carousel.is-user-paused .yh-icon-play { display: block; }
.yh-carousel.is-user-paused .yh-icon-pause { display: none; }

@media (min-width: 640px) {
  .yh-dots { gap: 0.75rem; margin-top: 1.375rem; }
  .yh-dot { min-height: 38px; }
  .yh-dot-label { display: block; }
  .yh-dot-track { width: 100%; min-width: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .yh-slide,
  .yh-slide.is-active { transition: none; transform: none; }
  .yh-dot.is-active .yh-dot-fill { animation: none; transform: scaleX(1); }
  .yh-carousel-toggle { display: none; }
  .yh-scan-form { animation: none; }
  .yh-scan-pulse-dot::after { animation: none; }
  .yh-scan-btn:hover .yh-btn-icon { transform: none; }
}

.yh-sub {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #636675;
  text-wrap: pretty;
}

.yh-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.375rem;
}

.yh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0 1.75rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.yh-btn:active {
  transform: scale(0.98);
}

.yh-btn:focus-visible,
.yh-scan-btn:focus-visible {
  outline: 2px solid #2C3A9E;
  outline-offset: 3px;
}

.yh-btn-primary {
  background-color: var(--brand-forest);
  color: #F7F9FC;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 20px -8px rgba(18, 26, 77, 0.45);
}

.yh-btn-primary:hover {
  background-color: #1B2468;
}

.yh-btn-ghost {
  background-color: transparent;
  color: var(--brand-forest);
  border: 1px solid #C5CBD7;
}

.yh-btn-ghost:hover {
  border-color: var(--brand-forest);
  background-color: #EAEDF3;
}

.yh-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.yh-assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.125rem;
  font-size: 13px;
  color: #7F8290;
}

.yh-assurances li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.yh-assurances li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background-color: #2C3A9E;
  opacity: 0.55;
}

/* Outcome preview */

.yh-preview {
  max-width: 58rem;
  margin: 2.75rem auto 0;
}

.yh-preview-frame {
  padding: 6px;
  border-radius: 28px;
  background-color: #E2E7F0;
  border: 1px solid #D2D8E4;
}

.yh-preview-card {
  border-radius: 22px;
  background-color: #FFFFFF;
  border: 1px solid #D8DEE9;
  padding: 1.25rem;
  box-shadow: 0 24px 48px -28px rgba(18, 26, 77, 0.28);
}

.yh-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.25rem 1.25rem;
  border-bottom: 1px solid #E0E6F1;
  margin-bottom: 1rem;
}

.yh-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6E7283;
}

.yh-preview-name {
  margin-top: 0.375rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-forest);
}

.yh-preview-meta {
  font-size: 13px;
  color: #7F8290;
}

.yh-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 9999px;
  background-color: #EAF0FD;
  color: #2C3A9E;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.yh-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #3B82F6;
}

.yh-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.yh-tile {
  display: flex;
  flex-direction: column;
  padding: 1.125rem;
  border-radius: 16px;
  background-color: #F7F9FC;
  border: 1px solid #DFE4EF;
  text-align: left;
  break-inside: avoid;
}

.yh-tile-ai {
  grid-column: 1 / -1;
}

.yh-question {
  margin-top: 0.625rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--brand-forest);
  text-wrap: balance;
}

.yh-answer {
  margin-top: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background-color: var(--brand-forest);
  color: #E1E4F1;
  font-size: 13.5px;
  line-height: 1.55;
}

.yh-answer strong {
  color: #FFFFFF;
  font-weight: 600;
}

.yh-answer-tag {
  display: inline-block;
  margin-bottom: 0.375rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ABB0C7;
}

.yh-stat {
  margin-top: 0.75rem;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--brand-forest);
  letter-spacing: -0.02em;
}

.yh-stat-caption {
  margin-top: 0.5rem;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #454956;
}

.yh-stat-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 12px;
  line-height: 1.45;
  color: #7F8290;
}

/* Instant scan (secondary path) */

.yh-scan {
  max-width: 32rem;
  margin: 1.75rem auto 0;
  text-align: center;
}

.yh-scan-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #454956;
  margin-bottom: 0.625rem;
}

.yh-scan-pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background-color: #3B82F6;
  flex-shrink: 0;
}

.yh-scan-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 1.5px solid #3B82F6;
  opacity: 0.85;
  animation: yhDotPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes yhDotPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.95;
  }
  70% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.yh-scan-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 1.25rem;
  border-radius: 9999px;
  background-color: #FFFFFF;
  border: 1px solid #C7CDD9;
  box-shadow: 0 4px 18px -4px rgba(59, 130, 246, 0.14), 0 2px 6px rgba(18, 26, 77, 0.04);
  animation: yhScanFormGlow 4s ease-in-out infinite;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

@keyframes yhScanFormGlow {
  0%, 100% {
    border-color: #BFC6D4;
    box-shadow: 0 4px 16px -4px rgba(59, 130, 246, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  50% {
    border-color: #8E98C8;
    box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.32), 0 0 0 3px rgba(59, 130, 246, 0.08);
  }
}

.yh-scan-form:hover {
  transform: translateY(-1px);
  border-color: #2C3A9E;
  box-shadow: 0 10px 28px -4px rgba(59, 130, 246, 0.32), 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.yh-scan-form:focus-within {
  border-color: #2C3A9E;
  box-shadow: 0 0 0 4px rgba(44, 58, 158, 0.16), 0 8px 24px -4px rgba(59, 130, 246, 0.22);
  animation: none;
  transform: translateY(-1px);
}

.yh-scan-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 16px;
  color: var(--brand-forest);
  padding: 0.625rem 0;
}

.yh-scan-input::placeholder {
  color: #7F8290;
  opacity: 1;
}

input::placeholder,
textarea::placeholder {
  color: #7F8290;
  opacity: 1;
}

.yh-scan-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 1.25rem;
  border-radius: 9999px;
  background-color: var(--brand-forest);
  color: #F7F9FC;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.yh-scan-btn:hover {
  background-color: #1B2468;
  box-shadow: 0 4px 12px rgba(18, 26, 77, 0.25);
}

.yh-scan-btn .yh-btn-icon {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.yh-scan-btn:hover .yh-btn-icon {
  transform: translateX(3px);
}

.yh-scan-btn:active { transform: scale(0.97); }
.yh-scan-btn:disabled { opacity: 0.75; cursor: progress; }

.yh-scan-examples {
  margin-top: 0.625rem;
  font-size: 12.5px;
  color: #7F8290;
}

.yh-scan-examples button {
  margin-left: 4px;
  color: #2C3A9E;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #C9CCD8;
  cursor: pointer;
  padding: 1px 6px;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.yh-scan-examples button:hover {
  background-color: #EDEEF5;
  color: #132056;
}

@media (max-width: 380px) {
  .yh-scan-form {
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
    border-radius: 22px;
  }
  .yh-scan-input { padding: 0.75rem 0.875rem; }
  .yh-scan-btn { justify-content: center; }
}

@media (min-width: 640px) {
  .yh { padding: 3rem 1.5rem 3.5rem; }
  .yh-sub { font-size: 1.125rem; margin-top: 1rem; }
  .yh-actions {
    flex-direction: row;
    justify-content: center;
    margin-top: 1.5rem;
  }
  .yh-scan { margin-top: 1.875rem; }
  .yh-preview-card { padding: 1.5rem; }
}

@media (min-width: 860px) {
  .yh { padding-top: 3.25rem; }
  .yh-preview { margin-top: 3.25rem; }
  .yh-preview-frame { padding: 8px; border-radius: 34px; }
  .yh-preview-card { border-radius: 26px; padding: 1.75rem; }
  .yh-preview-grid {
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 1rem;
  }
  .yh-tile-ai { grid-column: auto; }
  .yh-tile { padding: 1.375rem; }
  .yh-stat { font-size: 3.25rem; }
}

/* ========================================================================= */
/* PRICING (single all-inclusive plan)                                       */
/* ========================================================================= */

.yp {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
  border-top: 1px solid var(--brand-border);
}

.yp-intro {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.yp-title {
  font-weight: 700;
  font-size: clamp(2rem, 6.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--brand-forest);
  text-wrap: balance;
}

.yp-sub {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #6F727F;
  text-wrap: pretty;
}

.yp-frame {
  max-width: 58rem;
  margin: 0 auto;
  padding: 6px;
  border-radius: 30px;
  background-color: #E2E7F0;
  border: 1px solid #D2D8E4;
}

.yp-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 24px;
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid #D8DEE9;
  box-shadow: 0 30px 60px -36px rgba(18, 26, 77, 0.35);
  break-inside: avoid;
  page-break-inside: avoid;
}

.yp-head {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background-color: var(--brand-forest);
  color: #F7F9FC;
}

.yp-head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.yp-plan {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.yp-badge {
  padding: 5px 11px;
  border-radius: 9999px;
  background-color: rgba(247, 249, 252, 0.08);
  border: 1px solid rgba(247, 249, 252, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D1D5E5;
}

.yp-price-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
  white-space: nowrap;
}

.yp-price {
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.yp-price-unit {
  font-size: 1.125rem;
  color: #D1D5E5;
}

.yp-cur {
  margin-left: 0.15rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ABB0C7;
}

/* One reassurance line under the price, then the fine print as a label/value list */
.yp-lock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  font-size: 14px;
  font-weight: 500;
  color: #E3E5EF;
}
.yp-lock svg { width: 16px; height: 16px; flex: none; color: #7DB8FF; }

.yp-rate-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(247, 249, 252, 0.12);
}
.yp-rate-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.yp-rate-list dt { flex: 1; min-width: 0; font-size: 14px; color: #BABFD6; }
.yp-rate-list dt span { display: block; margin-top: 2px; font-size: 12px; color: #9FA4B8; }
.yp-offer-line { margin-top: 0.5rem; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: #7DB8FF; }
.yp-rate-list dd s {
  color: #BABFD6;
  font-weight: 500;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(186, 191, 214, 0.9);
}
.yp-rate-list dd {
  font-size: 15px;
  font-weight: 600;
  color: #F7F9FC;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Pricing Modular Add-on Cards & Tactile I/O Switches */
.yp-addons {
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid rgba(247, 249, 252, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.yp-addons-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ABB0C7;
}

.yp-addon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 14px;
  background-color: rgba(9, 14, 39, 0.7);
  border: 1px solid rgba(47, 61, 122, 0.8);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.yp-addon-card:hover {
  background-color: rgba(20, 29, 67, 0.8);
  border-color: rgba(145, 178, 221, 0.45);
}

.yp-addon-card.is-active {
  background-color: rgba(59, 130, 246, 0.12);
  border-color: #7DB8FF;
  box-shadow: 0 0 16px -4px rgba(59, 130, 246, 0.3);
}

.yp-addon-content {
  flex: 1;
  min-width: 0;
}

.yp-addon-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.yp-addon-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.yp-addon-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #91B2DD;
  background-color: rgba(145, 178, 221, 0.12);
  border: 1px solid rgba(145, 178, 221, 0.25);
  padding: 1px 7px;
  border-radius: 9999px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.yp-addon-card.is-active .yp-addon-tag {
  background-color: #3B82F6;
  color: #0A112E;
  border-color: #7DB8FF;
}

.yp-addon-summary {
  font-size: 12px;
  line-height: 1.4;
  color: #BABFD6;
  margin-top: 3px;
}

/* The I/O Mechanical Switch */
.yp-io-switch {
  flex-shrink: 0;
  cursor: pointer;
}

.yp-io-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 58px;
  height: 30px;
  padding: 0 7px;
  border-radius: 9999px;
  background-color: #080D24;
  border: 1.5px solid #2F3D7A;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.yp-addon-card.is-active .yp-io-track {
  background-color: #3B82F6;
  border-color: #7DB8FF;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.yp-io-glyph {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  transition: all 0.2s ease;
}

.yp-io-glyph-o {
  color: #9FA4B8;
}

.yp-addon-card.is-active .yp-io-glyph-o {
  color: rgba(10, 17, 46, 0.35);
}

.yp-io-glyph-i {
  color: #283674;
}

.yp-addon-card.is-active .yp-io-glyph-i {
  color: #0A112E;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
}

.yp-io-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #D1D5E5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  z-index: 2;
}

.yp-addon-card.is-active .yp-io-knob {
  transform: translateX(28px);
  background-color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Price Bump Animation */
@keyframes priceBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: #7DB8FF; }
  100% { transform: scale(1); }
}

.price-bump {
  animation: priceBump 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.yp-spots {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 249, 252, 0.1);
}

.yp-spots-bar {
  height: 4px;
  border-radius: 9999px;
  background-color: rgba(247, 249, 252, 0.12);
  overflow: hidden;
}

.yp-spots-bar span {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background-color: #91B2DD;
}

.yp-spots p {
  margin-top: 0.625rem;
  font-size: 13px;
  color: #D1D5E5;
}

.yp-cta {
  width: 100%;
  margin-top: 1.75rem;
  background-color: #F7F9FC;
  color: var(--brand-forest);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.yp-cta:hover {
  background-color: #FFFFFF;
}

.yp-cta:focus-visible {
  outline-color: #F7F9FC;
}

.yp-cta-note {
  margin-top: 0.875rem;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  color: #ABB0C7;
}

.yp-body {
  padding: 1.75rem 1.5rem;
}

.yp-list {
  margin-top: 1rem;
  display: grid;
  gap: 0;
}

.yp-list li {
  position: relative;
  padding: 0.875rem 0 0.875rem 2.125rem;
  border-bottom: 1px solid #E0E6F1;
  break-inside: avoid;
}

.yp-list li:last-child {
  border-bottom: 0;
}

.yp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: #EAF0FD;
}

.yp-list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: calc(0.95rem + 5px);
  width: 6px;
  height: 9px;
  border: solid #2C3A9E;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.yp-list strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand-forest);
}

.yp-list span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: #7F8290;
}

.yp-guarantee {
  margin-top: 1.25rem;
  padding: 1.125rem 1.25rem;
  border-radius: 16px;
  background-color: #F5F5F9;
  border: 1px solid #E3E5ED;
  break-inside: avoid;
}

.yp-guarantee-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-forest);
  margin-bottom: 0.25rem;
}

.yp-guarantee p:last-child {
  font-size: 13.5px;
  line-height: 1.55;
  color: #636675;
}

.yp-terms {
  max-width: 58rem;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  font-size: 13px;
  line-height: 1.5;
  color: #7F8290;
  text-align: center;
}

.yp-terms strong {
  color: var(--brand-forest);
  font-weight: 600;
}

@media (min-width: 640px) {
  .yp { padding: 6rem 1.5rem; }
  .yp-sub { font-size: 1.0625rem; }
  .yp-head, .yp-body { padding: 2.25rem; }
  .yp-list { grid-template-columns: 1fr 1fr; column-gap: 1.75rem; }
  .yp-list li:nth-last-child(2) { border-bottom: 0; }
  .yp-terms { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; text-align: left; }
}

@media (min-width: 900px) {
  .yp-frame { padding: 8px; border-radius: 34px; }
  .yp-card { grid-template-columns: 0.8fr 1.2fr; border-radius: 26px; }
  .yp-head { padding: 2.5rem; }
  .yp-cta { margin-top: auto; }
  .yp-spots { margin-bottom: 2rem; }
  .yp-body { padding: 2.5rem; }
  .yp-price { font-size: 3.5rem; }
  .yp-terms { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .yh-btn, .yh-scan-btn, .yh-scan-form { transition: none; }
}



/* ========================================================================= */
/* SECTION SYSTEM: upright headings, balanced wrapping, aligned card rhythm  */
/* ========================================================================= */

h1.font-libron,
h2.font-libron,
h3.font-libron,
h4.font-libron {
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

section p,
section li {
  text-wrap: pretty;
}

.ys-head {
  max-width: 52rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.ys-title {
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--brand-forest);
  text-wrap: balance;
}

.ys-title-sm {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.22;
  text-wrap: balance;
}

.ys-title-light {
  color: #FFFFFF;
}

.ys-sub {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #6F727F;
}

.ys-head .ys-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Shared check list */

.ys-checks li {
  position: relative;
  padding-left: 1.625rem;
  font-size: 13.5px;
  line-height: 1.5;
  color: #454956;
}

.ys-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background-color: #EAF0FD;
}

.ys-checks li::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: calc(0.2em + 3.5px);
  width: 5px;
  height: 8px;
  border: solid #2C3A9E;
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
}

/* Growth system pillars: subgrid keeps titles, copy, lists and footers
   on the same baselines across all three cards. */

.ys-pillar {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 20px;
  background-color: #FFFFFF;
  border: 1px solid var(--brand-border);
  break-inside: avoid;
}

.ys-pillar-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.25rem;
}

.ys-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 9999px;
  background-color: #EAF0FD;
  border: 1px solid #D1D5E5;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2C3A9E;
  font-variant-numeric: tabular-nums;
}

.ys-pillar-tag {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6E7283;
}

.ys-pillar-title {
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--brand-forest);
  text-wrap: balance;
}

.ys-pillar-copy {
  margin-top: 0.75rem;
  font-size: 14px;
  line-height: 1.55;
  color: #7F8290;
  text-wrap: pretty;
}

.ys-pillar .ys-checks {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.ys-pillar-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #E0E6F1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6E7283;
}

@media (min-width: 960px) {
  .deva-three-pillars {
    grid-template-rows: repeat(5, auto);
    row-gap: 0;
    column-gap: 1.25rem;
  }
  .ys-pillar {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .ys-pillar .ys-checks { align-content: start; }
  .ys-pillar-foot { align-self: end; }
}

/* Meet DEVA: two cards whose list rows line up side by side */

.ys-duo {
  display: grid;
  gap: 1rem;
}

.ys-duo-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 20px;
  background-color: #FFFFFF;
  border: 1px solid var(--brand-border);
  break-inside: avoid;
}

.ys-duo-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6E7283;
}

.ys-duo-title {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.625rem;
  line-height: 1.15;
  color: var(--brand-forest);
}

.ys-duo-list li {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  border-top: 1px solid #E0E6F1;
}

.ys-duo-list li::before { top: calc(0.875rem + 0.2em); }
.ys-duo-list li::after { top: calc(0.875rem + 0.2em + 3.5px); }

.ys-duo-card.is-dark {
  background-color: var(--brand-forest);
  border-color: var(--brand-forest-border);
}

.ys-duo-card.is-dark .ys-duo-label { color: #ABB0C7; }
.ys-duo-card.is-dark .ys-duo-title { color: #FFFFFF; }
.ys-duo-card.is-dark .ys-duo-list li { color: #E1E4F1; border-top-color: rgba(247, 249, 252, 0.1); }
.ys-duo-card.is-dark .ys-checks li::before { background-color: rgba(125, 184, 255, 0.14); }
.ys-duo-card.is-dark .ys-checks li::after { border-color: #7DB8FF; }

@media (min-width: 768px) {
  .ys-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 0;
  }
  .ys-duo-card {
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding: 2rem;
  }
  .ys-duo-list {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .ys-duo-list li { font-size: 14.5px; }
}

/* Comparison table: fixed, equal columns with a sticky label column */

.ys-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ys-compare {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.45;
}

.ys-compare th,
.ys-compare td {
  padding: 0.875rem 1rem;
  vertical-align: top;
}

.ys-compare thead th {
  font-weight: 700;
  color: #636675;
  border-bottom: 1px solid #CDD3DE;
}

.ys-compare tbody tr + tr td,
.ys-compare tbody tr + tr th {
  border-top: 1px solid #E0E5F0;
}

.ys-compare tbody th {
  font-weight: 500;
  color: #6E7283;
}

.ys-compare td {
  color: #636675;
}

.ys-compare .is-deva {
  font-weight: 600;
  color: #FFFFFF;
  background-color: var(--brand-forest);
  border-top-color: rgba(247, 249, 252, 0.08) !important;
}

.ys-compare thead .is-deva { border-radius: 12px 12px 0 0; border-bottom-color: var(--brand-forest); }
.ys-compare tbody tr:last-child .is-deva { border-radius: 0 0 12px 12px; color: #8FB9EF; }

.ys-compare thead th:first-child,
.ys-compare tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background-color: var(--brand-cream);
}

/* FAQ: framed list with comfortable tap targets */

.ys-faq {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.25rem 1.25rem;
  border-radius: 20px;
  background-color: #FFFFFF;
  border: 1px solid var(--brand-border);
}

.ys-faq-item + .ys-faq-item {
  border-top: 1px solid #E0E6F1;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 56px;
  padding: 0.875rem 0;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--brand-forest);
  cursor: pointer;
}

.faq-q:focus-visible {
  outline: 2px solid #2C3A9E;
  outline-offset: 2px;
  border-radius: 6px;
}

.faq-q span:first-child {
  text-wrap: balance;
}

.ys-faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 1px solid #DFE5EF;
  font-size: 16px;
  font-weight: 400;
  color: #7F8290;
}

.ys-faq-a {
  font-size: 14px;
  line-height: 1.6;
  color: #6F727F;
}

.ys-faq-a.open {
  padding-bottom: 1.125rem;
}

@media (min-width: 640px) {
  .ys-head { margin-bottom: 3.5rem; }
  .ys-sub { font-size: 1.0625rem; }
  .ys-pillar { padding: 1.75rem; }
  .ys-faq { padding: 0.5rem 2rem; }
  .faq-q { font-size: 16px; }
}

/* Comparison on phones: one card per question, DEVA's answer highlighted */
@media (max-width: 639px) {
  .ys-compare-wrap { overflow: visible; }
  .ys-compare { min-width: 0; table-layout: auto; }
  .ys-compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .ys-compare tbody,
  .ys-compare tr,
  .ys-compare th,
  .ys-compare td { display: block; }
  .ys-compare tbody { display: grid; gap: 0.75rem; }
  .ys-compare tbody tr {
    padding: 1rem;
    border-radius: 16px;
    background-color: #FFFFFF;
    border: 1px solid var(--brand-border);
    break-inside: avoid;
  }
  .ys-compare tbody tr + tr th { border-top: 0; }
  .ys-compare tbody th {
    position: static;
    padding: 0 0 0.625rem;
    background: none;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .ys-compare td {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid #E0E6F1;
  }
  .ys-compare td::before {
    content: attr(data-label);
    font-size: 12.5px;
    color: #6E7283;
  }
  .ys-compare td.is-deva,
  .ys-compare tbody tr:last-child td.is-deva {
    margin-top: 0.375rem;
    padding: 0.75rem;
    border-radius: 10px;
    border-top: 0;
  }
  .ys-compare td.is-deva::before { color: #ABB0C7; font-weight: 700; }
}


/* ========================================================================= */
/* LAPTOP SCAN STAGE: first-person view of a laptop opening on a desk        */
/* Lid and deck share one 3D context; only transform and opacity animate,    */
/* and the stage reserves its full height up front, so nothing shifts.       */
/* ========================================================================= */

.ylap-stage {
  --lw: min(92cqw, 42rem);
  --lid-h: calc(var(--lw) * 0.64);
  --base-d: calc(var(--lw) * 0.62);
  --pad-top: clamp(1.25rem, 5cqw, 3rem);
  --deck-angle: 64deg;
  --lid-closed: -114deg;

  position: relative;
  container-type: inline-size;
  margin: 2.25rem auto 0;
  max-width: 64rem;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  background:
    radial-gradient(120% 70% at 78% 0%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #E7EBF4 0%, #DBE1ED 100%);
  animation: ylap-stage-in 0.35s ease-out both;
}

.ylap-stage.hidden { display: none; }

@keyframes ylap-stage-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ylap-desk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - var(--pad-top) - var(--lid-h) * 0.58);
  z-index: 0;
  display: block;
}

.ylap-scene {
  position: relative;
  z-index: 1;
  padding-top: var(--pad-top);
  /* lid + projected deck + a little desk in front */
  height: calc(var(--pad-top) + var(--lid-h) + var(--lw) * 0.46);
  perspective: calc(var(--lw) * 2.4);
  perspective-origin: 50% 0%;
}

.ylap {
  position: relative;
  width: var(--lw);
  height: var(--lid-h);
  margin: 0 auto;
  transform-style: preserve-3d;
}

/* ---- Lid -------------------------------------------------------------- */

.ylap-lid {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--lid-closed));
  transition: transform 1.35s cubic-bezier(0.3, 1.12, 0.42, 1);
  will-change: transform;
}

.ylap-stage.is-open .ylap-lid { transform: rotateX(0deg); }

.ylap-lid-front,
.ylap-lid-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: calc(var(--lw) * 0.028) calc(var(--lw) * 0.028) calc(var(--lw) * 0.006) calc(var(--lw) * 0.006);
}

.ylap-lid-back {
  transform: rotateX(180deg) translateZ(1px);
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #9EA1A7 0%, #85888E 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.ylap-lid-front {
  background: #0A0B0C;
  box-shadow:
    0 0 0 calc(var(--lw) * 0.004) #7C7F85,
    inset 0 0 0 1px #2A2C30;
  transition: box-shadow 1.2s ease;
}

.ylap-stage.is-on .ylap-lid-front {
  box-shadow:
    0 0 0 calc(var(--lw) * 0.004) #7C7F85,
    inset 0 0 0 1px #2A2C30,
    0 calc(var(--lw) * -0.01) calc(var(--lw) * 0.14) rgba(125, 184, 255, 0.16);
}

.ylap-camera {
  position: absolute;
  top: calc(var(--lw) * 0.0095);
  left: 50%;
  width: calc(var(--lw) * 0.007);
  height: calc(var(--lw) * 0.007);
  min-width: 3px;
  min-height: 3px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3C4A5A, #0B0E12 70%);
}

.ylap-display {
  position: absolute;
  top: calc(var(--lw) * 0.026);
  left: calc(var(--lw) * 0.02);
  right: calc(var(--lw) * 0.02);
  bottom: calc(var(--lw) * 0.03);
  overflow: hidden;
  border-radius: calc(var(--lw) * 0.006);
  background: #04060C;
}

/* Power-on flash and ambient screen light */
.ylap-display::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(185, 212, 247, 0.16), rgba(185, 212, 247, 0) 70%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 38%);
  transition: opacity 0.9s ease;
}

.ylap-stage.is-on .ylap-display::after { opacity: 1; }

.ylap-boot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8FB9EF;
  opacity: 0;
  pointer-events: none;
}

.ylap-boot svg {
  width: calc(var(--lw) * 0.07);
  height: calc(var(--lw) * 0.07);
  filter: drop-shadow(0 0 10px rgba(125, 184, 255, 0.55));
}

.ylap-stage.is-on .ylap-boot { animation: ylap-boot 1.1s ease both; }

@keyframes ylap-boot {
  0% { opacity: 0; transform: scale(0.92); }
  30% { opacity: 1; transform: scale(1); }
  65% { opacity: 1; }
  100% { opacity: 0; }
}

.ylap-chin {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--lw) * 0.012);
  border-radius: 0 0 calc(var(--lw) * 0.006) calc(var(--lw) * 0.006);
  background: linear-gradient(180deg, #17181B, #2C2E32);
}

/* Console fills the screen and scrolls inside it */
.deva-console-window.ylap-console {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transition: opacity 0.5s ease 0.75s;
}

.ylap-stage.is-on .ylap-console { opacity: 1; }

.ylap-console .deva-console-header {
  flex: none;
  gap: 10px;
  padding: 10px 16px;
}

.ylap-console #consoleProgressTrack { flex: none; }

.ylap-screen-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #2F3D7A transparent;
}

.ylap-screen-body::-webkit-scrollbar { width: 6px; }
.ylap-screen-body::-webkit-scrollbar-thumb { background: #2F3D7A; border-radius: 6px; }

.ylap-console .deva-card .justify-between { gap: 8px; }

.ylap-speed-note {
  margin-top: 2px;
  font-size: 12px;
  color: #9BA0B6;
}

/* ---- Base (keyboard deck) -------------------------------------------- */

.ylap-base {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: var(--base-d);
  transform-origin: 50% 0;
  transform: rotateX(var(--deck-angle));
  transform-style: preserve-3d;
}

.ylap-deck {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(var(--lw) * 0.006) calc(var(--lw) * 0.006) calc(var(--lw) * 0.03) calc(var(--lw) * 0.03);
  background: linear-gradient(180deg, #A4A7AD 0%, #BFC2C7 45%, #B3B6BB 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 calc(var(--lw) * 0.02) calc(var(--lw) * 0.05) rgba(21, 28, 43, 0.38);
}

.ylap-hinge {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 3.5%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #1B1C1F, #3A3C40);
}

.ylap-keys {
  position: absolute;
  top: 8%;
  left: 6%;
  right: 6%;
  height: 44%;
  display: flex;
  flex-direction: column;
  gap: 2.2%;
  padding: 1.1%;
  border-radius: calc(var(--lw) * 0.006);
  background: #8E9197;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ylap-krow {
  display: flex;
  flex: 1 1 0;
  gap: 0.7%;
}

.ylap-krow.is-fn { flex-grow: 0.6; }

.ylap-key {
  flex: 1 1 0;
  border-radius: calc(var(--lw) * 0.0028);
  background: linear-gradient(180deg, #1D1E21, #121315);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.25);
}

.ylap-trackpad {
  position: absolute;
  top: 58%;
  left: 30%;
  width: 40%;
  height: 34%;
  border-radius: calc(var(--lw) * 0.01);
  background: linear-gradient(180deg, #B6B9BE, #C6C9CE);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Screen light falling on the keyboard */
.ylap-spill {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(80% 55% at 50% 0%, rgba(185, 212, 247, 0.32), rgba(185, 212, 247, 0) 70%);
  transition: opacity 1.2s ease 0.4s;
}

.ylap-stage.is-on .ylap-spill { opacity: 1; }

.ylap-lip {
  position: absolute;
  top: 100%;
  left: 1.5%;
  right: 1.5%;
  height: calc(var(--lw) * 0.016);
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  border-radius: 0 0 calc(var(--lw) * 0.02) calc(var(--lw) * 0.02);
  background: linear-gradient(180deg, #8D9096, #6C6F75);
}

.ylap-lip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 12%;
  height: 55%;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: #5E6167;
}

/* ---- Hands at the near edge of the desk --------------------------------- */

.ylap-hands {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: min(100%, 68rem);
  height: auto;
  transform: translateX(-50%);
  fill: #1F283B;
  opacity: 0.1;
  filter: blur(3px);
  pointer-events: none;
}

/* ---- Zoom: screen pushes toward the viewer, keyboard recedes ------------ */
/* translateZ inside the scene perspective (2.4 x --lw) scales the screen    */
/* by p / (p - z). --zoom-z steps with the stage width so the lid never      */
/* outgrows the stage; overflow stays clipped, so the page never shifts.     */

.ylap-scene { --zoom-z: 0.257; }

.ylap {
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.ylap-stage.is-zoomed .ylap {
  transform: translate3d(0, calc(var(--pad-top) * -0.55), calc(var(--lw) * var(--zoom-z)));
}

/* Crisp text once the lid is open: drop the layer hint that freezes raster scale */
.ylap-stage.is-on .ylap-lid { will-change: auto; }

.ylap-base {
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.ylap-stage.is-zoomed .ylap-base {
  transform: translate3d(0, calc(var(--lw) * 0.05), 0) rotateX(calc(var(--deck-angle) + 14deg));
}

.ylap-deck,
.ylap-lip,
.ylap-desk,
.ylap-hands {
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.ylap-stage.is-zoomed .ylap-deck,
.ylap-stage.is-zoomed .ylap-lip { opacity: 0.5; }

.ylap-stage.is-zoomed .ylap-desk { opacity: 0.7; }
.ylap-stage.is-zoomed .ylap-hands { opacity: 0; }

@container (min-width: 880px) { .ylap-scene { --zoom-z: 0.495; } }
@container (min-width: 990px) { .ylap-scene { --zoom-z: 0.71; } }

/* Zoom / Desk toggle in the console titlebar */
.ylap-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid #2F3D7A;
  border-radius: 999px;
  background: #0E1433;
  color: #BABFD6;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.ylap-zoom-btn:hover {
  color: #FFFFFF;
  border-color: #4458B3;
  background: #141D43;
}

.ylap-zoom-btn:focus-visible {
  outline: 2px solid #7DB8FF;
  outline-offset: 2px;
}

.ylap-zoom-icon { width: 12px; height: 12px; flex: none; }
.ylap-zoom-icon-out { display: none; }
.ylap-zoom-btn[aria-pressed="true"] .ylap-zoom-icon-in { display: none; }
.ylap-zoom-btn[aria-pressed="true"] .ylap-zoom-icon-out { display: block; }
.ylap-zoom-label { min-width: 2.4em; text-align: left; }

/* ---- Responsive ------------------------------------------------------- */

@media (max-width: 639px) {
  .ylap-stage {
    --lw: 94cqw;
    --lid-h: calc(var(--lw) * 0.86);
    --base-d: calc(var(--lw) * 0.56);
    border-radius: 18px;
  }

  .ylap-scene {
    height: calc(var(--pad-top) + var(--lid-h) + var(--lw) * 0.48);
    /* crops only the bezel at this width */
    --zoom-z: 0.218;
  }

  .ylap-console .deva-console-header { padding: 8px 10px; }
  .ylap-console .deva-console-header > div:first-child { display: none; }
  .ylap-screen-body { padding: 14px; }
  .ylap-hands { opacity: 0.08; filter: blur(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .ylap-stage { animation: none; }
  .ylap-lid,
  .ylap-lid-front,
  .ylap-console,
  .ylap-spill,
  .ylap-display::after { transition: none; }
  .ylap-stage.is-on .ylap-boot { animation: none; }
  .ylap,
  .ylap-base,
  .ylap-deck,
  .ylap-lip,
  .ylap-desk,
  .ylap-hands { transition: none; }
}


/* ========================================================================= */
/* SCROLL REVEAL: fade in with a 16px rise as sections enter the viewport    */
/* ========================================================================= */

.js-reveal [data-reveal]:not(.is-reveal-done) {
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}

.js-reveal [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
  .js-reveal [data-reveal]:not(.is-reveal-done) { transition: none; }
}


/* ========================================================================= */
/* AUDIT FORM PRE-FILL: notice above the form and a soft cue on name/email   */
/* ========================================================================= */

.yaf-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 10px 10px 12px;
  background-color: #EAF0FD;
  border: 1px solid #D1D5E5;
  border-radius: 10px;
  color: var(--brand-forest);
  font-family: var(--font-sans);
  font-style: normal;
}

.yaf-notice[hidden] { display: none; }

.yaf-notice-icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  color: #2C3A9E;
}

.yaf-notice-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.yaf-notice-text span { font-weight: 600; }

.yaf-notice-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.yaf-notice-clear,
.yaf-notice-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 6px;
  color: #2C3A9E;
  transition: background-color 0.15s ease;
}

.yaf-notice-clear {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yaf-notice-close { width: 28px; }
.yaf-notice-close svg { width: 14px; height: 14px; }

/* Narrow screens: give the message the full width, actions sit underneath */
@media (max-width: 480px) {
  .yaf-notice { flex-wrap: wrap; row-gap: 4px; }
  .yaf-notice-text { flex-basis: calc(100% - 24px); }
  .yaf-notice-actions { width: 100%; padding-left: 16px; }
}

.yaf-notice-clear:hover,
.yaf-notice-close:hover { background-color: rgba(44, 58, 158, 0.08); }

.yaf-notice-clear:focus-visible,
.yaf-notice-close:focus-visible {
  outline: 2px solid #2C3A9E;
  outline-offset: 1px;
}

/* Ring via box-shadow so the cue never changes field size */
#auditRequestForm input.is-prefill-cue {
  background-color: #FFFFFF;
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  animation: yaf-cue 1.6s ease-out 2;
}

@keyframes yaf-cue {
  0%, 100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  #auditRequestForm input.is-prefill-cue { animation: none; }
}


/* ========================================================================= */
/* OCT 2026 FIXES: header, mobile menu, fixed headline, scan, request form    */
/* ========================================================================= */

/* Tailwind build has no h-18, so the header collapsed to its content height */
.h-18 { height: 4.5rem; }

/* Nothing on the page below 12px */
.text-\[10px\], .text-\[11px\] { font-size: 12px !important; }

/* Comfortable tap targets in the header and footer */
.yt-tap { min-height: 40px; }
footer a { display: inline-block; padding: 6px 2px; }

.yt-only-desktop { display: none; }
@media (min-width: 640px) {
  .yt-only-mobile { display: none; }
  .yt-only-desktop { display: inline; }
}

/* Mobile menu: the section links are hidden below 768px, so offer them here */
.yt-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid #C7CDD9; background: #FFFFFF; color: var(--brand-forest);
}
.yt-menu-btn:focus-visible { outline: 2px solid #2C3A9E; outline-offset: 2px; }
.yt-mobile-nav {
  display: grid; padding: 0.5rem 1.5rem 1rem;
  border-top: 1px solid #DFE5EF; background: #F7F9FC;
}
.yt-mobile-nav[hidden] { display: none; }
.yt-mobile-nav a {
  display: flex; align-items: center; min-height: 48px;
  font-size: 16px; font-weight: 600; color: var(--brand-forest);
  border-bottom: 1px solid #E2E7F0;
}
.yt-mobile-nav a:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .yt-menu-btn, .yt-mobile-nav { display: none !important; }
}

/* Hero: one fixed headline, the four lines rotate beneath it */
.yh-tagline {
  margin-top: 0.875rem;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  color: #2C3A9E;
}
.yh-tagline .yh-slide { text-wrap: balance; }
@media (min-width: 640px) { .yh-tagline { font-size: 1.25rem; } }

/* Hero scan: website + what you do, and where */
.yh-scan-input-service { border-left: 1px solid #DFE5EF; padding-left: 0.875rem; }
@media (max-width: 639px) {
  .yh-scan-form {
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
    border-radius: 22px;
  }
  .yh-scan-input { padding: 0.75rem 0.875rem; }
  .yh-scan-input-service { border-left: 0; border-top: 1px solid #DFE5EF; }
  .yh-scan-btn { justify-content: center; }
}

/* Scan results: the remaining website checks and a note on how they were made */
.ylap-more-checks { display: grid; gap: 0.5rem; margin-top: 0.25rem; padding: 0; list-style: none; }
.ylap-more-checks li {
  display: flex; gap: 0.625rem; align-items: flex-start;
  font-size: 13px; line-height: 1.45; color: #D1D5E5;
}
.ylap-more-checks .mark {
  flex: 0 0 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.ylap-more-checks .mark.ok { background: rgba(59, 130, 246, 0.18); color: #7DB8FF; }
.ylap-more-checks .mark.no { background: rgba(239, 68, 68, 0.18); color: #F87171; }
.ylap-more-checks .mark.na { background: rgba(255, 255, 255, 0.08); color: #B5B9C9; }
.ylap-more-checks b { color: #FFFFFF; font-weight: 600; }
.ylap-site-note { margin-top: 0.5rem; font-size: 12px; color: #B5B9C9; }

/* Audit request form */
.yaf-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #373A4A; }
.yaf-hint { font-weight: 400; color: #7F8290; }
.yaf-input {
  width: 100%; min-height: 46px; padding: 0.625rem 0.875rem;
  background: #F7F9FC; border: 1px solid #CDD3DE; border-radius: 12px;
  font-size: 16px; color: var(--brand-forest);
}
.yaf-input:focus { outline: none; border-color: #2C3A9E; box-shadow: 0 0 0 3px rgba(44, 58, 158, 0.16); background: #FFFFFF; }
.yaf-input[aria-invalid="true"] { border-color: #B42318; }
.yaf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.yaf-status { min-height: 1.25rem; font-size: 14px; color: #373A4A; }
.yaf-status.is-error { color: #B42318; }
.yaf-status a { color: #2C3A9E; font-weight: 600; text-decoration: underline; }
.yaf-assure { font-size: 13px; color: #7F8290; text-align: center; }
.yaf-done { padding: 1.5rem; border-radius: 16px; background: #EAF0FD; border: 1px solid #BABFD6; }
.yaf-done h3 { font-size: 1.375rem; color: var(--brand-forest); }
.yaf-done p { margin-top: 0.5rem; font-size: 15px; line-height: 1.55; color: #373A4A; }

/* Darker grey for a label that failed contrast (not in the Tailwind build) */
.text-\[\#838692\] { color: #838692; }
/* Two fields in the scan pill need more room */
.yh-scan { max-width: 42rem; }
.ylap-badge-none {
  padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, 0.06); color: #C9CDDD; border: 1px solid rgba(255, 255, 255, 0.14);
}
footer a { white-space: nowrap; }

/* Add-ons: small hint, and what each one adds when it is switched on */
.yp-addons-hint {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #ABB0C7; white-space: nowrap;
}
.yp-addon-detail {
  margin: -0.125rem 0 0.25rem; padding: 0.875rem 1rem 1rem;
  border-radius: 14px; background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(125, 184, 255, 0.25);
  animation: ypDetailIn 0.25s ease;
}
.yp-addon-detail[hidden] { display: none; }
.yp-addon-detail-title { font-size: 13px; font-weight: 700; color: #FFFFFF; }
.yp-addon-detail ul { margin-top: 0.5rem; display: grid; gap: 0.5rem; padding: 0; list-style: none; }
.yp-addon-detail li { position: relative; padding-left: 1rem; font-size: 13px; line-height: 1.5; color: #D1D5E5; }
.yp-addon-detail li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: #7DB8FF; }
.yp-addon-detail strong { color: #FFFFFF; font-weight: 600; }
.yp-addon-detail-note { margin-top: 0.625rem; font-size: 12px; color: #B5B9C9; }
@keyframes ypDetailIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .yp-addon-detail { animation: none; } }

/* Add-on details: one box for both, never inside the add-on cards */
.yp-addon-details { display: grid; gap: 0.75rem; margin: 0.25rem 0 1.5rem; }
.yp-addon-details[hidden] { display: none; }
.yp-addon-details .yp-addon-detail { margin: 0; }
.yp-addon-details.is-beside { margin: 0 0 1.75rem; }
.yp-addon-details.is-beside .yp-addon-detail { background: #F5F6F9; border-color: #DDE0ED; }
.yp-addon-details.is-beside .yp-addon-detail-title,
.yp-addon-details.is-beside .yp-addon-detail strong { color: #161D3E; }
.yp-addon-details.is-beside .yp-addon-detail li { color: #62677F; }
.yp-addon-details.is-beside .yp-addon-detail li::before { background: #2563EB; }
.yp-addon-details.is-beside .yp-addon-detail-note { color: #838692; }
/* Phones: keep the add-on details short (headlines only); the full lines show beside the plan on wide screens */
@media (max-width: 899px) {
  .yp-addon-details .yp-detail-more { display: none; }
  .yp-addon-details .yp-addon-detail ul { gap: 0.3rem; }
}

/* ---- Offer ticker (top of page) ---- */
.yt-ticker { display: block; background: #121A4D; color: #DFE1E9; height: 36px; overflow: hidden; font-size: 13px; line-height: 36px; cursor: pointer; text-decoration: none; }
.yt-ticker:hover strong, .yt-ticker:focus-visible strong { color: #9CBEE9; }
.yt-ticker:focus-visible { outline: 2px solid #9CBEE9; outline-offset: -2px; }
.yt-ticker-track { display: flex; width: max-content; height: 100%; animation: yt-ticker 75s linear infinite; }
.yt-ticker:hover .yt-ticker-track, .yt-ticker:focus-within .yt-ticker-track { animation-play-state: paused; }
.yt-ticker-group { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.yt-ticker-group li { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 0 32px; position: relative; }
.yt-ticker-group li::after { content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #5A669D; }
.yt-ticker strong { color: #FFFFFF; font-weight: 700; }
@keyframes yt-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .yt-ticker { font-size: 12px; } .yt-ticker-group li { padding: 0 24px; } }
@media (prefers-reduced-motion: reduce) {
  .yt-ticker { height: auto; line-height: 1.4; }
  .yt-ticker-track { animation: none; width: auto; justify-content: center; }
  .yt-ticker-group[aria-hidden="true"], .yt-ticker-group li:not(:first-child) { display: none; }
  .yt-ticker-group li { white-space: normal; flex-wrap: wrap; justify-content: center; text-align: center; padding: 9px 16px; }
  .yt-ticker-group li::after { display: none; }
}

/* Current clients: cards (2x2 on desktop) with a framed site screenshot. Subgrid keeps
   names, copy, results and links on the same baselines across the row. */

.yc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.yc-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1.5rem;
  border-radius: 20px;
  background-color: #FFFFFF;
  border: 1px solid var(--brand-border);
  break-inside: avoid;
  page-break-inside: avoid;
}

.yc-shot {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  background-color: #EAEDF3;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.yc-shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(18, 26, 77, 0.12);
}

.yc-shot > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top;
}

.yc-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background-color: #EAEDF3;
  border-bottom: 1px solid var(--brand-border);
}

.yc-bar i {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background-color: #C3CAD7;
}

.yc-bar span {
  margin-left: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7F8290;
}

.yc-flag {
  position: absolute;
  top: 38px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 9999px;
  background-color: var(--brand-forest);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.yc-inset {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 38%;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 8px 20px -6px rgba(18, 26, 77, 0.35);
  transition: transform 0.25s ease;
}



.yc-inset img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
}

.yc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
  padding: 0 0.5rem;
}

.yc-who { margin-top: 1rem; padding: 0 0.5rem; }

.yc-name {
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--brand-forest);
  text-wrap: balance;
}

.yc-meta {
  margin-top: 0.375rem;
  font-size: 13px;
  color: #6E7283;
}

.yc-copy {
  margin-top: 0.875rem;
  padding: 0 0.5rem;
  font-size: 14px;
  line-height: 1.55;
  color: #7F8290;
  text-wrap: pretty;
}

.yc-result {
  margin: 1.25rem 0.5rem 0;
  padding: 0.75rem 0.875rem;
  border-radius: 12px;
  background-color: #EAF0FD;
  font-size: 13.5px;
  line-height: 1.5;
  color: #2C3A9E;
}

.yc-result strong { color: var(--brand-forest); }

.yc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  padding: 1rem 0.5rem 0;
  border-top: 1px solid #E0E6F1;
}

.yc-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: #2C3A9E;
}

.yc-links a:hover { color: var(--brand-forest); text-decoration: underline; }

@media (min-width: 960px) {
  .yc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
    row-gap: 0;
    column-gap: 1.25rem;
  }
  .yc-card:nth-child(n + 3) { margin-top: 1.25rem; }
  .yc-card {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .yc-links { align-self: end; }
}

/* DEVA's head next to the header wordmark. The canvas sits over the image and only draws the eyes. */
.deva-head { position: relative; display: block; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #F7F9FC, 0 0 0 3px #D9DCE9; }
.deva-head img, .deva-head canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 640px) { .deva-head { width: 32px; height: 32px; box-shadow: 0 0 0 1.5px #D9DCE9; } }

/* Footer top row: brand left, links centred, contact right; all centred when stacked on phones. */
.yf-top { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; text-align: center; padding-bottom: 2rem; border-bottom: 1px solid #CDD3DE; }
.yf-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0.75rem 1.75rem; }
.yf-contact { display: grid; gap: 0.3rem; line-height: 1.5; }
@media (min-width: 900px) {
  .yf-top { grid-template-columns: 1fr auto 1fr; }
  .yf-links { display: flex; gap: 1.5rem; }
  .yf-brand { text-align: left; }
  .yf-contact { text-align: right; }
}

/* DEVA at his desk, floating bottom-right on desktop. Phones keep his head in the header instead. */
.deva-float { display: none; }
@media (min-width: 768px) {
  .deva-head { display: none; }
  .deva-float { display: block; position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 240px; animation: deva-bob 6s ease-in-out infinite; }
  .deva-float[hidden] { display: none; }
  .deva-float-scene { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(18, 26, 77, 0.22), 0 0 0 1px rgba(18, 26, 77, 0.06); background: #D2E4F1; }
  .deva-float-scene img, .deva-float-scene canvas { display: block; width: 100%; height: auto; }
  .deva-float-scene canvas { position: absolute; inset: 0; height: 100%; }
  .deva-float-close { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #CDD3DE; background: #F7F9FC; color: #6F727F; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; box-shadow: 0 4px 10px rgba(18, 26, 77, 0.15); }
  .deva-float:hover .deva-float-close, .deva-float-close:focus-visible { opacity: 1; }
}
@keyframes deva-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .deva-float { animation: none; } }

/* Plan switch: website plan first, Growth System behind it */
.yp-card[hidden], .yp-terms[hidden] { display: none; }
.yp-switch {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  padding: 4px;
  border-radius: 24px;
  background-color: #FFFFFF;
  border: 1px solid #D8DEE9;
}
.yp-switch-btn {
  flex: 1;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-forest);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.yp-switch-btn.is-active { background-color: var(--brand-forest); color: #FFFFFF; }
.yp-switch-btn:focus-visible { outline: 2px solid #7DB8FF; outline-offset: 2px; }
