/* Landing Page Styles */
@layer components {
  /* Landing Page Container */
  .landing {
    min-height: 100vh;
    background: var(--color-bg-white);
    overflow-x: hidden;
  }

  /* Container - Consistent max-width and padding */
  .landing_container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--main-padding);
  }

  /* ===== NAVBAR ===== */
  .landing_navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--main-padding);
    max-width: 1100px;
    margin: 0 auto;
  }


  .landing_nav_links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .landing_nav_link {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 100ms ease-out;
  }

  .landing_nav_link:hover {
    color: var(--color-text);
  }

  /* ===== HERO SECTION ===== */
  .landing_hero {
    padding: 3rem 0 5rem;
    text-align: center;
    background: linear-gradient(
      180deg,
      var(--color-bg-white) 0%,
      var(--color-bg-light) 100%
    );
  }

  .landing_hero_layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
  }

  .landing_audience {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .landing_title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-sm);
    color: var(--color-text);
    margin: 0 0 1.5rem 0;
    max-width: 18ch;
    margin-inline: auto;
  }

  .landing_subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    margin: 0 0 1.5rem 0;
    max-width: 42ch;
    margin-inline: auto;
    line-height: var(--line-height-lg);
  }

  .landing_hero_facts {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;

    li {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: var(--text-sm);
      font-weight: var(--font-weight-medium);
      color: var(--color-text);
    }

    svg {
      width: 16px;
      height: 16px;
      color: var(--color-success-text);
      flex-shrink: 0;
    }
  }

  .landing_hero_visual {
    display: flex;
    justify-content: center;
  }

  /* The stage reserves the phone's visual footprint. The phone inside is
     built at 2x size and scaled back down inside the transform chain so the
     browser rasterizes the tilted layer at double resolution — without this,
     3D-transformed layers raster at layout scale and come out blurry.
     All px values inside the phone are therefore 2x their visual size.
     Colors are theme-independent: phone hardware stays dark in both themes. */
  .landing_hero_stage {
    /* Height derived from the screenshot's 390x844 ratio plus frame and
       status strip, so the image renders uncropped */
    width: min(260px, 66vw);
    aspect-ratio: 1040 / 2275;
    position: relative;
  }

  .landing_hero_phone {
    position: absolute;
    width: 200%;
    height: 200%;
    transform: translate(-25%, -25%) scale(0.5) perspective(2800px)
      rotateY(-17deg) rotateX(5deg) rotateZ(1deg);
    padding: 5px;
    border-radius: 88px;
    /* Titanium rail: brushed-metal sweep with specular highlights */
    background: linear-gradient(
      150deg,
      #83888f 0%,
      #2b2e33 20%,
      #17191d 38%,
      #63686f 55%,
      #212429 74%,
      #787d84 100%
    );
    box-shadow:
      0 0 4px rgba(0, 0, 0, 0.45),
      48px 100px 140px -50px rgba(13, 16, 22, 0.5),
      16px 36px 70px -24px rgba(13, 16, 22, 0.35);
  }

  /* Side buttons: volume pair on the left (second one via box-shadow copy),
     power on the right */
  .landing_hero_phone::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 24%;
    width: 7px;
    height: 68px;
    border-radius: 5px;
    background: linear-gradient(90deg, #55595f, #17191d);
    box-shadow: 0 96px 0 0 #26292d;
  }

  .landing_hero_phone::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 30%;
    width: 7px;
    height: 110px;
    border-radius: 5px;
    background: linear-gradient(90deg, #17191d, #55595f);
  }

  .landing_hero_phone_body {
    height: 100%;
    padding: 12px;
    border-radius: 84px;
    background: #050607;
    box-shadow:
      inset 0 0 2px 1px rgba(255, 255, 255, 0.14),
      inset 0 0 14px rgba(255, 255, 255, 0.04);
  }

  .landing_hero_phone_screen {
    position: relative;
    height: 100%;
    border-radius: 72px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Matches the screenshot's own header background so the status strip
       reads as part of the app screen */
    background: #ffffff;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.18);
  }

  .landing_hero_phone_statusbar {
    flex-shrink: 0;
    height: 64px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .landing_hero_phone_island {
    width: 148px;
    height: 44px;
    margin-bottom: 4px;
    border-radius: 22px;
    background: #050607;
  }

  .landing_hero_screenshot {
    display: block;
    flex: 1;
    width: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: top;
  }

  /* Diagonal glass reflection across the screen */
  .landing_hero_phone_glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      115deg,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0.09) 47%,
      rgba(255, 255, 255, 0.02) 56%,
      rgba(255, 255, 255, 0) 62%
    );
  }

  @media (min-width: 880px) {
    .landing_hero {
      text-align: left;
    }

    .landing_hero_layout {
      grid-template-columns: 1.05fr 0.95fr;
      gap: 4rem;
    }

    .landing_hero_copy {
      .landing_title,
      .landing_subtitle {
        margin-inline: 0;
      }

      .newsletter_form {
        margin-inline: 0;
      }
    }

    .landing_hero_facts {
      align-items: flex-start;
    }
  }

  /* ===== SECTION BASE ===== */
  .landing_section {
    padding: 4rem 0;
    scroll-margin-top: 1rem;
  }

  .landing_section_title {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
  }

  .landing_section_subtitle {
    font-size: var(--text-base);
    color: var(--color-text-light);
    margin: 0 0 2rem 0;
  }

  /* ===== PROBLEM SECTION ===== */
  .landing_problem {
    background: var(--color-bg-light);
  }

  .landing_problem .landing_container {
    max-width: 720px;
  }

  .landing_problem_body {
    font-size: var(--text-lg);
    color: var(--color-text);
    line-height: var(--line-height-xl);
    max-width: 60ch;
    margin: 0;
  }

  .landing_problem_body + .landing_problem_body {
    margin-top: 1rem;
  }

  /* ===== FOUNDATION SECTION ===== */
  .landing_foundation {
    background: var(--color-bg-white);
    text-align: center;
  }

  .landing_foundation_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .landing_foundation_item {
    padding: 1.5rem;
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    text-align: left;
  }

  .landing_foundation_icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin-bottom: 1rem;
  }

  .landing_foundation_icon svg {
    width: 100%;
    height: 100%;
  }

  .landing_foundation_item h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
  }

  .landing_foundation_item p {
    color: var(--color-text-light);
    margin: 0;
    line-height: var(--line-height-lg);
    font-size: var(--text-sm);
  }

  /* ===== BOOKING LINK SECTION ===== */
  .landing_booking_link {
    background: var(--color-bg-light);
  }

  /* ===== SPLIT LAYOUT ===== */
  .landing_split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
  }

  @media (min-width: 768px) {
    .landing_split {
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
    }

    .landing_split.reverse .landing_animation {
      order: -1;
    }
  }

  /* ===== BENEFITS LIST ===== */
  .landing_benefits {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .landing_benefits li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    font-size: var(--text-base);
    line-height: var(--line-height-lg);
    color: var(--color-text);
  }

  .landing_benefits li:last-child {
    margin-bottom: 0;
  }

  .landing_benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
  }

  /* ===== ANIMATION CONTAINERS ===== */
  .landing_animation {
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  /* ===== MOBILE SERVICES SECTION ===== */
  .landing_mobile_services {
    background: var(--color-bg-white);
  }

  .landing_how_it_works {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .landing_how_step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--text-base);
    color: var(--color-text);
  }

  .landing_how_step_number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* ===== LOCATION SERVICES SECTION ===== */
  .landing_location_services {
    background: var(--color-bg-light);
  }

  .landing_location_condensed {
    text-align: center;
  }

  .landing_location_condensed .landing_section_title {
    margin-bottom: 0.25rem;
  }

  .landing_location_condensed .landing_section_subtitle {
    margin-bottom: 1rem;
  }

  .landing_location_benefit {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: var(--line-height-xl);
    max-width: 50ch;
    margin: 0 auto;
  }

  /* ===== CUSTOMER CARE SECTION ===== */
  .landing_customer_care {
    background: var(--color-bg-white);
  }

  .customer_care_visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .customer_care_svg {
    width: 100%;
    height: auto;
    max-width: 280px;
  }

  .customer_care_svg text {
    font-family: var(--font-sans);
  }

  /* ===== FINANCES SECTION ===== */
  .landing_finances {
    background: var(--color-bg-light);
  }

  .finances_visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .finances_svg {
    width: 100%;
    height: auto;
    max-width: 300px;
  }

  .finances_svg text {
    font-family: var(--font-sans);
  }

  /* ===== SHARED FEATURES SECTION ===== */
  .landing_shared {
    background: var(--color-bg-white);
    text-align: center;
  }

  .landing_features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .landing_feature {
    padding: 1.5rem;
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    text-align: left;
  }

  .landing_feature_icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin-bottom: 1rem;
  }

  .landing_feature_icon svg {
    width: 100%;
    height: 100%;
  }

  .landing_feature h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
  }

  .landing_feature p {
    color: var(--color-text-light);
    margin: 0;
    line-height: var(--line-height-lg);
    font-size: var(--text-sm);
  }

  /* ===== FEATURES TABLE SECTION ===== */
  .landing_features_table {
    background: var(--color-bg-light);
    text-align: center;
  }

  .features_table_wrapper {
    overflow-x: auto;
    margin-top: 2rem;
  }

  .features_table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: var(--text-sm);
  }

  .features_table th,
  .features_table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .features_table thead th {
    background: var(--color-bg-white);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .features_table tbody tr:hover {
    background: var(--color-bg-white);
  }

  .features_table_name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
  }

  .features_table_check {
    text-align: center;
    width: 100px;
  }

  .features_table_yes {
    color: var(--color-accent-green);
    font-weight: var(--font-weight-bold);
    font-size: var(--text-lg);
  }

  .features_table_no {
    color: var(--color-text-light);
  }

  .features_table_benefit {
    color: var(--color-text-light);
  }

  @media (max-width: 767px) {
    .features_table th,
    .features_table td {
      padding: 0.75rem 0.5rem;
      font-size: var(--text-xs);
    }

    .features_table_check {
      width: 60px;
    }

    .features_table thead th {
      font-size: 9px;
    }
  }

  /* ===== FAQ SECTION ===== */
  .landing_faq {
    background: var(--color-bg-white);
    text-align: center;
  }

  .landing_faq_list {
    max-width: 720px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
  }

  .landing_faq_item {
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);

    summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem 1.25rem;
      font-size: var(--text-base);
      font-weight: var(--font-weight-semibold);
      color: var(--color-text);
      cursor: pointer;
      list-style: none;

      &::-webkit-details-marker {
        display: none;
      }

      svg {
        width: 16px;
        height: 16px;
        color: var(--color-text-light);
        flex-shrink: 0;
        transition: transform 150ms ease-out;
      }
    }

    &[open] summary svg {
      transform: rotate(180deg);
    }

    p {
      margin: 0;
      padding: 0 1.25rem 1rem;
      font-size: var(--text-base);
      color: var(--color-text-light);
      line-height: var(--line-height-lg);
    }
  }

  /* ===== CTA SECTION ===== */
  .landing_cta {
    /* Theme-independent: the section stays crimson in both themes, so these
       must not follow the theme-inverted gray scale */
    --cta-ink: #212529;
    --cta-ink-hover: #383d41;
    --cta-placeholder: #6c757d;

    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    text-align: center;
  }

  .landing_cta .landing_section_title,
  .landing_cta .landing_section_subtitle {
    color: white;
  }

  .landing_cta .newsletter_input {
    background: white;
    color: var(--cta-ink);
    border-color: white;
  }

  .landing_cta .newsletter_input::placeholder {
    color: var(--cta-placeholder);
  }

  .landing_cta .newsletter_submit {
    background: var(--cta-ink);
    border-color: var(--cta-ink);
    color: white;
  }

  .landing_cta .newsletter_submit:hover {
    background: var(--cta-ink-hover);
    border-color: var(--cta-ink-hover);
  }

  .landing_cta .newsletter_disclaimer {
    color: rgba(255, 255, 255, 0.8);
  }

  .landing_cta .newsletter_success {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
  }

  .landing_cta_quick_setup {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
  }

  .landing_cta_separator {
    opacity: 0.5;
  }

  /* ===== NEWSLETTER FORM ===== */
  .newsletter_form {
    max-width: 500px;
    margin: 0 auto;
  }

  .newsletter_form_row {
    display: flex;
    gap: 0.5rem;
  }

  .newsletter_fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
  }

  .newsletter_input {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--text-base);
    font-family: var(--font-sans);
    border: 2px solid var(--color-border);
    background: var(--color-bg-white);
    color: var(--color-text);
    transition: border-color 100ms ease-out;
  }

  .newsletter_input:focus {
    outline: none;
    border-color: var(--color-primary);
  }

  .newsletter_input::placeholder {
    color: var(--color-text-light);
  }

  .newsletter_select {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--text-base);
    font-family: var(--font-sans);
    border: 2px solid var(--color-border);
    background: var(--color-bg-white);
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 100ms ease-out;
  }

  .newsletter_select:focus {
    outline: none;
    border-color: var(--color-primary);
  }

  .newsletter_submit {
    white-space: nowrap;
    flex-shrink: 0;
    align-self: stretch;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .newsletter_disclaimer {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    margin: 0.75rem 0 0 0;
    text-align: center;
  }

  .newsletter_success {
    padding: 1.25rem;
    background: var(--color-success);
    border: 2px solid var(--color-success-border);
    color: var(--color-success-text);
    text-align: center;
    font-weight: var(--font-weight-semibold);
  }

  .newsletter_error {
    font-size: var(--text-xs);
    color: var(--color-danger);
    margin: 0.5rem 0 0 0;
    text-align: center;
  }

  @media (max-width: 480px) {
    .newsletter_form_row {
      flex-direction: column;
    }

    .newsletter_submit {
      padding: 14px 16px;
    }
  }

  /* ===== CONFIRMATION PAGES ===== */
  .confirmation_page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--main-padding);
    background: var(--color-bg-light);
  }

  .confirmation_content {
    text-align: center;
    max-width: 400px;

    h1 {
      font-size: var(--text-xl);
      margin-bottom: 1rem;
      color: var(--color-text);
    }

    p {
      color: var(--color-text-light);
      margin-bottom: 2rem;
    }
  }

  /* ===== LEGAL PAGES ===== */
  .legal_page {
    padding: 4rem 0;
    background: var(--color-bg-white);
    min-height: calc(100vh - 200px);
  }

  .legal_title {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
  }

  .legal_updated {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin: 0 0 2rem 0;
  }

  .legal_content {
    max-width: 65ch;

    h2 {
      font-size: var(--text-lg);
      font-weight: var(--font-weight-bold);
      color: var(--color-text);
      margin: 2rem 0 0.75rem 0;
    }

    h2:first-child {
      margin-top: 0;
    }

    p {
      font-size: var(--text-base);
      color: var(--color-text);
      line-height: var(--line-height-xl);
      margin: 0 0 1rem 0;
    }
  }

  /* ===== CALENDAR ANIMATION ===== */
  .calendar_anim {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .calendar_anim_svg {
    flex: 1;
    width: 100%;
    padding: 1rem;
  }

  .calendar_anim_cell {
    fill: var(--color-bg-white);
    stroke: var(--color-border);
    stroke-width: 1;
  }

  .calendar_anim_cell.blocked {
    fill: var(--color-bg-secondary);
  }

  .calendar_anim_label {
    font-size: 10px;
    fill: var(--color-text-light);
    text-anchor: middle;
    font-family: var(--font-sans);
  }

  /* Appointments */
  .calendar_anim_appt {
    opacity: 0;
    transition: all 0.5s ease;
  }

  .calendar_anim_appt.visible {
    opacity: 1;
  }

  .calendar_anim_appt.red { fill: var(--color-accent-red); }
  .calendar_anim_appt.blue { fill: var(--color-accent-blue); }
  .calendar_anim_appt.green { fill: var(--color-accent-green); }

  /* Highlight effect for phase 3 */
  .calendar_anim_appt.highlight {
    animation: appointmentPulse 0.8s ease-in-out infinite alternate;
  }

  @keyframes appointmentPulse {
    from {
      filter: brightness(1);
      transform: scale(1);
    }
    to {
      filter: brightness(1.2);
      transform: scale(1.05);
    }
  }

  /* Phase indicator */
  .calendar_anim_phase {
    text-align: center;
    padding: 0.75rem;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    background: var(--color-bg-white);
    border-top: 2px solid var(--color-border);
  }

  /* Legend */
  .calendar_anim_legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem;
    font-size: var(--text-xs);
    color: var(--color-text-light);
    background: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
  }

  .legend_item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .legend_dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }

  .legend_dot.red { background: var(--color-accent-red); }
  .legend_dot.blue { background: var(--color-accent-blue); }
  .legend_dot.green { background: var(--color-accent-green); }

  /* ===== BOOKING ANIMATION ===== */
  .booking_anim {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
  }

  .booking_anim_phone {
    width: 180px;
    height: 320px;
    background: var(--color-gray-900);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }

  .booking_anim_screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg-white);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .booking_anim_profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: white;
  }

  .booking_anim_profile_avatar {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .booking_anim_profile_avatar svg {
    width: 18px;
    height: 18px;
    fill: white;
  }

  .booking_anim_profile_info {
    min-width: 0;
  }

  .booking_anim_profile_name {
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .booking_anim_profile_details {
    font-size: 8px;
    opacity: 0.8;
  }

  .booking_anim_header {
    padding: 0.6rem 0.75rem;
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-light);
  }

  .booking_anim_slots {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
  }

  .booking_anim_slot {
    padding: 0.5rem;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    background: var(--color-bg-white);
    color: var(--color-text);
    text-align: center;
    cursor: default;
    transition: all 150ms ease;
  }

  .booking_anim_slot.selected {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
  }

  .booking_anim_confirm {
    --confirm-opacity: 1;
    padding: 0.75rem;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    text-align: center;
    background: var(--color-primary);
    color: white;
    opacity: var(--confirm-opacity);
  }

  /* Cursor */
  .booking_anim_cursor {
    --cursor-x: 20px;
    --cursor-y: 100px;
    --cursor-opacity: 1;
    position: absolute;
    width: 24px;
    height: 24px;
    color: var(--color-gray-700);
    pointer-events: none;
    transform: translate(var(--cursor-x), var(--cursor-y));
    opacity: var(--cursor-opacity);
    transition: transform 0.5s ease;
    z-index: 10;
  }

  .booking_anim_cursor svg {
    width: 100%;
    height: 100%;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 767px) {
    .landing_hero {
      padding: 2rem 0 3.5rem;
    }

    .landing_section {
      padding: 3rem 0;
    }

    .landing_animation {
      aspect-ratio: 16/10;
    }

    .landing_navbar {
      padding: 1rem var(--main-padding);
    }

    .landing_nav_links {
      gap: 0.125rem;
    }

    .landing_nav_link {
      padding: 0.5rem 0.5rem;
    }
  }

  /* ===== DEMOS SECTION ===== */
  .landing_demos {
    background: var(--color-bg-light);
    padding: 4rem 0;
  }

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

  @media (min-width: 640px) {
    .landing_demos_grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 900px) {
    .landing_demos_grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .landing_demo_card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 150ms, box-shadow 150ms;
  }

  .landing_demo_card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .landing_demo_card_header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .landing_demo_logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
  }

  .landing_demo_logo_placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    border-radius: 8px;
  }

  .landing_demo_info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .landing_demo_name {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
  }

  .landing_demo_type {
    font-size: var(--text-sm);
    color: var(--color-text-light);
  }

  .landing_demo_card_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .landing_demo_cta {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
  }

  .landing_demo_card_footer svg {
    color: var(--color-primary);
  }

  /* ===== SUPPORT PAGE ===== */
  .support_page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .support_content {
    text-align: center;
    max-width: 500px;
  }

  .support_title {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
  }

  .support_subtitle {
    font-size: var(--text-base);
    color: var(--color-text-light);
    margin: 0 0 2.5rem 0;
  }

  .support_options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .support_option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    text-decoration: none;
    transition: border-color 150ms, box-shadow 150ms;
  }

  .support_option:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .support_option_whatsapp:hover {
    border-color: #25D366;
  }

  .support_option_icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border-radius: 50%;
    color: var(--color-primary);
    flex-shrink: 0;

    .icon {
      width: 20px;
      height: 20px;
    }
  }

  .support_option_whatsapp .support_option_icon {
    background: #25D366;
    color: white;
  }

  .support_option_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
  }

  .support_option_label {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .support_option_value {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
  }

  /* ===== REDUCED MOTION ===== */
  @media (prefers-reduced-motion: reduce) {
    .calendar_anim_appt,
    .booking_anim_slot,
    .booking_anim_cursor,
    .newsletter_input {
      transition: none;
    }
  }
}

/* Smooth anchor scrolling, only on pages that render the landing chrome */
html:has(.landing) {
  scroll-behavior: smooth;
}

/* Footer styles outside layer for proper specificity */
.landing_footer {
  padding: 1.25rem var(--main-padding);
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

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

.landing_footer_legal {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  margin: 0;
  line-height: var(--line-height-lg);
  text-align: left;

  a {
    text-decoration: none;
    color: var(--color-muted);
  }
}

.landing_footer_links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.landing_footer_link {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 100ms ease-out;
}

.landing_footer_link:hover {
  color: var(--color-text);
}

.landing_footer .theme-picker__button {
  color: var(--color-text-light);
}

.landing_footer .theme-picker__button:hover {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .landing_footer_content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .landing_footer_legal {
    order: 1;
  }

  .landing_footer_links {
    order: 0;
    flex-wrap: wrap;
    justify-content: center;
  }
}
