/* ============================================================
   TriLog — dark data-instrument
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg0: #060609;
    --bg1: #0b0b12;
    --panel: #0d0d15;
    --line: rgba(240, 238, 230, 0.09);
    --line-strong: rgba(240, 238, 230, 0.16);
    --ink: #f2f0e9;
    --dim: rgba(242, 240, 233, 0.64);
    --faint: rgba(242, 240, 233, 0.40);
    --ghost: rgba(242, 240, 233, 0.22);

    /* data-viz palette, lifted from the app itself */
    --green: #2fdd6e;
    --green-deep: #14b04c;
    --purple: #a45cf2;
    --blue: #3f7df8;
    --sky: #7ec2f7;
    --orange: #f59214;
    --red: #e5484d;
    --yellow: #ffd83d;

    --serif: 'Instrument Serif', Georgia, serif;
    --mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
    --sans: 'IBM Plex Sans', -apple-system, sans-serif;

    --maxw: 1180px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg0);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* faint horizontal scanlines over everything — the instrument bed */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 71px,
            rgba(240, 238, 230, 0.025) 71px,
            rgba(240, 238, 230, 0.025) 72px
        );
}

::selection { background: var(--green-deep); color: #041207; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

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

/* ---------- type helpers ---------- */
.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
}
.eyebrow::before { content: "/// "; color: var(--ghost); }

h1, h2, .display {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.mono-note {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--faint);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(6, 6, 9, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.logo {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--ink);
}
.logo b { color: var(--green); font-weight: 600; }
.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
}
.nav-links a {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--dim);
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta {
    color: #04120a;
    background: var(--green);
    padding: 8px 18px;
    border-radius: 3px;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
}
.nav-links a.nav-cta:hover { background: #4ff08a; transform: translateY(-1px); }
@media (max-width: 860px) {
    .nav-links a:not(.nav-cta) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 148px 0 96px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(1100px 520px at 78% 12%, rgba(63, 125, 248, 0.10), transparent 62%),
        radial-gradient(900px 600px at 12% 88%, rgba(164, 92, 242, 0.08), transparent 60%),
        var(--bg0);
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 56px;
    align-items: center;
}
.hero-copy .eyebrow { display: block; margin-bottom: 26px; }
.hero-copy h1 {
    font-size: clamp(46px, 6.2vw, 82px);
    margin-bottom: 26px;
}
.hero-copy h1 em {
    font-style: italic;
    color: var(--green);
}
.hero-sub {
    font-size: 18px;
    line-height: 1.65;
    color: var(--dim);
    max-width: 480px;
    margin-bottom: 36px;
}
.cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.cta-main {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #04120a;
    background: var(--green);
    padding: 15px 30px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(47, 221, 110, 0.4), 0 10px 34px rgba(47, 221, 110, 0.22);
    transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
}
.cta-main:hover {
    background: #4ff08a;
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(47, 221, 110, 0.5), 0 16px 44px rgba(47, 221, 110, 0.3);
}
.cta-price {
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--faint);
}
.cta-price b { color: var(--dim); font-weight: 500; }
.hero-privacy {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--faint);
    letter-spacing: 0.04em;
}
.hero-privacy .pulse { color: var(--green); flex-shrink: 0; }

/* staggered load-in */
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.40s; }
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- hero visual: annotated main-screen guide ---------- */
.hero-visual {
    background: #1a1a1a; /* matches the SVG's own canvas */
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: rise 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; gap: 48px; }
    .hero { padding: 128px 0 72px; }
    .hero-sub { max-width: none; }
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.section-pad { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head .eyebrow { display: block; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 18px; }
.section-head p { font-size: 17px; color: var(--dim); line-height: 1.7; }

/* scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   FILTER — who this is for
   ============================================================ */
.filter { border-bottom: 1px solid var(--line); background: var(--bg1); }
.filter-list {
    list-style: none;
    max-width: 780px;
    margin-bottom: 40px;
    counter-reset: sig;
}
.filter-list li {
    counter-increment: sig;
    display: flex;
    gap: 22px;
    align-items: baseline;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    font-size: 18.5px;
    line-height: 1.55;
    color: var(--ink);
}
.filter-list li:last-child { border-bottom: 1px solid var(--line); }
.filter-list li::before {
    content: "SIG_0" counter(sig);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--green);
    flex-shrink: 0;
    transform: translateY(-2px);
}
.filter-bounce {
    max-width: 780px;
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--faint);
}
.filter-bounce strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { border-bottom: 1px solid var(--line); }
.features.band { background: var(--bg1); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.features-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px 26px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}
.fig {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    color: var(--green);
    margin-bottom: 14px;
}
.feature-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14.5px;
    color: var(--dim);
    line-height: 1.65;
    margin-bottom: 22px;
}
.feature-card p em { color: var(--ink); font-style: italic; }
.feature-shot {
    margin-top: auto;
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--line);
    border-bottom: none;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.35);
}
.viewer-link {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--green);
    text-decoration: none;
    letter-spacing: 0.06em;
}
.viewer-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) { .features-grid, .features-grid.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .features-grid, .features-grid.grid-4 { grid-template-columns: 1fr; } }

/* ============================================================
   ANALYSIS
   ============================================================ */
.analysis {
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(900px 500px at 50% 0%, rgba(164, 92, 242, 0.09), transparent 65%),
        var(--bg1);
}
.analysis .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}
.shot {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
}
.shot img {
    margin: 0 auto 14px;
    border-radius: 10px;
    max-width: 100%;
}
.shot.portrait img { max-width: 280px; }
.shot figcaption {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--faint);
    line-height: 1.7;
}
.shot.wide { grid-column: 1 / -1; }
.advanced-head {
    text-align: center;
    max-width: 640px;
    margin: 72px auto 48px;
}
.advanced-head .eyebrow { display: block; margin-bottom: 18px; color: var(--purple); }
.advanced-head .eyebrow::before { color: var(--ghost); }
.advanced-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.advanced-head p { color: var(--dim); font-size: 16px; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; } .shot.portrait img { max-width: 300px; } }

/* ============================================================
   SCREEN TIME
   ============================================================ */
.screentime {
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(1000px 600px at 85% 50%, rgba(63, 125, 248, 0.12), transparent 60%),
        var(--bg0);
}
.st-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}
.st-copy .eyebrow { display: block; margin-bottom: 22px; color: var(--yellow); }
.st-copy h2 { font-size: clamp(36px, 4.6vw, 58px); margin-bottom: 22px; }
.st-lede {
    font-size: 17px;
    line-height: 1.7;
    color: var(--dim);
    margin-bottom: 30px;
}
.st-lede strong { color: var(--ink); }
.st-bullets { list-style: none; margin-bottom: 34px; }
.st-bullets li {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 10px 0;
    font-size: 15.5px;
    color: var(--ink);
    border-top: 1px solid var(--line);
}
.st-bullets li:last-child { border-bottom: 1px solid var(--line); }
.st-bullets li::before {
    content: "→";
    font-family: var(--mono);
    color: var(--yellow);
    flex-shrink: 0;
}
.st-cta {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line-strong);
    padding: 13px 26px;
    border-radius: 3px;
    display: inline-block;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.st-cta:hover { border-color: var(--yellow); background: rgba(255, 216, 61, 0.06); transform: translateY(-2px); }
.st-visual img {
    max-width: 330px;
    margin: 0 auto;
    border-radius: 30px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 80px rgba(63, 125, 248, 0.12);
}
@media (max-width: 900px) {
    .st-grid { grid-template-columns: 1fr; gap: 48px; }
    .st-visual img { max-width: 280px; }
}

/* ============================================================
   QUESTIONS
   ============================================================ */
.questions {
    border-bottom: 1px solid var(--line);
    background: var(--bg1);
    text-align: center;
}
.questions .section-head { margin-left: auto; margin-right: auto; }
.q-list {
    list-style: none;
    max-width: 820px;
    margin: 0 auto 44px;
}
.q-list li {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(24px, 3.2vw, 36px);
    line-height: 1.25;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
}
.q-list li:last-child { border-bottom: 1px solid var(--line); }
.q-list li span { color: var(--ghost); font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: 0.18em; display: block; margin-bottom: 8px; }
.q-closer {
    font-size: 16.5px;
    color: var(--faint);
    max-width: 560px;
    margin: 0 auto;
}
.q-closer strong { color: var(--green); font-weight: 600; }

/* ============================================================
   WHY
   ============================================================ */
.why { border-bottom: 1px solid var(--line); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.why-item {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 34px 30px 38px;
    transition: background 0.25s;
}
.why-item:hover { background: rgba(255, 255, 255, 0.02); }
.why-item .fig { margin-bottom: 18px; }
.why-item h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.15;
}
.why-item p { font-size: 14.5px; color: var(--dim); line-height: 1.65; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download {
    padding: 130px 0 120px;
    text-align: center;
    background:
        radial-gradient(800px 420px at 50% 100%, rgba(47, 221, 110, 0.10), transparent 65%),
        var(--bg0);
}
.download h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 20px; }
.download h2 em { font-style: italic; color: var(--green); }
.download > .container > p {
    font-size: 17px;
    color: var(--dim);
    max-width: 520px;
    margin: 0 auto 40px;
}
.appstore-btn {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--ink);
    color: #0a0a0f;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.25;
    text-align: left;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}
.appstore-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 54px rgba(0, 0, 0, 0.6); }
.appstore-btn svg { flex-shrink: 0; }
.appstore-btn span small { font-size: 11px; display: block; }
.pricing-note {
    margin-top: 38px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 2.1;
    color: var(--faint);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-note strong { color: var(--dim); font-weight: 500; }
.pricing-note a { color: var(--green); text-decoration: none; }
.pricing-note a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 40px;
    background: var(--bg1);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.footer-brand p {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--faint);
    margin-top: 10px;
    letter-spacing: 0.04em;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 10px 36px;
}
.footer-links a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
    text-decoration: none;
    letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--green); }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ghost);
    letter-spacing: 0.06em;
}
@media (max-width: 640px) { .footer-links { grid-template-columns: repeat(2, auto); } }

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   SUBPAGE HELPERS (about, pricing, support, legal, …)
   ============================================================ */
.page-hero {
    padding: 148px 0 64px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(900px 420px at 75% 0%, rgba(63, 125, 248, 0.08), transparent 62%),
        var(--bg0);
}
.page-hero .eyebrow { display: block; margin-bottom: 22px; }
.page-hero h1 {
    font-size: clamp(40px, 5.4vw, 68px);
    margin-bottom: 20px;
    max-width: 800px;
}
.page-hero h1 em { font-style: italic; color: var(--green); }
.page-hero .lede {
    font-size: 18px;
    line-height: 1.65;
    color: var(--dim);
    max-width: 640px;
}

.prose {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--dim);
}
.prose h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    color: var(--ink);
    margin: 56px 0 18px;
}
.prose h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    color: var(--ink);
    margin: 36px 0 12px;
}
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); }
.prose a { color: var(--green); text-decoration: none; }
.prose a:hover { text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img {
    border-radius: 10px;
    border: 1px solid var(--line);
    margin: 8px 0 18px;
}
.prose blockquote {
    border-left: 2px solid var(--green);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--ink);
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.prose code {
    font-family: var(--mono);
    font-size: 14px;
    background: rgba(240, 238, 230, 0.07);
    padding: 1px 6px;
    border-radius: 3px;
}

/* simple key/value or comparison tables on dark */
.fable-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 24px 0;
}
.fable-table th {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-strong);
}
.fable-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--dim);
}
.fable-table td:first-child { color: var(--ink); }

/* price cards */
.price-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 720px;
    margin: 0 auto;
}
.price-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px 28px;
    text-align: center;
}
.price-card.featured { border-color: var(--green-deep); box-shadow: 0 0 40px rgba(47, 221, 110, 0.08); }
.price-card .plan {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}
.price-card .amount {
    font-family: var(--serif);
    font-size: 48px;
    color: var(--ink);
    line-height: 1;
}
.price-card .per {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--faint);
    margin: 8px 0 16px;
}
.price-card p { font-size: 14px; color: var(--dim); line-height: 1.6; }
@media (max-width: 640px) { .price-cards { grid-template-columns: 1fr; } }
