/* BuildingSetup — marketing site.
   Palette and type taken from the product itself so the site and the app look like one company.
   Instrument Sans, 400/500/600 only: the product never bundles 700, so nothing here uses it. */

:root {
    --indigo: #4f46e5;
    --indigo-dark: #4338ca;
    --indigo-tint: #eef2ff;
    --sky: #0ea5e9;
    --teal: #0f766e;
    --ink: #171b26;
    --ink-soft: #3f4657;
    --muted: #667085;
    --line: #e6e8ee;
    --bg: #ffffff;
    --bg-alt: #f7f8fb;
    --bg-deep: #12151d;

    --radius: 14px;
    --radius-sm: 9px;
    --wrap: 1160px;
    --shadow-sm: 0 1px 2px rgba(16, 20, 32, .06), 0 1px 3px rgba(16, 20, 32, .04);
    --shadow: 0 12px 32px -12px rgba(16, 20, 32, .18), 0 2px 6px rgba(16, 20, 32, .05);

    --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.1em; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
    color: var(--indigo); margin: 0 0 .8rem;
}
.lede { font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.center .lede { margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1.06rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand span.b { color: var(--ink); }
.brand span.s { color: var(--muted); font-weight: 500; }

.nav-links { display: flex; gap: 1.35rem; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--indigo); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .68rem 1.15rem; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
    cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
    min-height: 44px;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: #c9cddb; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f2f7; color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: .85rem 1.5rem; font-size: 16px; min-height: 50px; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch;
        gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 20px 1rem;
        box-shadow: var(--shadow); margin-left: 0;
    }
    .nav-links[hidden] { display: none; }
    .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav-links .btn { margin-top: .75rem; border-bottom: 0; }
}
@media (min-width: 901px) { .nav-links[hidden] { display: flex; } }

/* ---------- sections ---------- */
section { padding: clamp(3.2rem, 2rem + 4vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-deep { background: var(--bg-deep); color: #b9c0d0; }
.section-deep h2, .section-deep h3, .section-deep h4 { color: #fff; }
.section-deep .lede { color: #97a0b5; }
.section-deep .eyebrow { color: #a5b4fc; }
.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.center .section-head, .section-head.center { margin-inline: auto; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.6rem, 1.5rem + 3vw, 4.5rem); padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/2; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 1rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4rem; font-size: 1.06rem; }
.card p { margin-bottom: 0; font-size: 15.5px; color: var(--muted); }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.card-link:hover { border-color: #c7ccdd; transform: translateY(-2px); color: inherit; }
.card-link .more { display: inline-block; margin-top: .9rem; font-size: 14px; font-weight: 600; color: var(--indigo); }

.ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--indigo-tint); margin-bottom: .95rem; }
.ico svg { width: 19px; height: 19px; stroke: var(--indigo); fill: none; stroke-width: 1.8; }
.section-deep .card { background: #191d28; border-color: #262b3a; }
.section-deep .card p { color: #97a0b5; }
.section-deep .ico { background: #232838; }
.section-deep .ico svg { stroke: #a5b4fc; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/2; object-fit: cover; }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat { padding: 1.35rem 1.5rem; border-left: 3px solid var(--indigo); background: #fff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.stat .n { font-size: 1.7rem; font-weight: 600; color: var(--ink); display: block; letter-spacing: -.02em; }
.stat .l { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- checks ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem;
    border-radius: 50%; background: var(--indigo-tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: .72rem; background-repeat: no-repeat; background-position: center;
}
.section-deep .checks li::before { background-color: #232838; }

/* ---------- faq ---------- */
.faq details {
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.15rem;
    margin-bottom: .7rem; background: #fff;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; padding-right: 1.5rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -.1em; font-size: 1.3rem; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { margin-bottom: .7rem; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.plan.featured { border-color: var(--indigo); box-shadow: var(--shadow); position: relative; }
.plan .tag { position: absolute; top: -11px; left: 1.75rem; background: var(--indigo); color: #fff;
    font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.plan .price { font-size: 1.5rem; font-weight: 600; color: var(--ink); margin: .3rem 0 .2rem; letter-spacing: -.02em; }
.plan .price small { font-size: .85rem; font-weight: 400; color: var(--muted); }

/* ---------- prose (articles) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose img { border-radius: var(--radius); margin: 2rem 0; box-shadow: var(--shadow); }
.prose blockquote {
    margin: 1.8rem 0; padding: .3rem 0 .3rem 1.3rem; border-left: 3px solid var(--indigo);
    color: var(--ink); font-size: 1.06rem;
}

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 1.1rem 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--indigo); text-decoration: underline; }
.crumbs span { margin: 0 .4rem; opacity: .6; }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(135deg, var(--indigo) 0%, #6d28d9 55%, var(--teal) 140%); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.8rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); color: #8d95a8; padding: 3.5rem 0 2rem; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #8d95a8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #242939; margin-top: 2.5rem; padding-top: 1.5rem;
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 13.5px; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; margin-bottom: .8rem; }

/* ---------- forms ---------- */
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
input, select, textarea {
    width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: 16px; color: var(--ink); background: #fff; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: var(--indigo); }
.field { margin-bottom: 1rem; }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 20px; top: 10px; z-index: 100; background: #fff; padding: .6rem 1rem; border-radius: 8px; box-shadow: var(--shadow); }
