/* ==========================================================================
NoCurve Digital: landing page (nocurvedigital.com)
Same colors as the CrewBarrow 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);
    }

/* A last card alone on its row sits in the middle (three across) */
.feature:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

/* Showcase: each feature is a row, words | a real screen, sides alternating (index.html "What it does") */
.showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.show-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 3rem;
}

    /* Let the columns shrink below the screenshots' own width (otherwise a phone scrolls sideways) */
    .show-row > * {
        min-width: 0;
    }

    /* Every other row: screen on the left (still the wide column), words on the right */
    .show-row:nth-child(even) {
        grid-template-columns: 1.2fr 0.8fr;
    }

        .show-row:nth-child(even) .show-text {
            order: 2;
        }

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

.show-text h3 {
    margin: 0.5rem 0 0.5rem;
    font-size: 1.45rem;
}

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

/* A screen: white plate, slate border, soft shadow; the whole thing links to the full-size image */
.shot {
    display: block;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

    .shot:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 32px rgba(25, 53, 73, 0.2);
    }

    .shot img {
        display: block;
        width: 100%;
        height: auto;
    }

/* Computer screen: a browser-style top bar with three dots */
.shot-browser {
    border-radius: var(--radius);
}

    .shot-browser::before {
        content: "";
        display: block;
        height: 1.4rem;
        background:
            radial-gradient(circle, #e0645c 0.22rem, transparent 0.24rem) 0.7rem 50% / 0.9rem 0.9rem no-repeat,
            radial-gradient(circle, #e8b84a 0.22rem, transparent 0.24rem) 1.6rem 50% / 0.9rem 0.9rem no-repeat,
            radial-gradient(circle, #5cb85c 0.22rem, transparent 0.24rem) 2.5rem 50% / 0.9rem 0.9rem no-repeat,
            var(--slate-tint);
        border-bottom: 1px solid var(--border);
    }

/* Tall screens (reports, schedule) show their top part; click for the whole thing */
.shot-tall img {
    max-height: 26rem;
    object-fit: cover;
    object-position: top left;
}

/* Phone screen: dark rounded frame, centered in its column */
.shot-phone {
    width: min(16rem, 100%);
    justify-self: center;
    border: 0.5rem solid #0b1822;
    border-radius: 1.8rem;
}

/* Computer + phone together: the phone overlaps the computer's lower corner */
.shot-pair {
    position: relative;
    padding: 0 3rem 3rem 0;
}

.shot-phone-over {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 11rem;
    border-width: 0.4rem;
    border-radius: 1.3rem;
}

.show-note {
    margin: 2.5rem 0 0;
    font-size: 0.9rem;
    text-align: center;
    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%;
}

/* ---------- Walkthrough player (index.html #how, tour.js) ----------
   A browser-style frame showing real screenshots (16:9), a pointer that glides to each click with a gold ripple,
   the caption under it, and Back / Pause / Next. Positions are percentages, so it scales to any width. */
/* The whole player sits on a slate panel (gold top edge), so the light screenshots stand out from the white page */
.tour {
    max-width: 62rem;
    margin: 0 auto 3.5rem;
    padding: 1.5rem 1.5rem 1.25rem;
    color: #d8e2ea;
    background: linear-gradient(160deg, var(--slate) 0%, var(--slate-dark) 100%);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tour-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tour-tab {
    padding: 0.5rem 1.1rem;
    font: inherit;
    font-weight: 700;
    color: var(--white);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    cursor: pointer;
}

    .tour-tab:hover {
        border-color: var(--gold-soft);
    }

    .tour-tab[aria-selected="true"] {
        color: var(--slate-dark);
        background: var(--gold);
        border-color: var(--gold);
    }

.tour-frame {
    overflow: hidden;
    background: var(--slate-dark);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.tour-chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    background: #e6ebf1;
}

.tour-dot {
    width: 0.6rem;
    height: 0.6rem;
    background: #c3ccd7;
    border-radius: 50%;
}

.tour-url {
    flex: 1;
    max-width: 22rem;
    margin-left: 0.75rem;
    padding: 0.15rem 0.75rem;
    font-size: 0.78rem;
    color: var(--muted);
    background: var(--white);
    border-radius: 999px;
}

.tour-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f8;
}

.tour-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease;
}

    .tour-img.is-changing {
        opacity: 0.15;
    }

/* The pointer's tip is its top-left corner, so left/top are the click point */
.tour-pointer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.6rem;
    height: auto;
    fill: var(--white);
    stroke: #111a27;
    stroke-width: 1.4;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    transition: left 0.9s cubic-bezier(0.45, 0, 0.2, 1), top 0.9s cubic-bezier(0.45, 0, 0.2, 1), transform 0.15s;
    pointer-events: none;
    z-index: 3;
}

    .tour-pointer.is-pressing {
        transform: scale(0.85);
    }

.tour-ripple {
    position: absolute;
    width: 2.6rem;
    height: 2.6rem;
    margin: -1.3rem 0 0 -1.3rem;
    border: 3px solid var(--gold);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

    .tour-ripple.is-on {
        animation: tour-ripple 0.6s ease-out;
    }

@keyframes tour-ripple {
    from { opacity: 1; transform: scale(0.3); }
    to { opacity: 0; transform: scale(1.4); }
}

/* Phone slide: a phone over the dimmed desktop shot, its tall screenshot scrolling slowly inside */
.tour-phone {
    position: absolute;
    top: 4%;
    left: 50%;
    width: 24%;
    height: 92%;
    transform: translateX(-50%);
    padding: 1.2% 1%;
    background: #111a27;
    border-radius: 1.4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

    .tour-phone[hidden] {
        display: none;
    }

.tour-phone-screen {
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border-radius: 1rem;
}

    .tour-phone-screen img {
        display: block;
        width: 100%;
        transform: translateY(0);
    }

.tour-screen.is-phone .tour-img {
    opacity: 0.25;
}

.tour-caption {
    min-height: 3.2em;
    margin: 1rem 0 0.75rem;
    font-size: 1.05rem;
    text-align: center;
    color: var(--white);
}

.tour-count {
    display: inline-block;
    margin-right: 0.4rem;
    padding: 0.05rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate-dark);
    background: var(--gold-soft);
    border-radius: 999px;
}

.tour-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

    /* Real <button>s get the browser's own white fill and font; these match the site's link buttons instead */
    .tour-controls .btn {
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .tour-controls .btn-outline {
        background: transparent;
    }

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

@media (max-width: 560px) {
    .tour {
        padding: 1rem 0.6rem 1rem;
    }

    .tour-pointer {
        width: 1.1rem;
    }

    .tour-ripple {
        width: 1.8rem;
        height: 1.8rem;
        margin: -0.9rem 0 0 -0.9rem;
    }

    .tour-phone {
        width: 34%;
        border-radius: 0.8rem;
    }

    .tour-caption {
        font-size: 0.98rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tour-pointer,
    .tour-img {
        transition: none;
    }
}

.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 */
/* Two plans side by side (stacked on phones), the founding offer in gold above them */
.price-founding {
    max-width: 46rem;
    margin: 0 auto 1.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
    background: #fbf3d9;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 52rem;
    margin: 0 auto;
}

.price-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

    .price-card .btn {
        margin-top: auto;
    }

.price-card-full {
    border-color: var(--gold);
}

.price-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--slate);
}

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

    .price-tag span {
        font-size: 1rem;
        font-weight: 600;
        color: var(--muted);
    }

.price-year {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.price-list {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
    text-align: left;
}

    .price-list li {
        margin-bottom: 0.35rem;
    }

.price-fine {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 720px) {
    .price-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 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;
}

/* Privacy · Terms, pushed to the right end of the footer */
.footer-links {
    margin-left: auto !important;
}

/* ---------- Privacy and Terms pages (privacy.html, terms.html): one readable column ---------- */
.legal {
    padding: 3rem 0 4rem;
}

.legal-wrap {
    max-width: 46rem;
}

    .legal h1 {
        margin: 0 0 0.25rem;
        font-size: clamp(1.8rem, 4vw, 2.4rem);
    }

    .legal h2 {
        margin: 2rem 0 0.5rem;
        font-size: 1.25rem;
    }

    .legal ul {
        padding-left: 1.25rem;
    }

    .legal li {
        margin-bottom: 0.35rem;
    }

.legal-date {
    margin-top: 0;
    color: var(--muted);
}


/* ---------- 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;
    }

    .feature:last-child:nth-child(3n + 1) {
        grid-column: auto;   /* one column: no centering trick */
    }

    /* Showcase: one column, words first, then the screen */
    .showcase {
        gap: 3rem;
    }

    .show-row,
    .show-row:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

        .show-row:nth-child(even) .show-text {
            order: 0;
        }

    .shot-pair {
        padding: 0 2rem 2rem 0;
    }

    .shot-phone-over {
        width: 7.5rem;
    }

    .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;
    }
}
