
:root {
  --bg: #0f1621;
  --surface: rgba(18, 26, 38, 0.92);
  --surface-muted: rgba(18, 26, 38, 0.78);
  --surface-strong: rgba(22, 30, 43, 0.94);
  --fill: var(--surface);
  --header-bg: rgba(22, 30, 43, 0.88);
  --tab-bar-bg: rgba(12, 20, 32, 0.88);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f5f8;
  --secondary-text: rgba(242, 245, 248, 0.72);
  --text-soft: rgba(242, 245, 248, 0.58);
  --accent: #59e3a7;
  --accent-strong: #3dcc8b;
  --accent-contrast: #042115;
  --accent-soft: rgba(89, 227, 167, 0.16);
  --accent-glow: rgba(89, 227, 167, 0.42);
  --gradient-sunrise: linear-gradient(120deg, rgba(89, 227, 167, 0.85) 0%, rgba(96, 165, 250, 0.72) 100%);
  --gradient-sunset: linear-gradient(120deg, rgba(96, 165, 250, 0.82) 0%, rgba(144, 97, 249, 0.74) 45%, rgba(248, 113, 214, 0.68) 100%);
  --gradient-ocean: linear-gradient(120deg, rgba(89, 227, 167, 0.75) 0%, rgba(96, 165, 250, 0.75) 50%, rgba(139, 92, 246, 0.7) 100%);
  --gradient-accent: linear-gradient(135deg, rgba(89, 227, 167, 0.2) 0%, rgba(96, 165, 250, 0.85) 100%);
  --cta-fill: var(--accent);
  --cta-fill-hover: var(--accent-strong);
  --cta-shadow: 0 18px 36px rgba(61, 204, 139, 0.35);
  --cta-shadow-strong: 0 24px 48px rgba(61, 204, 139, 0.45);
  --shadow-soft: 0 18px 40px rgba(6, 12, 24, 0.32);
  --shadow-lift: 0 22px 48px rgba(12, 20, 38, 0.38);
  --shadow-glow: 0 0 0 1px rgba(89, 227, 167, 0.18), 0 14px 38px rgba(89, 227, 167, 0.25);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-rounded: "SF Pro Rounded", "SF Pro Display", "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family: var(--font-sans);
  --motion-snappy: cubic-bezier(0.33, 1, 0.68, 1);
  --motion-float: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: radial-gradient(circle at top left, rgba(89, 227, 167, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.18), transparent 45%),
              var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s var(--motion-float);
}

@media (min-width: 600px) {
  body {
    padding: 32px 32px;
  }
}

@media (min-width: 960px) {
  body {
    padding: 48px 56px;
  }
}

.iphone-container {
  width: 100%;
  max-width: 428px; /* iPhone 13 Pro Max width */
  min-height: calc(100vh - 48px);
  background: var(--surface-strong);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lift);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow 0.4s var(--motion-float), border 0.4s var(--motion-float);
}

@media (max-width: 599px) {
  .iphone-container {
    border-radius: 0;
  }

  .tabbed-explorer {
    margin-left: -8px;
    margin-right: -8px;
    border-radius: var(--radius-lg);
  }
}

.main-header {
  background: var(--header-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 22px 16px 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 10px 28px rgba(8, 16, 28, 0.35);
}

.main-header h1 {
  font-size: 18px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.3px;
  font-family: var(--font-rounded);
  text-transform: uppercase;
  color: var(--text);
}

.content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 28px 24px 40px;
}

@media (min-width: 600px) {
  .content {
    padding: 32px 40px 48px;
  }
}

.hero-card {
  position: relative;
  background: var(--gradient-accent);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  padding: 30px 24px;
  margin-bottom: 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.tabbed-explorer {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 24px 20px 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tabbed-nav {
  display: flex;
  gap: 12px;
  background: var(--tab-bar-bg);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

.tabbed-nav-button {
  flex: 1 1 0;
  background: transparent;
  border: none;
  color: var(--secondary-text);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.3s var(--motion-snappy), color 0.3s var(--motion-snappy), box-shadow 0.3s var(--motion-snappy);
  cursor: pointer;
}

.tabbed-nav-button:is(:hover, :focus-visible) {
  color: var(--text);
  background: rgba(89, 227, 167, 0.12);
  outline: none;
}

.tabbed-nav-button.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-glow);
}

.tabbed-panel {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 9 / 16;
  background: var(--surface-strong);
  min-height: 420px;
}

.tabbed-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.18), transparent 60%),
              radial-gradient(circle at 82% 24%, rgba(96, 165, 250, 0.25), transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.bridge-pulse {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 26px 22px 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pulse-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 520px) {
  .pulse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pulse-card {
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.pulse-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(89, 227, 167, 0.18), transparent 60%);
  pointer-events: none;
}

.pulse-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.pulse-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(89, 227, 167, 0.12);
  font-size: 18px;
}

.pulse-label {
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.pulse-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0;
  z-index: 1;
}

.pulse-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.pulse-meter-bar {
  height: 100%;
  width: var(--pulse-level, 50%);
  background: var(--gradient-ocean);
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(89, 227, 167, 0.35);
}

.pulse-delta {
  margin: 0;
  color: var(--secondary-text);
  font-size: 13px;
  z-index: 1;
}

.pulse-timeline {
  display: grid;
  gap: 16px;
  margin: 0;
}

.pulse-timeline-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: rgba(12, 20, 32, 0.65);
}

.pulse-timeline-item dt {
  font-weight: 600;
  color: var(--text);
}

.pulse-timeline-item dd {
  margin: 0;
  color: var(--secondary-text);
  font-size: 13px;
}

.pulse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.pulse-actions .hero-cta,
.pulse-actions .link-quiet {
  flex: 0 0 auto;
}

.hero-headline {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.45px;
  line-height: 1.24;
  font-family: var(--font-rounded);
  display: block;
  text-align: center;
}

.hero-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.74);
}

.hero-subheadline {
  margin: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 6px 0 4px;
}

.hero-highlight {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-highlight-icon {
  font-size: 20px;
}

.hero-highlight-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-cta--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.hero-cta--secondary:focus,
.hero-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

.cta-group .hero-cta {
  width: 100%;
}

@media (min-width: 540px) {
  .cta-group {
    flex-direction: row;
  }

  .cta-group .hero-cta {
    flex: 1;
  }
}

.hero-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-countdown-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.countdown-timer {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--accent-strong);
  text-shadow: 0 12px 28px rgba(6, 12, 24, 0.26);
}

.hero-support {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-cta {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--cta-fill);
  color: var(--accent-contrast, #042115);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--cta-shadow);
  transition: transform 0.25s var(--motion-snappy), box-shadow 0.25s var(--motion-snappy), background 0.25s var(--motion-snappy);
}

.hero-cta:focus,
.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--cta-fill-hover);
  box-shadow: var(--cta-shadow-strong);
}

.section-heading {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  margin: 0;
  font-family: var(--font-rounded);
  --underline-width: 72px;
  --underline-gradient: var(--gradient-sunset);
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 8px;
  width: var(--underline-width);
  border-radius: 999px;
  background: var(--underline-gradient);
  box-shadow: 0 8px 24px rgba(89, 227, 167, 0.28);
}

.section-heading.section-heading--center {
  display: block;
  text-align: center;
  --underline-width: clamp(96px, 40%, 180px);
}

.section-heading.section-heading--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-header--compact {
  gap: 6px;
}

.status-board,
.momentum-section,
.insight-deck {
  margin-bottom: 32px;
}

.status-grid,
.insight-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 540px) {
  .status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.status-card,
.insight-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.status-card-header,
.insight-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-icon,
.insight-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(89, 227, 167, 0.16);
  box-shadow: inset 0 0 0 1px rgba(89, 227, 167, 0.22);
}

.status-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.status-value {
  margin: 2px 0 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-family: var(--font-rounded);
}

.status-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-note {
  margin: 0;
  color: var(--secondary-text);
  font-size: 14px;
}

.status-gauge {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.status-gauge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(89, 227, 167, 0.4), rgba(96, 165, 250, 0.4));
}

.status-gauge-fill {
  position: relative;
  display: block;
  height: 100%;
  width: var(--status-progress, 60%);
  background: var(--gradient-sunrise);
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(89, 227, 167, 0.42);
}

.status-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-soft);
}

.status-trend {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(89, 227, 167, 0.18);
  color: var(--accent);
}

.status-trend--up::before {
  content: "⟰";
  font-size: 12px;
}

.status-mini-note {
  color: var(--secondary-text);
}

.status-light-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--secondary-text);
}

.status-light-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-light-item--good span {
  filter: drop-shadow(0 0 6px rgba(89, 227, 167, 0.4));
}

.status-light-item--watch span {
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}

.status-light-item--focus span {
  filter: drop-shadow(0 0 6px rgba(248, 173, 89, 0.4));
}

.status-avatars {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: rgba(89, 227, 167, 0.2);
  box-shadow: inset 0 0 0 1px rgba(89, 227, 167, 0.32);
}

.status-avatar--quiet {
  opacity: 0.6;
  background: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.26);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.momentum-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.momentum-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.momentum-time {
  font-family: var(--font-rounded);
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-text);
  display: flex;
  align-items: center;
}

.momentum-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.momentum-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.momentum-text {
  margin: 0;
  color: var(--secondary-text);
  font-size: 14px;
}

.momentum-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.18);
  color: rgba(191, 219, 254, 0.9);
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.momentum-tag--focus {
  background: rgba(248, 173, 89, 0.24);
  color: rgba(255, 237, 213, 0.9);
}

.momentum-tag--calm {
  background: rgba(148, 163, 184, 0.22);
  color: rgba(226, 232, 240, 0.88);
}

.insight-card {
  position: relative;
  overflow: hidden;
}

.insight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 12% 18%, rgba(89, 227, 167, 0.14), transparent 60%),
              radial-gradient(circle at 82% 24%, rgba(96, 165, 250, 0.16), transparent 65%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.insight-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.insight-text {
  margin: 0;
  font-size: 14px;
  color: var(--secondary-text);
}

.insight-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-soft);
}

.insight-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.insight-tag--glow {
  background: rgba(89, 227, 167, 0.22);
  color: var(--accent);
}

.insight-tag--calm {
  background: rgba(96, 165, 250, 0.22);
  color: rgba(191, 219, 254, 0.92);
}

.section-heading[data-underline="sunrise"] {
  --underline-gradient: var(--gradient-sunrise);
}

.section-heading[data-underline="sunset"] {
  --underline-gradient: var(--gradient-sunset);
}

.section-heading[data-underline="accent"] {
  --underline-gradient: var(--gradient-accent);
}

.section-heading[data-underline="ocean"] {
  --underline-gradient: var(--gradient-ocean);
}

.gradient-divider {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient-sunset);
  margin: 24px 0 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(249, 79, 124, 0.2);
}

.gradient-divider::after {
  content: "";
  position: absolute;
  inset: -18px;
  background: inherit;
  opacity: 0.35;
  filter: blur(28px);
}

.gradient-divider--sunset {
  background: var(--gradient-sunset);
}

.gradient-divider--sunrise {
  background: var(--gradient-sunrise);
}

.gradient-divider--ocean {
  background: var(--gradient-ocean);
}

.lab-dashboard,
.lab-experiments,
.lab-scenarios {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 26px 22px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lab-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.lab-score-card {
  position: relative;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--motion-float), box-shadow 0.3s var(--motion-float);
}

.lab-score-card:is(:hover, :focus-within) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.lab-score-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-score-card[data-status="green"] {
  box-shadow: 0 18px 32px rgba(61, 204, 139, 0.28);
}

.lab-score-card[data-status="amber"] {
  box-shadow: 0 18px 32px rgba(248, 180, 28, 0.22);
}

.lab-score-card[data-status="red"] {
  box-shadow: 0 18px 32px rgba(248, 113, 113, 0.22);
}

.lab-score-card.is-loading {
  opacity: 0.72;
}

.lab-score-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lab-score-key {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(89, 227, 167, 0.18);
  color: var(--accent);
}

.lab-score-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lab-score-name {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.lab-score-intent {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.lab-score-value {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.lab-score-delta {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-text);
}

.lab-score-delta[data-trend="positive"] {
  color: #6ee7b7;
}

.lab-score-delta[data-trend="negative"] {
  color: #fbbf24;
}

.lab-score-note {
  margin: 0;
  font-size: 14px;
  color: var(--secondary-text);
  line-height: 1.5;
}

.lab-score-metrics {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.lab-dashboard-footnote {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.lab-experiment-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lab-experiment-item {
  list-style: none;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.lab-experiment-item::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.lab-experiment-item[data-tone="celebratory"]::before {
  background: linear-gradient(90deg, rgba(248, 113, 214, 0.8), rgba(129, 140, 248, 0.85));
}

.lab-experiment-item[data-tone="analytical"]::before {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.82), rgba(129, 199, 212, 0.78));
}

.lab-experiment-item.is-empty::before {
  background: rgba(255, 255, 255, 0.16);
}

.lab-experiment-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.lab-experiment-summary {
  margin: 0;
  font-size: 14px;
  color: var(--secondary-text);
}

.lab-experiment-impact {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.lab-experiment-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.lab-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.lab-scenario-card {
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}

.lab-scenario-card.is-empty {
  opacity: 0.72;
}

.lab-scenario-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.lab-scenario-text {
  margin: 0;
  font-size: 14px;
  color: var(--secondary-text);
  line-height: 1.55;
}

.lab-scenario-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.lab-scenario-predictions {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.capability-section,
.metric-explainer {
  background-color: var(--fill);
  border-radius: 24px;
  padding: 24px 20px 28px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.capability-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04) 0%, rgba(10, 132, 255, 0.08) 100%);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.capability-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.capability-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(10, 132, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0A84FF;
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.25);
}

.capability-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.capability-icon.icon-fallback {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-text);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 8px;
  text-align: center;
}

.capability-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.capability-description {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.capability-outcome-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capability-outcome-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 12px 14px;
  border-left: 3px solid rgba(10, 132, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.outcome-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.outcome-detail {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.capability-payoff {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #ffd8c2;
  background: rgba(249, 79, 124, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(249, 79, 124, 0.32);
  box-shadow: 0 10px 24px rgba(249, 79, 124, 0.2);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}

@media (min-width: 960px) {
  .metric-grid {
    gap: 24px;
  }
}

.metric-card {
  background: linear-gradient(155deg, rgba(10, 132, 255, 0.2) 0%, rgba(72, 72, 104, 0.16) 100%);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 12px;
  align-items: start;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  height: 100%;
}

.metric-card:hover,
.metric-card:focus-within {
  box-shadow: 0 20px 42px rgba(10, 132, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.18);
}

.metric-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-rounded);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(10, 132, 255, 0.28);
}

.metric-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.metric-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.18px;
}

.metric-description {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.metric-outcome {
  margin: 0;
  font-size: 13px;
  color: var(--secondary-text);
  line-height: 1.5;
}

.ritual-section {
  background: linear-gradient(140deg, rgba(96, 165, 250, 0.18) 0%, rgba(139, 92, 246, 0.16) 48%, rgba(248, 113, 214, 0.16) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px 30px;
  margin: 32px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(12, 20, 32, 0.38);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 540px) {
  .ritual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ritual-card {
  background: rgba(12, 20, 32, 0.58);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ritual-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ritual-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 18px;
}

.ritual-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.18px;
}

.ritual-checklist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.ritual-checklist li {
  line-height: 1.5;
}

.ritual-footnote {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.metric-callout {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 216, 194, 0.18) 0%, rgba(249, 79, 124, 0.15) 100%);
  border: 1px solid rgba(255, 216, 194, 0.4);
  box-shadow: 0 12px 28px rgba(249, 79, 124, 0.2);
}

.metric-callout-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: #ffd8c2;
}

.metric-callout-text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.top-five-wrapper {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.35px;
}

.section-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--secondary-text);
}

.top-five-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.top-feature-card {
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border-soft);
  min-height: 148px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--motion-float), box-shadow 0.3s var(--motion-float), border 0.3s var(--motion-float);
}

.top-feature-card:hover,
.top-feature-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}

.top-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(89, 227, 167, 0.28);
}

.top-feature-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.top-feature-icon.icon-fallback {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-text);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 6px;
  text-align: center;
}

.top-feature-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
}

.top-feature-description {
  margin: 0;
  font-size: 14px;
  color: var(--secondary-text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 2;
}

@media (min-width: 560px) {
  .top-five-wrapper {
    padding: 28px 28px 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .top-feature-icon {
    width: 56px;
    height: 56px;
  }

  .top-feature-icon svg {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 600px) {
  .hero-card {
    padding: 36px 40px;
    margin-bottom: 32px;
  }

  .hero-headline {
    font-size: 30px;
  }

  .hero-subheadline {
    font-size: 18px;
  }

  .countdown-timer {
    font-size: 42px;
  }
}

.features-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-item {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--motion-float), box-shadow 0.35s var(--motion-float), border 0.35s var(--motion-float);
  overflow: hidden;
}

.feature-item:hover,
.feature-item:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}

#other-highlights {
  margin: 32px 0;
}

#other-highlights-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 0;
  color: var(--text);
}

.other-highlights-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.highlight-card {
  background: linear-gradient(150deg, rgba(89, 227, 167, 0.2) 0%, rgba(96, 165, 250, 0.18) 45%, rgba(139, 92, 246, 0.16) 100%);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.highlight-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 6px 16px rgba(89, 227, 167, 0.4));
}

.highlight-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highlight-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
}

.highlight-description {
  margin: 0;
  font-size: 14px;
  color: var(--secondary-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .other-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.feature-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: transform 0.35s var(--motion-float), color 0.3s ease;
}

.feature-button[aria-expanded="true"] {
  cursor: default;
}

.feature-button[aria-expanded="false"]:hover {
  background: linear-gradient(135deg, rgba(89, 227, 167, 0.18), rgba(96, 165, 250, 0.18));
  transform: translateY(-2px);
}

.feature-heading {
  font-size: 21px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.4px;
  color: var(--text);
}

.feature-item p {
  font-size: 16px;
  color: var(--secondary-text);
  margin: 0;
  line-height: 1.55;
}


/* Interactive Content Styles */
.interactive-content {
    padding-top: 16px;
}

.interactive-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 20px;
    animation: fadeIn 0.4s var(--motion-float);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    position: relative;
    border: 1px solid var(--border-soft);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: white;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.interactive-card h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.4px;
}

.interactive-card p {
    font-size: 15px;
    color: #EAEAEA;
    line-height: 1.5;
}

.metric-list,
.action-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.metric-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 12px;
}

.metric-label {
  font-size: 13px;
  color: var(--secondary-text);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.metric-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.metric-note {
  font-size: 13px;
  color: var(--secondary-text);
}

.action-list li {
  padding: 14px;
  border-radius: 10px;
  background: rgba(89, 227, 167, 0.16);
  margin-bottom: 12px;
  border-left: 3px solid rgba(89, 227, 167, 0.45);
}

.action-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.action-title {
  font-weight: 600;
  font-size: 15px;
}

.action-impact {
  font-size: 13px;
  color: var(--accent);
}

.action-effort {
  font-size: 13px;
  color: var(--secondary-text);
  display: inline-block;
  margin-top: 8px;
}

.metric-footnote {
  margin-top: 16px;
  font-size: 12px;
  color: var(--secondary-text);
}

.metric-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 120px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.metric-chip.positive {
  box-shadow: inset 0 0 0 1px rgba(76, 217, 100, 0.4);
}

.metric-chip.negative {
  box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.4);
}

.metric-chip.neutral {
  box-shadow: inset 0 0 0 1px rgba(255, 214, 10, 0.4);
}

.chip-label {
  font-size: 12px;
  color: var(--secondary-text);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.chip-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.chip-delta {
  font-size: 13px;
  color: var(--secondary-text);
}

.simulation-result {
  margin-top: 16px;
}

.simulation-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.simulation-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--secondary-text);
}

.simulation-footnote {
  margin-top: 20px;
  font-size: 12px;
  color: var(--secondary-text);
}

.slider-label {
  display: block;
  font-size: 14px;
  margin-top: 16px;
  color: var(--secondary-text);
}

.nl-hint {
  font-size: 13px;
  color: var(--secondary-text);
  margin: 12px 0 0;
}

.positive {
  color: #4CD964;
}

.negative {
  color: #FF3B30;
}

.neutral {
  color: #FFD60A;
}

.interactive-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.interactive-buttons button,
.btn-primary {
  flex-grow: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface-muted);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: background 0.25s var(--motion-snappy), transform 0.2s var(--motion-snappy), box-shadow 0.25s var(--motion-snappy);
}

.interactive-buttons button:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.interactive-buttons button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(61, 204, 139, 0.38);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

/* Slider */

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    outline: none;
    margin: 20px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(89, 227, 167, 0.35);
    transition: transform 0.25s var(--motion-snappy), box-shadow 0.25s var(--motion-snappy);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 24px rgba(89, 227, 167, 0.45);
}

/* NL Ops */
.nl-input {
    width: 100%;
    background: var(--surface-muted);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 14px;
    color: var(--text);
    font-size: 16px;
    margin-top: 16px;
    box-sizing: border-box;
    transition: border-color 0.25s var(--motion-snappy), box-shadow 0.25s var(--motion-snappy);
}

.nl-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(89, 227, 167, 0.28);
}

.nl-output-container {
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
    padding: 12px;
    min-height: 50px;
    animation: fadeIn 0.3s ease;
}

.nl-output-container p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* Tab Bar Styles */


.tab-panels {
  flex: 1;
  width: 100%;
  max-width: min(80%, 620px);
  margin: 0 auto;
  padding: 26px 0 36px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-media-image,
.tab-media-video {
  width: min(240px, 100%);
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

#tab-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 8px;
    width: 72px;
    border-radius: 999px;
    background: var(--gradient-ocean);
    box-shadow: 0 8px 24px rgba(89, 227, 167, 0.32);


.tab-bullet-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
}

.tab-bullet-marker {
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}

.tab-bullet-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.tab-bullet-detail {
  grid-column: 2 / -1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.tab-checklist-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tab-checklist-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tab-checklist-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.tab-checklist-marker {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: rgba(52, 199, 89, 0.18);
  color: #34c759;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--tab-bar-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px clamp(16px, 6vw, 32px) 20px;
  border-top: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 -18px 40px rgba(5, 10, 18, 0.35);

}

.tab-item {
  appearance: none;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--secondary-text);
  font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: 0.4px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 18px;
  transition: color 0.25s var(--motion-snappy), background-color 0.25s var(--motion-snappy), box-shadow 0.25s var(--motion-snappy), transform 0.25s var(--motion-snappy);


.tab-item::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tab-item.active,
.tab-item[aria-selected="true"] {
  color: var(--accent);
  background-color: rgba(89, 227, 167, 0.2);
  box-shadow: inset 0 0 0 1px rgba(89, 227, 167, 0.4);

}

.tab-item.active::after,
.tab-item[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.tab-item:focus-visible,
.tab-item:hover {
  color: var(--text);
  background-color: rgba(89, 227, 167, 0.16);
  box-shadow: inset 0 0 0 1px rgba(89, 227, 167, 0.35), 0 12px 28px rgba(5, 12, 22, 0.24);

  outline: none;
  transform: translateY(-2px);
}

.tab-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  background-color: rgba(89, 227, 167, 0.2);
  color: var(--accent);
}

.tab-item[aria-selected="true"] {
  background-color: rgba(89, 227, 167, 0.18);
  color: var(--accent);

}

.tab-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.tab-icon use,
.tab-icon path,
.tab-icon circle,
.tab-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s var(--motion-snappy);
}

.teaser {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary-text);
  padding: 28px 20px;
  background: var(--surface-muted);
  border-top: 1px solid var(--border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.noscript-warning {
  margin-top: 16px;
  font-size: 14px;
  color: var(--secondary-text);
  text-align: center;
}

/* Gift Card Styles */
@media print {
  @page {
    size: A6;
    margin: 0;
  }
  body.gift-card-body {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

body.gift-card-body {
  background: radial-gradient(circle at top left, rgba(89, 227, 167, 0.12), transparent 60%), var(--bg);
  justify-content: center;
  height: 100vh;
}

.gift-card-container {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  max-width: 350px;
  box-shadow: var(--shadow-soft);
}

.gift-card-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 16px 0;
}

.gift-card-body p {
  font-size: 16px;
  color: var(--secondary-text);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.qr-code-container {
  margin: 0 auto;
  padding: 8px;
  background-color: white;
  border-radius: 8px;
  width: 128px;
  height: 128px;
}

.gift-card-footer {
  margin-top: 24px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-soft);
}

/* One Pager Styles */
@media print {
  @page {
    size: A4;
    margin: 2cm;
  }
  body.one-pager-body {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    background-color: #ffffff;
    color: #000000;
  }
  .one-pager-container {
     box-shadow: none;
     border: none;
  }
}

body.one-pager-body {
  background: radial-gradient(circle at top left, rgba(89, 227, 167, 0.12), transparent 60%), var(--bg);
  padding: 40px;
  justify-content: center;
}

.one-pager-container {
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px 60px;
  max-width: 820px;
  margin: 0 auto;
  color: var(--secondary-text);
  box-shadow: var(--shadow-soft);
}

.one-pager-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 8px;
}

.one-pager-header .subtitle {
  font-size: 20px;
  font-weight: 500;
  color: var(--secondary-text);
  text-align: center;
  margin-bottom: 40px;
}

.one-pager-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 8px;
  margin-top: 30px;
  margin-bottom: 16px;
}

.one-pager-content p {
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

.one-pager-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  font-style: italic;
  color: var(--text-soft);
}

.confidence-section {
  margin-top: 36px;
}

.confidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.confidence-card {
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confidence-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.confidence-text {
  margin: 0;
  color: var(--secondary-text);
  font-size: 14px;
  line-height: 1.55;
}

.closing-card {
  margin-top: 42px;
  background: var(--gradient-ocean);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 32px 26px;
  box-shadow: var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.closing-title {
  margin: 0;
  font-size: 22px;
  font-family: var(--font-rounded);
  line-height: 1.3;
}

.closing-text {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.closing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 500;
  font-size: 15px;
}

.link-quiet:focus,
.link-quiet:hover {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 540px) {
  .closing-actions {
    flex-direction: row;
  }

  .closing-actions .hero-cta {
    flex: 1;
  }
}
