:root {
  --joint-comfort-bg: #faf9f6;
  --joint-comfort-surface: #ffffff;
  --joint-comfort-ink: #1b2421;
  --joint-comfort-ash: #e7e5df;
  --joint-comfort-teal: #1f6b60;
  --joint-comfort-teal-hover: #144b43;
  --joint-comfort-mint: #eef7f5;
  --joint-comfort-coral: #dd7156;
  --joint-comfort-gradient: linear-gradient(135deg, #1f6b60 0%, #3a8a7e 100%);
  --joint-comfort-glass: rgba(255, 255, 255, 0.85);
  
  --font-display: 'Raleway', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base resets & layout */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--joint-comfort-bg);
  color: var(--joint-comfort-ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--joint-comfort-ink);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Animations */
@keyframes progress-grow {
  to { width: 100%; }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.scroll-progress {
  height: 3.5px;
  width: 0;
  background: var(--joint-comfort-coral);
  animation: progress-grow linear;
  animation-timeline: scroll();
  position: fixed;
  top: 70px;
  left: 0;
  z-index: 1001;
}

.reveal-motion {
  animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 10% entry 45%;
}

/* Header styling */
.joint-headroom {
  background-color: var(--joint-comfort-surface);
  border-bottom: 1px solid var(--joint-comfort-ash);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 70px;
}

.headroom-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--joint-comfort-teal);
}

.brand-wrapper svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.navigation-anchor {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navigation-anchor a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.navigation-anchor a:hover {
  color: var(--joint-comfort-teal);
}

/* Mobile navigation trick (CSS only) */
.mobile-nav-checkbox {
  display: none;
}

.mobile-nav-trigger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-nav-trigger span {
  width: 25px;
  height: 3px;
  background-color: var(--joint-comfort-ink);
  transition: 0.3s;
}

/* Hero elements */
.joint-immersive-hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 10dvh 1.5rem;
}

.joint-immersive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 36, 33, 0.85) 0%, rgba(27, 36, 33, 0.4) 100%);
  z-index: 1;
}

.hero-inner-shield {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--joint-comfort-surface);
}

.hero-inner-shield h1 {
  font-size: 3rem;
  color: var(--joint-comfort-surface);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-inner-shield p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.92;
}

/* Buttons */
.comfort-cta-pill {
  display: inline-block;
  background-color: var(--joint-comfort-coral);
  color: var(--joint-comfort-surface);
  padding: 1rem 2.25rem;
  font-weight: 600;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(221, 113, 86, 0.3);
}

.comfort-cta-pill:hover {
  background-color: #c95d43;
  transform: translateY(-2px);
}

.comfort-cta-pill-alt {
  display: inline-block;
  background-color: var(--joint-comfort-teal);
  color: var(--joint-comfort-surface);
  padding: 1rem 2.25rem;
  font-weight: 600;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.comfort-cta-pill-alt:hover {
  background-color: var(--joint-comfort-teal-hover);
}

/* Bento Grid */
.bento-container-layer {
  max-width: 1200px;
  margin: 10dvh auto;
  padding: 0 1.5rem;
}

.bento-header-group {
  text-align: center;
  margin-bottom: 4rem;
}

.bento-header-group h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.bento-asymmetric-matrix {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.bento-node {
  background-color: var(--joint-comfort-surface);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(27, 36, 33, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-node:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(27, 36, 33, 0.08);
}

.bento-node-span-4 {
  grid-column: span 4;
  background-color: var(--joint-comfort-mint);
  border-left: 5px solid var(--joint-comfort-teal);
}

.bento-node-span-2 {
  grid-column: span 2;
  text-align: center;
  justify-content: center;
  gap: 1rem;
}

.bento-node-span-3 {
  grid-column: span 3;
}

.bento-node-span-6 {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  fill: var(--joint-comfort-teal);
  margin-bottom: 1.5rem;
}

.bento-node-span-6 .bento-icon-box {
  margin-bottom: 0;
  flex-shrink: 0;
}

.bento-node h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.bento-big-stat {
  font-size: 4rem;
  font-weight: 800;
  color: var(--joint-comfort-teal);
  line-height: 1;
}

.bento-stat-label {
  font-size: 1rem;
  color: var(--joint-comfort-ink);
  font-weight: 500;
}

/* Image section with text overlay style */
.prominent-overlay-view {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 16dvh 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prominent-overlay-view::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27, 36, 33, 0.7);
  z-index: 1;
}

.overlay-view-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  color: var(--joint-comfort-surface);
}

.overlay-view-inner h2 {
  color: var(--joint-comfort-surface);
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.overlay-view-inner p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* How it works */
.stepper-track-layer {
  max-width: 1200px;
  margin: 10dvh auto;
  padding: 0 1.5rem;
}

.stepper-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.stepper-item-card {
  position: relative;
  background-color: var(--joint-comfort-surface);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
}

.stepper-phantom-num {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 5rem;
  font-weight: 900;
  color: var(--joint-comfort-teal);
  opacity: 0.08;
  line-height: 1;
}

.stepper-item-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* CTA strip */
.gradient-strip-shield {
  background: var(--joint-comfort-gradient);
  color: var(--joint-comfort-surface);
  padding: 8dvh 1.5rem;
}

.gradient-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.gradient-strip-inner h2 {
  color: var(--joint-comfort-surface);
  font-size: 2rem;
  max-width: 700px;
}

/* Expert pages elements */
.expert-split-board {
  max-width: 1200px;
  margin: 10dvh auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.expert-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.expert-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.expert-bio-slate h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.expert-bio-slate p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: #4a5450;
}

/* Mini Bento for statistics */
.bento-mini-nest {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.bento-mini-nest .bento-node {
  padding: 1.5rem;
}

/* Reserve layout style */
.reserve-split-panel {
  max-width: 1200px;
  margin: 6dvh auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.interactive-booking-sheet {
  background-color: var(--joint-comfort-surface);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.interactive-booking-sheet h2 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.form-control-row {
  margin-bottom: 1.5rem;
}

.form-control-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control-row input, .form-control-row select, .form-control-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--joint-comfort-ash);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--joint-comfort-bg);
}

.form-control-row input:focus, .form-control-row select:focus, .form-control-row textarea:focus {
  outline: none;
  border-color: var(--joint-comfort-teal);
}

.checkbox-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.checkbox-consent input {
  width: auto;
  margin-top: 0.2rem;
}

.button-holder {
  margin-top: 2rem;
}

.button-holder button {
  width: 100%;
  border: none;
  cursor: pointer;
}

.info-cards-pack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card-unit {
  background-color: var(--joint-comfort-mint);
  padding: 2rem;
  border-radius: 16px;
}

.info-card-unit h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--joint-comfort-teal);
}

.info-card-list {
  list-style: none;
  margin-top: 1rem;
}

.info-card-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.info-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--joint-comfort-coral);
}

/* FAQ accordion style */
.faq-accordion-zone {
  max-width: 1200px;
  margin: 8dvh auto;
  padding: 0 1.5rem;
}

.faq-accordion-zone h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.faq-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-node {
  background-color: var(--joint-comfort-surface);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.faq-node h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--joint-comfort-teal);
}

/* Footer layout */
.joint-terminal-ground {
  background-color: var(--joint-comfort-ink);
  color: var(--joint-comfort-ash);
  padding: 8dvh 1.5rem 4dvh;
  margin-top: 10dvh;
}

.terminal-ground-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.terminal-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(231, 229, 223, 0.1);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}

.terminal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--joint-comfort-surface);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.terminal-brand svg {
  width: 40px;
  height: 40px;
  fill: var(--joint-comfort-coral);
}

.terminal-links {
  display: flex;
  gap: 2rem;
}

.terminal-links a {
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.terminal-links a:hover {
  color: var(--joint-comfort-coral);
}

.terminal-disclaimer {
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 2rem;
}

.terminal-copyright {
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.5;
}

/* Cookie Banner styling */
.privacy-cookie-shield {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  background-color: var(--joint-comfort-surface);
  color: var(--joint-comfort-ink);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
  border: 1px solid var(--joint-comfort-ash);
}

.cookie-content-group {
  margin-bottom: 1.25rem;
}

.cookie-content-group p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-action-group {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-allow-btn {
  background-color: var(--joint-comfort-teal);
  color: var(--joint-comfort-surface);
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.cookie-decline-btn {
  background-color: transparent;
  color: var(--joint-comfort-ink);
  border: 1px solid var(--joint-comfort-ash);
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.cookie-allow-btn:hover {
  background-color: var(--joint-comfort-teal-hover);
}

.cookie-decline-btn:hover {
  background-color: var(--joint-comfort-bg);
}

/* Editorial / Policy formatting */
.policy-document-leaf {
  max-width: 800px;
  margin: 6dvh auto;
  padding: 0 1.5rem;
  min-height: 50vh;
}

.policy-document-leaf h1 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--joint-comfort-ash);
  padding-bottom: 1rem;
}

.policy-document-leaf h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-document-leaf p {
  margin-bottom: 1.25rem;
  color: #4a5450;
  font-size: 1rem;
}

/* Thank you elements */
.appreciation-card-wrap {
  text-align: center;
  max-width: 650px;
  margin: 10dvh auto;
  padding: 3rem 1.5rem;
  background-color: var(--joint-comfort-surface);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.appreciation-image-shell {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.appreciation-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.appreciation-card-wrap h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.appreciation-card-wrap p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #4a5450;
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .bento-asymmetric-matrix {
    grid-template-columns: 1fr;
  }
  
  .bento-node-span-4, .bento-node-span-2, .bento-node-span-3, .bento-node-span-6 {
    grid-column: span 6;
  }
  
  .bento-node-span-6 {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .stepper-grid-row {
    grid-template-columns: 1fr;
  }
  
  .expert-split-board {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .reserve-split-panel {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .gradient-strip-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .headroom-wrapper {
    position: relative;
  }
  
  .mobile-nav-trigger {
    display: flex;
    z-index: 1010;
  }
  
  .navigation-anchor {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--joint-comfort-surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--joint-comfort-ash);
    display: none;
    z-index: 1009;
  }
  
  .mobile-nav-checkbox:checked ~ .navigation-anchor {
    display: flex;
  }
}