/* ==========================================================================
   Your Hub Software — Commercial Website & Customer Billing Portal Styles
   Milestone: YHS-UI-001 (Complete Commercial Website, Portal & UI/UX Redesign)
   Depends on: /design-system.css
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--yh-font-sans);
  background-color: var(--yh-bg);
  color: var(--yh-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main#main-content {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
}

code {
  font-family: var(--yh-font-mono);
  font-size: 0.84em;
  background: var(--yh-code-bg);
  color: var(--yh-code-text);
  border: 1px solid var(--yh-border-subtle);
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   1. Staging / Non-Production Safety Banner (Section 18 — High Contrast)
   -------------------------------------------------------------------------- */
.test-env-banner {
  background: var(--yh-staging-bg);
  border-bottom: 2px solid var(--yh-staging-border);
  color: var(--yh-staging-text);
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.test-env-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--yh-staging-badge-bg);
  border: 1px solid var(--yh-staging-border);
  color: var(--yh-staging-text);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   2. Commercial Header & Responsive Primary Navigation (Section 7)
   -------------------------------------------------------------------------- */
.commercial-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--yh-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yh-border);
  box-shadow: var(--yh-shadow-xs);
}

.header-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--yh-text);
  cursor: pointer;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--yh-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--yh-shadow-sm);
  flex-shrink: 0;
}

.brand-title {
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--yh-text);
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--yh-text-muted);
  line-height: 1.25;
}

.header-nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  flex-wrap: nowrap;
}

.nav-links .nav-btn,
.nav-links .btn {
  padding: 0.42rem 0.64rem;
  font-size: 0.82rem;
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--yh-border);
  margin: 0 0.25rem;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.45rem 0.7rem;
  border-radius: var(--yh-radius-sm);
  border: 1px solid var(--yh-border-strong);
  background: var(--yh-surface);
  color: var(--yh-text);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  gap: 0.35rem;
}

/* --------------------------------------------------------------------------
   3. Buttons (WCAG 2.2 AA Contrast & >= 40px Touch Targets)
   -------------------------------------------------------------------------- */
.btn,
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.56rem 1rem;
  min-height: 40px;
  font-family: var(--yh-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--yh-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.nav-btn {
  background: transparent;
  color: var(--yh-text-secondary);
  padding: 0.5rem 0.8rem;
}

.nav-btn:hover {
  background: var(--yh-surface-hover);
  color: var(--yh-text);
}

.nav-btn.active {
  background: var(--yh-primary-soft);
  color: var(--yh-info-text);
  border-color: var(--yh-primary-border);
  font-weight: 700;
}

.btn-primary {
  background: var(--yh-primary);
  color: var(--yh-primary-contrast);
  border-color: var(--yh-primary);
  box-shadow: var(--yh-shadow-xs);
}

.btn-primary:hover:not(:disabled) {
  background: var(--yh-primary-hover);
  border-color: var(--yh-primary-hover);
}

.btn-secondary {
  background: var(--yh-surface);
  color: var(--yh-text);
  border-color: var(--yh-border-strong);
  box-shadow: var(--yh-shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--yh-surface-hover);
  border-color: var(--yh-input-border);
}

.btn-danger {
  background: var(--yh-danger-bg);
  color: var(--yh-danger-text);
  border-color: var(--yh-danger-border);
}

.btn-danger:hover:not(:disabled) {
  filter: brightness(0.96);
}

.btn-lg {
  padding: 0.78rem 1.35rem;
  min-height: 46px;
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-sm {
  padding: 0.44rem 0.8rem;
  min-height: 36px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   4. Layout Containers & Views
   -------------------------------------------------------------------------- */
.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* --------------------------------------------------------------------------
   5. Alerts & Loading Indicators (Section 5 & 27 — Accessible Status)
   -------------------------------------------------------------------------- */
.alert-banner {
  border-radius: var(--yh-radius-sm);
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--yh-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: var(--yh-shadow-xs);
}

.alert-banner.hidden {
  display: none !important;
}

.alert-error {
  background: var(--yh-danger-bg);
  border-color: var(--yh-danger-border);
  color: var(--yh-danger-text);
}

.alert-success {
  background: var(--yh-success-bg);
  border-color: var(--yh-success-border);
  color: var(--yh-success-text);
}

.alert-info {
  background: var(--yh-info-bg);
  border-color: var(--yh-info-border);
  color: var(--yh-info-text);
}

.alert-warning {
  background: var(--yh-warning-bg);
  border-color: var(--yh-warning-border);
  color: var(--yh-warning-text);
}

.portal-loading-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--yh-radius-sm);
  background: var(--yh-info-bg);
  border: 1px solid var(--yh-info-border);
  color: var(--yh-info-text);
  font-size: 0.86rem;
  font-weight: 600;
}

.portal-loading-bar.hidden {
  display: none !important;
}

.spinner-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--yh-info-border);
  border-top-color: var(--yh-info-text);
  animation: yhSpin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes yhSpin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   6. Flagship Product Hero — 2-Column SaaS Presentation (Section 8 & 13)
   -------------------------------------------------------------------------- */
.product-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.12fr);
  gap: 2.5rem;
  align-items: center;
  padding: 1rem 0 2.75rem;
  border-bottom: 1px solid var(--yh-border-subtle);
  margin-bottom: 2.75rem;
}

.family-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--yh-info-bg);
  border: 1px solid var(--yh-info-border);
  color: var(--yh-info-text);
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(1.95rem, 3.3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--yh-text);
}

.hero-subheadline {
  font-size: 1.05rem;
  color: var(--yh-text-secondary);
  line-height: 1.65;
  margin: 0 0 1.35rem;
}

.hero-value-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-value-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--yh-text-secondary);
  font-weight: 500;
}

.hero-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yh-success-bg);
  border: 1px solid var(--yh-success-border);
  color: var(--yh-success-text);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-trust-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--yh-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Decorative Device Frames Containing Genuine Screenshots (Section 13) */
.hero-device-stage {
  position: relative;
  padding-bottom: 1.5rem;
}

.device-laptop-frame {
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 14px;
  padding: 8px 8px 10px;
  box-shadow: var(--yh-shadow-lg);
  overflow: hidden;
}

.device-browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 8px;
  gap: 0.5rem;
}

.device-dots {
  display: inline-flex;
  gap: 5px;
}

.device-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}

.device-dots span:nth-child(1) {
  background: #ef4444;
}
.device-dots span:nth-child(2) {
  background: #f59e0b;
}
.device-dots span:nth-child(3) {
  background: #10b981;
}

.device-url-bar {
  flex: 1;
  max-width: 340px;
  background: #1e293b;
  color: #e2e8f0;
  font-family: var(--yh-font-mono);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 999px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-screen-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}

.device-screen-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.device-phone-frame {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 29%;
  min-width: 138px;
  max-width: 185px;
  background: #0f172a;
  border: 3px solid #334155;
  border-radius: 20px;
  padding: 6px;
  box-shadow: var(--yh-shadow-lg);
}

.device-phone-notch {
  width: 38%;
  height: 5px;
  background: #334155;
  border-radius: 999px;
  margin: 2px auto 5px;
}

.device-phone-frame .device-screen-btn {
  border-radius: 13px;
}

.hero-genuine-caption {
  margin-top: 0.95rem;
  padding-right: 192px;
  font-size: 0.78rem;
  color: var(--yh-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. Interactive Genuine Product Screenshot Gallery (Section 11, 14 & 15)
   -------------------------------------------------------------------------- */
.showcase-section {
  margin-bottom: 3.25rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yh-info-text);
  margin-bottom: 0.35rem;
}

.section-heading {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.45rem;
  color: var(--yh-text);
}

.section-lead {
  font-size: 0.98rem;
  color: var(--yh-text-muted);
  margin: 0;
  max-width: 780px;
}

.showcase-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  padding: 1.35rem;
  box-shadow: var(--yh-shadow-sm);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.showcase-tablist {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--yh-border-subtle);
}

.showcase-tab {
  appearance: none;
  background: var(--yh-surface-subtle);
  border: 1px solid var(--yh-border);
  color: var(--yh-text-secondary);
  font-family: var(--yh-font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.52rem 0.95rem;
  min-height: 40px;
  border-radius: var(--yh-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.showcase-tab:hover {
  background: var(--yh-surface-hover);
  color: var(--yh-text);
}

.showcase-tab[aria-selected="true"] {
  background: var(--yh-primary);
  border-color: var(--yh-primary);
  color: var(--yh-primary-contrast);
  font-weight: 700;
  box-shadow: var(--yh-shadow-xs);
}

.showcase-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: 1.5rem;
  align-items: start;
}

.showcase-frame-wrap {
  background: var(--yh-surface-elevated);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-frame-wrap.is-mobile-shot img {
  max-height: 560px;
  width: auto;
  max-width: 100%;
  border-radius: 14px;
  border: 2px solid #334155;
  box-shadow: var(--yh-shadow);
}

.showcase-frame-wrap.is-desktop-shot img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--yh-border);
  box-shadow: var(--yh-shadow-sm);
}

.showcase-meta-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.genuine-capture-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--yh-success-bg);
  border: 1px solid var(--yh-success-border);
  color: var(--yh-success-text);
}

.showcase-shot-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  color: var(--yh-text);
}

.showcase-shot-caption {
  font-size: 0.92rem;
  color: var(--yh-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.showcase-controls-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.35rem;
}

.showcase-provenance-box {
  background: var(--yh-surface-subtle);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.78rem;
  color: var(--yh-text-muted);
  line-height: 1.5;
}

/* Feature Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.highlight-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 1.25rem;
  box-shadow: var(--yh-shadow-xs);
}

.highlight-icon {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.highlight-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--yh-text);
}

.highlight-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--yh-text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   8. Pricing Presentation & Interval Toggle (Section 17)
   -------------------------------------------------------------------------- */
.pricing-section {
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}

.pricing-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.interval-toggle-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--yh-surface);
  border: 1px solid var(--yh-border-strong);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.25rem;
  box-shadow: var(--yh-shadow-xs);
}

.interval-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--yh-text-secondary);
  padding: 0.52rem 1.1rem;
  min-height: 40px;
  border-radius: 999px;
  font-family: var(--yh-font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.interval-btn.active {
  background: var(--yh-primary);
  color: var(--yh-primary-contrast);
  font-weight: 700;
}

.savings-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: var(--yh-success-bg);
  border: 1px solid var(--yh-success-border);
  color: var(--yh-success-text);
}

.interval-btn.active .savings-chip {
  background: #ffffff;
  border-color: #ffffff;
  color: #065f46;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.plan-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  padding: 1.85rem;
  box-shadow: var(--yh-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.plan-card.featured {
  border: 2px solid var(--yh-primary);
  box-shadow: var(--yh-shadow);
}

.plan-popular-badge {
  position: absolute;
  top: -13px;
  right: 1.5rem;
  background: var(--yh-primary);
  color: var(--yh-primary-contrast);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.26rem 0.8rem;
  border-radius: 999px;
  box-shadow: var(--yh-shadow-xs);
}

.plan-tier-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: var(--yh-info-text);
}

.plan-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0.3rem 0 0.45rem;
  color: var(--yh-text);
}

.plan-summary-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--yh-text-muted);
  line-height: 1.55;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1.15rem 0 0.45rem;
  font-variant-numeric: tabular-nums;
}

.plan-price-amount {
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--yh-text);
}

.plan-price-interval {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--yh-text-muted);
}

.synthetic-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--yh-warning-text);
  background: var(--yh-warning-bg);
  border: 1px solid var(--yh-warning-border);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 1.15rem;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.65rem;
  border-top: 1px solid var(--yh-border-subtle);
  padding-top: 1.1rem;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--yh-text-secondary);
  margin-bottom: 0.62rem;
}

.plan-features-list li span.check-glyph {
  color: var(--yh-success-text);
  font-weight: 800;
  flex-shrink: 0;
}

.custom-quote-callout {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-left: 4px solid var(--yh-primary);
  border-radius: var(--yh-radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  box-shadow: var(--yh-shadow-xs);
}

/* --------------------------------------------------------------------------
   9. Comparison Table & Data Tables (Section 5, 22, 23)
   -------------------------------------------------------------------------- */
.comparison-card,
.portal-card,
.form-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  padding: 1.65rem;
  box-shadow: var(--yh-shadow-sm);
}

.comparison-card {
  padding: 1.5rem;
  overflow-x: auto;
}

.comparison-card h3 {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--yh-text);
}

.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.comparison-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.comparison-table th,
.comparison-table td,
.data-table th,
.data-table td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--yh-border-subtle);
  color: var(--yh-text-secondary);
  vertical-align: middle;
}

.comparison-table th,
.data-table th {
  color: var(--yh-text-muted);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--yh-surface-subtle);
  border-bottom: 1px solid var(--yh-border);
}

.data-table tbody tr:hover td {
  background: var(--yh-surface-hover);
}

/* --------------------------------------------------------------------------
   10. Six Product Families ("Solutions") & Resources Views (Section 7 & 15)
   -------------------------------------------------------------------------- */
.families-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.family-showcase-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--yh-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.family-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.family-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--yh-surface-elevated);
  border: 1px solid var(--yh-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.family-apps-box {
  background: var(--yh-surface-subtle);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 1.15rem 1.35rem;
}

.faq-item h4 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: var(--yh-text);
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--yh-text-secondary);
}

/* --------------------------------------------------------------------------
   11. Auth, Registration, Verification & Onboarding Forms (Section 19)
   -------------------------------------------------------------------------- */
.auth-split-shell {
  max-width: 980px;
  margin: 0.75rem auto 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr);
  gap: 1.75rem;
  align-items: start;
}

.form-card {
  max-width: 600px;
  margin: 0.75rem auto 2rem;
}

.auth-split-shell .form-card {
  margin: 0;
  max-width: none;
}

.auth-trust-panel {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--yh-shadow-xs);
}

.auth-trust-panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--yh-text);
}

.auth-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.87rem;
  color: var(--yh-text-secondary);
}

.form-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yh-text);
}

.form-card p.form-subtitle {
  margin: 0 0 1.4rem;
  color: var(--yh-text-muted);
  font-size: 0.92rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.form-group {
  margin-bottom: 1.05rem;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.38rem;
  color: var(--yh-text);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.88rem;
  min-height: 42px;
  border-radius: var(--yh-radius-sm);
  border: 1px solid var(--yh-input-border);
  background: var(--yh-input-bg);
  color: var(--yh-text);
  font-family: var(--yh-font-sans);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
  color: var(--yh-placeholder);
  opacity: 1;
}

.form-control:focus {
  outline: none;
  border-color: var(--yh-primary);
  box-shadow: 0 0 0 3px var(--yh-primary-soft);
}

.form-control:disabled {
  background: var(--yh-surface-elevated);
  color: var(--yh-text-muted);
  cursor: not-allowed;
}

.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrap .form-control {
  padding-right: 4.5rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.4rem;
  background: var(--yh-surface-elevated);
  border: 1px solid var(--yh-border);
  color: var(--yh-text-secondary);
  font-family: var(--yh-font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  min-height: 30px;
  border-radius: 6px;
  cursor: pointer;
}

.password-toggle-btn:hover {
  color: var(--yh-text);
  border-color: var(--yh-border-strong);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--yh-text-muted);
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   12. Customer Account & Multi-App Launcher Dashboard (Sections 20–23)
   -------------------------------------------------------------------------- */
.portal-header-banner {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--yh-shadow-xs);
}

.portal-overview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.stat-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--yh-shadow-xs);
}

.stat-label {
  font-size: 0.74rem;
  color: var(--yh-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 0.25rem;
  color: var(--yh-text);
  font-variant-numeric: tabular-nums;
}

.portal-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.portal-sidebar {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 0.65rem;
  box-shadow: var(--yh-shadow-xs);
}

.portal-tab-btn {
  width: 100%;
  text-align: left;
  padding: 0.68rem 0.9rem;
  min-height: 42px;
  border-radius: var(--yh-radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--yh-text-secondary);
  font-family: var(--yh-font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.portal-tab-btn:hover {
  background: var(--yh-surface-hover);
  color: var(--yh-text);
}

.portal-tab-btn.active {
  background: var(--yh-primary-soft);
  color: var(--yh-info-text);
  border-color: var(--yh-primary-border);
  font-weight: 700;
}

.portal-pane {
  display: none;
}

.portal-pane.active {
  display: block;
}

.portal-card {
  margin-bottom: 1.25rem;
}

.portal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.portal-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--yh-text);
}

/* Application Launcher Cards (Section 21) */
.app-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}

.subscribed-app-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.05rem;
  box-shadow: var(--yh-shadow-xs);
}

.launcher-app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.launcher-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--yh-primary-soft);
  border: 1px solid var(--yh-primary-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.launcher-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  background: var(--yh-surface-subtle);
  border: 1px solid var(--yh-border-subtle);
  border-radius: var(--yh-radius-sm);
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
}

/* Quote Transparency Grid (Section 22) */
.quote-transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.95rem;
  margin-bottom: 1.35rem;
}

.quote-metric-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--yh-shadow-xs);
}

.quote-metric-card.primary-obligation {
  background: var(--yh-info-bg);
  border: 2px solid var(--yh-info-border);
}

.quote-metric-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--yh-text-muted);
}

.quote-metric-card.primary-obligation .quote-metric-label {
  color: var(--yh-info-text);
}

.quote-metric-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--yh-text);
  margin: 0.25rem 0 0.2rem;
  font-variant-numeric: tabular-nums;
}

.quote-metric-sub {
  font-size: 0.78rem;
  color: var(--yh-text-secondary);
}

/* --------------------------------------------------------------------------
   13. Accessible Status Pills (Section 5 — Contrast >= 4.5:1 + Non-Color Icon)
   -------------------------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--yh-neutral-pill-border);
  background: var(--yh-neutral-pill-bg);
  color: var(--yh-neutral-pill-text);
  white-space: nowrap;
}

.status-pill::before {
  content: '●';
  font-size: 0.62rem;
  line-height: 1;
}

.status-pill.active,
.status-pill.paid,
.status-pill.complimentary,
.status-pill.converted,
.status-pill.succeeded {
  background: var(--yh-success-bg);
  color: var(--yh-success-text);
  border-color: var(--yh-success-border);
}

.status-pill.active::before,
.status-pill.paid::before,
.status-pill.complimentary::before,
.status-pill.converted::before,
.status-pill.succeeded::before {
  content: '✓';
  font-size: 0.7rem;
}

.status-pill.trialing,
.status-pill.sent,
.status-pill.viewed,
.status-pill.approved,
.status-pill.accepted,
.status-pill.open {
  background: var(--yh-info-bg);
  color: var(--yh-info-text);
  border-color: var(--yh-info-border);
}

.status-pill.trialing::before,
.status-pill.sent::before,
.status-pill.viewed::before,
.status-pill.approved::before,
.status-pill.accepted::before,
.status-pill.open::before {
  content: '◆';
}

.status-pill.past_due,
.status-pill.pending_verification,
.status-pill.pending_cancellation,
.status-pill.pending_approval,
.status-pill.draft,
.status-pill.partially_paid {
  background: var(--yh-warning-bg);
  color: var(--yh-warning-text);
  border-color: var(--yh-warning-border);
}

.status-pill.past_due::before,
.status-pill.pending_verification::before,
.status-pill.pending_cancellation::before,
.status-pill.pending_approval::before,
.status-pill.draft::before,
.status-pill.partially_paid::before {
  content: '▲';
}

.status-pill.restricted,
.status-pill.canceled,
.status-pill.cancelled,
.status-pill.suspended,
.status-pill.payment_failed,
.status-pill.declined,
.status-pill.expired {
  background: var(--yh-danger-bg);
  color: var(--yh-danger-text);
  border-color: var(--yh-danger-border);
}

.status-pill.restricted::before,
.status-pill.canceled::before,
.status-pill.cancelled::before,
.status-pill.suspended::before,
.status-pill.payment_failed::before,
.status-pill.declined::before,
.status-pill.expired::before {
  content: '✕';
  font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   14. Onboarding 10-Checkpoint Progress List
   -------------------------------------------------------------------------- */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 0.9rem;
  border-radius: var(--yh-radius-sm);
  border: 1px solid var(--yh-border);
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  background: var(--yh-surface-subtle);
  color: var(--yh-text-secondary);
}

.step-item.completed {
  border-color: var(--yh-success-border);
  background: var(--yh-success-bg);
  color: var(--yh-success-text);
}

.step-item.failed {
  border-color: var(--yh-danger-border);
  background: var(--yh-danger-bg);
  color: var(--yh-danger-text);
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   15. Modals & Screenshot Lightbox Viewer (Section 13 & 27)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.hidden {
  display: none !important;
}

.modal-panel {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 1.65rem;
  box-shadow: var(--yh-shadow-lg);
  color: var(--yh-text);
}

.modal-panel.lightbox-panel {
  max-width: 1120px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.25rem 1.4rem;
}

.lightbox-img-stage {
  background: var(--yh-surface-elevated);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-sm);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.85rem 0;
}

.lightbox-img-stage img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   16. Commercial Footer
   -------------------------------------------------------------------------- */
.commercial-footer {
  border-top: 1px solid var(--yh-border);
  background: var(--yh-surface);
  padding: 2.25rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.footer-links button,
.footer-links a {
  background: none;
  border: none;
  padding: 0;
  color: var(--yh-text-muted);
  font-family: var(--yh-font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.footer-links button:hover,
.footer-links a:hover {
  color: var(--yh-link);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   18. Corporate Website, Multi-Product Directory & Product Detail Extensions
   (Milestone: YHS-WEB-COMPLETE-001)
   -------------------------------------------------------------------------- */
.corp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  padding: 1.25rem 0 3rem;
  border-bottom: 1px solid var(--yh-border-subtle);
  margin-bottom: 3rem;
}

.corp-tagline-display {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--yh-primary);
  letter-spacing: -0.015em;
  margin: -0.35rem 0 1rem;
}

[data-theme="dark"] .corp-tagline-display {
  color: var(--yh-link);
}

.corp-architecture-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--yh-shadow);
}

.corp-arch-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
}

.corp-arch-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--yh-radius-sm);
  background: var(--yh-surface-subtle);
  border: 1px solid var(--yh-border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--yh-text-secondary);
  cursor: pointer;
  text-align: left;
  font-family: var(--yh-font-sans);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.corp-arch-pill:hover {
  background: var(--yh-surface-hover);
  border-color: var(--yh-primary-border);
}

.corp-section {
  margin-bottom: 3.5rem;
}

.corp-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.corp-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.corp-four-col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.portfolio-toolbar {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--yh-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.portfolio-search-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.portfolio-search-input {
  flex: 1;
  min-width: 240px;
}

.filter-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--yh-border);
  background: var(--yh-surface-subtle);
  color: var(--yh-text-secondary);
  font-family: var(--yh-font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill-btn:hover {
  background: var(--yh-surface-hover);
  color: var(--yh-text);
}

.filter-pill-btn.active {
  background: var(--yh-primary);
  border-color: var(--yh-primary);
  color: var(--yh-primary-contrast);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.35rem;
}

.portfolio-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  padding: 1.45rem;
  box-shadow: var(--yh-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.portfolio-card:hover {
  border-color: var(--yh-primary-border);
  box-shadow: var(--yh-shadow);
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.availability-badge.available {
  background: var(--yh-success-bg);
  border: 1px solid var(--yh-success-border);
  color: var(--yh-success-text);
}

.availability-badge.early_access {
  background: var(--yh-info-bg);
  border: 1px solid var(--yh-info-border);
  color: var(--yh-info-text);
}

.availability-badge.in_development {
  background: var(--yh-purple-bg);
  border: 1px solid var(--yh-purple-border);
  color: var(--yh-purple-text);
}

.availability-badge.coming_soon {
  background: var(--yh-warning-bg);
  border: 1px solid var(--yh-warning-border);
  color: var(--yh-warning-text);
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.15rem;
}

.edition-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  box-shadow: var(--yh-shadow-xs);
}

.readiness-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.footer-columns-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--yh-border-subtle);
}

.footer-col h4 {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yh-text);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col button,
.footer-col a {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--yh-text-muted);
  font-family: var(--yh-font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.footer-col button:hover,
.footer-col a:hover {
  color: var(--yh-link);
  text-decoration: underline;
}

.yh-honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.legal-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.status-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .corp-hero-grid,
  .corp-four-col,
  .footer-columns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .corp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .corp-two-col,
  .corp-three-col,
  .corp-four-col,
  .readiness-split-grid,
  .portfolio-grid,
  .corp-arch-pills,
  .footer-columns-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   17. Responsive Breakpoints (Desktop, Laptop, Tablet, Mobile — Section 26)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .product-hero-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero-device-stage {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
  }

  .device-phone-frame {
    right: 8px;
  }

  .showcase-stage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-split-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.7rem 1rem;
  }

  .header-nav-cluster {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--yh-border-subtle);
    gap: 0.6rem;
  }

  .header-nav-cluster.mobile-open {
    display: flex;
  }

  .header-nav-cluster .yh-theme-switcher {
    align-self: flex-start;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-links .nav-btn,
  .nav-links .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-divider {
    display: none;
  }

  .portal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-sidebar {
    display: flex;
    overflow-x: auto;
    gap: 0.35rem;
    padding: 0.5rem;
  }

  .portal-tab-btn {
    width: auto;
    white-space: nowrap;
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 1.25rem 1rem 2.75rem;
    overflow-x: hidden;
  }

  .form-grid-2,
  .pricing-grid,
  .families-grid,
  .app-cards-grid,
  .launcher-meta-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .device-phone-frame {
    position: static;
    width: 58%;
    max-width: 210px;
    margin: 0.85rem auto 0;
  }

  .hero-device-stage {
    padding-bottom: 0;
  }

  .hero-genuine-caption {
    padding-right: 0;
  }

  .plan-card,
  .form-card,
  .portal-card,
  .showcase-card,
  .comparison-card {
    padding: 1.15rem;
    max-width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   19. Apple-Inspired Simplicity + Modern SaaS Visual Redesign Extensions
   ========================================================================== */

.page-shell {
  max-width: 1280px;
  padding: 2.25rem 1.75rem 4.5rem;
}

.commercial-header {
  background: var(--yh-header-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.brand-mark-svg {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  flex-shrink: 0;
}

/* Secondary Marketing Tagline Pill */
.secondary-tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--yh-primary-soft);
  border: 1px solid var(--yh-primary-border);
  color: var(--yh-info-text);
}

/* Commercial landing page */
.apple-hero-section {
  background-image: var(--yh-hero-glow);
  border-bottom: 1px solid var(--yh-border-subtle);
  padding: clamp(1rem, 4vw, 4rem) 0 clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.apple-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.apple-hero-eyebrow {
  color: var(--yh-info-text);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.apple-hero-title {
  font-size: clamp(2.65rem, 5.5vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.01;
  margin: 0 0 1.25rem;
  color: var(--yh-text);
}

.apple-hero-title span {
  display: block;
  color: var(--yh-link);
}

.landing-services .highlight-card {
  border-top: 3px solid var(--yh-primary-border);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.landing-services h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.landing-services .highlight-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.apple-hero-lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--yh-text-secondary);
  margin: 0 0 1.75rem;
  max-width: 520px;
}

.hero-stage-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.hero-stage-pill {
  appearance: none;
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  color: var(--yh-text-secondary);
  padding: 0.38rem 0.78rem;
  min-height: 36px;
  border-radius: 999px;
  font-family: var(--yh-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hero-stage-pill:hover {
  background: var(--yh-surface-hover);
  color: var(--yh-text);
}

.hero-stage-pill.active {
  background: var(--yh-primary);
  border-color: var(--yh-primary);
  color: var(--yh-primary-contrast);
  box-shadow: var(--yh-shadow-xs);
}

/* Spacious Section Rhythm */
.spacious-section {
  margin-bottom: 4.5rem;
}

.section-header-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.section-header-centered .section-lead {
  margin: 0.5rem auto 0;
}

.section-heading-lg {
  font-size: clamp(1.7rem, 2.9vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.25rem 0 0.55rem;
  color: var(--yh-text);
}

/* Coordinated Nine-Family Identity Accents */
[data-family="business"] { --card-accent: var(--fam-business); --card-accent-soft: var(--fam-business-soft); }
[data-family="property"] { --card-accent: var(--fam-property); --card-accent-soft: var(--fam-property-soft); }
[data-family="home"] { --card-accent: var(--fam-home); --card-accent-soft: var(--fam-home-soft); }
[data-family="book"] { --card-accent: var(--fam-book); --card-accent-soft: var(--fam-book-soft); }
[data-family="church"] { --card-accent: var(--fam-church); --card-accent-soft: var(--fam-church-soft); }
[data-family="nonprofit"] { --card-accent: var(--fam-nonprofit); --card-accent-soft: var(--fam-nonprofit-soft); }
[data-family="school"] { --card-accent: var(--fam-school); --card-accent-soft: var(--fam-school-soft); }
[data-family="family"] { --card-accent: var(--fam-family); --card-accent-soft: var(--fam-family-soft); }
[data-family="friends"] { --card-accent: var(--fam-friends); --card-accent-soft: var(--fam-friends-soft); }

/* Visual-First Commercial Product Cards */
.visual-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.6rem;
}

.visual-product-card {
   --card-accent: var(--yh-primary);
  --card-accent-soft: var(--yh-primary-soft);
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-top: 4px solid var(--card-accent);
  border-radius: var(--yh-radius-lg);
  overflow: hidden;
  box-shadow: var(--yh-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.visual-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--yh-shadow);
}

.product-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--yh-surface-elevated);
  border-bottom: 1px solid var(--yh-border-subtle);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  display: block;
  text-align: left;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.visual-product-card:hover .product-card-media img {
  transform: scale(1.025);
}

.media-provenance-chip {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--yh-shadow-xs);
}

.media-provenance-chip.genuine {
  background: rgba(6, 95, 70, 0.92);
  color: #ecfdf5;
  border: 1px solid rgba(110, 231, 183, 0.6);
}

.media-provenance-chip.conceptual {
  background: rgba(15, 23, 42, 0.86);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.55);
}

.product-card-body {
  padding: 1.35rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}

.product-card-family-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.family-eyebrow-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--card-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.product-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--yh-text);
}

.product-card-benefit {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--yh-text-secondary);
}

.product-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.81rem;
  color: var(--yh-text-muted);
}

.product-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
}

.product-card-features li span.feat-dot {
  color: var(--card-accent);
  font-weight: 800;
  flex-shrink: 0;
}

.product-card-footer {
  border-top: 1px solid var(--yh-border-subtle);
  padding-top: 0.85rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
}

/* Visual Product Family Grid Cards */
.family-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.family-visual-card {
  --card-accent: var(--yh-primary);
  --card-accent-soft: var(--yh-primary-soft);
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-left: 4px solid var(--card-accent);
  border-radius: var(--yh-radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--yh-shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.family-visual-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--yh-shadow-sm);
}

.family-icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--card-accent-soft);
  border: 1px solid var(--yh-border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Visual How-It-Works Steps */
.visual-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.visual-step-card {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  padding: 1.4rem;
  box-shadow: var(--yh-shadow-xs);
  position: relative;
}

.visual-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--yh-primary-soft);
  border: 1px solid var(--yh-primary-border);
  color: var(--yh-info-text);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.visual-step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--yh-text);
}

.visual-step-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--yh-text-muted);
}

/* Connected Software Ecosystem Showcase Band */
.connected-band {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: var(--yh-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--yh-shadow-lg);
  border: 1px solid #334155;
}

.connected-hub-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.connected-node-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--yh-radius);
  padding: 1.15rem;
}

.connected-node-card h4 {
  margin: 0.4rem 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}

.connected-node-card p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
  color: #cbd5e1;
}

/* Conceptual Illustration Badge & Frame */
.conceptual-capture-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--yh-warning-bg);
  border: 1px solid var(--yh-warning-border);
  color: var(--yh-warning-text);
}

.conceptual-hero-frame {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius-lg);
  padding: 0.75rem;
  box-shadow: var(--yh-shadow-lg);
}

.conceptual-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--yh-radius);
}

/* Progressive Disclosure / Expandable Details */
details.yh-expandable {
  background: var(--yh-surface);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  box-shadow: var(--yh-shadow-xs);
}

details.yh-expandable summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--yh-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

details.yh-expandable summary::-webkit-details-marker {
  display: none;
}

details.yh-expandable summary::after {
  content: '+ Expand Details';
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yh-info-text);
  background: var(--yh-info-bg);
  border: 1px solid var(--yh-info-border);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  flex-shrink: 0;
}

details.yh-expandable[open] summary::after {
  content: '− Collapse';
}

details.yh-expandable .yh-expandable-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--yh-border-subtle);
}

@media (max-width: 1080px) {
  .apple-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .family-visual-grid,
  .visual-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .visual-product-grid,
  .family-visual-grid,
  .visual-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .connected-band {
    padding: 1.5rem 1.25rem;
  }
  .page-shell {
    padding: 1.25rem 1rem 3rem;
  }
  #detail-status-pills .status-pill {
    white-space: normal;
    max-width: 100%;
  }
}

.preview-only {
  display: none;
}

[data-public-preview] .preview-only {
  display: block;
}

[data-public-preview] :is(
  .preview-hide,
  #test-environment-banner,
  #detail-status-pills .trialing,
  [data-avail-filter="available"],
  [data-avail-filter="early_access"],
  [onclick*="openEarlyAccessModal"],
  [onclick*="navigateView('pricing')"],
  [onclick*="navigateView('login')"],
  [onclick*="navigateView('register')"],
  [onclick*="openLegalSection"]
) {
  display: none !important;
}

.landing-services .landing-service-primary {
  border-top-color: var(--yh-link);
}

.landing-service-primary p + p {
  margin-top: 0.85rem;
}

@media (min-width: 900px) {
  .landing-services {
    grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
  }
}

.landing-services .storefront-example {
  border-top: 1px solid var(--yh-border-subtle);
  margin-top: 1rem;
  padding-top: 1rem;
}

.storefront-example-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

#home-available-grid .product-card-features {
  display: none;
}

.home-workflow-examples .highlight-card {
  padding: 1.25rem;
}

@media (min-width: 1100px) {
  #home-available-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
