/* ==========================================================================
NoCurve Digital: landing page (nocurvedigital.com)
Same colors as the CrewSheet app: slate + gold. Change a color here, in :root, and it changes everywhere.
========================================================================== */
:root {
    --slate: #193549;          /* the app's slate blue */
    --slate-dark: #122738;
    --slate-tint: #edf1f5;     /* light slate backgrounds */
    --gold: #d4af37;
    --gold-soft: #e8d48b;
    --text: #111a27;
    --muted: #465163;
    --white: #ffffff;
    --border: #d0d7e2;
    --green: #1f7a4d;
    --radius: 0.6rem;
    --shadow: 0 6px 24px rgba(25, 53, 73, 0.14);
    --wrap: 70rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

img {
    max-width: 100%;
}

a {
    color: var(--slate);
}

h1, h2, h3 {
    line-height: 1.2;
    color: var(--slate);
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}

.btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1.05rem;
}

.btn-gold {
    color: var(--slate-dark);
    background: var(--gold);
    border-color: var(--gold);
}

    .btn-gold:hover {
        background: var(--gold-soft);
    }

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

    .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.12);
    }

.btn-outline {
    color: var(--white);
    border-color: var(--white);
}

    .btn-outline:hover {
        color: var(--slate);
        background: var(--white);
    }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--slate);
    border-bottom: 3px solid var(--gold);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
}

/* The logo is navy on white, so it sits on a small white plate */
.brand-logo {
    display: block;
    height: 2.6rem;
    padding: 0.2rem 0.5rem;
    background: var(--white);
    border-radius: 0.4rem;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.topbar-link {
    padding: 0.4rem 0.5rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
}

    .topbar-link:hover {
        color: var(--gold-soft);
    }

/* ---------- Opening ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 4.5rem;
    color: var(--white);
    background: linear-gradient(160deg, var(--slate) 0%, var(--slate-dark) 100%);
}

    /* The big faint logo behind the opening, like the app's Log in page */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url("images/nocurve-logo.png") right -6rem center / 46rem auto no-repeat;
        opacity: 0.06;
        filter: grayscale(1) brightness(3);
        pointer-events: none;
    }

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--white);
}

.hero-sub {
    margin: 0 0 1.75rem;
    font-size: 1.2rem;
    color: #d8e2ea;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-trades {
    margin: 1.5rem 0 0;
    font-size: 0.95rem;
    color: #b9c8d4;
}

    .hero-trades strong {
        color: var(--white);
    }

/* ---------- The phone with a quote on it ---------- */
.hero-art {
    display: flex;
    justify-content: center;
}

.phone {
    width: min(20rem, 100%);
    overflow: hidden;
    color: var(--text);
    background: var(--white);
    border: 0.55rem solid #0b1822;
    border-radius: 2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.phone-bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    background: var(--slate);
    border-bottom: 2px solid var(--gold);
}

.phone-page {
    font-weight: 500;
    opacity: 0.85;
}

.phone-body {
    padding: 0.8rem 0.9rem 1rem;
    font-size: 0.8rem;
}

.q-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--slate);
}

.pill {
    padding: 0.05rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 99px;
}

.pill-sent {
    color: #0d5cab;
    background: #e6f0fb;
    border: 1px solid #b6d4f5;
}

.q-client {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
}

    .q-client span {
        color: var(--muted);
    }

.q-lines {
    width: 100%;
    border-collapse: collapse;
}

    .q-lines td {
        padding: 0.3rem 0;
        border-bottom: 1px solid var(--slate-tint);
    }

        .q-lines td:nth-child(2) {
            color: var(--muted);
        }

        .q-lines td:last-child {
            text-align: right;
        }

.q-total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
    background: #f8f0d6;
    border-radius: 0.4rem;
}

.q-buttons {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.q-btn {
    flex: 1;
    padding: 0.4rem;
    font-weight: 700;
    text-align: center;
    color: var(--slate);
    border: 1px solid var(--slate);
    border-radius: 0.35rem;
}

.q-btn-green {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

/* ---------- Sections ---------- */
.section {
    padding: 4rem 0;
}

.section-tint {
    background: var(--slate-tint);
}

.section-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    text-align: center;
}

.section-sub {
    max-width: 38rem;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--muted);
}

/* Sound familiar? */
.pains {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.pain {
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
}

    .pain p {
        margin: 0;
    }

.pain-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    background: var(--slate);
    border-radius: 50%;
}

/* What it does */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature {
    padding: 1.5rem;
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(25, 53, 73, 0.07);
}

    .feature svg {
        width: 2.2rem;
        height: 2.2rem;
        fill: none;
        stroke: var(--slate);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .feature h3 {
        margin: 0.6rem 0 0.4rem;
        font-size: 1.15rem;
    }

    .feature p {
        margin: 0;
        color: var(--muted);
    }

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--slate-dark);
    background: var(--gold);
    border-radius: 50%;
}

.steps h3 {
    margin: 0.75rem 0 0.4rem;
}

.steps p {
    margin: 0;
    color: var(--muted);
}

/* Built by a contractor */
.section-slate {
    color: #d8e2ea;
    background: var(--slate);
}

    .section-slate h2 {
        margin-top: 0;
        color: var(--white);
    }

/* No photo yet: the story sits centered. With a photo: add "story-with-photo" (photo | words) */
.story {
    max-width: 46rem;
    text-align: center;
}

.story-with-photo {
    display: grid;
    grid-template-columns: 14rem 1fr;
    align-items: center;
    gap: 2.5rem;
    max-width: var(--wrap);
    text-align: left;
}

.story-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 3px solid var(--gold);
    border-radius: 50%;
}

.story-quote {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--white);
}

.story-sign {
    font-weight: 700;
    color: var(--gold);
}

/* Pricing */
.price-card {
    max-width: 34rem;
    margin: 2rem auto 0;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.price-tag {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--slate);
}

.price-fine {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Questions */
.faq {
    max-width: 46rem;
}

    .faq details {
        margin-top: 0.75rem;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }

    .faq summary {
        padding: 1rem 1.25rem;
        font-weight: 700;
        color: var(--slate);
        cursor: pointer;
    }

    .faq details p {
        margin: 0;
        padding: 0 1.25rem 1rem;
        color: var(--muted);
    }

/* ---------- Footer ---------- */
.footer {
    padding: 2rem 0;
    font-size: 0.92rem;
    color: #b9c8d4;
    background: var(--slate-dark);
    border-top: 3px solid var(--gold);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}

    .footer-inner p {
        margin: 0;
    }

    .footer a {
        color: var(--gold-soft);
    }

.footer-logo {
    height: 2.4rem;
    padding: 0.2rem 0.5rem;
    background: var(--white);
    border-radius: 0.4rem;
}


/* ---------- Tablets and phones ---------- */
@media (max-width: 860px) {
    .hero {
        padding: 2.5rem 0 3rem;
    }

    .hero-inner,
    .story-with-photo {
        grid-template-columns: 1fr;
    }

    .hero-art {
        margin-top: 0.5rem;
    }

    .pains,
    .features,
    .steps {
        grid-template-columns: 1fr;
    }

    .story-photo {
        width: 10rem;
        margin: 0 auto;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Phones: the top bar keeps just Log in and Start Free */
@media (max-width: 560px) {
    .topbar-link {
        display: none;
    }

    .brand-logo {
        height: 2.1rem;
    }

    .btn {
        padding: 0.45rem 0.8rem;
    }

    .btn-lg {
        width: 100%;
        text-align: center;
    }
}
