:root {
    --clarity-blue: #3473e2;
    --clarity-blue-dark: #1d61d7;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f3f4f6;
    color: #1f2937;
}

html {
    scroll-behavior: smooth;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

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

.page-shell {
    max-width: 1320px;
    margin: 18px auto;
    padding: 0 18px;
}

.app {
    margin-bottom: 10rem;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-home {
    display: inline-flex;
    align-items: center;
}

.nav-logo {
    width: 150px;
    height: auto;
    display: block;
}

.nav-logo:hover {
    cursor: pointer;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.nav-item a:hover {
    background: #f3f4f6;
}

.is-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--clarity-blue);
    border: 1px solid white;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03);
}

.is-button:hover {
    background: var(--clarity-blue-dark);
}

.nav-item a.is-button {
    color: white !important;
}
.nav-item a.is-button:hover {
    background-color: var(--clarity-blue-dark);
}

.hero {
    padding: 60px 40px;
    height: 300px;
    align-content: center;
    text-align: left;
    background-image: url("clarity-background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f3f4f6;
}

.hero h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
    color: white;
    font-weight: 800;
}

.hero p {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.55;
    color: white;
}

.hero-actions {
    display: flex;
    justify-content: start;
    gap: 14px;
    margin-top: 28px;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--clarity-blue);
    color: var(--clarity-blue);
    background: white;
    font-weight: 600;
}

.secondary-button:hover {
    background: #eff6ff;
}

.services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 28px 30px;
}

.feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 18px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    min-height: 120px;
}

.feature-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 14px;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
    font-size: 14px;
}

.info-section {
    padding: 18px 30px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.info-section h2 {
    margin: 0 0 10px;
    font-size: 26px;
    color: #1f2937;
}

.help-section {
    padding: 18px 30px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.help-section h2 {
    margin: 0 0 30px;
    font-size: 26px;
    color: #1f2937;
}

.why-grid {
    display: flex;
    justify-content: center;
}

.why-grid ul {
    display: flex;
    flex-direction: row;
    gap: 4rem;
}

.why-grid li {
    position: relative;
    margin: 5px 0;
    color: #374151;
}

.why-grid li::marker {
    color: #7cc6b8;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 780px;
    margin: 0 auto;
}

.help-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.small-business {
    width: 180px;
}

.entrepreneur {
    width: 180px;
}

.growing-team {
    width: 190px;
}

.cta-section {
    padding: 34px 30px 34px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.cta-section h2 {
    margin: 0 0 30px;
    font-size: 24px;
    color: #1f2937;
}

.cta-button {
    padding: 11px 22px;
}

.section {
    text-align: center;
    padding-bottom: 3rem;
}

.section h2 {
    border-top: 1px solid #e5e7eb;
    padding-top: .83em;
    margin-top: 0;
}

.about-section {
    background-color: #FBFCFE;
}

.services-section {
    background-image: url('clarity-alt-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-content, .services-content {
    border-radius: 10px;
    box-shadow: 3px 3px 9px 1px rgba(0, 0, 0, 0.18);
    background-color: white;
    padding: 18px 35px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-section {
    padding-top: 3rem;
}

.contact-section a {
    color: var(--clarity-blue);
    text-decoration: underline;
}

.service-card {
    &:nth-child(1) {
        border-top: 0;
    }

    border-top: 1px solid #e5e7eb;
    padding: 18px 35px;
    max-width: 700px;
    margin: 0 auto;
}

.service-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 17px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-title span {
    text-align: left;
}

.service-subtitle {
    margin-top: 5px;
    text-align: left;
}

.service-description {
    text-align: left;
}

.jotform-container {
    display: contents;
}

.footer {
    border-top: 1px solid #e5e7eb;
    padding: 14px 18px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    background: #fff;
}

#services,
#about,
#getting-started {
    scroll-margin-top: 80px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #1f2937;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
    .nav-items,
    .hero-actions,
    .services {
        grid-template-columns: 1fr;
        display: grid;
    }

    .about-content, .services-content {
        margin-left: 5%;
        margin-right: 5%;
    }

    .why-grid ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding-left: 0;
    }

    .navbar {
        gap: 14px;
        justify-content: space-between;
    }

    .nav-items {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 8px;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-items.active {
        display: flex;
    }

    .nav-item a {
        display: inherit;
        padding: 12px 16px;
        border-radius: 8px;
    }

    .nav-item a.is-button {
        width: auto;
        margin-top: 8px;
    }

    .hamburger {
        display: flex;
    }

    .services {
        padding-inline: 18px;
    }

    .why-grid,
    .help-grid {
        max-width: none;
    }

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 640px) {
    .page-shell {
        margin: 0;
        padding: 0;
    }

    .help-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .app {
        border: 0;
        box-shadow: none;
    }

    .navbar,
    .hero,
    .services,
    .info-section,
    .cta-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .nav-items {
        flex-wrap: wrap;
        gap: 6px;
    }
}

.back-to-top {
    position: fixed;
    bottom: 60px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: var(--clarity-blue);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
}
