@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

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

:root {
    color-scheme: dark;

    --bg: #04120d;
    --bg-raised: #071a13;
    --surface: #0a2119;
    --surface-2: #0e2b20;
    --line: #153a2b;
    --line-strong: #1f5740;

    --ink: #e6f6ee;
    --muted: #8fb5a2;
    --faint: #5f8672;

    --brand: #10b981;
    --brand-strong: #0b8a5a;
    --signal: #5eeaa0;

    --ok: #5eeaa0;
    --ok-bg: rgba(94, 234, 160, .12);
    --warn: #f5c451;
    --warn-bg: rgba(245, 196, 81, .12);
    --bad: #ff7b72;
    --bad-bg: rgba(255, 123, 114, .12);

    --radius: 14px;
    --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--font);
}

main {
    flex: 1;
}

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

a {
    color: var(--signal);
    text-underline-offset: 3px;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}

p {
    margin: 0;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 100;
    padding: .6rem 1rem;
    border-radius: 8px;
    background: var(--brand);
    color: #04120d;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
    border-radius: 6px;
}

.icon {
    flex: none;
    width: 1.25em;
    height: 1.25em;
}

.muted {
    color: var(--faint);
    font-weight: 400;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(4, 18, 13, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.03em;
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: .25rem;
}

.site-nav a {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .85rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: .98rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.site-nav a:hover {
    background: var(--surface);
    color: var(--ink);
}

.site-nav a[aria-current="page"] {
    background: var(--surface-2);
    color: var(--signal);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.site-nav .icon {
    width: 1.05em;
    height: 1.05em;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: none;
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle .i-close,
.nav-toggle[aria-expanded="true"] .i-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .i-close {
    display: block;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .85rem 1.4rem;
    border: 0;
    border-radius: 12px;
    font: 600 1rem var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    cursor: progress;
}

.btn-primary {
    background: var(--brand);
    color: #03150f;
}

.btn-primary:hover {
    background: var(--signal);
}

.spinner {
    display: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 2.5px solid rgba(3, 21, 15, .3);
    border-top-color: #03150f;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.loading .spinner {
    display: block;
}

.loading .icon {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero {
    background:
        radial-gradient(ellipse at 80% 30%, rgba(16, 185, 129, .16), transparent 60%),
        linear-gradient(180deg, var(--bg), var(--bg-raised));
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
    padding-block: 4.5rem;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.6rem, 5.4vw, 4.3rem);
    text-wrap: balance;
}

.hero-lead {
    max-width: 34rem;
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 1.2rem;
}

.hero-form {
    display: flex;
    gap: .6rem;
    max-width: 34rem;
    margin-top: 2rem;
}

.hero-form input {
    flex: 1;
    min-width: 0;
}

.facts {
    display: flex;
    gap: 2.5rem;
    margin: 2.5rem 0 0;
}

.facts dt {
    color: var(--signal);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

.facts dd {
    margin: .3rem 0 0;
    color: var(--muted);
    font-size: .95rem;
}

.hero-graph {
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: #031009;
    box-shadow: 0 0 80px -20px rgba(16, 185, 129, .35);
}

.hero-graph svg {
    width: 100%;
    height: auto;
}

.links path {
    fill: none;
    stroke: #1f7d58;
    stroke-width: 1.5;
}

.nodes circle {
    fill: var(--signal);
    opacity: .9;
}

.ring {
    fill: none;
    stroke: var(--signal);
    stroke-width: 1.5;
    opacity: .5;
    transform-origin: 56px 210px;
    animation: ring 2.4s ease-out infinite;
}

@keyframes ring {
    from {
        transform: scale(.6);
        opacity: .8;
    }

    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse {
    fill: var(--signal);
}

.pulse-white {
    fill: #fff;
}

.provider circle {
    fill: #000000;
    stroke: var(--line-strong);
    stroke-width: 2;
}

.hub circle {
    fill: var(--signal);
    opacity: .5;
}

.section {
    padding-block: 4.5rem;
}

.section-tint {
    background: var(--bg-raised);
    border-block: 1px solid var(--line);
}

.section-head {
    max-width: 38rem;
    margin-bottom: 2.25rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.section-head p {
    margin-top: .75rem;
    color: var(--muted);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, transform .15s, background .15s;
}

.tool-card:hover {
    border-color: var(--brand);
    background: var(--surface-2);
    transform: translateY(-2px);
}

.tool-icon,
.app-icon,
.tool-head-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--ok-bg);
    color: var(--signal);
}

.tool-card h3 {
    margin-top: .5rem;
    font-size: 1.35rem;
}

.tool-card p {
    color: var(--muted);
}

.tool-open {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: .75rem;
    color: var(--signal);
    font-weight: 600;
}

.privacy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.privacy .section-head {
    margin: 0;
}

.point-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.point-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.point-list .icon {
    width: 1.6rem;
    height: 1.6rem;
    margin-top: .15rem;
    color: var(--signal);
}

.point-list h3 {
    font-size: 1.1rem;
}

.point-list p {
    color: var(--muted);
    font-size: .98rem;
}

.tool-head {
    padding-block: 3rem 4.5rem;
    background:
        radial-gradient(circle at 90% 0%, rgba(16, 185, 129, .2), transparent 55%),
        linear-gradient(180deg, #031009, var(--bg));
    border-bottom: 1px solid var(--line);
}

.tool-head .wrap {
    display: grid;
    gap: .6rem;
}

.tool-head h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.tool-head p {
    max-width: 38rem;
    color: var(--muted);
}

.tool-head-icon {
    margin-bottom: .5rem;
}

.tool-body {
    position: relative;
    margin-top: -2.25rem;
    padding-bottom: 3rem;
}

.panel {
    display: grid;
    gap: 1.25rem;
    padding: 1.75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .8);
}

.panel .btn {
    justify-self: start;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.field {
    display: grid;
    gap: .45rem;
    align-content: start;
}

label {
    font-size: .95rem;
    font-weight: 600;
}

input,
select {
    width: 100%;
    min-height: 50px;
    padding: .8rem 1rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem var(--font);
}

input::placeholder {
    color: var(--faint);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .2);
}

small {
    color: var(--faint);
    font-size: .88rem;
}

.alert {
    padding: .75rem 1rem;
    border: 1px solid rgba(255, 123, 114, .3);
    border-radius: 10px;
    background: var(--bad-bg);
    color: var(--bad);
    font-weight: 500;
}

.results {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.results h2 {
    font-size: 1.5rem;
}

.results.is-in > * {
    animation: reveal .35s ease-out;
}

@keyframes reveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.summary {
    display: grid;
    gap: .6rem;
    justify-items: start;
}

.summary:empty {
    display: none;
}

.summary p {
    color: var(--muted);
}

.result-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
    gap: 1rem;
    align-items: start;
}

.result-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.result-title {
    font-weight: 700;
}

.result-sub {
    color: var(--faint);
    font-family: var(--mono);
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.result-body {
    display: grid;
    gap: .9rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg-raised);
}

.empty-note {
    color: var(--faint);
    font-size: .95rem;
}

.kv {
    display: grid;
    gap: .55rem;
    margin: 0;
}

.kv-row {
    display: grid;
    grid-template-columns: minmax(90px, 140px) 1fr;
    gap: .25rem 1rem;
    align-items: baseline;
}

.kv dt {
    color: var(--faint);
    font-size: .88rem;
}

.kv dd {
    min-width: 0;
    margin: 0;
    font-family: var(--mono);
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.kv dd a {
    color: var(--signal);
}

.record {
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.record + .record {
    margin-top: 0;
}

.record-main {
    margin-bottom: .6rem;
    color: var(--signal);
    font-family: var(--mono);
    font-size: .95rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.record-main:last-child {
    margin-bottom: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.chip {
    padding: .2rem .6rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.chip-key {
    color: var(--signal);
}

.text-block {
    color: var(--ink);
    font-family: var(--mono);
    font-size: .88rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge .icon {
    width: 1em;
    height: 1em;
}

.badge-ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.badge-warn,
.badge-soon {
    background: var(--warn-bg);
    color: var(--warn);
}

.badge-bad {
    background: var(--bad-bg);
    color: var(--bad);
}

.badge-big {
    padding: .5rem 1rem;
    font-size: 1rem;
}

.meter {
    width: min(100%, 420px);
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-2);
}

.meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ok);
    transition: width .6s ease-out;
}

.meter-warn span {
    background: var(--warn);
}

.meter-bad span {
    background: var(--bad);
}

.check-list {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: var(--ink);
    font-size: .98rem;
}

.check-list li::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: .55rem;
    border-radius: 50%;
    background: var(--faint);
}

.check-bad li::before {
    background: var(--bad);
}

.check-warn li::before {
    background: var(--warn);
}

.check-good li::before {
    background: var(--ok);
}

.subhead {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
}

input:disabled,
select:disabled {
    opacity: .55;
    cursor: not-allowed;
}

input[aria-invalid="true"] {
    border-color: var(--bad);
    box-shadow: 0 0 0 4px rgba(255, 123, 114, .15);
}

.btn:disabled {
    opacity: .85;
}

.group {
    display: grid;
    gap: .6rem;
}

.group + .group {
    padding-top: .9rem;
    border-top: 1px dashed var(--line);
}

.group .subhead {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.tag {
    padding: .1rem .55rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
}

.value-line {
    display: grid;
    gap: .5rem;
}

.record-stack {
    display: grid;
    gap: .6rem;
}

.more summary {
    width: fit-content;
    color: var(--signal);
    font-size: .88rem;
    cursor: pointer;
}

.more[open] summary {
    margin-bottom: .6rem;
}

.skeleton .result-card {
    min-height: 150px;
    border-color: var(--line);
    background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
    background-size: 300% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: 0 0;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding-bottom: 4.5rem;
}

.info-item {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--surface);
}

.info-item .icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: .6rem;
    color: var(--signal);
}

.info-item h2 {
    margin-bottom: .35rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--muted);
    font-size: .98rem;
}

.apps {
    display: grid;
    gap: 2.5rem;
    padding-block: 3rem 4.5rem;
}

.app-group h2 {
    margin-bottom: 1.1rem;
    font-size: 1.4rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.app-card h3 {
    margin-top: .4rem;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.app-card p {
    flex: 1;
    color: var(--muted);
}

.apps-note {
    color: var(--faint);
    text-align: center;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: #031009;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-block: 3.5rem 2.5rem;
}

.footer-brand p {
    max-width: 26rem;
    margin-top: 1rem;
}

.privacy-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: var(--ok-bg);
    color: var(--signal);
    font-size: .92rem;
    font-weight: 600;
}

.site-footer h2 {
    margin-bottom: .8rem;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0;
}

.site-footer ul {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer .brand {
    color: #fff;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    padding-block: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: .95rem;
}

@media (max-width: 900px) {
    .hero-grid,
    .privacy,
    .footer-grid,
    .info-grid,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 2rem;
        padding-block: 3rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        padding: .75rem 1.25rem 1rem;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: .8rem 1rem;
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .field-row,
    .kv-row {
        grid-template-columns: 1fr;
    }

    .hero-form {
        flex-direction: column;
    }

    .facts {
        gap: 1.5rem;
    }

    .panel {
        padding: 1.25rem;
    }

    .panel .btn {
        justify-self: stretch;
    }
}

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

}
