@font-face {
    font-family: "Lyon Display";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/LyonDisplay-Light-Web.woff2") format("woff2");
}

@font-face {
    font-family: "Lyon Display";
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/LyonDisplay-LightItalic-Web.woff2") format("woff2");
}

@font-face {
    font-family: "Saans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        url("../fonts/Saans-Regular.woff2") format("woff2"),
        url("../fonts/Saans-Regular.woff") format("woff");
}

@font-face {
    font-family: "Saans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src:
        url("../fonts/Saans-Medium.woff2") format("woff2"),
        url("../fonts/Saans-Medium.woff") format("woff");
}

@font-face {
    font-family: "Saans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src:
        url("../fonts/Saans-SemiBold.woff2") format("woff2"),
        url("../fonts/Saans-SemiBold.woff") format("woff");
}

:root {
    --bg: #fcf6ef;
    --bg-footer: #fdf9f5;
    --pill-bg: #e4dacd;
    --ink: #231710;
    --ink-64: rgba(35, 23, 16, 0.64);
    --ink-60: rgba(35, 23, 16, 0.6);
    --muted: #4d4d4d;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family:
        "Saans",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        system-ui,
        sans-serif;
    font-size: 16px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    padding: 87px 62px 0;
}

.logo img {
    height: 32px;
    width: auto;
}

/* Hero */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    margin-top: -32px; /* pull hero up so pill aligns with logo baseline */
}

.pill {
    display: inline-flex;
    align-items: center;
    background: var(--pill-bg);
    color: #000;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.2px;
    line-height: 14px;
    text-transform: uppercase;
    padding: 8px 10px 6px;
    border-radius: 1000px;
}

.hero__title {
    font-family: "Lyon Display", Georgia, "Times New Roman", serif;
    font-weight: 300;
    font-size: clamp(36px, 5.2vw, 54px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    max-width: 950px;
    margin: 16px 0 0;
}

.hero__subtitle {
    font-family: "Saans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: var(--ink-60);
    margin: 24px 0 0;
}

.device {
    margin: 40px 0 0;
}

.device img {
    width: 212px;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(35, 23, 16, 0.08));
}

.launch {
    margin: 40px 0 0;
    max-width: 544px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.launch__title {
    font-family: "Lyon Display", Georgia, "Times New Roman", serif;
    font-weight: 300;
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0;
}

.launch__body {
    font-family: "Saans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink-60);
    max-width: 516px;
    margin: 0;
}

/* Waitlist form */
.waitlist {
    margin: 32px 0 120px;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    scroll-margin-top: 32px;
}

.waitlist__row {
    display: flex;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid var(--ink);
    border-radius: 1000px;
    overflow: hidden;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.waitlist__row:focus-within {
    box-shadow: 0 0 0 3px rgba(35, 23, 16, 0.08);
}

.waitlist__row.is-invalid {
    border-color: #c4543b;
}

.waitlist__input {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-family: "Saans", sans-serif;
    font-size: 15px;
    line-height: 1.2;
    color: var(--ink);
    outline: none;
}

.waitlist__input::placeholder {
    color: rgba(35, 23, 16, 0.4);
}

.waitlist__btn {
    padding: 10px 22px;
    margin: 4px;
    background: var(--ink);
    color: #fdf9f5;
    border: none;
    border-radius: 1000px;
    font-family: "Saans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        background 160ms ease,
        opacity 160ms ease;
    white-space: nowrap;
}

.waitlist__btn:hover:not(:disabled),
.waitlist__btn:focus-visible:not(:disabled) {
    background: #3a261a;
}

.waitlist__btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

.waitlist__hint {
    font-family: "Saans", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-60);
    margin: 0;
}

.waitlist__success {
    display: none;
    font-family: "Saans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--ink);
    margin: 0;
}

.waitlist__success.is-visible {
    display: block;
}

[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .waitlist__row {
        flex-direction: column;
        border-radius: 20px;
        padding: 6px;
        gap: 6px;
    }

    .waitlist__input {
        padding: 12px 16px;
        text-align: center;
    }

    .waitlist__btn {
        margin: 0;
        padding: 14px 22px;
    }
}

/* Legal pages */
.site-header--legal {
    padding-bottom: 0;
}

.legal {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 120px;
    box-sizing: border-box;
}

.legal__head {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 64px;
}

.legal__title {
    font-family: "Saans", sans-serif;
    font-weight: 600;
    font-size: clamp(36px, 4.4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}

.legal__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-60);
    margin: 0;
}

.legal__meta strong {
    color: var(--ink);
    font-weight: 600;
}

.legal__body {
    font-family: "Saans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #2b1d14;
}

.legal__body h2 {
    font-family: "Saans", sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 2.4vw, 26px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 56px 0 16px;
}

.legal__body h3 {
    font-family: "Saans", sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--ink);
    margin: 32px 0 12px;
}

.legal__body p {
    margin: 0 0 16px;
}

.legal__body ul,
.legal__body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.legal__body li {
    margin-bottom: 8px;
}

.legal__body li::marker {
    color: var(--ink-60);
}

.legal__body a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 160ms ease;
}

.legal__body a:hover,
.legal__body a:focus-visible {
    opacity: 0.7;
}

.legal__body strong {
    font-weight: 600;
    color: var(--ink);
}

.legal__address {
    font-style: normal;
    background: var(--bg-footer);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 8px 0 0;
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 0 16px 16px;
}

.footer__inner {
    background: var(--bg-footer);
    border-radius: 24px;
    padding: 24px;
    max-width: 1248px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.footer__tagline {
    font-family: "Saans", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 0.4px;
    color: var(--muted);
    max-width: 389px;
    margin: 0;
}

.footer__nav {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 140px;
}

.footer__heading {
    font-family: "Saans", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.4px;
    color: var(--ink);
    margin: 0;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__list a {
    font-family: "Saans", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    color: var(--ink-64);
    transition: color 160ms ease;
}

.footer__list a:hover,
.footer__list a:focus-visible {
    color: var(--ink);
}

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

.footer__bottom p {
    font-family: "Saans", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.32px;
    color: var(--ink-64);
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .site-header {
        padding: 32px 24px 0;
    }

    .hero {
        margin-top: 24px;
    }

    .hero__title {
        font-size: clamp(32px, 7.5vw, 48px);
    }

    .device {
        margin-top: 48px;
    }

    .launch {
        margin: 32px 0 0;
    }

    .waitlist {
        margin: 24px 0 80px;
    }

    .footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .footer__nav {
        gap: 32px;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .legal {
        padding: 32px 20px 80px;
    }

    .legal__head {
        margin-bottom: 48px;
    }

    .legal__body h2 {
        margin-top: 44px;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 24px 20px 0;
    }

    .hero {
        padding: 0 20px;
    }

    .hero__title {
        font-size: clamp(28px, 8.5vw, 40px);
    }

    .device img {
        width: 180px;
    }

    .footer {
        padding: 0 12px 12px;
    }

    .footer__inner {
        padding: 20px;
        gap: 24px;
    }

    .footer__tagline {
        font-size: 18px;
    }

    .footer__nav {
        gap: 24px;
    }

    .footer__col {
        min-width: 0;
        flex: 1;
    }
}
