/* ============================================================ *
 *  Caliper marketing site — base styles                         *
 *  Designed as a clean starting template you can lift sections  *
 *  from. Single brand color, system fonts, generous whitespace. *
 * ============================================================ */

:root {
    --brand: #3372d8;
    --brand-dark: #2058b5;
    --accent: #f08c1a;
    --ink: #1a1f29;
    --ink-soft: #4a5260;
    --ink-mute: #6a7383;
    --line: #e4e7ec;
    --bg: #ffffff;
    --bg-alt: #f6f8fb;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(20, 30, 50, 0.06);
    --shadow-md: 0 6px 18px rgba(20, 30, 50, 0.08);
    --max-width: 1200px;
}

* { box-sizing: border-box; }

/* Smooth in-page scrolling, offset for the sticky 64px header */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; padding: 0.05em 0.4em; background: var(--bg-alt); border-radius: 4px; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ─────────── Header ─────────── */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: 18px;
}
.brand-icon { width: 28px; height: 28px; border-radius: 6px; }
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav a {
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav-cta {
    background: var(--brand);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}
.nav-cta:hover { background: var(--brand-dark); color: #fff !important; }

/* ─────────── Hero ─────────── */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
}
.hero-inner {
    display: grid;
    grid-template-columns: 0.68fr 1fr;
    gap: 42px;
    align-items: center;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    margin: 0 0 16px;
}
.hero h1 {
    font-size: 56px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    font-weight: 700;
}
.lede {
    font-size: 19px;
    color: var(--ink-soft);
    margin: 0 0 32px;
    max-width: 580px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: 24px;
    color: var(--ink-mute);
    font-size: 14px;
}
.hero-art img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ─────────── Buttons ─────────── */
.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost {
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }

/* ─────────── Section primitives ─────────── */
.section-title {
    font-size: 38px;
    letter-spacing: -0.015em;
    font-weight: 700;
    margin: 0 0 16px;
}
.section-lede {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 720px;
    margin: 0;
}
h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
    margin: 32px 0 14px;
    font-weight: 600;
}

.intro {
    padding: 80px 0 20px;
    text-align: center;
}
.intro .section-lede { margin: 0 auto; }

/* ─────────── Feature grid ─────────── */
.features { padding: 80px 0; }
.feature-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}
.feature-card h3 {
    margin: 20px 24px 8px;
    font-size: 20px;
    font-weight: 600;
}
.feature-card p {
    margin: 0 24px 24px;
    color: var(--ink-soft);
    font-size: 15px;
}

/* ─────────── Detail sections ─────────── */
.detail-section {
    padding: 100px 0;
    border-top: 1px solid var(--line);
}
.detail-section.alt {
    background: var(--bg-alt);
    border-top: none;
}
.detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.detail-inner.reverse .detail-copy { order: 2; }
.detail-inner.reverse .detail-art  { order: 1; }
.detail-copy h2 {
    font-size: 36px;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    font-weight: 700;
}
.detail-copy p {
    color: var(--ink-soft);
    font-size: 17px;
    margin: 0;
}
.detail-art img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ─────────── Lists ─────────── */
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bullet-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 16px;
}
.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.7;
}
.pill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill-list li {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 14px;
    color: var(--ink-soft);
}
.detail-section.alt .pill-list li { background: #fff; }

/* ─────────── Specs ─────────── */
.specs {
    padding: 100px 0;
    background: var(--bg-alt);
}
.specs-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}
.specs-grid h4 {
    margin-top: 0;
}

/* ─────────── CTA ─────────── */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    text-align: center;
}
.cta h2 {
    font-size: 42px;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    color: #fff;
}
.cta p {
    font-size: 18px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.85);
}
.cta .btn-primary {
    background: #fff;
    color: var(--brand-dark);
}
.cta .btn-primary:hover { background: #f1f4fb; color: var(--brand-dark); }

/* ─────────── Footer ─────────── */
.site-footer {
    padding: 32px 0;
    background: #131822;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.site-footer strong { color: #fff; }
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: #fff; }

/* ─────────── Responsive ─────────── */
@media (max-width: 900px) {
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 42px; }
    .hero-inner,
    .detail-inner { grid-template-columns: 1fr; gap: 40px; }
    .detail-inner.reverse .detail-copy,
    .detail-inner.reverse .detail-art { order: initial; }
    .nav a:not(.nav-cta) { display: none; }
    .section-title { font-size: 30px; }
    .detail-copy h2 { font-size: 28px; }
    .cta h2 { font-size: 32px; }
    .container { padding: 0 24px; }
    .detail-section { padding: 70px 0; }
    .specs { padding: 70px 0; }
    .features { padding: 60px 0; }
}

/* ─── Screenshot gallery ─── */
.gallery { padding: 90px 0; border-top: 1px solid var(--line); }
.shot-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 28px; }
.shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); background: #fff; }
.shot figcaption { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 500; color: var(--ink-mute); }
@media (max-width: 900px) { .gallery { padding: 60px 0; } .shot-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ─── Hero flourish + platform badges ─── */
.hero { position: relative; overflow: hidden; padding: 96px 0 76px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(58% 70% at 88% -8%, rgba(51,114,216,.16), transparent 62%),
                radial-gradient(46% 56% at -5% 112%, rgba(240,140,26,.09), transparent 60%); }
.hero-inner { position: relative; z-index: 1; }
.hero-art { position: relative; z-index: 1; }
.hero-glow { position: absolute; inset: -10% -7%; z-index: 0; border-radius: 28px;
    background: radial-gradient(closest-side, rgba(51,114,216,.30), transparent 75%); filter: blur(26px); }
.hero-art img { position: relative; z-index: 1; border: 1px solid var(--line); }
/* Hero autoplay video — silent looping demo, promoted from the old demo section */
.hero-video { width: 100%; height: auto; display: block; border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: 0 22px 55px rgba(20,30,50,.20); position: relative; z-index: 1;
    background: #0b0e14; }
.hero-video > img { width: 100%; height: auto; border-radius: var(--radius); display: block; border: 0; box-shadow: none; }

/* Bigger buttons + gradient primary */
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 10px; }
.btn-primary { background: linear-gradient(135deg, #4a8bea 0%, var(--brand) 55%, var(--brand-dark) 100%);
    box-shadow: 0 8px 20px rgba(51,114,216,.28); }
.btn-primary:hover { background: linear-gradient(135deg, #3f82e3 0%, var(--brand-dark) 100%);
    box-shadow: 0 10px 26px rgba(51,114,216,.34); }

/* Platform pills */
.platforms { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.plat { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border: 1px solid var(--line);
    border-radius: 100px; background: #fff; font-size: 14.5px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.plat svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.plat em { font-style: normal; font-weight: 500; color: var(--ink-mute); }
.plat-soon { color: var(--ink-soft); }
.plat-soon em { color: var(--accent); }

/* Hero CTA — download-first funnel (primary = free Mac download, buy = secondary below a divider).
   Mac + Windows stack in one column at equal width (fit-content sizes to the wider Mac button). */
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; width: fit-content; max-width: 100%; }
.btn-getmac, .btn-getwin { display: flex; align-items: center; gap: 13px; padding: 15px 24px; border-radius: 12px;
    transition: transform .12s, box-shadow .12s, border-color .12s; text-decoration: none; }
.btn-getmac { background: linear-gradient(135deg, #4a8bea 0%, var(--brand) 55%, var(--brand-dark) 100%);
    box-shadow: 0 10px 24px rgba(51,114,216,.30); color: #fff; }
.btn-getmac:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(51,114,216,.40); color: #fff; }
.btn-getwin { background: var(--bg-alt); border: 1px dashed #d3d8e0; color: var(--ink-soft); cursor: pointer; }
.btn-getwin:hover { transform: translateY(-1px); border-color: var(--brand); }
.btn-getmac svg, .btn-getwin svg { width: 27px; height: 27px; flex: 0 0 auto; }
.btn-getmac svg { fill: #fff; }
.btn-getwin svg { fill: var(--ink-mute); }
.btn-getmac span, .btn-getwin span { display: flex; flex-direction: column; line-height: 1.18; font-weight: 700; font-size: 16.5px; text-align: left; }
.btn-getmac small { font-weight: 500; font-size: 12.5px; color: rgba(255,255,255,.88); margin-top: 2px; letter-spacing: .1px; }
.btn-getwin small { font-weight: 500; font-size: 12px; color: var(--accent); margin-top: 2px; }
/* Buy — separated by the divider, secondary but NOT tiny: the buy link is the biggest text here */
.hero-buy { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); max-width: 460px; }
.hero-buy-q { display: block; font-size: 15px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.hero-buy-link { display: inline-block; font-size: 19px; font-weight: 800; color: var(--brand); letter-spacing: -.01em; line-height: 1.2; }
.hero-buy-link .arw { display: inline-block; transition: transform .15s ease; }
.hero-buy-link:hover { color: var(--brand-dark); }
.hero-buy-link:hover .arw { transform: translateX(4px); }
.hero-buy-note { display: block; font-size: 13px; color: var(--ink-mute); margin-top: 6px; }

/* Buy / Download CTA (dark section) */
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 6px 0 16px; }
.cta p strong { color: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: #eef3fc; color: var(--brand-dark); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.10); color: #fff; }
.cta-note { font-size: 14px; color: rgba(255,255,255,.78); margin: 8px 0 0; }

@media (max-width: 900px) {
    .hero { padding: 56px 0 44px; }
    .platforms { margin-top: 22px; }
}

/* ─── Founder credit (footer) ─── */
.footer-tag { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.45); }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO v3 (2026-08) — dark-blue brand gradient, one headline, download-first CTAs
   Palette sampled directly from the app icon: #023e76 → #0175bf → #009ee2.
   Header stays light/sticky; the hero is a self-contained dark band.
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
    padding: 80px 0 78px;
    color: #fff;
    background:
        radial-gradient(112% 82% at 88% -16%, rgba(0,158,226,.34), transparent 58%),
        radial-gradient(86% 76% at -12% 114%, rgba(1,117,191,.30), transparent 60%),
        linear-gradient(158deg, #04203f 0%, #063462 44%, #0a4a8c 100%);
}
/* faint blueprint grid, faded out toward the edges */
.hero::before {
    background:
        repeating-linear-gradient(0deg,  rgba(255,255,255,.05) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 64px);
    -webkit-mask-image: radial-gradient(78% 74% at 32% 42%, #000 0%, transparent 80%);
            mask-image: radial-gradient(78% 74% at 32% 42%, #000 0%, transparent 80%);
}
.hero-inner { grid-template-columns: 0.80fr 1fr; gap: 44px; align-items: center; }

/* ── Headline: the only body copy in the hero ── */
.hero h1 {
    font-size: clamp(25px, 2.55vw, 35px);
    line-height: 1.17;
    letter-spacing: -0.015em;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px;
    text-wrap: balance;
}
.hero-sig {
    display: flex; align-items: center; gap: 11px;
    margin: 0 0 32px;
    font-size: 15.5px; font-weight: 600; letter-spacing: .012em;
    color: #93cff3;
}
.hero-sig::before {
    content: ""; flex: 0 0 auto; width: 28px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #009ee2, rgba(0,158,226,0));
}

/* ── Two prominent download buttons, side by side ── */
.hero-actions { flex-direction: row; flex-wrap: wrap; width: auto; gap: 13px; }
.btn-getmac, .btn-getwin { flex: 1 1 0; min-width: 190px; padding: 15px 20px; gap: 11px; }
.btn-getmac span, .btn-getwin span { font-size: 16px; white-space: nowrap; }
.btn-getmac small, .btn-getwin small { font-size: 12px; white-space: nowrap; }
.btn-getmac {
    background: #fff; color: #0a3f75;
    box-shadow: 0 14px 34px rgba(2,20,45,.34);
}
.btn-getmac:hover {
    background: #f1f7ff; color: #0a3f75;
    box-shadow: 0 18px 44px rgba(2,20,45,.44);
}
.btn-getmac svg   { fill: #0a4a8c; }
.btn-getmac small { color: rgba(10,63,117,.74); }
.btn-getwin {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.34);
    color: #e9f4ff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn-getwin:hover { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.62); }
.btn-getwin svg   { fill: #cfe6fb; }
.btn-getwin small { color: #7fd0ff; }

/* ── Buy: clearly a button, deliberately lighter than the downloads ── */
.hero-buy {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    max-width: 560px; margin: 26px 0 0; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18);
}
.hero-buy-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 22px; border-radius: 11px;
    background: linear-gradient(135deg, #0d9ae0 0%, #0a6ec0 100%);
    border: 1px solid rgba(255,255,255,.24);
    color: #fff; font-weight: 700; font-size: 16.5px; letter-spacing: -.005em;
    box-shadow: 0 10px 26px rgba(0,158,226,.32);
    transition: transform .12s, box-shadow .12s, background .15s;
}
.hero-buy-btn:hover {
    color: #fff; transform: translateY(-2px);
    background: linear-gradient(135deg, #17a6ea 0%, #0b78cd 100%);
    box-shadow: 0 15px 34px rgba(0,158,226,.44);
}
.hero-buy-btn .arw { transition: transform .15s ease; }
.hero-buy-btn:hover .arw { transform: translateX(4px); }
.hero-buy-note { font-size: 13.5px; color: rgba(255,255,255,.74); }

/* ── Video sits on the dark field ── */
.hero-glow  { background: radial-gradient(closest-side, rgba(0,158,226,.44), transparent 72%); filter: blur(34px); }
.hero-video { border: 1px solid rgba(255,255,255,.17); background: #04203f;
              box-shadow: 0 34px 78px rgba(1,14,32,.55); }

@media (max-width: 900px) {
    .hero { padding: 54px 0 52px; }
    .hero h1 { font-size: clamp(26px, 6.4vw, 36px); }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .btn-getmac, .btn-getwin { flex: 1 1 100%; }
    .hero-buy { margin-top: 22px; padding-top: 18px; }
}
