/* ==========================================================================
   PRODUCTION READY HOME DECK ENGINE
   ========================================================================== */

:root {
  --bg: #f4f1ea;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: #fffdfa;
  --surface-dark: #1b2b34;
  --text: #182329;
  --muted: #51616a;
  --line: rgba(24, 35, 41, 0.12);
  --accent: #0f766e;
  --accent-dark: #0a5b55;
  --warm: #c26d3c;
  --connected-surface: rgba(225, 244, 232, 0.95);
  --shadow: 0 18px 50px rgba(24, 35, 41, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(194, 109, 60, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 24%),
    linear-gradient(180deg, #f4f1ea, #faf9f6);
  color: var(--text);
}

.site-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 242, 0.78);
  border-bottom: 1px solid rgba(24, 35, 41, 0.08);
}

.nav-shell {
  width: min(var(--container), calc(100% - 2rem));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav a,
.nav-contact,
.footer-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 0.35rem;
}

.site-nav a:hover,
.nav-contact:hover,
.footer-nav a:hover,
.site-nav a.active,
.nav-contact.active,
.footer-nav a.active {
  color: var(--text);
}

.site-nav a::after,
.nav-contact::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.18rem;
  border-radius: 999px;
  background: #e4c86a;
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a.active,
.nav-contact.active,
.footer-nav a.active {
  font-weight: 700;
}

.site-nav a.active::after,
.nav-contact.active::after,
.footer-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  color: var(--text);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-footer {
  margin-top: auto;
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid rgba(24, 35, 41, 0.08);
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 242, 0.82);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.5rem;
}

.footer-copy {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 32rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-react-main,
.licensing-main,
.why-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.home-react-main {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
}

body:not([data-page="home"]):not([data-page="licensing"]) .site-shell > main {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
}

body:not([data-page="home"]):not([data-page="licensing"]) .site-shell > main > *:first-child {
  margin: auto auto !important;
}

/* Master Layout Framework */
.home-deck-shell {
  width: 100% !important;
  max-width: 850px !important;   
  margin: auto auto !important;
  padding: 0 !important;
}

.home-deck-stage {
  position: relative;
  width: 100% !important;
  height: clamp(500px, 68vh, 620px) !important;
}

.home-deck-panel {
  position: absolute;
  inset: 0;
  padding: clamp(1.2rem, 2vw, 2rem) clamp(1.5rem, 2.5vw, 2.5rem) clamp(1.5rem, 2.5vw, 2.5rem) !important;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 28px 80px rgba(24, 35, 41, 0.14),
    0 0 0 1px rgba(24, 35, 41, 0.03);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}

.home-deck-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.home-deck-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Panel Background Variants */
.home-deck-panel.panel-hero {
  background: radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 26%), linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 249, 0.92));
}
.home-deck-panel.panel-copy, .home-deck-panel.panel-bullets, .home-deck-panel.panel-privacy, .home-deck-panel.panel-steps, .home-deck-panel.panel-cards {
  background: radial-gradient(circle at bottom left, rgba(194, 109, 60, 0.08), transparent 24%), linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 247, 239, 0.9));
}
.home-deck-panel.panel-cta {
  background: radial-gradient(circle at top left, rgba(194, 109, 60, 0.12), transparent 22%), linear-gradient(180deg, rgba(24, 35, 41, 0.96), rgba(33, 54, 60, 0.94));
  color: #f7f3ea;
}

/* Modern Grid Flow Content Engine */
.home-deck-hero {
  display: grid !important;
  grid-template-columns: 1fr 280px !important;
  grid-template-rows: 1fr auto !important;
  gap: 1.5rem 2rem !important;
  flex-grow: 1 !important;
  min-height: 0 !important;
  height: 100% !important;
}

.home-deck-hero-flow {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  overflow-y: auto !important;
  padding-right: 0.5rem;
}

.home-deck-hero-card {
  grid-column: 2 !important;
  grid-row: 1 !important;
  background: var(--connected-surface) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important; 
  border-radius: 16px !important; 
  padding: 1.5rem !important; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  align-self: start !important;
}

.home-deck-hero-flow h1 {
  margin: 0 !important;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
}

.home-deck-hero-flow .lead {
  margin: 0 !important;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem) !important;
  line-height: 1.5 !important;
}

.home-deck-actions {
  grid-column: 1 / span 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  gap: 1rem !important;
  margin: 1.5rem 0 0 !important;
  padding-top: 0.5rem !important;
  border-top: 2px solid rgba(24, 35, 41, 0.08) !important;
}

/* Other Shared Panel Structures */
.home-deck-copy-layout { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: 2rem; align-items: start; min-height: 100%; }
.home-deck-copy-layout-privacy { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.home-deck-heading { display: grid; gap: 0.9rem; }
.home-deck-heading h2, .home-deck-cta h2 { font-size: clamp(2.35rem, 4.5vw, 4rem); line-height: 0.98; letter-spacing: -0.05em; }
.home-deck-heading-center { justify-items: center; text-align: center; }
.home-deck-copy { display: grid; gap: 1rem; }
.home-deck-flow { display: grid; gap: 1.4rem; min-height: 100%; }
.home-deck-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.home-deck-step, .home-deck-card-block { padding: 1.35rem; border-radius: 22px; background: rgba(255, 255, 255, 0.82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 14px 35px rgba(24, 35, 41, 0.06); }
.home-deck-card-block-connected {
  background: var(--connected-surface);
}
.home-deck-card-block-individual {
  background: rgba(227, 239, 249, 0.95);
}
.home-deck-step {
  align-self: stretch;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1.1rem;
  min-height: 17.5rem;
}
.home-deck-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; margin-top: 0.5cm; }
.home-deck-bullets { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.75rem; }
.home-deck-privacy { display: grid; grid-template-columns: minmax(380px, 1.12fr) minmax(0, 0.78fr); gap: 1.2rem; }
.home-deck-privacy .home-deck-copy { gap: 0.55rem; }
.home-deck-table { overflow: hidden; border-radius: 24px; background: rgba(225, 244, 232, 0.95); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76), 0 16px 40px rgba(24, 35, 41, 0.06); }
.home-deck-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; padding: 1rem 1.2rem; }
.home-deck-row + .home-deck-row { border-top: 1px solid rgba(24, 35, 41, 0.08); }
.home-deck-row strong { color: var(--text); }
.home-deck-row span,
.home-deck-row strong { white-space: nowrap; }
.fine-print {
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--muted);
}
.home-deck-hero-cta {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding-top: 1.5cm;
}

.home-deck-cta-copy {
  max-width: 42rem;
}

.home-deck-cta-copy h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.home-deck-cta-copy .home-deck-copy {
  margin-top: 1rem;
}

.home-deck-cta-copy .home-deck-copy p {
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.55;
}

.home-deck-panel.panel-cta .eyebrow,
.home-deck-panel.panel-cta h2,
.home-deck-panel.panel-cta p {
  color: #f7f3ea;
}

.home-deck-card-footer {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 2px solid rgba(24, 35, 41, 0.08);
}

.home-deck-card-footer .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.home-deck-card-footer .button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #f7f3ea;
}

.home-deck-card-footer .button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.home-deck-card-footer-inverse {
  border-top-color: rgba(247, 243, 234, 0.18);
}

.home-deck-card-footer-inverse .button-primary {
  background: #f7f3ea;
  border-color: #f7f3ea;
  color: var(--text);
}

.home-deck-card-footer-inverse .button-secondary {
  border-color: rgba(247, 243, 234, 0.42);
  background: rgba(247, 243, 234, 0.1);
  color: #f7f3ea;
}

/* Deck Navigation Controller Bar */
.home-deck-nav { display: grid; grid-template-columns: 3.25rem 18rem 3.25rem; align-items: center; justify-content: center; column-gap: 1rem; margin-top: 1.4rem; }
.home-deck-nav button { width: 3.25rem; height: 3.25rem; border: 1px solid rgba(24, 35, 41, 0.12); border-radius: 999px; background: rgba(255, 255, 255, 0.72); color: var(--text); font: inherit; font-size: 1.35rem; line-height: 1; }
.home-deck-status { width: 100%; padding: 0.7rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.62); text-align: center; }
.home-deck-status span { display: block; color: var(--accent-dark); font-family: "Space Grotesk", sans-serif; font-size: 0.82rem; letter-spacing: 0.14em; }
.home-deck-status p { margin: 0.2rem 0 0; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Slide Transitions CSS Keyframes */
.home-deck-panel.forward.is-active { animation: home-deck-enter-from-right 0.42s ease both; }
.home-deck-panel.backward.is-active { animation: home-deck-enter-from-left 0.42s ease both; }
.home-deck-panel.forward.is-leaving { animation: home-deck-exit-to-left 0.42s ease both; }
.home-deck-panel.backward.is-leaving { animation: home-deck-exit-to-right 0.42s ease both; }

@keyframes home-deck-enter-from-right { from { opacity: 0; transform: translateX(8%) scale(0.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes home-deck-enter-from-left { from { opacity: 0; transform: translateX(-8%) scale(0.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes home-deck-exit-to-left { from { opacity: 1; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(-8%) scale(0.985); } }
@keyframes home-deck-exit-to-right { from { opacity: 1; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(8%) scale(0.985); } }

/* Mobile Resizing Layout Adaptations */
@media (max-width: 760px) {
  .nav-shell {
    position: relative;
  }
  .nav-toggle {
    display: block;
  }
  .nav-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 253, 250, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-panel.open {
    display: flex;
  }
  .site-nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-grid,
  .footer-nav {
    flex-direction: column;
  }
  .site-nav a,
  .nav-contact {
    padding: 0.25rem 0;
  }
  .home-deck-stage {
    height: auto !important;
  }
  .home-deck-panel {
    position: relative !important; 
    gap: 1.5rem !important;
  }
  .home-deck-hero {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 1rem !important;
  }
  .home-deck-hero-flow {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .home-deck-hero-card {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }
  .home-deck-actions {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
  .home-react-main {
    padding: 1rem 0 1.5rem;
  }
  .home-deck-shell {
    margin: 1rem auto !important;
  }
  .home-deck-nav {
    grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
  }
  .home-deck-card-footer {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   SHORT SCREEN HEIGHT OPTIMIZATIONS
   ========================================================================== */

@media (max-height: 650px) {
  /* 1. Shrink the main container stage so it sits comfortably in view */
  .home-deck-stage {
    height: 70vh !important;
    min-height: 320px !important;
  }

  /* 2. Reduce padding inside the panel to save vertical room */
  .home-deck-panel {
    padding: 1.25rem 1.5rem !important;
  }

  /* 3. Pull the right card down or allow text to use the full width if needed,
     and shrink the giant title font size so it doesn't wrap into 4 lines */
  .home-deck-hero-flow h1 {
    font-size: clamp(1.4rem, 5vh, 1.8rem) !important;
    line-height: 1.1 !important;
  }

  /* 4. Make the lead description text slightly smaller and tighter */
  .home-deck-hero-flow .lead {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-top: 0.25rem !important;
  }

  /* 5. Shrink padding on the core message card so it takes up less space */
  .home-deck-hero-card {
    padding: 1rem !important;
    font-size: 0.85rem !important;
  }

  /* 6. Tighten the bottom actions section */
  .home-deck-actions {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
  }
}

/* ==========================================================================
   EMPTY SPACE WRAPPING OVERRIDES
   ========================================================================== */

/* 1. Turn off the two-column grid layout to allow text to flow naturally */
.home-deck-hero {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* 2. Float the card to the right so the text fills the space underneath it */
.home-deck-hero-card {
  float: right !important;
  clear: none !important;
  width: 280px !important;
  margin: 0 0 1rem 1.5rem !important;
}

/* 3. Ensure text elements treat the card as an inline boundary */
.home-deck-hero-flow {
  display: block !important;
}

/* 4. Force the action buttons to sit cleanly below everything else */
.home-deck-actions {
  clear: both !important;
  display: flex !important;
}

/* ==========================================================================
   LICENSING PAGE
   ========================================================================== */

body[data-page="licensing"] {
  min-height: 100vh;
}

.licensing-main {
  padding: 1.5rem 0 3rem;
}

.licensing-deck-shell {
  width: min(calc(1080px + 4cm), calc(100% - 2rem));
  margin: 0 auto;
}

.licensing-deck-stage {
  position: relative;
  min-height: calc(700px - 3cm);
  height: clamp(calc(700px - 3cm), calc(82vh - 3cm), calc(860px - 3cm));
}

.licensing-deck-panel {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 28px 80px rgba(24, 35, 41, 0.14),
    0 0 0 1px rgba(24, 35, 41, 0.03);
  backdrop-filter: blur(14px);
  background: radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 24%), linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(251, 247, 239, 0.93));
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.licensing-deck-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.licensing-deck-panel.forward.is-active { animation: home-deck-enter-from-right 0.42s ease both; }
.licensing-deck-panel.backward.is-active { animation: home-deck-enter-from-left 0.42s ease both; }
.licensing-deck-panel.forward.is-leaving { animation: home-deck-exit-to-left 0.42s ease both; }
.licensing-deck-panel.backward.is-leaving { animation: home-deck-exit-to-right 0.42s ease both; }

.licensing-deck-panel-comparison {
  left: 4cm;
  right: 4cm;
}

.licensing-overview,
.licensing-comparison-view {
  display: grid;
  gap: 1.2rem;
  min-height: 100%;
  align-content: start;
  padding-top: 0.75rem;
}

.licensing-intro-card,
.licensing-edition-card,
.licensing-comparison-shell {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 14px 35px rgba(24, 35, 41, 0.06);
}

.licensing-intro-card {
  padding: 1.5rem 1.6rem;
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 1.5rem;
  align-items: start;
}

.licensing-intro-card h1,
.licensing-comparison-heading h1 {
  margin: 0;
}

.licensing-intro-copy,
.licensing-edition-card,
.licensing-comparison-view .fine-print {
  color: var(--muted);
}

.licensing-intro-copy {
  display: grid;
  gap: 0.9rem;
  max-width: 72ch;
}

.licensing-intro-copy p,
.licensing-edition-card p,
.licensing-feature-list,
.licensing-comparison-table {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.licensing-edition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  width: calc(100% - 0.6cm);
  margin: 0 auto;
}

.licensing-edition-card {
  display: block;
  padding: 1.45rem;
  background: rgba(255, 255, 255, 0.84);
}

.licensing-edition-body {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  clear: both;
  padding-top: 1.1rem;
}

.licensing-edition-card-individual {
  background: rgba(227, 239, 249, 0.95);
}

.licensing-edition-card-connected {
  background: rgba(225, 244, 232, 0.95);
}

.licensing-edition-card-enterprise {
  background: rgba(248, 237, 228, 0.95);
}

.licensing-card-label {
  margin: 0;
  padding-top: 0.25rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.licensing-edition-card h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
}

.licensing-feature-list {
  padding-left: 1.85rem;
  display: grid;
  gap: 0.45rem;
}

.licensing-edition-action {
  float: right;
  margin: calc(-0.1rem - 0.35cm) 0 0.9rem 1rem;
}

.licensing-price-button {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  border: 1px solid rgba(24, 35, 41, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.licensing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.licensing-button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.licensing-comparison-shell {
  overflow: auto;
  background: rgba(255, 255, 255, 0.86);
}

.licensing-comparison-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.licensing-comparison-table th,
.licensing-comparison-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(24, 35, 41, 0.08);
}

.licensing-comparison-table th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  background: rgba(250, 246, 238, 0.8);
}

.licensing-comparison-table td:first-child,
.licensing-comparison-table th:first-child {
  min-width: 220px;
}

.licensing-table-mark {
  text-align: center !important;
  width: 120px;
}

.licensing-table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.licensing-table-icon-yes {
  color: #0a5b55;
  background: rgba(225, 244, 232, 0.95);
}

.licensing-table-icon-no {
  color: #8f4b2b;
  background: rgba(248, 237, 228, 0.95);
}

.licensing-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;
}

@media (max-width: 980px) {
  .licensing-deck-stage {
    min-height: 920px;
    height: auto;
  }

  .licensing-deck-panel {
    position: relative;
  }

  .licensing-deck-panel-comparison {
    left: 0;
    right: 0;
  }

  .licensing-edition-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .licensing-main {
    padding-top: 1rem;
  }

  .licensing-deck-shell {
    width: calc(100% - 1rem);
  }

  .licensing-deck-stage {
    min-height: auto;
  }

  .licensing-deck-panel {
    padding: 1rem;
  }

  .licensing-intro-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .licensing-edition-action {
    float: none;
    margin: 0 0 0.9rem;
  }

  .licensing-edition-body {
    clear: none;
    padding-top: 0.9rem;
  }

  .licensing-comparison-table th,
  .licensing-comparison-table td {
    padding: 0.8rem 0.85rem;
  }
}

/* ==========================================================================
   WHY PAGE
   ========================================================================== */

.download-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.download-shell {
  width: min(850px, calc(100% - 2rem));
  margin: 0 auto;
  transform: translateY(-1cm);
}

.download-panel {
  display: grid;
  gap: 1.5rem;
  min-height: clamp(500px, 68vh, 620px);
  padding: 1.6rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 14px 35px rgba(24, 35, 41, 0.06);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(251, 247, 239, 0.93));
}

.download-copy {
  display: grid;
  gap: 1rem;
  max-width: 54rem;
}

.download-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.download-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.5;
}

.download-lead {
  color: var(--text) !important;
  font-weight: 600;
}

.download-actions {
  display: grid;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.6rem;
}

.button-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.download-platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.download-platform-button {
  position: relative;
  display: grid;
  gap: 0.2rem;
  min-width: 200px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 2px solid rgba(24, 35, 41, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(24, 35, 41, 0.05);
}

.download-platform-button span {
  font-weight: 700;
}

.download-platform-button small {
  color: var(--muted);
}

.download-platform-check {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(194, 109, 60, 0.14);
  color: #8f4b2b;
  font-size: 0.9rem;
  font-weight: 700;
}

.download-platform-button-disabled {
  text-align: left;
  cursor: not-allowed;
  opacity: 0.72;
}

.download-platform-button-recommended {
  border-color: rgba(194, 109, 60, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(194, 109, 60, 0.15),
    0 12px 26px rgba(24, 35, 41, 0.08);
}

.why-story-shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}

.why-fixed-hero,
.why-carousel-card,
.why-contact-hero {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 14px 35px rgba(24, 35, 41, 0.06);
  background: rgba(255, 255, 255, 0.86);
}

.why-fixed-hero,
.why-carousel-card {
  padding: 1.5rem 1.6rem;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(251, 247, 239, 0.93));
}

.why-hero-copy {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 56rem;
}

.why-hero-copy h1,
.why-carousel-copy h2,
.why-contact-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.why-hero-copy p,
.why-carousel-copy p,
.why-contact-copy p,
.why-contact-list p {
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--muted);
  line-height: 1.5;
}

.why-carousel-shell {
  display: grid;
  gap: 1rem;
  width: calc(100% - 6cm);
  margin: 0 auto;
}

.why-carousel-stage {
  position: relative;
  height: clamp(260px, 32vh, 340px);
}

.why-carousel-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.why-carousel-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.why-carousel-panel.forward.is-active { animation: home-deck-enter-from-right 0.42s ease both; }
.why-carousel-panel.backward.is-active { animation: home-deck-enter-from-left 0.42s ease both; }
.why-carousel-panel.forward.is-leaving { animation: home-deck-exit-to-left 0.42s ease both; }
.why-carousel-panel.backward.is-leaving { animation: home-deck-exit-to-right 0.42s ease both; }

.why-carousel-card {
  height: 100%;
  overflow: auto;
}

.why-carousel-copy {
  display: grid;
  gap: 1rem;
  min-height: 100%;
  align-content: start;
  max-width: 52rem;
}

.why-carousel-nav .home-deck-status span {
  font-size: 0.95rem;
}

.why-contact-shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto 2rem;
}

.why-contact-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 2rem;
  align-items: start;
  padding: 1.6rem;
}

@media (max-width: 980px) {
  .why-carousel-stage {
    height: 360px;
  }
}

@media (max-width: 760px) {
  body:not([data-page="home"]):not([data-page="licensing"]) .site-shell > main {
    padding: 1rem 0 1.5rem;
  }

  body:not([data-page="home"]):not([data-page="licensing"]) .site-shell > main > *:first-child {
    margin: 1rem auto !important;
  }

  .download-shell {
    width: calc(100% - 1rem);
    transform: none;
  }

  .download-panel {
    padding: 1rem;
  }

  .why-story-shell {
    width: calc(100% - 1rem);
  }

  .why-fixed-hero,
  .why-carousel-card,
  .why-contact-hero {
    padding: 1rem;
  }

  .why-carousel-stage {
    height: 380px;
  }

  .why-hero-copy h1,
  .why-carousel-copy h2 {
    font-size: clamp(1.4rem, 5vh, 1.8rem);
    line-height: 1.1;
  }

  .why-contact-shell {
    width: calc(100% - 1rem);
    margin-bottom: 1.5rem;
  }

  .why-contact-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.contact-shell {
  width: min(calc(1080px - 8cm), calc(100% - 2rem));
  margin: 0 auto;
  transform: translateY(-4cm);
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 2rem;
  align-items: center;
  padding: 1.6rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 14px 35px rgba(24, 35, 41, 0.06);
  background: rgba(255, 255, 255, 0.86);
}

.contact-hero h1 {
  margin: 0;
}

.contact-copy,
.contact-list {
  display: grid;
  gap: 0.9rem;
}

.contact-copy {
  align-content: center;
}

.contact-copy p,
.contact-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.contact-email-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  min-height: 2rem;
  padding-left: 1.5rem;
}

.contact-email {
  color: var(--text) !important;
  font-weight: 700;
  text-align: left;
}

.contact-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 35, 41, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.contact-copy-status {
  min-width: 3.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .contact-shell {
    width: calc(100% - 1rem);
    transform: none;
  }

  .contact-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
