/* ChartRip product pages. Standalone: does not use styles.css. */
:root {
    --navy-950: #050b2a;
    --navy-900: #0a1440;
    --navy-800: #0f1f5c;
    --navy-700: #17307f;
    --cyan: #32dbe6;
    --cyan-soft: rgba(50, 219, 230, 0.14);
    --blue: #5b8cff;
    --amber: #f5a524;
    --paper: #f5f8ff;
    --ink: #0b1233;
    --text: #dbe3ff;
    --muted: #9aa8d8;
    --line: rgba(160, 180, 255, 0.16);
    --glass: rgba(15, 31, 92, 0.55);
    --radius: 18px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--navy-950);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: var(--cyan);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(5, 11, 42, 0.72);
    border-bottom: 1px solid var(--line);
}

.nav .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 27px;
    letter-spacing: -0.02em;
    color: #fff;
}

.brand:hover {
    text-decoration: none;
}

.brand .tm {
    font-size: 0.7em;
    font-weight: 600;
    line-height: 0;
    margin-left: -10px;
    align-self: flex-start;
    margin-top: 0.85em;
    color: var(--text);
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    font-size: 15px;
}

.nav-links a {
    color: var(--muted);
}

.nav-links a:hover {
    color: #fff;
    text-decoration: none;
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
    color: var(--navy-950);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: var(--navy-950);
    box-shadow: 0 8px 28px rgba(50, 219, 230, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 10px 34px rgba(50, 219, 230, 0.42);
}

.btn-ghost {
    border-color: var(--line);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 96px;
    background:
        radial-gradient(900px 500px at 85% 0%, rgba(50, 219, 230, 0.22), transparent 60%),
        radial-gradient(800px 600px at 0% 30%, rgba(91, 140, 255, 0.22), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

/* faint five-line staves running behind the hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(to bottom,
        transparent 0 76px,
        rgba(160, 190, 255, 0.10) 76px 77px,
        transparent 77px 90px,
        rgba(160, 190, 255, 0.10) 90px 91px,
        transparent 91px 104px,
        rgba(160, 190, 255, 0.10) 104px 105px,
        transparent 105px 118px,
        rgba(160, 190, 255, 0.10) 118px 119px,
        transparent 119px 132px,
        rgba(160, 190, 255, 0.10) 132px 133px,
        transparent 133px 220px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    margin-bottom: 22px;
}

.hero h1 span {
    background: linear-gradient(100deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 20px;
    color: var(--text);
    max-width: 34em;
    margin: 0 0 32px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.chips li {
    font-size: 14px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.chips i {
    color: var(--cyan);
    margin-right: 6px;
}

.fine {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- App window mock ---------- */
.window {
    border-radius: var(--radius);
    background: #12161f;
    border: 1px solid rgba(160, 190, 255, 0.22);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 120px rgba(50, 219, 230, 0.12);
    overflow: hidden;
    color: #e7ebf6;
    font-size: 14px;
    transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) translateY(0);
    }
    50% {
        transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) translateY(-10px);
    }
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #191c22;
    border-bottom: 1px solid #2a2e37;
}

.window-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3a4050;
}

.window-bar b {
    margin: 0 auto;
    font-weight: 500;
    font-size: 13px;
    color: #98a1b2;
}

.window-body {
    padding: 18px;
}

.window-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.window-title strong {
    font-size: 17px;
    color: #fff;
}

.window-title span {
    color: #98a1b2;
    font-size: 13px;
}

.parts {
    display: grid;
    gap: 8px;
}

.part {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 12px;
    background: #191c22;
    border: 1px solid #2a2e37;
}

.part.on {
    border-color: rgba(91, 140, 255, 0.6);
    background: rgba(91, 140, 255, 0.12);
}

.thumb {
    width: 34px;
    height: 44px;
    border-radius: 3px;
    background:
        repeating-linear-gradient(to bottom, transparent 0 7px, rgba(30, 40, 90, 0.35) 7px 8px),
        #f5f8ff;
}

.part strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.part small {
    color: #98a1b2;
    font-size: 12px;
}

.badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.badge.ok {
    color: #6ee7a0;
    background: rgba(110, 231, 160, 0.12);
}

.badge.check {
    color: var(--amber);
    background: rgba(245, 165, 36, 0.14);
}

.window-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #2a2e37;
    color: #98a1b2;
    font-size: 13px;
}

.window-foot em {
    font-style: normal;
    font-weight: 600;
    color: #fff;
    background: #5b8cff;
    padding: 8px 16px;
    border-radius: 10px;
}

/* ---------- Sections ---------- */
.section {
    padding: 104px 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-head p {
    color: var(--muted);
    font-size: 19px;
    margin: 0;
}

.section.alt {
    background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

/* Problem */
.problem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.problem h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
}

.problem p {
    color: var(--muted);
    font-size: 19px;
    margin: 0 0 14px;
}

.problem p strong {
    color: #fff;
}

.versus {
    display: grid;
    gap: 16px;
}

.versus div {
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--glass);
}

.versus .before {
    opacity: .75;
}

.versus .after {
    border-color: rgba(50, 219, 230, 0.5);
    box-shadow: 0 0 40px rgba(50, 219, 230, 0.12);
}

.versus h4 {
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--muted);
}

.versus .after h4 {
    color: var(--cyan);
}

.versus p {
    margin: 0;
    font-size: 16px;
    color: var(--text);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--line);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 20px;
    color: var(--navy-950);
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 54px;
    left: calc(100% + 2px);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.step h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.step p {
    margin: 0;
    color: var(--muted);
}

/* Feature grid */
.features {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.feature {
    grid-column: span 2;
    padding: 30px 28px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--line);
    transition: border-color .2s ease, transform .2s ease;
}

.feature:hover {
    border-color: rgba(50, 219, 230, 0.5);
    transform: translateY(-3px);
}

.feature.wide {
    grid-column: span 3;
}

.feature .ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--cyan-soft);
    color: var(--cyan);
    font-size: 20px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

/* Promises */
.promises {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 400px at 50% 0%, rgba(50, 219, 230, 0.18), transparent 70%),
        var(--navy-800);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.promises h2 {
    text-align: center;
    font-size: clamp(32px, 4.6vw, 52px);
    font-weight: 800;
    margin-bottom: 14px;
}

.promises .sub {
    text-align: center;
    color: var(--muted);
    max-width: 38em;
    margin: 0 auto 52px;
    font-size: 19px;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.promise {
    padding: 28px 24px;
    border-radius: var(--radius);
    background: rgba(5, 11, 42, 0.55);
    border: 1px solid var(--line);
    text-align: center;
}

.promise i {
    font-size: 26px;
    color: var(--cyan);
    margin-bottom: 14px;
}

.promise strong {
    display: block;
    color: #fff;
    font-size: 19px;
    margin-bottom: 6px;
}

.promise span {
    color: var(--muted);
    font-size: 15px;
}

.promises .more {
    text-align: center;
    margin-top: 34px;
}

/* Final CTA */
.final {
    text-align: center;
}

.final img {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(50, 219, 230, 0.25);
    margin-bottom: 28px;
}

.final h2 {
    font-size: clamp(32px, 4.6vw, 52px);
    font-weight: 800;
    margin-bottom: 14px;
}

.final p {
    color: var(--muted);
    font-size: 19px;
    margin: 0 auto 30px;
    max-width: 32em;
}

.final .cta-row {
    justify-content: center;
}

.notes {
    max-width: 760px;
    margin: 56px auto 0;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.notes p {
    max-width: none;
    margin: 0 0 8px;
}

/* ---------- Footer ---------- */
.foot {
    border-top: 1px solid var(--line);
    padding: 36px 0 44px;
    font-size: 14px;
    color: var(--muted);
}

.foot .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    justify-content: space-between;
    align-items: center;
}

.foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.foot a {
    color: var(--muted);
}

.foot a:hover {
    color: #fff;
}

/* ---------- Document pages (support, privacy, terms) ---------- */
.doc-hero {
    padding: 64px 0 40px;
    background:
        radial-gradient(800px 360px at 80% 0%, rgba(50, 219, 230, 0.18), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

.doc-hero .wrap {
    max-width: 820px;
}

.doc-hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
}

.doc-hero p {
    color: var(--muted);
    margin: 12px 0 0;
}

.doc {
    max-width: 820px;
    margin: 0 auto 80px;
    padding: 48px;
    border-radius: var(--radius);
    background: var(--paper);
    color: #1d2550;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.doc h2, .doc h3, .doc h4 {
    color: var(--ink);
}

.doc h2 {
    font-size: 28px;
    margin: 0 0 14px;
}

.doc h3 {
    font-size: 21px;
    margin: 34px 0 10px;
}

.doc h4 {
    font-size: 17px;
    margin: 22px 0 6px;
}

.doc p, .doc li {
    color: #2b3566;
}

.doc a {
    color: #1757d6;
}

.doc code {
    background: #e4eaff;
    padding: 1px 6px;
    border-radius: 5px;
}

.doc hr {
    border: 0;
    border-top: 1px solid #d3dbf5;
    margin: 44px 0;
}

.doc .updated {
    color: #6b76a8;
    font-size: 15px;
}

.doc .callout {
    padding: 18px 22px;
    border-radius: 14px;
    background: #e4eaff;
}

.doc .callout p {
    margin: 0;
}

/* ---------- Motion ---------- */
.hero .wrap > div:first-child > * {
    animation: rise .7s ease both;
}

.hero .wrap > div:first-child > :nth-child(2) {
    animation-delay: .08s;
}

.hero .wrap > div:first-child > :nth-child(3) {
    animation-delay: .16s;
}

.hero .wrap > div:first-child > :nth-child(4) {
    animation-delay: .24s;
}

.hero .wrap > div:first-child > :nth-child(5) {
    animation-delay: .32s;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero .wrap, .problem {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 56px 0 72px;
    }

    .window {
        transform: none;
        animation: none;
    }

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

    .step::after {
        display: none;
    }

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

    .feature, .feature.wide {
        grid-column: span 1;
    }

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

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .features, .promise-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature {
        padding: 22px 20px;
    }

    .feature .ico {
        margin-bottom: 12px;
    }

    .doc {
        padding: 28px 22px;
        border-radius: 0;
        margin-bottom: 0;
    }

    .wrap {
        padding: 0 18px;
    }
}
