/* nuvabill.com — marketing site. Same tokens and fonts as the Nuvabill app. */

@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url('fonts/figtree-400.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url('fonts/figtree-600.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('fonts/bricolage-700.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('fonts/bricolage-800.woff2') format('woff2'); }

:root {
    --bg: #f3f6f6;
    --surface: #ffffff;
    --surface-2: #eaf0f0;
    --line: #d9e2e2;
    --ink: #0e1a1c;
    --muted: #56676a;
    --accent: #0b7a70;
    --accent-2: #0a5f57;
    --accent-soft: #ddf1ee;
    --good: #1e8e55;
    --crit: #c23b3b;
    --hero-1: #0f9b8e;
    --hero-2: #0a4a45;
    --hero-3: #061818;
    --shadow: 0 1px 2px rgb(14 26 28 / 0.05), 0 12px 32px rgb(14 26 28 / 0.08);
    --radius: 14px;
    --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Bricolage Grotesque', 'Figtree', ui-sans-serif, system-ui, sans-serif;
    --font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1213;
        --surface: #121b1c;
        --surface-2: #182325;
        --line: #243234;
        --ink: #e4edec;
        --muted: #9aadad;
        --accent: #35c2b1;
        --accent-2: #5fd6c7;
        --accent-soft: #11302c;
        --good: #4cc98a;
        --crit: #f07a7a;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
        color-scheme: dark;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

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

img { max-width: 100%; height: auto; display: block; }

code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--surface-2);
    padding: 0.1em 0.35em;
    border-radius: 5px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 16px;
    top: 12px;
    z-index: 50;
    background: var(--surface);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
}

.wrap {
    width: min(1160px, 100% - 32px);
    margin-inline: auto;
}

.narrow {
    width: min(780px, 100% - 32px);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--hero-3) 82%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    color: #fff;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand svg {
    width: 30px;
    height: 30px;
    color: var(--hero-1);
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

.nav a {
    color: rgb(255 255 255 / 0.82);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
}

.nav a:hover,
.nav a[aria-current='page'] {
    color: #fff;
    background: rgb(255 255 255 / 0.08);
}

.nav .btn {
    margin-left: 0.4rem;
}

.nav a.btn-primary,
.nav a.btn-primary:hover {
    color: #073b37;
    background: #fff;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid rgb(255 255 255 / 0.2);
    color: #fff;
    border-radius: 9px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav {
        display: none;
        position: absolute;
        inset: 64px 0 auto;
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem 16px 1rem;
        background: var(--hero-3);
        border-bottom: 1px solid rgb(255 255 255 / 0.1);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 0.75rem 0.8rem;
    }

    .nav .btn {
        margin: 0.4rem 0 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn-primary {
    background: #fff;
    color: #073b37;
}

.btn-primary:hover {
    background: #e6fbf8;
}

.btn-ghost {
    color: #fff;
    border-color: rgb(255 255 255 / 0.3);
}

.btn-ghost:hover {
    border-color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    .btn-accent {
        color: #03201c;
    }
}

.btn-accent:hover {
    background: var(--accent-2);
}

.btn-line {
    border-color: var(--line);
    color: var(--ink);
    background: var(--surface);
}

.btn-line:hover {
    border-color: var(--accent);
}

.nav .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.92rem;
}

/* Hero */
.hero {
    color: #fff;
    background:
        radial-gradient(1200px 520px at 15% -10%, rgb(53 194 177 / 0.55), transparent 60%),
        linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 45%, var(--hero-3) 100%);
    padding: clamp(3rem, 8vw, 6rem) 0 0;
    overflow: hidden;
}

.hero-copy {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 1.3rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.18);
    color: #e6fbf8;
}

.badge b {
    color: #fff;
}

.hero .lead {
    max-width: 680px;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: rgb(255 255 255 / 0.85);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 0.4rem;
}

.hero-note {
    font-size: 0.9rem;
    color: rgb(255 255 255 / 0.7);
}

.hero-shot {
    display: block;
    margin: clamp(2.5rem, 6vw, 4rem) auto 0;
    width: min(1160px, 100% - 32px);
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 -10px 60px rgb(0 0 0 / 0.35);
    background: #0d2b29;
}

.hero-shot img {
    width: 100%;
}

/* Sections */
.section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
    display: grid;
    gap: 0.8rem;
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.section-head.center {
    text-align: center;
    margin-inline: auto;
    justify-items: center;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-head p {
    color: var(--muted);
    font-size: 1.08rem;
}

.stack {
    display: grid;
    gap: 1rem;
}

.muted {
    color: var(--muted);
}

.alt {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

/* Feature grid */
.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.alt .card {
    background: var(--bg);
}

.card p {
    color: var(--muted);
    font-size: 0.98rem;
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.icon svg {
    width: 22px;
    height: 22px;
}

/* Automation flow */
.flow {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
    counter-reset: step;
}

.flow li {
    counter-increment: step;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.97rem;
}

.flow li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

@media (prefers-color-scheme: dark) {
    .flow li::before {
        color: #03201c;
    }
}

.flow li span {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* Screenshot gallery */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.tabs button {
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
}

.tabs button[aria-selected='true'] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    .tabs button[aria-selected='true'] {
        color: #03201c;
    }
}

.shot {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--surface-2);
}

.shot[hidden] {
    display: none;
}

.shot figcaption {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: var(--muted);
    background: var(--surface);
    border-top: 1px solid var(--line);
}

/* Pricing */
.plans {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    max-width: 880px;
    margin-inline: auto;
}

.plan {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.8rem;
    display: grid;
    gap: 1rem;
    align-content: start;
}

.plan.featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow);
}

.price {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.price small {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.ticks li {
    padding-left: 1.7rem;
    position: relative;
    font-size: 0.98rem;
}

.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%230b7a70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    justify-self: start;
}

/* Comparison table */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.97rem;
    min-width: 560px;
}

th,
td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

thead th {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
}

tbody tr:last-child td,
tbody tr:last-child th {
    border-bottom: 0;
}

tbody th {
    font-weight: 600;
}

/* FAQ */
.faq {
    display: grid;
    gap: 0.7rem;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 1.2rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 1rem 0;
    list-style-position: outside;
}

.faq details p {
    color: var(--muted);
    padding-bottom: 1.1rem;
}

/* Call to action band */
.cta {
    color: #fff;
    background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3));
    border-radius: 22px;
    padding: clamp(2rem, 6vw, 3.5rem);
    display: grid;
    gap: 1.1rem;
    justify-items: center;
    text-align: center;
}

.cta p {
    color: rgb(255 255 255 / 0.85);
    max-width: 620px;
}

/* Prose pages (docs, comparison) */
.page-hero {
    color: #fff;
    background: linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 50%, var(--hero-3) 100%);
    padding: clamp(2.5rem, 7vw, 4.5rem) 0;
}

.page-hero .narrow {
    display: grid;
    gap: 1rem;
}

.page-hero p {
    color: rgb(255 255 255 / 0.85);
    font-size: 1.12rem;
}

.page-hero .eyebrow {
    color: #bff3ec;
}

.page-hero .hero-actions {
    justify-content: flex-start;
}

.prose {
    display: grid;
    gap: 1.1rem;
}

.prose h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin-top: 1.6rem;
}

.prose h3 {
    margin-top: 0.6rem;
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose strong {
    color: var(--ink);
}

.prose ul,
.prose ol {
    margin: 0;
    padding-left: 1.3rem;
    display: grid;
    gap: 0.45rem;
}

.prose pre {
    margin: 0;
    background: #0b1213;
    color: #e4edec;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.55;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.note {
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    padding: 0.9rem 1.1rem;
    border-radius: 0 10px 10px 0;
}

.note p {
    color: var(--ink);
}

.toc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.2rem;
}

.toc ol {
    margin: 0.4rem 0 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0;
    font-size: 0.93rem;
    color: var(--muted);
}

.site-footer .wrap {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.site-footer h3 {
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

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

.site-footer a:hover {
    color: var(--accent);
}

.site-footer .brand {
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.site-footer .brand svg {
    color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}
