/* Core */

body {
    margin: 0;
    background-color: rgb(250, 250, 252);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
}

div.container {
    margin: 0 auto;
    width: 720px;
    padding-top: 24px;
    padding-bottom: 24px;
}

div.inner {
    margin-left: 20px;
    margin-right: 20px;
}

div.vstack {
    display: flex;
    flex-flow: column;
    gap: 1px;
}

div.container h1,
h2 {
    text-align: center;
}

div.container p,
div.container li {
    line-height: 1.4em;
}

h3.center {
    text-align: center;
}

p.center {
    text-align: center;
}

a {
    color: rgb(6, 100, 214);
    text-decoration: none;
}

a:visited {
    color: rgb(6, 100, 214);
}

a:hover {
    text-decoration: underline;
    color: rgb(6, 100, 214);
}

p.first,
h3.first {
    margin-top: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */

nav {
    background: linear-gradient(rgb(68, 68, 70), rgb(60, 60, 62));
    color: white;
}

nav div.container {
    padding-top: 16px;
    padding-bottom: 16px;
}

nav div.container div.inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav div.container div.textContainer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-grow: 1;
}

nav div.container img {
    width: 32px;
    height: 32px;
}

nav div.container div.textContainer div.left {
    margin-right: 1em;
}

nav div.container div.textContainer div.left h1 {
    text-align: center;
    font-size: 1.3em;
    font-family: "Secular One", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    margin: 0;
    margin-top: 3px;
}

nav div.container div.textContainer div.left h1 a,
nav div.container div.textContainer div.left h1 a:visited,
nav div.container div.textContainer div.left h1 a:hover {
    color: white;
    text-decoration: none;
}

nav div.container div.textContainer div.right {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

nav div.container div.textContainer div.right a,
nav div.container div.textContainer div.right a:visited,
nav div.container div.textContainer div.right a:hover {
    color: white;
    padding-bottom: 6px;
    padding-top: 6px;
    padding-left: 8px;
    padding-right: 8px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.1s ease-in;
}

nav div.container div.textContainer div.right a.current,
nav div.container div.textContainer div.right a:hover {
    background-color: rgb(86, 86, 88);
}

nav div.container div.textContainer div.right a,
nav div.container div.textContainer div.right p {
    font-size: 1em;
    margin: 0;
}

/* Header */

header {
    background: rgb(244, 244, 246);
    border-bottom: solid 1px rgb(228, 228, 230);
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
}

header div.container div.inner {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 8px;
}

header h1 {
    margin: 0;
    margin-top: 8px;
    font-size: 1.8em;
    letter-spacing: -0.02em;
}

header h1.first {
    margin-top: 0;
}

header h2 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    color: rgb(120, 120, 122);
}

/* Article */

img.screen {
    margin: 20px auto;
    border-radius: 6px;
    display: block;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.12);
}

img.device {
    margin: 20px auto;
    display: block;
}

div.dualScreen {
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

div.dualScreen img {
    display: block;
}

img.buy {
    margin: 10px 0;
    border-radius: 8px;
    cursor: pointer;
}

img.buyDirect {
    margin: 10px 0;
    cursor: pointer;
}

video.screen {
    background-color: black;
    object-fit: fill;
    width: 680px;
    height: 425px;
    border-radius: 6px;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.12);
}

p.contact {
    margin: 6px 0 24px 0;
}

p.contact a {
    text-decoration: underline;
}

ul.features.bottomSpaced {
    margin-bottom: 2em;
}

ul.features li {
    margin-bottom: 4px;
}

div.feature.paddedTop {
    margin-top: 2em;
}

div.feature.paddedBottom {
    margin-bottom: 1.5em;
}

span.hearts {
    color: #E81123;
    font-size: 1.1em;
}

.stars {
    color: #FFB900;
}

div.homeFeatured {
    background-color: #f4f4f6;
    border: 1px solid rgb(232, 232, 234);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 1em;
}

div.homeFeatured div.appGrid div.app {
    margin-bottom: 0;
}

div.appGrid {
    display: grid;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

div.appGrid div.app {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 2em;
}

div.appGrid div.app p {
    text-align: center;
    margin: 0;
}

div.appGrid div.app p.entry {
    font-weight: 500;
}

div.appGrid div.app p.caption {
    font-size: 0.8em;
    color: rgb(120, 120, 122);
}

img.round {
    border-radius: 20%;
    transform: scale(0.82);
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3);
}

img.compactRound {
    border-radius: 20%;
    width: 40px;
    margin: 4px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
}

div.list {
    display: flex;
    flex-flow: column;
    margin-bottom: 1em;
}

div.list div.item {
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: solid 1px rgb(230, 230, 232);
}

div.list div.item p {
    margin: 0;
}

div.list div.item p.entry {
    font-weight: 500;
}

div.list div.item p.caption {
    font-size: 0.8em;
    color: rgb(120, 120, 122);
}

div.list div.item img {
    display: block;
}

div.list div.item a:first-child {
    flex-shrink: 0;
}

p.smallerSection {
    text-align: center;
    margin-bottom: 2em;
}

p.smallerSection.hidden {
    opacity: 0.01;
    cursor: default;
}

p.compatibility {
    font-size: 12px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
    color: rgb(98, 98, 100);
}

.buyButton {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    border-radius: 22px;
    background: linear-gradient(rgb(48, 144, 250), rgb(16, 114, 220));
    background-color: #3d94f6;
    border: 1px solid #2568d3;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-size: 15px;
    padding: 8px 20px;
    text-decoration: none;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.buyButton:hover {
    background: linear-gradient(rgb(40, 136, 240), rgb(10, 104, 204));
    background-color: #3d94f6;
    text-decoration: none;
    color: #ffffff;
}

.buyButton:active {
    position: relative;
    top: 1px;
}

.buyButton:visited {
    color: #ffffff !important;
}

.buyButton.black {
    background: linear-gradient(rgb(84, 84, 84), rgb(36, 36, 36));
    background-color: #484848;
    border: 1px solid #232323;
}

.buyButton.black:hover {
    background: linear-gradient(rgb(72, 72, 72), rgb(16, 16, 16));
    background-color: #2b2b2b;
}

.buyButton.black img {
    vertical-align: middle;
    margin-top: -4px;
}

div.buttonBar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1em;
    margin-bottom: 1em;
    flex-wrap: wrap;
}

div#featureGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

div#featureGrid div.item {
    background-color: rgb(240, 240, 242);
    border-radius: 6px;
    padding: 14px;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.05);
}

div#featureGrid div.item h3 span img {
    filter: drop-shadow(0px 1px 4px rgb(0 0 0 / 0.12));
    height: 32px;
    width: auto;
    margin-bottom: 2px;
}

div#featureGrid div.item h3 span.material-icons {
    font-size: 22px;
    margin-bottom: 12px;
}

div#featureGrid div.item h3 {
    margin: 0;
    font-size: 1.1em;
    text-align: center;
}

div#featureGrid div.item p {
    margin-bottom: 0;
}

div#featureGrid div.item h3 span {
    vertical-align: middle;
}

/* Overrides */

header.simpleTone {
    background-image: none;
    background-color: rgb(251, 225, 0);
}

header.simpleTone h2 {
    color: rgb(115, 105, 23);
}

/* Footer */

footer {
    background: rgb(244, 244, 246);
    box-shadow: 0 50vh 0 50vh rgb(244, 244, 246);
    border-top: solid 1px rgb(228, 228, 230);
}

footer div.container section {
    display: flex;
    align-items: top;
    gap: 60px;
}

footer ul {
    list-style-type: none;
    padding-left: 0;
}

footer ul li {
    margin-bottom: 0.2em;
}

footer ul li a {
    text-decoration: none;
    display: flex;
    gap: 6px;
}

footer ul li a:hover span.label {
    text-decoration: underline;
}

footer h3 {
    margin: 0;
    font-size: 1em;
}

footer a,
footer a:visited,
footer a:hover {
    margin: 0;
    font-size: 0.92em;
    color: black;
}

footer p {
    margin: 0;
    margin-top: 0.6em;
    font-size: 0.8em;
    color: rgb(66, 66, 68);
}

/* Home Cards */

div.heroCards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

div.heroCards div {
    display: flex;
    aspect-ratio: 1.6;
    background-color: rgb(184, 184, 186);
    border-radius: 8px;
    background-size: cover;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.12);
}

div.heroCards div a,
div.heroCards div a:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-decoration: none;
    color: white;
    transition: transform 0.1s ease-in;
    -webkit-tap-highlight-color: transparent;
}

div.heroCards div a:hover {
    transform: scale(1.1);
}

div.heroCards div h2 {
    margin: 0;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
    color: white;
    letter-spacing: -0.02em;
}

div.linksBar {
    display: flex;
    gap: 10px;
    align-items: center;
}

div.linksBar.big {
    gap: 14px;
    justify-content: center;
}

a.listLink {
    text-decoration: underline;
}

img.coffeeButton {
    user-select: none;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

p.platformsHeader {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0;
    font-size: 0.8em;
    color: rgb(140, 140, 142);
    font-variant: small-caps;
}

div.platformBar {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

div.platformBar div {
    background-color: white;
    border-radius: 500px;
    border: solid 1px rgb(220, 220, 222);
}

div.platformBar div.current {
    background-color: rgb(238, 238, 240);
}

div.platformBar div a {
    color: black;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 6px 16px;
    display: inline-block;
}

div.platformBar div a:hover {
    text-shadow: 0 0 16px rgba(0, 0, 0, 0.2);
}

/* Thin hr separator */

hr {
    border: 0;
    height: 1px;
    background: rgb(230, 230, 232);
}

/* Blog */

div.blog p.date {
    margin-bottom: 6px;
    font-size: 0.8em;
    font-weight: 500;
    color: rgb(120, 120, 122);
}

div.blog h3 {
    margin-top: 0;
}

div.blog a.rss {
    background-color: rgb(63, 107, 234);
    padding: 4px 6px;
    border-radius: 4px;
    color: white;
    margin-left: auto;
    font-weight: 500;
    font-size: 0.8em;
}

div.blog a.rss:hover {
    text-decoration: none;
    background-color: rgb(39, 82, 213);
}

div.post h3 {
    margin-top: 1.5em;
}

div.post pre {
    background-color: rgb(244, 244, 245) !important;
    white-space: pre;
    overflow-x: scroll;
    word-break: break-word;
    padding: 16px;
    border-radius: 8px;
    line-height: 1.4em;
    font-size: 14px;
}

div.post code {
    font-size: 15px;
}

div.post pre code {
    font-size: 14px;
}

div.post blockquote {
    border-left: 2px solid #888;
    padding-left: 12px;
    color: #888;
}

/* Mobile */

@media only screen and (max-width: 720px) {
    div.container {
        width: 100%;
    }

    div.heroCards {
        grid-template-columns: repeat(2, 1fr);
    }

    img.screen {
        max-width: none;
        margin-left: calc(-20px);
        margin-right: calc(-20px);
        width: calc(100% + 40px);
        border-radius: 0;
    }

    img.device {
        max-width: 100%;
        border-radius: 0;
    }

    div.heroCards {
        gap: 12px;
    }

    footer div.container section {
        gap: 40px;
    }

    nav div.container div.textContainer div.left {
        display: none;
    }

    nav div.container img {
        order: 2;
        width: 48px;
        height: 48px;
    }

    nav h1 {
        font-size: 1.2em;
    }

    div#featureGrid {
        grid-template-columns: 1fr;
    }

    p.compatibility br {
        display: none;
    }
}

@media only screen and (max-width: 400px) {
    footer div.container section {
        gap: 30px;
    }
}