/* ============================================================
   TrussCode — site.css
   Sections: tokens | base | layout | header | hero | sections
             | cards | forms | demo pages | footer | utilities
             | media queries
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --ink: #14243b;
    --ink-2: #0b1930;
    --blue: #245de8;
    --blue-dark: #1947bd;
    --muted: #56667e;
    --cream: #f5f8ff;
    --line: #e4eaf4;
    --line-2: #dce5f3;
    --radius-sm: 6px;
    --radius-md: 8px;
    --shadow-1: 0 2px 5px #14243b08;
    --shadow-2: 0 14px 30px #14243b12;
    --bs-primary: #245de8;
}

/* ---------- Base ---------- */
body {
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

p {
    color: var(--muted);
    line-height: 1.65;
}

a {
    color: inherit;
}

h1, h2, h3 {
    letter-spacing: -.035em;
    font-weight: 650;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 5.3rem);
    line-height: 1.06;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
}

h3 {
    font-size: 1.25rem;
    letter-spacing: -.025em;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid #326fee;
    outline-offset: 4px;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1180px;
}

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.navbar {
    min-height: 88px;
}

.brand {
    font-weight: 750;
    letter-spacing: -.05em;
    font-size: 1.55rem;
    text-decoration: none;
}

.brand-dot {
    color: var(--blue);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #133771, #2869ee);
    color: #fff;
    width: 33px;
    height: 36px;
    border-radius: 4px;
    font-size: 1.4rem;
    margin-right: 7px;
}

.small-mark {
    width: 26px;
    height: 29px;
    font-size: 1rem;
}

.nav-link {
    font-size: .875rem;
    color: #41526c;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--radius-sm);
    font-size: .9rem;
    padding: 14px 23px;
    font-weight: 600;
}

.btn-sm {
    padding: 10px 16px;
}

.btn-primary {
    background: linear-gradient(110deg, #1d50d7, #245de8);
    border-color: var(--blue);
    box-shadow: 0 3px 8px #245de818;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: linear-gradient(110deg, #173fb1, var(--blue));
        border-color: var(--blue-dark);
    }

.btn-dark {
    background: var(--ink);
}

.btn-outline-dark {
    color: var(--ink);
    border-color: #b8c6dc;
}

/* ---------- Hero ---------- */
.hero {
    padding: 90px 0 80px;
    background: linear-gradient(120deg, #f9fbff 0%, #eff5ff 55%, #e1ebff 100%);
    position: relative;
}

    .hero h1 {
        margin: 24px 0;
    }

        .hero h1 span {
            background: linear-gradient(100deg, #1646bd, #347df6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

    .hero .row {
        position: relative;
    }

    .hero .lead {
        max-width: 490px;
        font-size: 1.2rem;
        line-height: 1.65;
    }

.hero-detail {
    max-width: 440px;
    font-size: .95rem;
}

.hero-note {
    font-size: .76rem;
    color: #566b87;
    margin-top: 30px;
}

    .hero-note span {
        margin: 0 10px;
        color: #95a7c3;
    }

.hero-preview {
    border: 1px solid #cbd9f0;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 24px 70px #16387516;
    margin: 0 10px;
}

.preview-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    font-size: .8rem;
}

.preview-tag {
    font-size: .65rem;
    letter-spacing: .04em;
    color: #566b87;
    background: #eef3ff;
    padding: 5px;
    border-radius: 3px;
}

.preview-body {
    padding: 28px;
}

    .preview-body small {
        font-size: .66rem;
        color: #61728b;
        letter-spacing: .025em;
    }

.preview-appointment {
    background: #f9fbff;
    border: 1px solid #e0e8f6;
    border-radius: 5px;
    padding: 20px;
}

    .preview-appointment .btn {
        font-size: .78rem;
        padding: 12px 8px;
    }

    .preview-appointment p {
        font-size: .7rem;
    }

    .preview-appointment .service-icon {
        flex-shrink: 0;
    }

    .preview-appointment .preview-tag {
        font-size: .48rem;
        white-space: nowrap;
    }

    .preview-appointment strong {
        font-size: .75rem;
    }

.preview-task {
    display: flex;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #edf1f8;
    padding-top: 18px;
    font-size: .8rem;
}

.task-icon {
    background: #e9f0ff;
    color: var(--blue);
    padding: 10px;
    border-radius: 50%;
}

.floating-note {
    text-align: center;
    margin: 24px auto 0;
    background: #fff;
    border: 1px solid var(--line-2);
    padding: 13px;
    width: fit-content;
    border-radius: var(--radius-sm);
    font-size: .75rem;
    box-shadow: var(--shadow-1);
}

/* ---------- Stack strip ---------- */
.stack-strip {
    border-block: 1px solid #e3eaf6;
    padding: 25px 0;
    font-size: .8rem;
}

    .stack-strip span {
        font-size: .65rem;
        letter-spacing: .1em;
        color: var(--muted);
    }

    .stack-strip strong {
        font-weight: 600;
        color: #526582;
    }

/* ---------- Sections ---------- */
.section {
    padding: 85px 0;
    scroll-margin-top: 20px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 40px;
}

    .section-heading p {
        font-size: .9rem;
        margin: 0 0 7px;
    }

.eyebrow {
    font-size: .71rem;
    letter-spacing: .14em;
    font-weight: 750;
    color: var(--blue);
    margin-bottom: 15px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--blue);
    border-radius: 50%;
    margin-right: 8px;
}

/* ---------- Cards ---------- */
.service-card,
.example-card {
    box-shadow: var(--shadow-1);
}

.service-card {
    border: 1px solid #dfe6f1;
    border-radius: 5px;
    padding: 28px;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
    background: #fff;
}

    .service-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-2);
    }

    .service-card p, .example-card p {
        font-size: .88rem;
    }

.service-icon {
    background: #eaf0ff;
    color: var(--blue);
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    font-size: 1.15rem;
    margin-bottom: 23px;
}

.work-section {
    background: #f4f7fc;
}

.example-card {
    display: block;
    text-decoration: none;
    border: 1px solid var(--line-2);
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: transform .2s;
}

    .example-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-2);
    }

.example-art {
    height: 160px;
    background: linear-gradient(135deg, #dce8ff, #f1f6ff);
    position: relative;
    padding: 25px;
}

    .example-art > i {
        font-size: 1.8rem;
        color: var(--blue);
    }

    .example-art > span {
        display: block;
        font-size: .55rem;
        letter-spacing: .13em;
        margin-top: 13px;
        color: #426593;
    }

.art-lines {
    position: absolute;
    right: 24px;
    top: 28px;
    width: 42%;
    background: #fff;
    padding: 17px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px #14243b10;
}

    .art-lines b {
        display: block;
        background: #e8effb;
        height: 10px;
        margin-bottom: 13px;
        border-radius: 3px;
    }

        .art-lines b:nth-child(2) {
            width: 70%;
            background: #94b1f0;
        }

/* ---------- Process ---------- */
.process-step {
    border-top: 1px solid #cad7ee;
    padding-top: 22px;
}

    .process-step > span {
        font-size: .8rem;
        font-weight: 700;
        color: var(--blue);
    }

    .process-step h3 {
        margin-top: 25px;
    }

    .process-step p {
        font-size: .9rem;
    }

/* ---------- Principles ---------- */
.principles {
    background: linear-gradient(110deg, #112c56, #1846a1);
    padding: 60px 0;
    color: #fff;
}

    .principles .eyebrow {
        color: #adcbff;
    }

    .principles p {
        color: #c6d4ee;
    }

    .principles h2 {
        margin: 0;
    }

/* ---------- Contact ---------- */
.contact-note {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
    font-size: .85rem;
}

    .contact-note i {
        font-size: 1.7rem;
        color: var(--blue);
    }

.inquiry {
    background: #f7f9fd;
    border: 1px solid #e1e7f3;
    border-radius: var(--radius-sm);
    padding: 30px;
}

.form-label {
    font-size: .83rem;
    font-weight: 600;
}

.form-control, .form-select {
    border-color: #cbd6e8;
    padding: 11px;
    font-size: .9rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 .2rem #245de822;
    }

/* ---------- Local business cards ---------- */
.local-section {
    border-top: 1px solid #e3eaf6;
}

.local-card {
    height: 100%;
    border: 1px solid #d9e3f2;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
}

.local-card-top {
    position: relative;
    padding: 28px;
    background: linear-gradient(125deg, #102c58, #2456af);
    color: #fff;
    min-height: 180px;
}

    .local-card-top > .fa-solid {
        display: block;
        font-size: 2rem;
        color: #adcaff;
        margin: 20px 0;
    }

    .local-card-top h3 {
        font-size: 1.6rem;
        position: relative;
        margin: 0;
    }

.industry-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #c2d9ff;
}

.local-card p {
    font-size: .9rem;
}

.booking-snippet {
    padding: 15px;
    background: #f3f7ff;
    border: 1px solid #e1e9f7;
    border-radius: 4px;
    font-size: .76rem;
    color: #264675;
}

    .booking-snippet span {
        display: flex;
        justify-content: space-between;
        padding-top: 12px;
        margin-top: 12px;
        border-top: 1px solid #dbe5f6;
        color: #546d92;
    }

.industry-link {
    display: inline-block;
    text-decoration: none;
    color: #2055cc;
    font-size: .85rem;
    font-weight: 650;
    margin-top: 22px;
}

    .industry-link:hover {
        text-decoration: underline;
    }

/* ---------- Sample business pages ---------- */
.sample-header {
    background: #102749;
    color: #d6e5ff;
    padding: 16px 0;
    font-size: .78rem;
}

    .sample-header a {
        color: #fff;
    }

.business-hero {
    padding: 75px 0;
    background: linear-gradient(120deg, #f8fbff, #e6efff);
}

    .business-hero h1 {
        font-size: clamp(2.8rem, 4.5vw, 4.5rem);
    }

.business-sign {
    background: linear-gradient(140deg, #102b55, #245bcc);
    color: #fff;
    padding: 50px 30px;
    text-align: center;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px #173c751f;
}

    .business-sign > i {
        font-size: 3rem;
        color: #bbd5ff;
        margin-bottom: 30px;
    }

    .business-sign h2 {
        font-size: 2rem;
    }

    .business-sign > span {
        font-size: .6rem;
        letter-spacing: .14em;
        color: #c4d9ff;
    }

.sign-rule {
    height: 1px;
    background: #ffffff40;
    margin: 28px auto;
    width: 60px;
}

.business-sign p {
    font-size: .7rem;
    color: #c4d9ff;
}

.appointment-section {
    background: #f6f8fc;
    scroll-margin-top: 20px;
}

.appointment-info {
    display: flex;
    gap: 12px;
    background: #eaf1ff;
    border: 1px solid #d6e3fb;
    padding: 18px;
    border-radius: 5px;
    margin-top: 25px;
    color: #255fc5;
}

    .appointment-info p {
        font-size: .83rem;
        margin: 0;
        color: #3d5680;
    }

    .appointment-info i {
        margin-top: 4px;
    }

.visit-details {
    border-top: 1px solid #dce4f0;
    margin-top: 30px;
    padding-top: 25px;
}

    .visit-details p, .visit-details ul {
        font-size: .85rem;
        color: var(--muted);
        line-height: 1.9;
    }

.appointment-section .inquiry {
    background: #fff;
    box-shadow: 0 8px 35px #132f5a07;
}

.request-result {
    background: #eef4ff;
    padding: 20px;
    border: 1px solid #cdddfa;
    border-left: 3px solid var(--blue);
    border-radius: 4px;
}

    .request-result p {
        white-space: pre-line;
        color: #3d5680;
    }

/* ---------- Demo shell (Examples page) ---------- */
.demo-shell {
    border: 1px solid var(--line-2);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    background: #f4f7fc;
}

.demo-sidebar {
    width: 190px;
    flex-shrink: 0;
    background: var(--ink);
    color: #d7e3fa;
    padding: 25px 20px;
}

    .demo-sidebar a {
        display: block;
        font-size: .8rem;
        padding: 12px 0;
        text-decoration: none;
    }

        .demo-sidebar a:hover {
            color: #fff;
        }

.demo-content {
    padding: 30px;
    width: 100%;
    min-width: 0;
}

.demo-kpi {
    background: #fff;
    border: 1px solid #dfe6f1;
    border-radius: var(--radius-md);
    padding: 20px;
}

    .demo-kpi b {
        font-size: 1.8rem;
        display: block;
    }

.demo-banner {
    background: #eef3ff;
    color: #345a98;
    font-size: .85rem;
    border: 1px solid #cedcf5;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
}

.demo-panel {
    background: #fff;
    padding: 25px;
    border: 1px solid #dfe6f1;
    border-radius: var(--radius-md);
    margin-top: 25px;
}

.demo-login {
    max-width: 400px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
}

.phone {
    max-width: 340px;
    margin: auto;
    border: 8px solid #142d55;
    border-radius: 32px;
    padding: 24px;
    background: #fff;
}

.table {
    font-size: .85rem;
}

.badge {
    font-weight: 500;
}

/* ---------- Footer ---------- */
footer {
    background: var(--ink-2);
    padding: 40px 0;
    color: #a9bad6;
    font-size: .75rem;
}

    footer p {
        color: #a9bad6;
    }

    footer a {
        color: #dce7fa;
    }

/* ---------- Honeypot ---------- */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: #fff;
    z-index: 100;
    padding: 12px;
}

    .skip-link:focus {
        top: 10px;
    }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Media queries ---------- */
@media (max-width: 991px) {
    .hero {
        padding: 55px 0;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading {
        display: block;
    }

        .section-heading p {
            margin-top: 20px;
        }

    .navbar-collapse {
        padding: 20px 0;
    }

    .hero-note {
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    .container {
        padding-inline: 22px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3.3rem);
    }

    .preview-body {
        padding: 18px;
    }

    .preview-top {
        padding: 15px;
    }

    .preview-tag {
        font-size: .45rem;
    }

    .preview-appointment {
        padding: 14px;
    }

        .preview-appointment .preview-tag {
            display: none;
        }

        .preview-appointment .d-flex.justify-content-between {
            gap: 12px;
        }

            .preview-appointment .d-flex.justify-content-between strong {
                text-align: right;
            }

    .inquiry {
        padding: 20px;
    }

    .demo-sidebar {
        display: none;
    }

    .demo-content {
        padding: 16px;
    }

    .demo-panel {
        padding: 16px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .stack-strip .container {
        justify-content: flex-start !important;
    }

    .demo-login {
        padding: 20px;
    }

    .business-hero {
        padding: 50px 0;
    }

    .business-sign {
        padding: 35px 20px;
    }

    .sample-header .container {
        gap: 8px !important;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .row.g-5 {
        --bs-gutter-x: 2rem;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .container {
        padding-inline: 24px;
    }

    .row.g-5 {
        --bs-gutter-x: 2rem;
    }
}

@media (min-width: 992px) {
    .container {
        padding-inline: 24px;
    }
}

/* ============================================================
   Home page v2 — dark "digital rain" hero, pricing, FAQ
   ============================================================ */
:root {
    --rain: #3dff8a;
    --night: #050d0a;
}

.hero-dark {
    background: var(--night);
    color: #fff;
    overflow: hidden;
    padding: 120px 0 110px;
    isolation: isolate;
}

#code-rain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Darkens behind the text so it stays readable over the animation */
    background: linear-gradient(90deg, rgba(5,13,10,.94) 0%, rgba(5,13,10,.82) 45%, rgba(5,13,10,.35) 100%);
}

.hero-dark h1 {
    color: #fff;
}

    .hero-dark h1 span {
        background: linear-gradient(100deg, #3dff8a, #9dffc6);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.hero-dark .lead {
    color: #cfe9db;
    max-width: 560px;
}

.eyebrow-light {
    color: var(--rain);
}

    .eyebrow-light .status-dot {
        background: var(--rain);
        box-shadow: 0 0 10px var(--rain);
    }

.hero-quote {
    color: #cfe9db;
    font-size: .95rem;
}

    .hero-quote strong {
        color: #fff;
    }

    .hero-quote i {
        color: var(--rain);
    }

.btn-glow {
    box-shadow: 0 0 0 1px #3dff8a33, 0 8px 28px #245de855;
}

.btn-outline-light {
    color: #fff;
    border-color: #ffffff80;
}

    .btn-outline-light:hover,
    .btn-outline-light:focus {
        color: var(--night);
        background: #fff;
    }

.hero-dark a:focus-visible,
.hero-dark button:focus-visible {
    outline-color: var(--rain);
}

/* Trust strip */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}

.trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 28px;
    font-weight: 600;
    font-size: .92rem;
}

    .trust-list i {
        color: var(--blue);
        margin-right: 8px;
    }

/* Pricing */
.price-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
}

    .price-card .btn {
        margin-top: auto;
    }

.price-card-featured {
    border: 2px solid var(--blue);
    box-shadow: var(--shadow-2);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 36px;
    background: var(--blue);
    color: #fff;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .1em;
    padding: 4px 10px;
    border-radius: 4px;
}

.price-line {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 6px 0 12px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 28px;
}

    .check-list li {
        position: relative;
        padding-left: 28px;
        margin-bottom: 10px;
        color: var(--ink);
    }

        .check-list li::before {
            content: "\f00c";
            font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            color: #15803d;
        }

.process-section {
    background: var(--cream);
}

/* FAQ */
.faq .accordion-item {
    border-color: var(--line-2);
}

.faq .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    padding: 20px 22px;
}

    .faq .accordion-button:not(.collapsed) {
        background: #eef3ff;
        color: var(--ink);
        box-shadow: none;
    }

    .faq .accordion-button:focus-visible {
        outline: 3px solid #326fee;
        outline-offset: -3px;
        box-shadow: none;
    }

.faq .accordion-body {
    color: var(--muted);
    line-height: 1.65;
}

.contact-note a {
    color: var(--blue);
    font-weight: 600;
}

@media (max-width: 991px) {
    .hero-dark {
        padding: 80px 0 70px;
    }

    .hero-shade {
        background: rgba(5,13,10,.86);
    }
}

@media (max-width: 575px) {
    .trust-list {
        justify-content: flex-start;
    }

    .price-card {
        padding: 28px 22px;
    }
}
