@font-face {
    font-family: "Space Grotesk Variable";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/fonts/space-grotesk-latin.woff2") format("woff2-variations");
}

@font-face {
    font-family: "JetBrains Mono Variable";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2-variations");
}

:root {
    --bg: #0b0d0b;
    --surface: #131613;
    --surface-2: #1a1e1a;
    --border: #262b26;
    --fg: #e8e6e0;
    --muted: #929a92;
    --primary: #33e667;
    --on-primary: #06170b;
    --primary-dim: #1d5c33;
    --amber: #ffb000;
    --red: #ff4444;
    --ticker-bg: #0a140e;
    --ticker-cell: #10211a;
    --ticker-border: #1e4230;
    --shadow: 0 18px 60px rgb(0 0 0 / 35%);
    --display: "Space Grotesk Variable", "Space Grotesk", sans-serif;
    --mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, monospace;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #f4f2ea;
    --border: #ddd9cc;
    --fg: #171a17;
    --muted: #6c7268;
    --primary: #0e9c47;
    --on-primary: #fff;
    --primary-dim: #9fdcb6;
    --ticker-bg: #e7f3ea;
    --ticker-cell: #f4fbf6;
    --ticker-border: #bcdcc7;
    --shadow: 0 18px 60px rgb(40 36 24 / 12%);
    color-scheme: light;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background:
        radial-gradient(circle at 50% -15%, rgb(51 230 103 / 6%), transparent 35rem),
        var(--bg);
    color: var(--fg);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background-color .2s ease, color .2s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    color: inherit;
    font: inherit;
}

button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

::selection {
    color: var(--on-primary);
    background: var(--primary);
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1280px, calc(100% - 40px));
    min-height: 64px;
    margin-inline: auto;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
    transition: opacity .15s ease;
}

.brand:hover {
    opacity: .8;
}

.brand-mark {
    width: 31px;
    flex: 0 0 31px;
    color: var(--primary);
}

.brand-word {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-word span {
    color: var(--primary);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 13px;
}

.site-nav a,
.theme-toggle {
    transition: color .15s ease, border-color .15s ease, transform .12s ease;
}

.site-nav a:hover {
    color: var(--fg);
}

.nav-cta,
.theme-toggle {
    border: 1px solid var(--border);
    border-radius: 6px;
}

.nav-cta {
    padding: 7px 12px;
    color: var(--fg) !important;
}

.theme-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--muted);
}

.theme-toggle:hover,
.nav-cta:hover {
    border-color: var(--muted);
}

.theme-toggle:active,
.nav-cta:active,
.primary-button:active {
    transform: scale(.96);
}

.theme-toggle .sun,
[data-theme="light"] .theme-toggle .moon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun {
    display: block;
}

.hero {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 84px 20px 56px;
    gap: 26px;
    text-align: center;
}

.eyebrow,
.micro-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
}

.hero h1 {
    max-width: 1180px;
    font-size: clamp(38px, 5.4vw, 76px);
}

.hero h1 span {
    position: relative;
    color: var(--primary);
    text-shadow: 0 0 45px rgb(51 230 103 / 18%);
}

.hero-copy {
    color: var(--muted);
    font-size: 15px;
}

.search-wrap {
    position: relative;
    z-index: 30;
    width: min(640px, 100%);
}

.search {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px 18px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(51 230 103 / 10%), 0 18px 50px rgb(0 0 0 / 24%);
    transform: translateY(-2px);
}

.chevron {
    color: var(--primary);
    font-size: 17px;
    font-weight: 700;
}

.search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 15px;
}

.terminal-cursor {
    width: 8px;
    height: 19px;
    background: var(--primary);
    animation: blink 1.1s steps(1) infinite;
}

.search:focus-within .terminal-cursor {
    display: none;
}

.search-clear {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 4px;
    color: var(--fg);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.search-clear[hidden],
.search-results[hidden] {
    display: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: left;
}

.search-result-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 13px 15px;
    gap: 12px;
    transition: background-color .12s ease;
}

.search-result-link:hover,
.search-result-link:focus-visible {
    outline: none;
    background: var(--surface-2);
}

.search-result-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 2px solid var(--primary);
    border-radius: 7px;
    color: var(--primary);
    font-weight: 800;
}

.search-result-name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.search-result-name strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-meta {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.chip,
.filter {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--muted);
    font-size: 12px;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .12s ease;
}

.chip:hover,
.filter:hover:not(:disabled),
.filter.active {
    border-color: var(--primary-dim);
    background: rgb(51 230 103 / 7%);
    color: var(--primary);
}

.chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}

.chip:active,
.filter:active {
    transform: scale(.95);
}

.ticker {
    position: relative;
    z-index: 20;
    overflow: visible;
    border-block: 1px solid var(--ticker-border);
    background: var(--ticker-bg);
    color: var(--primary);
}

.ticker-tape {
    overflow: hidden;
    border-bottom: 1px solid var(--ticker-border);
    padding: 7px 0;
    font-size: 11px;
    letter-spacing: .05em;
    white-space: nowrap;
}

.ticker-track {
    display: flex;
    width: max-content;
    min-width: max-content;
    animation: tape 70s linear infinite;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.ticker-segment {
    display: flex;
    min-width: 100vw;
    flex: 0 0 auto;
    align-items: center;
    padding-right: 1ch;
}

.ticker-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 116px;
    gap: 20px;
}

.ticker-label {
    color: color-mix(in srgb, var(--primary) 75%, var(--muted));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.45;
    text-align: right;
    text-transform: uppercase;
}

.odometer {
    display: flex;
    align-items: center;
    font-family: var(--display);
    font-size: clamp(50px, 8vw, 76px);
    font-weight: 800;
    line-height: 1;
}

.odometer .digit {
    display: grid;
    overflow: hidden;
    width: .68em;
    height: .96em;
    place-items: center;
    border: 1px solid var(--ticker-border);
    border-radius: 5px;
    background: var(--ticker-cell);
    box-shadow: inset 0 0 18px rgb(51 230 103 / 8%);
    animation: odometer .7s .4s both cubic-bezier(.22, 1, .36, 1);
}

.symbol {
    margin-right: .06em;
}

.per-month {
    align-self: flex-end;
    margin: 0 0 27px -13px;
    color: var(--muted);
    font-size: 13px;
}

.ticker-help {
    position: relative;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid var(--ticker-border);
    border-radius: 50%;
    color: var(--muted);
    cursor: help;
    font-size: 11px;
}

.ticker-tooltip {
    position: absolute;
    z-index: 10;
    top: calc(100% + 12px);
    right: 0;
    display: flex;
    visibility: hidden;
    width: 270px;
    padding: 16px;
    flex-direction: column;
    border: 1px solid var(--ticker-border);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--fg);
    opacity: 0;
    transform: translateY(-6px);
    transition: .18s ease;
}

.ticker-tooltip span,
.ticker-tooltip em {
    color: var(--muted);
    font-style: normal;
}

.ticker-help:hover .ticker-tooltip,
.ticker-help:focus .ticker-tooltip {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.death-list {
    padding-block: 82px 68px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 24px;
    gap: 20px;
}

.section-head .eyebrow {
    margin-bottom: 7px;
}

.section-head h2,
.cta-section h2 {
    font-size: clamp(38px, 5vw, 62px);
}

.section-note,
.result-count {
    color: var(--muted);
    font-size: 12px;
}

.list-filters {
    display: flex;
    align-items: center;
    padding: 13px 0;
    border-block: 1px solid var(--border);
    gap: 8px;
}

.filter {
    border-radius: 5px;
    padding: 5px 10px;
}

.filter.yes {
    color: var(--primary);
}

.filter.disabled {
    cursor: not-allowed;
    opacity: .4;
}

.result-count {
    margin-left: auto;
}

.table-head,
.app-row {
    display: grid;
    grid-template-columns: minmax(300px, 2.1fr) 1.1fr .7fr .8fr;
    align-items: center;
    gap: 18px;
}

.table-head {
    padding: 14px 17px 9px;
}

.app-row {
    position: relative;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: 0 0 0 transparent;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.app-row::before {
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    width: 3px;
    border-radius: 7px 0 0 7px;
    background: var(--primary);
    content: "";
    opacity: 0;
    transition: opacity .18s ease;
}

.app-row:hover {
    border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
    background: color-mix(in srgb, var(--surface) 93%, var(--primary));
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.app-row:hover::before {
    opacity: 1;
}

.app-name {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.rank {
    color: var(--muted);
    font-size: 12px;
}

.app-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 900;
}

.app-name strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-name small {
    color: var(--muted);
    font-size: 10px;
}

.category,
.price {
    color: var(--muted);
    font-size: 12px;
}

.badge {
    display: inline-block;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 10px;
    letter-spacing: .07em;
}

.badge.yes {
    background: var(--primary);
    color: var(--on-primary);
}

.badge.kinda {
    background: var(--amber);
    color: #1a1200;
}

.row-verdict {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.row-verdict i {
    color: var(--primary);
    font-style: normal;
    transition: transform .18s ease;
}

.app-row:hover .row-verdict i {
    transform: translate(3px, -3px);
}

.empty-result {
    padding: 30px;
    border: 1px dashed var(--border);
    border-radius: 7px;
    color: var(--muted);
    text-align: center;
}

.empty-result .badge {
    margin-right: 10px;
}

.verdict-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    margin-bottom: 96px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--border);
    border-radius: 11px;
    background:
        linear-gradient(135deg, rgb(51 230 103 / 8%), transparent 48%),
        var(--surface);
    box-shadow: var(--shadow);
    gap: clamp(35px, 7vw, 90px);
}

.verdict-copy h2 {
    margin: 9px 0 22px;
    color: var(--primary);
    font-size: clamp(54px, 8vw, 92px);
}

.verdict-copy h2 span {
    color: var(--muted);
    font-size: .28em;
    letter-spacing: 0;
}

.verdict-copy > p:not(.eyebrow) {
    max-width: 650px;
    color: var(--muted);
    font-family: var(--display);
    font-size: 19px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 13px 18px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 0 28px rgb(51 230 103 / 13%);
    transition: transform .15s ease, box-shadow .15s ease;
}

.primary-button:hover {
    box-shadow: 0 0 40px rgb(51 230 103 / 27%);
    transform: translateY(-2px);
}

.receipt {
    position: relative;
    align-self: center;
    padding: 24px 23px 20px;
    background: #f1ebd9;
    box-shadow: 7px 10px 0 rgb(0 0 0 / 20%);
    color: #1d211d;
    font-size: 12px;
    transform: rotate(1.6deg);
    transition: transform .25s ease;
}

.receipt:hover {
    transform: rotate(0) translateY(-4px);
}

.receipt::before,
.receipt::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 8px;
    background: linear-gradient(135deg, transparent 5px, #f1ebd9 0) 0 0/10px 10px repeat-x;
    content: "";
}

.receipt::before {
    top: -7px;
}

.receipt::after {
    bottom: -7px;
    transform: rotate(180deg);
}

.receipt-top {
    display: block;
    padding-bottom: 15px;
    border-bottom: 1px dashed #929080;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
}

.receipt dl {
    padding-block: 14px;
}

.receipt dl div,
.receipt-total {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.receipt dd {
    font-weight: 900;
}

.receipt-total {
    padding-top: 13px;
    border-top: 2px dashed #5d5b52;
}

.receipt-total strong {
    color: #087938;
}

.receipt > small {
    display: block;
    margin-top: 16px;
    color: #66645a;
    font-size: 9px;
    text-align: center;
}

.cta-section {
    padding-block: 110px;
    text-align: center;
}

.cta-section h2 {
    margin-top: 15px;
}

.primary-button.large {
    padding: 16px 23px;
    font-size: 14px;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1280px, calc(100% - 40px));
    min-height: 78px;
    margin-inline: auto;
    gap: 24px;
}

.site-footer a {
    color: var(--fg);
    text-decoration: underline;
    text-decoration-color: var(--primary-dim);
    text-underline-offset: 3px;
}

.vibed-by {
    text-align: right;
}

.toast {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    visibility: hidden;
    padding: 10px 14px;
    border: 1px solid var(--primary-dim);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--primary);
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: .2s ease;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes tape {
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes odometer {
    from { opacity: 0; transform: translateY(-.45em) rotateX(-45deg); }
}

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

    .table-head {
        display: none;
    }

    .app-row {
        grid-template-columns: minmax(0, 1.8fr) .7fr;
    }

    .app-row .category,
    .app-row .price {
        display: none;
    }

    .verdict-panel {
        grid-template-columns: 1fr;
    }

    .receipt {
        width: min(390px, 100%);
        justify-self: center;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 24px;
        gap: 8px;
    }

    .vibed-by {
        text-align: left;
    }
}

@media (max-width: 620px) {
    .header-inner {
        width: min(100% - 28px, 1280px);
    }

    .brand-word {
        max-width: 180px;
        font-size: 12px;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding-top: 68px;
    }

    .hero h1 {
        font-size: clamp(39px, 11vw, 60px);
    }

    .hero-copy br {
        display: none;
    }

    .search-result-meta {
        display: none;
    }
    .ticker-main {
        min-height: 100px;
        gap: 12px;
    }

    .ticker-label {
        display: none;
    }

    .per-month {
        margin-bottom: 20px;
    }

    .ticker-tooltip {
        right: -12px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .list-filters .micro-label,
    .filter.disabled,
    .result-count {
        display: none;
    }

    .app-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .app-name small {
        display: none;
    }

    .verdict-panel {
        width: calc(100% - 28px);
        padding: 28px 20px 38px;
    }

    .verdict-copy h2 span {
        display: block;
        margin-top: 10px;
    }

    .cta-section {
        padding-block: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
