@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: #0B281B;
  --brand-forest-card: #0D2D1E;
  --brand-forest-border: #1B4430;
  --brand-cream: #FAF9F5;
  --brand-surface: #FFFFFF;
  --brand-border: #E5E2DA;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--brand-cream);
  color: #1A1F1C;
  -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: #0B281B;
}

.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: 10px;
  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(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 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: #EDEAE2;
  padding: 2px;
  border-radius: 9999px;
  border: 1px solid #DCD7CB;
  gap: 2px;
}

.yh-region-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #5A685F;
  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(11, 40, 27, 0.12);
}

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

.yuta-console-window {
  background-color: #081F14;
  border: 1.5px solid #1F4A34;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  margin-top: 1.5rem;
}

.yuta-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #05140D;
  border-bottom: 1px solid #1A3D2A;
  padding: 12px 20px;
}

.yuta-card {
  background-color: #05160E;
  border: 1px solid #1A3D2A;
  border-radius: 12px;
  padding: 16px;
}

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

.browser-mockup {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1E4D36;
  background-color: #06160E;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.08);
}

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

.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: #082115;
  border: 1px solid #1A4630;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8FB59E;
}

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

.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: #A3D4B6;
  box-shadow: 0 10px 25px -5px rgba(11, 40, 27, 0.08);
}

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

@media (min-width: 768px) {
  .yuta-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: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1B5E3C;
  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: #1B5E3C;
  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 #1B5E3C;
  outline-offset: 2px;
}

.yh-dot-label {
  display: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5A685F;
  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: #E2DED3;
  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: #4A5850;
  border: 1px solid #DDD9CE;
  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: #3E4942;
  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 #1B5E3C;
  outline-offset: 3px;
}

.yh-btn-primary {
  background-color: var(--brand-forest);
  color: #FAF9F5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 20px -8px rgba(11, 40, 27, 0.45);
}

.yh-btn-primary:hover {
  background-color: #143D2B;
}

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

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

.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: #5A685F;
}

.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: #1B5E3C;
  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: #EFECE3;
  border: 1px solid #E3DFD3;
}

.yh-preview-card {
  border-radius: 22px;
  background-color: #FFFFFF;
  border: 1px solid #E8E4D9;
  padding: 1.25rem;
  box-shadow: 0 24px 48px -28px rgba(11, 40, 27, 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 #F0ECE1;
  margin-bottom: 1rem;
}

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

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

.yh-preview-meta {
  font-size: 13px;
  color: #5A685F;
}

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

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

.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: #FAF9F5;
  border: 1px solid #EEEAE0;
  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: #D9EDE0;
  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: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8FB59E;
}

.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: #2D3830;
}

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

/* 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: #2D3830;
  margin-bottom: 0.625rem;
}

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

.yh-scan-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 1.5px solid #10B981;
  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 #D8D4C8;
  box-shadow: 0 4px 18px -4px rgba(16, 185, 129, 0.14), 0 2px 6px rgba(11, 40, 27, 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: #D3CDC0;
    box-shadow: 0 4px 16px -4px rgba(16, 185, 129, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  50% {
    border-color: #68B687;
    box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.32), 0 0 0 3px rgba(16, 185, 129, 0.08);
  }
}

.yh-scan-form:hover {
  transform: translateY(-1px);
  border-color: #1B5E3C;
  box-shadow: 0 10px 28px -4px rgba(16, 185, 129, 0.32), 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.yh-scan-form:focus-within {
  border-color: #1B5E3C;
  box-shadow: 0 0 0 4px rgba(27, 94, 60, 0.16), 0 8px 24px -4px rgba(16, 185, 129, 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: #5A685F;
  opacity: 1;
}

input::placeholder,
textarea::placeholder {
  color: #5A685F;
  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: #FAF9F5;
  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: #143D2B;
  box-shadow: 0 4px 12px rgba(11, 40, 27, 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: #5A685F;
}

.yh-scan-examples button {
  margin-left: 4px;
  color: #1B5E3C;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #B9CDBF;
  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: #E8F3EB;
  color: #0E3E26;
}

@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: #4A554E;
  text-wrap: pretty;
}

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

.yp-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 24px;
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid #E8E4D9;
  box-shadow: 0 30px 60px -36px rgba(11, 40, 27, 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: #FAF9F5;
}

.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(250, 249, 245, 0.08);
  border: 1px solid rgba(250, 249, 245, 0.16);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C5DEC9;
}

.yp-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

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

.yp-price-unit {
  font-size: 1rem;
  color: #C5DEC9;
}

.yp-price-was {
  margin-left: 0.25rem;
  font-size: 1rem;
  color: #7FA08C;
  text-decoration: line-through;
}

.yp-price-note {
  margin-top: 0.75rem;
  font-size: 14px;
  line-height: 1.5;
  color: #A5C9B3;
}

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

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

.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(6, 26, 16, 0.7);
  border: 1px solid rgba(30, 77, 54, 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(14, 46, 30, 0.8);
  border-color: rgba(111, 207, 151, 0.45);
}

.yp-addon-card.is-active {
  background-color: rgba(16, 185, 129, 0.12);
  border-color: #34D399;
  box-shadow: 0 0 16px -4px rgba(16, 185, 129, 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: 11px;
  font-weight: 700;
  color: #6FCF97;
  background-color: rgba(111, 207, 151, 0.12);
  border: 1px solid rgba(111, 207, 151, 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: #10B981;
  color: #071F14;
  border-color: #34D399;
}

.yp-addon-summary {
  font-size: 11.5px;
  line-height: 1.4;
  color: #A5C9B3;
  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: #05180E;
  border: 1.5px solid #1E4D36;
  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: #10B981;
  border-color: #34D399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

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

.yp-io-glyph-o {
  color: #7FA08C;
}

.yp-addon-card.is-active .yp-io-glyph-o {
  color: rgba(7, 31, 20, 0.35);
}

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

.yp-addon-card.is-active .yp-io-glyph-i {
  color: #071F14;
  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: #C5DEC9;
  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: #34D399; }
  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(250, 249, 245, 0.1);
}

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

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

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

.yp-cta {
  width: 100%;
  margin-top: 1.75rem;
  background-color: #FAF9F5;
  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: #FAF9F5;
}

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

.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 #F0ECE1;
  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: #EAF5EF;
}

.yp-list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: calc(0.95rem + 5px);
  width: 6px;
  height: 9px;
  border: solid #1B5E3C;
  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: #5A685F;
}

.yp-guarantee {
  margin-top: 1.25rem;
  padding: 1.125rem 1.25rem;
  border-radius: 16px;
  background-color: #F3F7F2;
  border: 1px solid #DCE9DF;
  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: #3E4942;
}

.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: #5A685F;
  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: 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: #4A554E;
}

.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: #2D3830;
}

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

.ys-checks li::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: calc(0.2em + 3.5px);
  width: 5px;
  height: 8px;
  border: solid #1B5E3C;
  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;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ys-chip {
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 6px;
  background-color: #EAF5EF;
  border: 1px solid #C5DEC9;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1B5E3C;
}

.ys-pillar-tag {
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4A5850;
}

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

.ys-pillar-copy {
  margin-top: 0.75rem;
  font-size: 14px;
  line-height: 1.55;
  color: #5A685F;
}

.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 #F0ECE1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #4A5850;
}

@media (min-width: 768px) {
  .yuta-three-pillars {
    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 Yuta: 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: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A5850;
}

.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 #F0ECE1;
}

.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: #8FB59E; }
.ys-duo-card.is-dark .ys-duo-title { color: #FFFFFF; }
.ys-duo-card.is-dark .ys-duo-list li { color: #D9EDE0; border-top-color: rgba(250, 249, 245, 0.1); }
.ys-duo-card.is-dark .ys-checks li::before { background-color: rgba(52, 211, 153, 0.14); }
.ys-duo-card.is-dark .ys-checks li::after { border-color: #34D399; }

@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: #3E4942;
  border-bottom: 1px solid #DDD9CE;
}

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

.ys-compare tbody th {
  font-weight: 500;
  color: #4A5850;
}

.ys-compare td {
  color: #3E4942;
}

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

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

.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 #F0ECE1;
}

.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 #1B5E3C;
  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 #E5E2DA;
  font-size: 16px;
  font-weight: 400;
  color: #5A685F;
}

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

.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, Yuta'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: 10.5px;
    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 #F0ECE1;
  }
  .ys-compare td::before {
    content: attr(data-label);
    font-size: 12.5px;
    color: #4A5850;
  }
  .ys-compare td.is-yuta,
  .ys-compare tbody tr:last-child td.is-yuta {
    margin-top: 0.375rem;
    padding: 0.75rem;
    border-radius: 10px;
    border-top: 0;
  }
  .ys-compare td.is-yuta::before { color: #8FB59E; 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, #F3F0E8 0%, #ECE7DC 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(52, 211, 153, 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: #030806;
}

/* 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(167, 243, 208, 0.16), rgba(167, 243, 208, 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: #6EE7B7;
  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(52, 211, 153, 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 */
.yuta-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 .yuta-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: #1E4D36 transparent;
}

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

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

.ylap-speed-note {
  margin-top: 2px;
  font-size: 11px;
  color: #7A9E88;
}

/* ---- 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(42, 33, 22, 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(167, 243, 208, 0.32), rgba(167, 243, 208, 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: #3A2E20;
  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 #1E4D36;
  border-radius: 999px;
  background: #092216;
  color: #A5C9B3;
  font-family: inherit;
  font-size: 11px;
  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: #2E7A55;
  background: #0E2E1F;
}

.ylap-zoom-btn:focus-visible {
  outline: 2px solid #34D399;
  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 .yuta-console-header { padding: 8px 10px; }
  .ylap-console .yuta-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: #EAF5EF;
  border: 1px solid #C5DEC9;
  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: #1B5E3C;
}

.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: #1B5E3C;
  transition: background-color 0.15s ease;
}

.yaf-notice-clear {
  padding: 0 8px;
  font-size: 11px;
  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(27, 94, 60, 0.08); }

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

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

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

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