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

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    src: url("/assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf") format("truetype");
    font-display: swap;
}

:root {
    --page-background: #f4f3e7;
    --ink: #000000;
    --muted-ink: #4d4d4d;
    --phone-frame: #3d3c39;
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --mock-exit: cubic-bezier(0.4, 0, 0.2, 1);
    --cycle: 11.2s;
}

html {
    min-height: 100%;
    background: var(--page-background);
}

body {
    min-height: 100%;
    overflow-x: hidden;
    background: var(--page-background);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.site-shell {
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 640px;
    overflow: hidden;
    background: var(--page-background);
}

.page-shell {
    display: flex;
    min-height: 100dvh;
    padding: clamp(48px, 8vh, 76px) clamp(28px, 3.5vw, 50px) max(50px, env(safe-area-inset-bottom));
    flex-direction: column;
    background: var(--page-background);
}

.page-header {
    display: flex;
    justify-content: center;
}

.page-brand {
    display: block;
    line-height: 0;
}

.page-content {
    width: min(760px, 100%);
    margin: 106px auto 96px;
}

.page-kicker {
    margin-bottom: 18px;
    color: var(--muted-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.page-content h1 {
    max-width: 720px;
    font-size: 56px;
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: 0;
}

.page-content p {
    margin-top: 26px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
}

.page-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.page-content strong,
.legal-content strong {
    font-weight: 600;
}

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

.page-section {
    margin-top: 48px;
}

.page-section h2,
.legal-content h2,
.legal-content h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
}

.page-section p,
.legal-content h2 + p,
.legal-content h3 + p {
    margin-top: 14px;
}

.about-scene {
    margin-top: 40px;
}

.about-stage {
    position: relative;
    width: min(480px, 100%);
    margin-inline: auto;
    aspect-ratio: 342 / 290;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(232, 228, 216, 0.55);
    pointer-events: none;
}

.about-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 36px;
    margin-top: 48px;
}

.about-point .about-stage {
    width: 100%;
}

.about-point h2 {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
}

.about-point p {
    margin-top: 10px;
}

@media (max-width: 680px) {
    .about-points {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-point .about-stage {
        width: min(420px, 100%);
    }
}

.cph-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 36px;
    align-items: start;
}

.cph-photos figure {
    position: relative;
    margin: 0;
    width: 88%;
    overflow: hidden;
    border-radius: 16px;
}

.cph-photos figure:first-child {
    z-index: 1;
    margin-top: 42px;
    justify-self: start;
}

.cph-photos figure:last-child {
    z-index: 2;
    margin-left: -14%;
    justify-self: end;
}

.cph-photos img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
    list-style: none;
}

.team-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-photo {
    margin: 0 0 12px;
    overflow: hidden;
    border-radius: 16px;
}

.team-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.team-name {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
}

.team-role {
    color: var(--muted-ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.legal-content h1 + p {
    color: var(--muted-ink);
}

.legal-content h2 {
    margin-top: 48px;
}

.legal-content h3 {
    margin-top: 36px;
}

.legal-content ul,
.legal-content ol {
    margin-top: 14px;
    padding-left: 1.5em;
    color: var(--ink);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
    list-style-position: outside;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.legal-content li {
    display: list-item;
}

.legal-content li + li {
    margin-top: 8px;
}

.legal-content blockquote {
    margin: 14px 0 0;
    padding-left: 1em;
    border-left: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
    color: var(--muted-ink);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
}

.legal-content blockquote p {
    margin-top: 0;
}

.download-options {
    display: flex;
    margin-top: 36px;
    gap: 14px;
    flex-wrap: wrap;
}

.store-link {
    display: inline-flex;
    min-height: 48px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ink);
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 220ms var(--smooth),
        color 180ms ease;
}

.store-link:hover {
    background: #181818;
}

.brand {
    position: absolute;
    top: clamp(54px, 12.72vh, 103px);
    left: 50%;
    z-index: 5;
    display: block;
    transform: translateX(-50%);
    line-height: 0;
}

.brand-logo {
    display: block;
    width: clamp(76px, 5.76vw, 83px);
    height: auto;
}

.hero-animation {
    --circle-size: clamp(218px, 18.2vw, 262px);
    --circle-narrow: clamp(188px, 15.8vw, 226px);
    --circle-tall: clamp(240px, 20vw, 288px);
    --circle-wide: clamp(228px, 19vw, 274px);
    --circle-short: clamp(207px, 17.6vw, 252px);
    --pill-width: clamp(620px, 63.2vw, 910px);
    --pill-pop-width: clamp(642px, 65vw, 936px);
    --split-offset: clamp(41px, 3.5vw, 50px);
    --half-split-offset: clamp(20px, 1.75vw, 25px);

    position: absolute;
    top: 47.3%;
    left: 50%;
    width: min(100%, var(--pill-width));
    height: clamp(450px, 56vh, 560px);
    transform: translate(-50%, -50%);
    perspective: 900px;
    perspective-origin: center;
    pointer-events: none;
}

.gradient-form {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--circle-size);
    height: var(--circle-size);
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(193deg, #f2df4c 0%, #f4c54a 24%, #fd5740 72.8%, #ff463e 100%);
    box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.08);
    transform-origin: center;
    will-change: width, height, opacity, transform;
}

.gradient-form::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    content: "";
    background-image: radial-gradient(rgba(255, 255, 255, 0.32) 0.55px, transparent 0.55px);
    background-size: 5px 5px;
    mix-blend-mode: soft-light;
    opacity: 0.45;
}

.gradient-form-primary {
    z-index: 2;
    animation: primary-form var(--cycle) infinite both;
}

.gradient-form-copy {
    z-index: 1;
    opacity: 0;
    animation: copy-form var(--cycle) infinite both;
}

.notification-overlay,
.phone-mockup-shell {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.notification-overlay {
    z-index: 4;
    width: clamp(250px, 20.8vw, 299px);
    height: auto;
    opacity: 0;
    will-change: opacity, transform;
    animation: notification-pop var(--cycle) infinite both;
}

.phone-mockup-shell {
    z-index: 3;
    width: clamp(247px, 20.28vw, 292px);
    perspective: 900px;
}

.phone-mockup {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    backface-visibility: hidden;
    transform-origin: center center;
    transform-style: preserve-3d;
    will-change: opacity, transform;
    animation: phone-pop var(--cycle) infinite both;
}

.site-footer {
    position: absolute;
    right: clamp(28px, 3.5vw, 50px);
    bottom: max(50px, env(safe-area-inset-bottom));
    left: clamp(28px, 3.5vw, 50px);
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
    gap: 28px;
    align-items: center;
}

.page-shell .site-footer {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: auto;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: clamp(34px, 5.6vw, 80px);
    align-items: center;
    justify-content: center;
    color: var(--muted-ink);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.download-control {
    position: relative;
    z-index: 7;
    justify-self: end;
}

.download-button {
    position: relative;
    --glow-x: 18%;
    --glow-y: 50%;

    display: inline-flex;
    padding: 15px 20px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    background-color: #c4c4c0;
    color: #f4f3e7;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: default;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0);
    transition:
        background-color 720ms var(--smooth),
        box-shadow 720ms var(--smooth),
        color 240ms ease;
}

.download-button::before {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    content: "";
    background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 105, 58, 0.88) 0%, rgba(255, 105, 58, 0.54) 22%, rgba(255, 105, 58, 0.2) 42%, transparent 68%);
    filter: blur(5px);
    opacity: 0;
    transform: scale(1.04);
    transition:
        opacity 360ms var(--smooth),
        transform 520ms var(--smooth);
    pointer-events: none;
    will-change: opacity, transform, background;
}

.download-soon-popup {
    position: absolute;
    right: 0;
    bottom: calc(100% + 16px);
    z-index: 2;
    display: none;
    width: max-content;
    padding: 12px 16px;
    border-radius: 16px;
    background: #1c1c1c;
    color: #f4f3e7;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.download-soon-popup::after {
    position: absolute;
    top: 100%;
    right: 28px;
    border: 7px solid transparent;
    border-top-color: #1c1c1c;
    content: "";
}

.download-button span {
    position: relative;
}

.legal-links a,
.footer-nav a {
    transition:
        color 180ms ease;
}

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

.legal-links a:hover {
    color: var(--muted-ink);
}

.download-control:hover .download-button::before,
.download-button:focus-visible::before,
.download-button.is-pointer-active::before {
    opacity: 0.62;
    transform: scale(1);
}

.download-control:hover .download-soon-popup,
.download-control:focus-within .download-soon-popup,
.download-control.is-pointer-active .download-soon-popup {
    display: block;
}

@keyframes primary-form {
    0%,
    12% {
        width: var(--pill-width);
        height: var(--circle-size);
        border-radius: 999px;
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0) scale(1);
        animation-timing-function: var(--smooth);
    }

    18% {
        width: var(--circle-narrow);
        height: var(--circle-tall);
        transform: translate(-50%, -50%) translateX(0) scale(1.018);
        animation-timing-function: var(--spring);
    }

    23% {
        width: var(--circle-wide);
        height: var(--circle-short);
        transform: translate(-50%, -50%) translateX(0) scale(0.992);
        animation-timing-function: var(--spring);
    }

    29%,
    38% {
        width: var(--circle-size);
        height: var(--circle-size);
        transform: translate(-50%, -50%) translateX(0) scale(1);
        animation-timing-function: var(--spring);
    }

    45%,
    73% {
        width: var(--circle-size);
        height: var(--circle-size);
        transform: translate(-50%, -50%) translateX(calc(-1 * var(--split-offset))) scale(1);
        animation-timing-function: var(--smooth);
    }

    79%,
    84% {
        width: var(--circle-size);
        height: var(--circle-size);
        transform: translate(-50%, -50%) translateX(0) scale(1);
        animation-timing-function: var(--spring);
    }

    89% {
        width: var(--circle-wide);
        height: var(--circle-short);
        transform: translate(-50%, -50%) translateX(0) scale(0.985);
        animation-timing-function: var(--spring);
    }

    94% {
        width: var(--pill-pop-width);
        height: var(--circle-size);
        transform: translate(-50%, -50%) translateX(0) scale(1);
        animation-timing-function: var(--spring);
    }

    100% {
        width: var(--pill-width);
        height: var(--circle-size);
        transform: translate(-50%, -50%) translateX(0) scale(1);
    }
}

@keyframes copy-form {
    0%,
    37% {
        width: var(--circle-size);
        height: var(--circle-size);
        opacity: 0;
        transform: translate(-50%, -50%) translateX(0) scale(0.96);
        animation-timing-function: var(--spring);
    }

    45%,
    73% {
        width: var(--circle-size);
        height: var(--circle-size);
        opacity: 0.4;
        transform: translate(-50%, -50%) translateX(var(--split-offset)) scale(1);
        animation-timing-function: var(--smooth);
    }

    79% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(var(--half-split-offset)) scale(0.98);
        animation-timing-function: var(--spring);
    }

    100% {
        width: var(--circle-size);
        height: var(--circle-size);
        opacity: 0;
        transform: translate(-50%, -50%) translateX(0) scale(0.96);
    }
}

@keyframes notification-pop {
    0%,
    45% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(14px) scale(0.84);
        animation-timing-function: var(--spring);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1.08);
        animation-timing-function: var(--spring);
    }

    55%,
    61% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
        animation-timing-function: var(--smooth);
    }

    66% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-10px) scale(0.94);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(14px) scale(0.84);
    }
}

@keyframes phone-pop {
    0%,
    58% {
        opacity: 0;
        transform: translateY(28px) rotateY(-18deg) scale(0.84);
        animation-timing-function: var(--spring);
    }

    65% {
        opacity: 1;
        transform: translateY(0) rotateY(0deg) scale(1.04);
        animation-timing-function: var(--spring);
    }

    70% {
        opacity: 1;
        transform: translateY(0) rotateY(0deg) scale(1);
        animation-timing-function: var(--smooth);
    }

    78% {
        opacity: 1;
        transform: translateY(0) rotateY(0deg) scale(1);
        animation-timing-function: var(--mock-exit);
    }

    84% {
        opacity: 0;
        transform: translateY(10px) rotateY(108deg) scale(0.88);
    }

    100% {
        opacity: 0;
        transform: translateY(28px) rotateY(108deg) scale(0.84);
    }
}

@media (max-width: 900px) {
    .site-shell {
        min-height: 700px;
    }

    .page-shell {
        padding: max(34px, env(safe-area-inset-top)) clamp(20px, 6vw, 44px) max(20px, env(safe-area-inset-bottom));
    }

    .page-content {
        margin: 76px auto 72px;
    }

    .page-content h1 {
        font-size: 38px;
        line-height: 1.04;
    }

    .page-content p {
        font-size: 17px;
        line-height: 1.5;
    }

    .page-section {
        margin-top: 38px;
    }

    .cph-photos {
        margin-top: 28px;
    }

    .cph-photos figure {
        width: 90%;
    }

    .cph-photos figure:first-child {
        margin-top: 28px;
    }

    .cph-photos figure:last-child {
        margin-left: -10%;
    }

    .team-list {
        gap: 16px;
    }

    .team-name {
        font-size: 18px;
    }

    .team-role {
        font-size: 15px;
    }

    .brand {
        top: max(34px, env(safe-area-inset-top));
    }

    .hero-animation {
        --circle-size: clamp(178px, 58vw, 238px);
        --circle-narrow: clamp(154px, 50vw, 206px);
        --circle-tall: clamp(196px, 64vw, 262px);
        --circle-wide: clamp(186px, 61vw, 248px);
        --circle-short: clamp(168px, 55vw, 224px);
        --pill-width: min(calc(100vw - 32px), 620px);
        --pill-pop-width: min(calc(100vw - 20px), 642px);
        --split-offset: clamp(32px, 12vw, 44px);
        --half-split-offset: clamp(16px, 6vw, 22px);

        top: 45%;
        height: 430px;
    }

    .notification-overlay {
        width: clamp(230px, 78vw, 299px);
    }

    .phone-mockup-shell {
        width: clamp(238px, 78vw, 290px);
    }

    .site-footer {
        right: clamp(20px, 6vw, 44px);
        bottom: max(20px, env(safe-area-inset-bottom));
        left: clamp(20px, 6vw, 44px);
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "nav nav"
            "legal download";
        row-gap: 22px;
        column-gap: 18px;
    }

    .page-shell .site-footer {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "nav nav"
            "legal download";
    }

    .legal-links {
        grid-area: legal;
        font-size: clamp(14px, 3.9vw, 16px);
    }

    .footer-nav {
        grid-area: nav;
        gap: clamp(20px, 8vw, 38px);
        font-size: clamp(18px, 5vw, 20px);
    }

    .download-control {
        grid-area: download;
    }

    .download-button {
        width: 126px;
        min-height: 48px;
        font-size: clamp(16px, 4.5vw, 18px);
    }
}

@media (max-width: 420px) {
    .site-shell {
        min-height: 730px;
    }

    .page-content {
        margin-top: 64px;
    }

    .team-list {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 280px;
    }

    .page-content h1 {
        font-size: 34px;
    }

    .hero-animation {
        top: 42%;
        --pill-width: min(calc(100vw - 32px), 330px);
        --pill-pop-width: min(calc(100vw - 20px), 344px);
    }

    .site-footer {
        grid-template-columns: 1fr;
        grid-template-areas:
            "nav"
            "download"
            "legal";
        justify-items: center;
        text-align: center;
    }

    .page-shell .site-footer {
        grid-template-columns: 1fr;
        grid-template-areas:
            "nav"
            "download"
            "legal";
    }

    .legal-links {
        align-items: center;
    }

    .download-control {
        justify-self: center;
    }

    .download-soon-popup {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .download-soon-popup::after {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    :root {
        --cycle: 16s;
    }
}
