@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;700&display=swap');

:root {
    --primary-color: rgb(106, 101, 238);
    --primary-hover: rgb(90, 85, 220);
    --bg-bright: #f6f8f9;
    --bg-dark: #eeeeee;
    --bg-inverse: #909090;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 10px 20px rgba(106, 101, 238, 0.15);

    --offering-color: var(--primary-color);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-bright);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: inherit;
    transition: color 0.4s;
}
a:hover {
    color: var(--primary-color);
}

dt {
    font-weight: 700;
    margin: 1rem 0 1rex 0;
}
dd {
    margin: 1rex 0 1rex 2rem;
}

h1 {
    margin: 2rem 0 1rem 0;
    line-height: 110%;
    font-size: clamp(12px, 11vw, 300%);
}
h2 {
    margin: 2rem 0 1rem 0;
    line-height: 120%;
    margin-top: 3rem;
    font-size: clamp(10px, 7vw, 200%);
}
h2:first-child {
    margin-top: 0;
}
h3 {
    margin: 1.5em 0 1em 0;
    line-height: 120%;
    font-size: clamp(9px, 7vw, 150%);
}
h4 {
    margin: 1.5em 0 0.5em 0;
    line-height: 120%;
    font-size: clamp(8px, 7vw, 120%);
}
h5 {
    margin: 1em 0 1em 0;
    line-height: 110%;
    font-size: clamp(7px, 7vw, 110%);
}

p {
    margin: 1em 0;
}

ul {
    margin: 0 0 0 2em;
}
li {
    margin: 1em 0;
}

video,
iframe,
img {
    max-width: 100%;
}

blockquote {
    font-style: italic;
    margin: 0;
    padding: 1ex 3em;
    position: relative;
    border-radius: 16px;
}

blockquote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.3em;

  font-size: 3.5rem;
  color: var(--text-light);
}

blockquote cite {
    display: block;
    font-style: italic;
    text-align: right;
}
blockquote cite:before {
    content: "- ";
}
blockquote > * {
    position: relative;
    z-index: 1;
}

h1 > a,
h2 > a,
h3 > a,
h4 > a {
    text-decoration: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 20px;
    margin-bottom: 1rem;
}
header .container .logo {
    display: flex;
    align-items: center;
}
header .container .logo img {
    display: block;
}
header .container .title {
    min-width: 0; /* can shrink */
    flex-shrink: 1;
    font-family: "Nunito", Helvetica, Arial, sans-serif;
    font-size: clamp(12px, 3vw, 36px);
    font-weight: 700;
    line-height: 110%;
    color: var(--primary-color);
}
header .container .title a {
    text-decoration: none;
}

header .container .title span {
    font-weight: 700;
}
header .container .title span + span {
    font-weight: 400;
}
header .container .title span + span + span {
    font-size: 30%;
    font-weight: 300;
    line-height: 10px;
    margin-left: 4px;
}

header .beta {
    min-width: 0; /* can shrink */
    flex-shrink: 1;
    font-size: clamp(12px, 3vw, 18px);
    background: var(--primary-color);
    border-radius: 20px;
    padding: 0px 14px 1px 14px;
    color: white;
}

header nav.headernav {
    text-align: right;
    margin-left: auto;
    position: relative;
}

header nav.headernav label.hamburger,
input#hamburger {
    display: none;
}

header nav.headernav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

header nav.headernav li {
    display: inline-block;
    margin: 0;
    padding: 5px 10px;
    box-sizing: border-box;
    font-weight: 500;
}

header nav.headernav li ul {
    display: none;
    text-align: left;
    z-index: 100;
    background: #fff;
}

header nav.headernav li:hover ul {
    display: block;
    position: absolute;
}

header nav.headernav li li {
    display: block;
}

nav a {
    text-decoration: none;
    font-weight: 500;
}

section.section {
    margin: 2em 0;
}
section.section + section.section {
    margin-top: 4em;
}

main.front section.content {
    background: inherit;
}

section.title-and-content {
    min-height: 750px;
}

footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    column-count: 3;
    column-gap: 1em;
    margin-bottom: 2rem;
}
.footer-content * {
    break-inside: avoid;
    page-break-inside: avoid;
}

.footer-content h4 {
    margin: 0;
}

.footer-content ul {
    list-style: none;
    margin-bottom: 2em;
}

.footer-content ul li {
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: var(--bg-bright);
    text-decoration: none;
}

.footer-content a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--text-light);
    color: var(--text-light);
    font-size: small;
}
.footer-bottom a {
    text-decoration: none;
}

p.main.author,
p.main.source {
    display: none;
}

nav#breadcrumbnav {
    font-size: small;
    color: var(--text-light);
}

nav#breadcrumbnav ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
nav#breadcrumbnav li {
    display: inline-block;
    margin: 0;
    padding: 0;
}
nav#breadcrumbnav li + li::before {
    content: "\00BB";
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}
.more {
    margin: 1ex 0 0 0;
    padding: 0;
    text-align: right;
    float: right;
}
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 128px 1fr;
    grid-template-rows: minmax(auto, 128px) minmax(auto, 60px);
    gap: 5px 2rem;
}
.card.provider {
    grid-template-rows: 128px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.card a {
    text-decoration: none;
}
.card .icon {
    width: 128px;
    height: 128px;
    display: grid;
    align-items: center;
}
.card .icon img {
    width: 128px;
    display: block;
}
.card .pricing {
    display: grid;
    place-items: center;
    text-align: center;
    font-size: small;
}

.card .info {
    display: flex;
    flex-direction: column;
    position: relative;
}

.card h3 {
    font-size: 1.25rem;
    margin: 1rem 0 0.25rem 0;
}

.card .tagline {
    margin-bottom: 0.5rem;
}
.card .tagline a {
    font-weight: 600;
}

.card .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

ul.tags {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2ex;
}
ul.tags li {
    margin: 0;
    padding: 0;
    display: inline;
    background: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}
div.meta ul.tags {
    gap: 1ex;
}
div.meta ul.tags li {
    background: var(--bg-bright);
}
ul.tags span.count {
    color: var(--white);
    padding: 5px 10px;
    margin-left: 1ex;
    border-radius: 1rem;
    background: var(--bg-inverse);
}
.card .terms {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card .price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.card .get {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.card .get:hover {
    background: var(--primary-hover);
}

main.listing {
    --offering-color-header: radial-gradient(
            circle at top left,
            color-mix(in srgb, var(--offering-color) 16%, white),
            color-mix(in srgb, var(--offering-color) 30%, white));
    --offering-color-contrast: color-contrast(var(--offering-color));
}

main.listing .header {
    display: grid;
    grid-template-columns: 240px 1fr 200px;
    background: var(--offering-color-header);
    position: relative;
}
main.listing .header .icon,
section.by-protocol .icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
main.listing .header .icon div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    padding: 10px;
    background: var(--white);
    border-radius: 16px;
}
main.listing .header .icon img {
    display: block;
    width: 128px;
    height: 128px;
}

main.listing .header .info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
main.listing .header h1 {
    padding-top: 10px;
    margin-bottom: 1rex;
}

main.listing .header .tagline {
    margin: 0;
}

main.listing .header .meta {
    margin: 1.5rem 0;
}

main.listing .header .get {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0 2rem 2rem 0;
}
main.listing .header .action {
    border-radius: 16px;
    background: var(--offering-color);
    padding: 4px 18px 6px 18px;
    margin: 10px;
    text-transform: uppercase;
    font-weight: 700;
}
main.listing .header .action a {
    color: var(--offering-color-contrast);
    font-size: large;
    text-decoration: none;
}

main.listing .header .get-ios img,
main.listing .header .get-play img {
    width: 150px;
}

main.listing .attributes {
    background: var(--white);
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    font-size: small;
    gap: 1ex;
}
main.listing .attributes section {
    margin: 0.5rem 0;
    text-align: center;
}
main.listing .attributes h5 {
    margin: 0;
    padding: 0;
    font-size: small;
    color: var(--text-light);
    text-transform: uppercase;
}
main.listing .attributes p {
    margin: 0;
    padding: 0;
}
main.listing .attributes span.maturity {
    background: var(--primary-color);
    border-radius: 12px;
    padding: 0 8px 1px 8px;
    color: white;
}

main.listing ul.customers {
    margin: 2em 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    column-gap: 40px;
    row-gap: 30px;
}

main.listing ul.customers li {
    margin: 0 ;
    display: block;
    list-style: none;
}

section.content,
section.customers,
section.protocols,
section.integrations {
    border-radius: 16px;
    background: #fff;
    padding: 1.3em 2em;
    margin: 2em 0;
}

main.listing ul.protocols,
main.listing ul.integrations {
   display: flex;
   flex-wrap: wrap;
   margin: 0;
   padding: 0;
   gap: 1em;
}
main.listing ul.protocols li,
main.listing ul.integrations li {
    list-style: none;
    margin: 0;
    padding: 0.5ex 1.5ex;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    background: var(--white);
}

ul.protocols a,
ul.integrations a,
ul.tags a {
    text-decoration: none;
}

aside {
    float: right;
    clear: right;
    background: var(--white);
    margin: 3em 1em 2em 2em;
    padding: 1em;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    font-size: 90%;
    width: 230px;
    box-shadow: 0 0 20px rgba(106, 101, 238, 0.15);
    position: relative;
    z-index: 100;
}

section.description {
    margin-bottom: 2em;
}

aside + aside {
    margin-top: 0em;
}

aside h4 {
    text-align: center;
}
aside h4:first-child {
    margin-top: 0;
}
aside h5 {
    font-size: inherit;
}

aside ul {
    margin: 0 0 1ex 0;
}
aside li {
    margin: 2px 0;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
aside div.donate {
    text-align: center;
    font-weight: 700;
}
aside section + section {
    margin-top: 1.5em;
}
aside section ul {
    margin-left: 1.2em;
}

section.disclaimer {
    width: 100%;
    color: var(--text-light);
    font-size: x-small;
    text-align: center;
    margin-top: 3rem;
}

section.by-protocol {
    margin-top: 3em;
    width: 100%;
    display: grid;
    grid-template-columns: 10% 45% 45%;
    gap: 0;
}

section.by-protocol > div {
    background: var(--white);
    padding: 2rem;
    margin: 0 1rem;
    border-width: 0 1px;
    border-color: var(--border-color);
    border-style: solid;
}

section.by-protocol div.header {
    text-align: center;
    border-width: 1px 1px 0 1px;
    border-color: var(--border-color);
    border-style: solid;
}
section.by-protocol div.header img {
    width: 64px;
}

section.by-protocol h2 {
    margin: 0;
    padding: 0;
}

section.by-protocol h3 {
    margin: 0;
    padding: 0;
}

section.by-protocol div.section {
    display: flex;
    align-items: baseline;
    grid-column: 1 / -1;
    padding: 2rex 0;
    background: inherit;
    white-space: nowrap;
    overflow: overflow;
    position: relative;
    text-align: center;
    border-width: 0;
}
section.by-protocol div.section::after {
    content: "";
    flex: 1;
    margin-left: 1ex;
    border-bottom: 1px solid var(--border-color);
}

section.by-protocol div.overflow {
    border-bottom: 1px solid var(--border-color);
}

section.by-protocol div.blank {
    background: inherit;
    border-width: 0;
}

section.by-protocol div.flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

section.by-protocol div.icon img {
    width: 64px;
}

section.by-protocol div.last {
    border-width: 0 1px 1px 1px;
    border-color: var(--border-color);
    border-style: solid;
}

div.slide-in-img-right {
    float: right;
    margin: 0 0 30px 30px;
    max-width: 33%;
    clear: both;
}
div.slide-in-img-right img {
    max-width: 100%;
}

div.rss {
    float: right;
    margin-left: 10px;
}
div.rss img {
    width: 1.5rem;
}

.minor {
    color: var(--text-light);
    font-weight: 400;
}
.error {
    font-weight: 700;
    color: red;
}
div.annotation {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    gap: 1em;
}
div.annotation div.maturity {
    background: var(--primary-color);
    border-radius: 20px;
    padding: 0px 14px 1px 14px;
    color: white;
}

div.annotation div.status {
    color: var(--primary-color);
    font-weight: 700;
    transform: rotate(15deg);
}

div.appstoreimages {
    display: flex;
    overflow-x: scroll;
    gap: 22px;
}
div.appstoreimages div.img {
    min-width: 300px;
    width: 300px;
}


@media screen and (max-width: 950px) {
    header nav.headernav label.hamburger {
        display: inline-block;
        font-style: normal;
        font-size: 160%;
        text-align: center;
        position: relative;
    }

    header nav.headernav ul {
        text-align: left;
        position: absolute;
        right: 0;
        border: 1px solid #c0c0c0;
        border-radius: 5px;
        background: #fff;
        z-index: 100;
        margin-top: 0;
        display: none;
    }
    header nav.headernav input:checked ~ ul {
        display: block;
    }

    header nav.headernav ul li {
        display: block;
        text-align: center;
        white-space: nowrap;
    }

    header nav.headernav li:hover ul {
        display: block;
        left: 20%;
    }

    footer div.container {
        flex-direction: column;
    }
    footer div.container p {
        text-align: center;
    }
}

@media screen and (max-width: 800px) {
    main.listing .header {
        grid-template-columns: 240px 1fr;
    }

    main.listing .header .info {
        grid-row: 1 / span 2;
    }

    main.listing .header .get {
        grid-column: 1;
        grid-row: 2;
        align-items: center;
        justify-content: center;
        padding: 1rem 0 0 0;
    }
}

@media screen and (max-width: 700px) {
    div.rss {
        display: none;
    }
    .footer-content {
        column-count: 2;
    }
    section.by-protocol {
        grid-template-columns: 0 50% 50%;
    }
    section.by-protocol > div {
        margin: 0 5px;
        padding: 10px;
    }
}

@media screen and (max-width: 550px) {
    main.listing div.container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    main.listing .header {
        grid-template-columns: 1fr;
    }

    main.listing .header .icon {
        padding: 1em 0;
    }

    main.listing .header .info {
        grid-row: 3;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    main.listing .header .get {
        grid-row: 2;
    }

    main.listing aside {
        float: none;
        margin: 10px 0px;
        width: 100%;
        order: 10;
    }
}

@media screen and (max-width: 440px) {
    .footer-content {
        column-count: 1;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .card {
        grid-template-columns: 1fr;
        grid-template-rows: 128px auto auto auto;
        gap: 0;
    }
    .card .icon {
        justify-self: center;
    }
    .card h3 {
        margin-top: 1em;
        text-align: center;
        white-space: wrap;
    }
    .card .tagline {
        text-align: center;
    }
    .card .meta {
        margin-top: 1em;
    }
}

