/* holdmy.world: the landing page. The app's colors and shapes; Syne for
   headings, Helvetica Neue for the rest. */

@font-face {
    font-family: "Syne";
    src: url("/fonts/Syne-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: light;
    --background: #F4F7F6;
    --card: #FFFFFF;
    --ink: #12324A;
    --ink-muted: #557083;
    --ocean: #8EC5DE;
    --ocean-tint: #DCEFF7;
    --ocean-deep: #2B6C95;
    --land: #7DB46C;
    --outline: #D9E4E6;
    --outline-strong: #C9D8DC;
    --segment: #E3ECEE;
    --display: "Syne", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --width: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--ocean-deep);
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0;
}

.band-left {
    animation: band-left 4s linear infinite;
}

.band-right {
    animation: band-right 5s linear infinite;
}

@keyframes band-left {
    from { transform: translateX(0); }
    to { transform: translateX(-34px); }
}

@keyframes band-right {
    from { transform: translateX(-34px); }
    to { transform: translateX(0); }
}

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

    .band-left,
    .band-right {
        animation: none;
    }
}

/* Wordmark: the mark stands in for the "o" of "world". */

.wordmark {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--display);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.wordmark .o {
    width: 0.6em;
    height: 0.6em;
    margin: 0 0.02em;
    align-self: center;
    transform: translateY(0.1em);
}

/* Navigation */

.nav {
    max-width: var(--width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav nav:not(.segmented) {
    margin-left: auto;
    display: flex;
    gap: 24px;
}

.nav nav:not(.segmented) a {
    color: var(--ink-muted);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
}

.nav nav:not(.segmented) a:hover {
    color: var(--ink);
}

.segmented {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    background: var(--segment);
    border-radius: 14px;
}

.segmented a {
    padding: 6px 12px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    text-decoration: none;
}

.segmented a[aria-current="page"] {
    background: var(--card);
    color: var(--ink);
    font-weight: 700;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 26px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.button.primary {
    background: var(--ocean-deep);
    color: #FFFFFF;
}

.button.primary:hover {
    background: #245C80;
}

.button.secondary {
    background: #FFFFFF;
    color: var(--ink);
    border: 1.5px solid var(--outline-strong);
}

.button.secondary:hover {
    background: #EEF4F5;
}

/* The App Store and Google Play badges, as Apple and Google draw them. */
.badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badges a {
    display: block;
    border-radius: 8px;
}

.badges img {
    display: block;
    width: auto;
    height: 48px;
}

/* Hero */

.hero {
    position: relative;
    padding: 48px 24px 150px;
    text-align: center;
    overflow: hidden;
}

.hero-mark {
    width: 168px;
    height: 168px;
}

.hero h1 {
    margin-top: 28px;
    font-size: 76px;
    letter-spacing: -0.035em;
}

.hero .lead {
    max-width: 560px;
    margin: 18px auto 0;
    font-size: 20px;
    color: var(--ink-muted);
}

.actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero .badges {
    margin-top: 16px;
    justify-content: center;
}

.ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 90px;
}

/* Sections */

.section {
    max-width: var(--width);
    margin: 0 auto;
    padding: 88px 24px 0;
}

.section h2 {
    font-size: 44px;
}

.overline {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.tiles {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Mixed, the seventh, fills the second row. */
.tiles .tile:last-child {
    grid-column: span 2;
}

.tile {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 20px 20px 64px;
    border-radius: 22px;
}

.tile h3 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 24px;
    letter-spacing: -0.01em;
}

.tile p {
    position: relative;
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink-muted);
}

.waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 52px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

.split.reverse .copy {
    order: 2;
}

.copy p {
    margin: 18px 0 0;
    font-size: 18px;
    color: var(--ink-muted);
}

.copy .overline {
    margin: 0 0 12px;
    font-size: 13px;
}

.copy .button {
    margin-top: 28px;
}

.copy .badges {
    margin-top: 28px;
}

.steps {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
}

.steps b {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ocean-tint);
    color: var(--ocean-deep);
    font-family: var(--display);
}

.facts {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.facts li {
    position: relative;
    padding-left: 30px;
    font-weight: 500;
}

.facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--land);
}

/* The TV and phone in the party section: real screenshots in frames */

.devices {
    position: relative;
    padding: 0 48px 72px 0;
}

.tv {
    padding: 10px 10px 14px;
    background: var(--ink);
    border-radius: 18px;
}

.tv img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 27%;
    padding: 6px;
    background: var(--ink);
    border-radius: 28px;
}

.phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
}

.screens {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.screens img {
    width: 46%;
    height: auto;
    border-radius: 28px;
    border: 1.5px solid var(--outline);
    background: var(--card);
}

.screens img:last-child {
    margin-top: 48px;
}

/* Footer */

.footer {
    max-width: var(--width);
    margin: 96px auto 0;
    padding: 28px 24px 48px;
    border-top: 1px solid var(--outline);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 15px;
}

.footer .wordmark {
    font-size: 18px;
    margin-right: auto;
}

.muted {
    color: var(--ink-muted);
}

/* Narrow screens */

@media (max-width: 860px) {
    .tiles {
        grid-template-columns: 1fr 1fr;
    }

    /* Mixed across both columns, as in the app. */
    .tiles .tile:last-child {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split.reverse .copy {
        order: 0;
    }
}

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

    .nav {
        padding: 16px;
        gap: 12px;
    }

    .nav nav:not(.segmented) {
        display: none;
    }

    .segmented {
        margin-left: auto;
    }

    .wordmark {
        font-size: 21px;
    }

    .hero {
        padding: 32px 16px 110px;
    }

    .hero-mark {
        width: 120px;
        height: 120px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero .lead {
        font-size: 18px;
    }

    .actions .button {
        width: 100%;
    }

    .ground {
        height: 64px;
    }

    .section {
        padding: 64px 16px 0;
    }

    .section h2 {
        font-size: 32px;
    }

    .tiles {
        gap: 10px;
    }

    .tile {
        min-height: 140px;
        padding: 16px 14px 56px;
        border-radius: 18px;
    }

    .tile h3 {
        font-size: 20px;
    }

    .tile p {
        font-size: 14px;
    }

    .devices {
        padding: 0 28px 48px 0;
    }

    .phone {
        border-radius: 18px;
        padding: 4px;
    }

    .phone img {
        border-radius: 14px;
    }

    .footer {
        padding: 24px 16px 40px;
        gap: 16px;
    }
}
