@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  h1 {
    @apply text-4xl lg:text-7xl font-bold;
  }
  h2 {
    @apply text-2xl lg:text-4xl font-bold;
  }
  h3 {
    @apply text-xl lg:text-3xl font-bold;
  }
  h4 {
    @apply text-xl lg:text-2xl font-bold;
  }
  h5 {
    @apply text-lg font-bold;
  }

  input,
  textarea {
    @apply placeholder-leadwell-medium-gray;
  }

  .devise-auth {
    h1 {
      @apply text-4xl font-black my-1.5;
    }
    h2 {
      @apply text-2xl font-bold my-1.5;
    }
    h3 {
      @apply text-xl font-bold my-1.5;
    }
    h4 {
      @apply text-xl font-bold my-1.5;
    }
    h5 {
      @apply text-lg font-bold;
    }

    label {
      @apply inline-block mt-2 mb-1;
    }

    input {
      &[type='text'],
      &[type='password'],
      &[type='email'] {
        @apply block shadow rounded-md border border-gray-200 outline-none px-3 py-2 mt-1 mb-2 w-full;
      }
    }

    input[type='submit'],
    input[type='button'] {
      @apply text-gray-900 bg-gray-100 rounded-lg py-3 px-5 inline-block font-medium cursor-pointer;
    }

    input[type='submit'] {
      @apply bg-leadwell-saturated-blue text-white;
    }

    .links a,
    .link {
      @apply text-leadwell-medium-blue hover:text-leadwell-dark-blue hover:underline;
    }
  }

  .menu {
    @apply flex flex-col items-stretch py-1.5 px-1 bg-white border border-leadwell-light-gray rounded-md text-leadwell-dark-gray shadow-lg;
  }

  .menu hr {
    @apply h-px mx-1 my-1.5 border-0 bg-leadwell-medium-gray;
  }

  .menu__item,
  .menu__heading {
    @apply px-3 rounded-md min-w-40;
  }

  .menu__group {
    @apply px-3 min-w-40 mt-3 pt-3 pb-0.5 text-sm font-semibold border-t border-t-leadwell-medium-gray;
  }

  .menu__item {
    @apply py-2.5 flex flex-row items-center gap-3 text-base font-semibold has-[:checked]:bg-leadwell-light-blue text-leadwell-dark-blue;
  }

  .menu__heading ~ .menu__item {
    @apply pl-6;
  }

  .menu__item--selected {
    @apply bg-leadwell-medium-gray/50;
  }

  .menu__heading {
    @apply pt-4 pb-0.5 text-lg font-semibold;
  }

  a.menu__item,
  label.menu__item,
  form.menu__item {
    @apply cursor-pointer hover:bg-leadwell-dark-blue hover:text-white hover:no-underline;
  }

  .menu--compact .menu__item {
    @apply py-1.5 text-sm gap-2;
  }

  .menu--compact hr {
    @apply my-1;
  }

  .blog-content {
    h1 {
      @apply text-4xl text-balance lg:text-5xl font-semibold my-5 text-leadwell-dark-blue;
    }

    h2 {
      @apply text-2xl text-balance lg:text-4xl font-semibold my-4 text-leadwell-dark-blue;
    }

    h3 {
      @apply text-xl text-balance lg:text-3xl font-semibold my-3 text-leadwell-dark-blue;
    }

    h4 {
      @apply text-xl text-balance lg:text-2xl font-semibold my-2 text-leadwell-dark-blue;
    }

    h5 {
      @apply text-lg text-balance font-semibold my-2 text-leadwell-dark-blue;
    }

    h5 {
      @apply text-base text-balance font-semibold my-2 text-leadwell-dark-blue;
    }

    p {
      @apply my-2 text-lg;
    }
  }

  .bg-leadwell-gradient {
    @apply text-white  bg-gradient-to-br from-leadwell-saturated-blue to-leadwell-dark-blue hover:bg-gradient-to-br hover:from-leadwell-light-blue hover:to-leadwell-saturated-blue;
  }

  .group-bg-leadwell-gradient {
    @apply text-white  bg-gradient-to-br from-leadwell-saturated-blue to-leadwell-dark-blue group-hover:bg-gradient-to-br group-hover:from-leadwell-light-blue group-hover:to-leadwell-saturated-blue;
  }

  .video-player > iframe {
    @apply max-w-full aspect-video h-auto rounded-lg;
  }

  @keyframes lwFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes lwFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
  @keyframes lwFloatSoft {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
  }
  @keyframes lwPulseDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(93,174,93,0.2); }
    50%      { box-shadow: 0 0 0 6px rgba(93,174,93,0.05); }
  }

  @keyframes lwDriftRight {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(30px); }
  }
  @keyframes lwDriftLeft {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-25px); }
  }

  .lw-drift-a { animation: lwDriftRight 18s ease-in-out infinite; }
  .lw-drift-b { animation: lwDriftLeft 22s ease-in-out infinite; }
  .lw-drift-c { animation: lwDriftRight 26s ease-in-out infinite; }

  .lw-anim { animation: lwFadeUp .9s cubic-bezier(.22,.61,.36,1) both; }
  @keyframes lwMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  .lw-marquee { animation: lwMarquee 35s linear infinite; }

  .lw-float-a { animation: lwFloat 6s ease-in-out infinite; }
  .lw-float-b { animation: lwFloat 7s ease-in-out 0.8s infinite; }
  .lw-float-c { animation: lwFloatSoft 8s ease-in-out 0.35s infinite; }
  .lw-pulse-dot { animation: lwPulseDot 2s ease-in-out infinite; }

  [data-lw-nav] {
    transition: background-color .28s ease, border-color .28s ease, box-shadow .28s ease;
  }

  [data-lw-nav].lw-nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    border-color: rgba(4, 62, 99, 0.12);
    box-shadow: 0 4px 24px rgba(4, 62, 99, 0.06);
  }

  [data-lw-sr] {
    --lw-sr-x: 0px;
    --lw-sr-y: 0px;
    --lw-sr-scale: 1;
    --lw-sr-duration: 900ms;
    --lw-sr-delay: 0ms;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
      opacity var(--lw-sr-duration) cubic-bezier(.22, .61, .36, 1) var(--lw-sr-delay),
      transform var(--lw-sr-duration) cubic-bezier(.22, .61, .36, 1) var(--lw-sr-delay);
  }

  .lw-motion-ready [data-lw-sr]:not(.lw-sr-visible) {
    opacity: 0;
    transform: translate3d(var(--lw-sr-x), var(--lw-sr-y), 0) scale(var(--lw-sr-scale));
  }

  .lw-motion-ready [data-lw-sr].lw-sr-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  [data-lw-plx],
  [data-lw-breathe],
  [data-lw-fade-scroll] {
    will-change: transform, opacity;
  }

  @media (max-width: 767px) {
    .lw-motion-ready [data-lw-sr]:not(.lw-sr-visible) {
      transform: translate3d(0, 22px, 0) scale(var(--lw-sr-scale));
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .lw-anim,
    .lw-drift-a,
    .lw-drift-b,
    .lw-drift-c,
    .lw-float-a,
    .lw-float-b,
    .lw-float-c,
    .lw-marquee,
    .lw-pulse-dot {
      animation: none !important;
    }

    [data-lw-nav],
    [data-lw-sr],
    [data-lw-plx],
    [data-lw-breathe],
    [data-lw-fade-scroll] {
      transform: none !important;
      transition: none !important;
      will-change: auto !important;
    }

    [data-lw-sr],
    [data-lw-fade-scroll] {
      opacity: 1 !important;
    }
  }

  .device-frame {
    @apply relative rounded-2xl overflow-hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #0A2A40 0%, #043E63 100%);
    box-shadow: 0 4px 12px rgba(4,62,99,0.10), 0 24px 60px rgba(4,62,99,0.22);
    outline: 1px solid rgba(4,62,99,0.10);
    outline-offset: -1px;
  }

  /* Calendly injects its popup and loads external CSS from the layout. Keep these
     selectors specific so the host shell gives the iframe enough room. */
  .calendly-overlay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 12px !important;
    overflow: hidden !important;
  }

  body .calendly-overlay .calendly-popup,
  .calendly-overlay .calendly-popup,
  .calendly-popup {
    width: min(1280px, calc(100vw - 24px)) !important;
    min-width: min(1100px, calc(100vw - 24px)) !important;
    max-width: none !important;
    height: min(1040px, calc(100vh - 24px)) !important;
    height: min(1040px, calc(100dvh - 24px)) !important;
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
  }

  body .calendly-overlay .calendly-popup-content,
  .calendly-overlay .calendly-popup-content,
  .calendly-popup-content {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
  }

  body .calendly-overlay .calendly-popup iframe,
  body .calendly-overlay .calendly-popup-content iframe,
  .calendly-overlay .calendly-popup iframe,
  .calendly-overlay .calendly-popup-content iframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 100% !important;
  }

  @media (max-width: 640px) {
    .calendly-overlay {
      align-items: flex-end !important;
      padding: 48px 0 0 !important;
    }

    body .calendly-overlay .calendly-popup,
    .calendly-overlay .calendly-popup,
    .calendly-popup {
      position: fixed !important;
      top: 48px !important;
      right: 0 !important;
      bottom: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      min-width: 0 !important;
      height: calc(100vh - 48px) !important;
      height: calc(100dvh - 48px) !important;
      max-height: calc(100vh - 48px) !important;
      max-height: calc(100dvh - 48px) !important;
      margin: 0 !important;
      transform: none !important;
    }

    .calendly-popup-close {
      position: fixed !important;
      top: 14px !important;
      right: 14px !important;
      z-index: 2147483647 !important;
      width: 24px !important;
      height: 24px !important;
    }
  }
}
:root {
  --leadwell-white: oklch(100% 0 0);
  --leadwell-light-gray: oklch(96.92% 0.003 247.86);
  --leadwell-medium-gray: oklch(87.3% 0.0025 242.854);
  --leadwell-dark-gray: oklch(32.11% 0 0);

  --leadwell-dark-blue: oklch(35.08% 0.084 244.29);
  --leadwell-medium-blue: oklch(65.04% 0.074 220.6);
  --leadwell-saturated-blue: oklch(69.67% 0.1 214.98);
  --leadwell-faded-blue: oklch(69.08% 0.037 241.7);

  --theme-text-primary: var(--leadwell-dark-gray);
  --theme-text-inverted: var(--leadwell-white);

  --theme-background-primary: var(--leadwell-white);
  --theme-background-secondary: var(--leadwell-light-gray);
  --theme-background-inverted: var(--leadwell-dark-blue);
}

body {
  background-color: var(--theme-background-secondary);
  color: var(--theme-text-primary);
}

a {
  color: var(--leadwell-dark-blue);

  &:hover {
    text-decoration: underline;
  }
}

[popover] {
  padding: 0;
  background: transparent;
  overflow: visible;
}
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition:
    background-color 0.218s,
    border-color 0.218s,
    box-shadow 0.218s;
  transition:
    background-color 0.218s,
    border-color 0.218s,
    box-shadow 0.218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity 0.218s;
  transition: opacity 0.218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow:
    0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  box-shadow:
    0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Fix nav for sticky poptin */
body:has(.poptin-popup) nav {
  top: 50px !important;
}

/* Floating fre 1:1 coaching button */
.floating-coaching-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border-radius: 0.5rem;
}

/* Prevent horizontal page scroll from wide tables */
#content {
  /* Use clip to avoid creating a scroll container that can break sticky/fixed descendants. */
  overflow-x: clip;
}

.header-checkin-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background-image: linear-gradient(to right, #45ADC4, #589AAF);
  box-shadow:
    0 4px 15px rgba(69, 173, 196, 0.25),
    0 0 16px rgba(69, 173, 196, 0.16);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease,
    background-image 0.3s ease;
}

.header-checkin-cta:hover {
  transform: translateY(-2px);
  color: #fff !important;
  text-decoration: none !important;
  background-image: linear-gradient(to right, #4fbdd6, #45ADC4);
  box-shadow:
    0 6px 24px rgba(69, 173, 196, 0.40),
    0 0 22px rgba(69, 173, 196, 0.24);
  filter: brightness(1.05);
}

.header-checkin-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.header-checkin-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-checkin-cta {
    gap: 0.5rem;
  }

  .header-checkin-cta__icon {
    transform: translateY(-0.5px);
  }
}

.header-faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.header-faq-cta:hover {
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.header-faq-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}
