/* Zabbly website stylesheet */

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

html { scroll-behavior: smooth; }

:root {
    --bg: #f7f6f3;
    --bg2: #ffffff;
    --bg3: #efeee9;
    --ink: #16181c;
    --ink2: #52565c;
    --ink3: #868a90;
    --border: #e6e5df;
    --border2: #d8d7d0;
    --brand: #00bdd4;
    --brand-ink: #06181c;
    --brand-deep: #0a8ea1;
    --accent-soft: #e6f9fc;
    --shadow: rgba(20, 22, 26, .07);
}

[data-theme="dark"] {
    --bg: #0d0e11;
    --bg2: #16181d;
    --bg3: #1c1f25;
    --ink: #eceae4;
    --ink2: #a6aab1;
    --ink3: #71757d;
    --border: #23262d;
    --border2: #2f333b;
    --brand: #00bdd4;
    --brand-ink: #06181c;
    --brand-deep: #39dcef;
    --accent-soft: #0f2a30;
    --shadow: rgba(0, 0, 0, .45);
}

/* No-JS fallback: follow the system preference. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d0e11;
        --bg2: #16181d;
        --bg3: #1c1f25;
        --ink: #eceae4;
        --ink2: #a6aab1;
        --ink3: #71757d;
        --border: #23262d;
        --border2: #2f333b;
        --brand: #00bdd4;
        --brand-ink: #06181c;
        --brand-deep: #39dcef;
        --accent-soft: #0f2a30;
        --shadow: rgba(0, 0, 0, .45);
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    transition: background .2s, color .2s;
}

a { color: inherit; }

.mono { font-family: 'IBM Plex Mono', monospace; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

section { scroll-margin-top: 70px; }

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 32px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    flex: none;
}

.logo svg { display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links > a {
    font-size: 14px;
    color: var(--ink2);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links > a:hover { color: var(--ink); }

.nav-links > a.nav-cta {
    background: var(--ink);
    color: var(--bg2);
    padding: 9px 17px;
    border-radius: 7px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.theme-toggle {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 7px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex: none;
}

.theme-toggle span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--ink2);
    background: linear-gradient(90deg, var(--ink2) 0 50%, transparent 50% 100%);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0 76px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.06;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0 0 24px;
    text-wrap: balance;
}

.hero .lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink2);
    margin: 0 0 32px;
    max-width: 520px;
}

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

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
    background: var(--brand);
    color: var(--brand-ink);
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border2);
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
}

.btn-quote {
    display: inline-block;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border2);
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

/* Terminal-style cards (dark in both themes) */
.term {
    background: #14171c;
    border-radius: 13px;
    box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .5);
    overflow: hidden;
    border: 1px solid #23272e;
}

.term-title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 17px;
    border-bottom: 1px solid #23272e;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #6b7280;
}

.term-body {
    padding: 22px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13.5px;
    line-height: 2.0;
    color: #c7ccd4;
}

.term-row { display: flex; }

.term-key {
    color: #6b7280;
    flex: none;
    white-space: pre;
}

.term-val {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
}

.term-val a {
    color: #39dcef;
    text-decoration: none;
    white-space: nowrap;
}

.term-val a:hover { text-decoration: underline; }

/* Sections */
.section { border-top: 1px solid var(--border); }
.section-alt { background: var(--bg2); }
.section-inner { padding: 72px 32px 80px; }

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-deep);
    margin-bottom: 12px;
}

.section h2 {
    font-size: 34px;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 14px;
}

.section-intro {
    font-size: 15px;
    color: var(--ink2);
    max-width: 560px;
    margin: 0 0 44px;
    line-height: 1.6;
}

.section a.text-link,
.section-intro a,
.card-text a {
    color: var(--brand-deep);
    text-decoration: none;
}

.footnote {
    font-size: 12.5px;
    color: var(--ink3);
    line-height: 1.5;
}

.smallprint {
    margin-top: 20px;
    font-size: 12.5px;
    color: var(--ink3);
    line-height: 1.5;
}

/* Card grids */
.cards3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 26px;
    background: var(--bg);
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    color: var(--ink2);
    line-height: 1.6;
}

.card-text + .card-text { margin-top: 12px; }

/* Pricing grid */
.pricing {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 13px;
    overflow: hidden;
}

.price-cell {
    background: var(--bg2);
    padding: 26px;
    display: flex;
    flex-direction: column;
}

.price-cell h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.price-desc {
    font-size: 13.5px;
    color: var(--ink2);
    line-height: 1.55;
    margin-bottom: 18px;
}

.price-list {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.price-line .label { font-size: 12.5px; color: var(--ink2); }

.price-line .amount {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.price-line .amount span { color: var(--ink3); font-weight: 400; }

/* Feature columns */
.kicker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink3);
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.feature {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.feature h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 6px;
}

.feature p {
    font-size: 13.5px;
    color: var(--ink2);
    line-height: 1.6;
    margin: 0;
}

.feature a { color: var(--brand-deep); text-decoration: none; }

/* Runner estimator */
.estimator {
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--bg);
    overflow: hidden;
}

.estimator-title {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink3);
}

.estimator-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    padding: 28px 24px;
}

.sliders {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.slider-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.slider-head .label { font-size: 13.5px; color: var(--ink2); }

.slider-head .value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.slider-head .value span { color: var(--ink3); font-weight: 400; }

.slider input[type="range"] {
    width: 100%;
    accent-color: var(--brand);
    height: 4px;
    cursor: pointer;
    margin: 0;
}

.slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--ink3);
}

.quotes {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quote-card {
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 20px 22px;
    background: var(--bg3);
}

.quote-arch {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
}

.quote-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.quote-price .amount {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1;
}

.quote-price .unit { font-size: 13px; color: var(--ink2); }

.quote-alt {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.quote-alt .label {
    font-size: 11.5px;
    color: var(--ink3);
    margin-bottom: 3px;
}

.quote-alt .value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: var(--ink);
}

.estimator-note {
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--ink2);
    line-height: 1.6;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.about-head img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
    border: 1px solid var(--border2);
    flex: none;
}

.about-head h2 {
    font-size: 28px;
    line-height: 1.1;
    margin: 0 0 5px;
}

.about-head .role { font-size: 14px; color: var(--ink2); }

.about p {
    font-size: 15px;
    color: var(--ink2);
    line-height: 1.65;
    margin: 0 0 16px;
}

.about p:last-of-type { margin-bottom: 0; }

.about p a { color: var(--brand-deep); text-decoration: none; }

.social {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.social a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border2);
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8b9097;
}

.social a:hover { border-color: var(--brand); }

.social svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.social .in {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.youtube-card {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg2);
    padding: 18px 20px;
    text-decoration: none;
}

.youtube-card:hover { border-color: var(--brand); }

.play-badge {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-badge span {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent var(--brand-deep);
    margin-left: 3px;
}

.youtube-card .text { flex: 1; }

.youtube-card .title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}

.youtube-card .subtitle {
    display: block;
    font-size: 13px;
    color: var(--ink2);
    line-height: 1.5;
}

.youtube-card .arrow { color: var(--ink3); font-size: 18px; }

.funding-card {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg2);
    padding: 22px;
}

.funding-card .title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.funding-card .text {
    font-size: 13.5px;
    color: var(--ink2);
    line-height: 1.55;
    margin-bottom: 16px;
}

.funding-links { display: flex; gap: 10px; }

.funding-links a {
    flex: 1;
    text-align: center;
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 11px;
    font-size: 13px;
    color: var(--ink2);
    text-decoration: none;
}

.funding-links a:hover { color: var(--ink); }

/* Contact / footer */
.contact-inner { padding: 64px 32px 40px; }

.contact-inner h2 {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 12px;
}

.contact-email {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    color: var(--brand-deep);
    text-decoration: none;
}

.footer {
    margin-top: 48px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer .copyright { font-size: 13px; color: var(--ink3); }

.footer .tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--ink3);
}

/* Responsive */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 56px 0;
    }

    .hero h1 { font-size: 42px; }

    .cards3 { grid-template-columns: 1fr; }

    .pricing { grid-template-columns: repeat(2, 1fr); }

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

    .about-grid { grid-template-columns: 1fr; gap: 48px; }

    .estimator-body { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 740px) {
    .nav-links > a:not(.nav-cta) { display: none; }

    .container { padding: 0 20px; }

    .section-inner { padding: 56px 20px 64px; }

    .contact-inner { padding: 56px 20px 32px; }

    .nav-inner { padding: 12px 20px; }

    .hero h1 { font-size: 36px; }

    .pricing { grid-template-columns: 1fr; }

    .funding-links { flex-direction: column; }
}
