.modal-open {
    overflow: hidden !important; /* Use !important to increase specificity */
}

/* Add rule to hide navbar when modal is open */
.navbar-hidden {
    display: none !important;
}

/* Add other global styles for the landing page below */
/*
  Custom styles for the landing page.
  Only standard CSS and variables are included for Deno Fresh compatibility.
  Tailwind utility classes should be handled by your Tailwind setup, not here.
*/

:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
    --1000x-On-Surface: #271813;
    --1000x-Primary: #aa3700;
}

.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

.bg-clip-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Add any additional custom styles for gradients, backgrounds, or responsive tweaks here. */

/*
  Navbar styles for landing page (converted from Tailwind)
*/

.navbar {
    background: #fff;
    position: fixed;
    /* Increase specificity and use !important for debugging */
    z-index: 1000 !important;
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
    top: 0;
    left: 0;
}

.navbar-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .navbar-nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aa3700;
    font-weight: bold;
    font-size: 2rem;
    text-decoration: none;
}

.navbar-logo-img {
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.navbar-links {
    display: none;
}

@media (min-width: 768px) {
    .navbar-links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #aa3700;
    color: #aa3700;
    background: #fff;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.navbar-btn:hover {
    background: rgba(170, 55, 0, 0.05);
}

.navbar-btn-primary {
    background: #aa3700;
    color: #fff;
    border: none;
}

.navbar-btn-primary:hover {
    background: #a33a00;
}

.navbar-mobile-btn {
    display: block;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .navbar-mobile-btn {
        display: none;
    }
}

/*
  Hero section styles for landing page (converted from Tailwind)
*/

.hero-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 48px;
    width: 100%;
    max-width: 1440px;
    /* Added max-width */
    margin-left: auto;
    /* Added margin */
    margin-right: auto;
    /* Added margin */
    padding-top: 260px;
    padding-bottom: 15rem;
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    z-index: 0;
    justify-content: center;
    /* Center flex items */
    align-items: center;
    /* Vertically align items */
}

.hero-content {
    min-width: 20rem;
    flex: 1 1 0%;
    max-width: 1128px;
    padding: 1rem;
}

.hero-title {
    font-size: 84px;
    font-weight: bold;
    line-height: 90px;
    letter-spacing: -1.68px;
    width: 100%;
}

.hero-desc {
    color: #5b4138;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0.18px;
    margin-top: 1.5rem;
}
.hero-btn {
    background: rgba(170, 55, 0, 1);
    min-height: 2.5rem;
    /* width: 170px; */
    /* Removed fixed width */
    width: auto;
    /* Allow width to adjust to content */
    display: inline-flex;
    /* Use inline-flex for content width + flex alignment */
    /* flex-direction: column; */
    /* Removed */
    /* overflow: hidden; */
    /* Removed */
    align-items: center;
    /* Vertically center content */
    justify-content: center;
    /* Horizontally center content */
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.1px;
    /* line-height: 1; */
    /* Removed */
    line-height: normal;
    /* Use default line height */
    white-space: nowrap;
    /* Prevent text wrapping */
    padding: 0.625rem 1.5rem;
    /* Apply padding directly */
    margin-top: 2rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
}

/* .hero-btn > div {
  width: 100%;
  gap: 0.5rem;
  height: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
} */

.hero-image-container {
    display: flex;
    min-width: 15rem;
    gap: 10px;
    justify-content: center;
    width: 494px;
}

.hero-image {
    aspect-ratio: 0.92;
    object-fit: contain;
    width: 100%;
    min-width: 15rem;
    flex: 1 1 0%;
}

@media (max-width: 768px) {
    .hero-section,
    .hero-content,
    .hero-title,
    .hero-desc,
    .hero-image-container,
    .hero-image {
        max-width: 100% !important;
    }

    .hero-title {
        font-size: 40px;
        line-height: 47px;
    }

    .hero-btn > div {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/*
  TrustedBy section styles for landing page (converted from Tailwind)
*/

.trustedby-section {
    background: rgba(255, 241, 236, 1);
    position: relative;
    z-index: 0;
    display: flex;
    min-height: 819px;
    width: 100%;
    gap: 10px;
    overflow: hidden;
    justify-content: center;
    padding-top: 203px;
    padding-bottom: 434px;
    padding-left: 281px;
    padding-right: 281px;
}

.trustedby-title {
    text-align: center;
    font-size: 4.5rem;
    font-weight: bold;
    letter-spacing: -1.44px;
    background: linear-gradient(
        90deg,
        var(--1000x-On-Surface, #271813) 22.05%,
        var(--1000x-Primary, #aa3700) 76.53%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    z-index: 0;
}

.trustedby-img-left {
    aspect-ratio: 0.93;
    object-fit: contain;
    width: 258px;
    position: absolute;
    z-index: 0;
    min-width: 15rem;
    height: 276px;
    left: 244px;
    top: 134px;
}

.trustedby-img-right {
    aspect-ratio: 1.42;
    object-fit: contain;
    width: 257px;
    position: absolute;
    z-index: 0;
    min-width: 15rem;
    height: 181px;
    right: 228px;
    top: 188px;
}

.trustedby-testimonials {
    position: absolute;
    z-index: 0;
    display: flex;
    min-width: 15rem;
    align-items: center;
    gap: 40px 74px;
    flex-wrap: wrap;
    left: 50%;
    bottom: 151px;
    transform: translate(-50%, 0%);
}

.trustedby-testimonial {
    display: flex;
    min-width: 15rem;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    width: 348px;
    margin: auto 0;
}

.trustedby-avatar {
    background: #6b7280;
    display: flex;
    min-height: 46px;
    width: 46px;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 999px;
}

.trustedby-avatar-img {
    aspect-ratio: 1;
    object-fit: contain;
    width: 46px;
    border-radius: 999px;
}

.trustedby-user {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: auto 0;
}

.trustedby-user-name {
    color: #261813;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.08px;
}

.trustedby-user-city {
    color: #5b4138;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.07px;
}

.trustedby-quote {
    color: #5b4138;
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin-top: 1.25rem;
}

@media (max-width: 768px) {
    .trustedby-section {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .trustedby-title {
        font-size: 40px;
    }
}

/*
  Features section styles for landing page (converted from Tailwind)
*/

.features-section {
    width: 100%;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .features-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1024px) {
    .features-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.features-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .features-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.features-title {
    font-size: 2.25rem;
    font-weight: bold;
    letter-spacing: -1.6px;
}

@media (min-width: 768px) {
    .features-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .features-title {
        font-size: 4rem;
    }
}

.features-list {
    width: 100%;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .features-list {
        margin-top: 3rem;
    }
}

@media (min-width: 1024px) {
    .features-list {
        margin-top: 4rem;
    }
}

.features-row {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .features-row {
        flex-direction: row;
        gap: 2rem;
    }
}

.features-card {
    background: rgba(255, 241, 236, 1);
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    overflow: hidden;
    flex: 1 1 0%;
    min-width: 15rem;
    border-radius: 28px;
    padding: 1.5rem;
}

.features-card-title {
    color: #271813;
    font-size: 2rem;
    font-weight: bold;
}

.features-card-desc {
    color: #271813;
    font-size: 1rem;
    text-align: center;
    margin-top: 0.5rem;
}

.features-card-img {
    aspect-ratio: 1;
    object-fit: contain;
    width: 100px;
    height: 100px;
    border-radius: 0;
    position: absolute;
    left: 2rem;
    top: 2rem;
}

.features-card-secondary {
    background: rgba(255, 241, 236, 1);
    border-radius: 28px;
    padding: 1.5rem;
    min-width: 15rem;
    overflow: hidden;
}

.features-card-secondary-title {
    color: #271813;
    font-size: 2rem;
    font-weight: bold;
}

.features-card-secondary-desc {
    color: #5b4138;
    font-size: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .features-section,
    .features-container,
    .features-title,
    .features-list,
    .features-row,
    .features-card,
    .features-card-secondary {
        max-width: 100%;
    }

    .features-title {
        font-size: 40px;
    }
}

/*
  HowItWorks section styles for landing page (converted from Tailwind)
*/

.howitworks-section {
    background: rgba(255, 241, 236, 1);
    z-index: 0;
    width: 100%;
    overflow: hidden;
    padding: 60px;
    position: relative;
}

@media (max-width: 768px) {
    .howitworks-section {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

.howitworks-title {
    background: linear-gradient(
        90deg,
        var(--1000x-On-Surface, #271813) 22.05%,
        var(--1000x-Primary, #aa3700) 76.53%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 80px;
    font-weight: bold;
    letter-spacing: -1.6px;
}

@media (max-width: 768px) {
    .howitworks-title {
        font-size: 40px;
    }
}

.howitworks-steps {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 40px 48px;
    flex-wrap: wrap;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .howitworks-steps {
        max-width: 100%;
        margin-top: 2.5rem;
    }
}

.howitworks-step {
    background: rgba(255, 226, 217, 1);
    border: 1px solid rgba(226, 191, 179, 1);
    display: flex;
    width: 100%;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 1.5rem;
}

.howitworks-step-title {
    color: #271813;
    font-size: 26px;
    font-weight: bold;
}

.howitworks-step-desc {
    color: #5b4138;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

/*
  PaymentMethods section styles for landing page (converted from Tailwind)
*/

.payment-section {
    z-index: 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    .payment-section {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

.payment-content {
    flex: 1 1 0%;
    max-width: 50%;
    padding-right: 4rem;
}

@media (max-width: 768px) {
    .payment-content {
        max-width: 100%;
        padding-right: 0;
    }
}

.payment-title {
    font-size: 80px;
    font-weight: bold;
    letter-spacing: -1.6px;
    background: linear-gradient(
        90deg,
        var(--1000x-On-Surface, #271813) 22.05%,
        var(--1000x-Primary, #aa3700) 76.53%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@media (max-width: 768px) {
    .payment-title {
        font-size: 40px;
    }
}

.payment-desc {
    color: #5b4138;
    font-size: 2rem;
    font-weight: 400;
    margin-top: 1rem;
}

.payment-list {
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    color: #271813;
    font-weight: 600;
    margin-top: 3rem;
    gap: 1rem;
}

@media (max-width: 768px) {
    .payment-list {
        max-width: 100%;
        margin-top: 2.5rem;
    }
}

.payment-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-list-dot {
    width: 1.5rem;
    height: 1.5rem;
    background: #aa3700;
    border-radius: 9999px;
    display: inline-block;
}

.payment-image-container {
    width: 460px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .payment-image-container {
        width: 100%;
    }
}

.payment-image {
    aspect-ratio: 1.07;
    object-fit: contain;
    max-width: 100%;
    border-radius: 0;
}

/*
  FAQ section styles for landing page (converted from Tailwind)
*/

.faq-section {
    width: 100%;
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.faq-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.faq-title {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: -1.6px;
    background: linear-gradient(
        90deg,
        var(--1000x-On-Surface, #271813) 22.05%,
        var(--1000x-Primary, #aa3700) 76.53%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@media (min-width: 768px) {
    .faq-title {
        font-size: 4.5rem;
    }
}

.faq-list {
    width: 100%;
    margin-top: 3rem;
}

.faq-list-item {
    background: rgba(255, 241, 236, 1);
    border-radius: 1rem;
    border: none;
    overflow: hidden;
    margin-bottom: 1rem;
}

.faq-trigger {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background 0.2s;
}

.faq-trigger:hover {
    background: rgba(255, 241, 236, 0.8);
}

.faq-question {
    font-size: 2rem;
    color: #271813;
    font-weight: 500;
    letter-spacing: -0.48px;
}

.faq-answer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1rem;
    color: #5b4138;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.25px;
}

/*
  CTA section styles for landing page (converted from Tailwind)
*/

.cta-section {
    background: rgba(255, 233, 227, 1);
    z-index: 0;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 40px 48px;
    justify-content: center;
    flex-wrap: wrap;
    padding-left: 16rem;
    padding-right: 16rem;
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    .cta-section {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

.cta-content {
    align-self: stretch;
    display: flex;
    min-width: 15rem;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 0%;
    margin: auto 0;
}

.cta-title {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.8px;
    background: linear-gradient(
        90deg,
        var(--1000x-On-Surface, #271813) 22.05%,
        var(--1000x-Primary, #aa3700) 76.53%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 40px;
    }
}

.cta-desc {
    color: #5b4138;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.18px;
    margin-top: 1.5rem;
}

.cta-image {
    aspect-ratio: 0.95;
    object-fit: contain;
    width: 613px;
    align-self: stretch;
    min-width: 15rem;
    margin: auto 0;
}

@media (max-width: 768px) {
    .cta-image {
        max-width: 100%;
    }
}

/*
  Footer section styles for landing page (converted from Tailwind)
*/

.footer-section {
    background: rgba(255, 226, 217, 1);
    z-index: 0;
    display: flex;
    min-height: 381px;
    width: 100%;
    align-items: stretch;
    gap: 40px 48px;
    flex-wrap: wrap;
    padding: 4rem;
}

@media (max-width: 768px) {
    .footer-section {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.footer-brand {
    display: flex;
    min-width: 15rem;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 0%;
}

.footer-logo-row {
    display: flex;
    min-height: 69px;
    align-items: center;
    gap: 9px;
    font-size: 52px;
    color: #aa3700;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: -2.07px;
    line-height: 1;
}

@media (max-width: 768px) {
    .footer-logo-row {
        font-size: 40px;
    }
}

.footer-logo-img {
    aspect-ratio: 1;
    object-fit: contain;
    width: 69px;
    flex-shrink: 0;
    margin: auto 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 140px;
}

@media (max-width: 768px) {
    .footer-social {
        margin-top: 2.5rem;
    }
}

.footer-social-img {
    aspect-ratio: 1;
    object-fit: contain;
    width: 44px;
    flex-shrink: 0;
}

.footer-nav {
    display: flex;
    min-width: 15rem;
    align-items: stretch;
    gap: 1.5rem;
    font-size: 1rem;
    color: #5b4138;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 1;
    flex-wrap: wrap;
    height: 100%;
}

.footer-nav-col {
    width: 12rem;
}

.footer-nav-title {
    color: #271813;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0;
}

.footer-nav-link {
    display: block;
    margin-top: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.navbar {
    background: #fff;
    position: fixed;
    /* Keep z-index for layering, but rely on display:none for hiding */
    z-index: 1000;
    /* Removed !important as display:none is stronger */
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
    top: 0;
    left: 0;
}
