:root {
    --oat: #faf8f3;
    --card: #ffffff;
    --brown: #2a251f;
    --mute: #7d7469;
    --clay: #c15b34;
    --sage: #77855a;
    --amber: #b85a3e;
    --plum: #b0475e;
    --serif: "Zilla Slab", Georgia, serif;
    --sans: "Figtree", system-ui, sans-serif;
    --wm: "Instrument Serif", Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
}
body {
    background: var(--oat);
    color: var(--brown);
    font-family: var(--sans);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}
img,
svg {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 56px;
}

/* header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36px 0;
}
.wm {
    display: inline-flex;
    align-items: center;
    gap: 0.34em;
    font-family: var(--wm);
    font-size: 30px;
}
.sliver {
    width: 1.3em;
    height: 0.16em;
    background: var(--amber);
    border-radius: 50%;
    transform: scaleX(1.15);
}

/* eyebrow label (product pages) */
.kick {
    font-family: var(--serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clay);
}
.story > div:first-child,
.priv > div:first-child {
    padding-top: 6px;
}

/* homepage (app cards) */
.apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 10px;
}
.app {
    background: var(--card);
    border-radius: 28px;
    padding: 48px 36px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.7) inset,
        0 22px 44px -30px rgba(60, 44, 33, 0.5);
    border: 1px solid rgba(60, 44, 33, 0.06);
    transition:
        transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
        box-shadow 0.45s;
}
.app:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 56px -30px rgba(60, 44, 33, 0.4);
}
.ic {
    width: 104px;
    height: 104px;
    border-radius: 22.37%;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow:
        inset 0 0 0 0.5px rgba(0, 0, 0, 0.08),
        0 12px 26px -12px rgba(0, 0, 0, 0.3);
}
.ic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app .chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ac);
    background: color-mix(in srgb, var(--ac) 14%, transparent);
    padding: 6px 12px 5px;
    line-height: 1;
    border-radius: 999px;
    margin-bottom: 14px;
    white-space: nowrap;
}
.app h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 40px;
    line-height: 1;
}
.app p {
    font-size: 15px;
    color: var(--mute);
    margin-top: 8px;
    line-height: 1.45;
}
.app.gm p,
.app.re p {
    white-space: nowrap;
}
.app .go {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    font-weight: 600;
    color: #fff;
    background: var(--ac);
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform 0.35s;
}
.app:hover .go {
    transform: scale(1.06);
}
.app.gm {
    --ac: var(--sage);
}
.app.re {
    --ac: var(--clay);
}
.app.wide {
    grid-column: 1/-1;
    --ac: var(--plum);
}
.app.wide .ic {
    width: 84px;
    height: 84px;
    margin-bottom: 16px;
}
.app.wide .meta {
    max-width: none;
}
.app.wide p {
    white-space: nowrap;
}
.cast {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: center;
    margin-top: 22px;
}
.cast img {
    width: 52px;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}
.cast img:nth-child(3) {
    width: 66px;
}
.app.wide .go {
    margin-top: 26px;
}

/* product pages (hero card) */
.hero {
    background: var(--card);
    border-radius: 28px;
    padding: 56px;
    margin-top: 10px;
    text-align: center;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.7) inset,
        0 26px 50px -34px rgba(60, 44, 33, 0.55);
    border: 1px solid rgba(60, 44, 33, 0.06);
}
.hero .ic {
    width: 118px;
    height: 118px;
    margin: 0 auto 26px;
    border-radius: 22.37%;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 0.5px rgba(0, 0, 0, 0.08),
        0 14px 30px -14px rgba(0, 0, 0, 0.25);
}
.hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 72px;
    line-height: 1;
}
.hero .tag {
    font-family: var(--serif);
    font-style: normal;
    font-size: 24px;
    color: var(--mute);
    margin-top: 2px;
}
.cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}
.cta img {
    height: 52px;
    width: auto;
}
.cta a {
    display: inline-block;
    border-radius: 12px;
    transition:
        transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
        filter 0.3s ease;
}
.cta a:hover {
    transform: translateY(-2px) scale(1.02);
}
.cta a:active {
    transform: translateY(0) scale(0.99);
}
.price {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--mute);
}

/* screenshot gallery */
.gallery {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    perspective: 1600px;
    margin: 46px 0 80px;
}
.shot {
    width: 276px;
    border-radius: 32px;
    border: 1px solid rgba(60, 44, 33, 0.18);
    box-shadow: 0 26px 60px -22px rgba(60, 44, 33, 0.5);
}
.shot:nth-child(1) {
    transform: rotate(-8deg) translateX(44px) scale(0.9);
    transform-origin: bottom right;
    z-index: 1;
}
.shot:nth-child(2) {
    z-index: 3;
}
.shot:nth-child(3) {
    transform: rotate(8deg) translateX(-44px) scale(0.9);
    transform-origin: bottom left;
    z-index: 1;
}
.p-golf .shot {
    border-color: rgba(122, 139, 94, 0.4);
}
.p-rankem .shot {
    border-color: rgba(193, 91, 52, 0.35);
}
.p-spell .shot {
    border-color: rgba(176, 71, 94, 0.32);
}

/* note / story */
.story {
    background: var(--card);
    border-radius: 28px;
    padding: 52px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 50px;
    border: 1px solid rgba(60, 44, 33, 0.06);
    margin-bottom: 26px;
}
.story h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 34px;
    line-height: 1.18;
    margin-bottom: 20px;
}
.body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--mute);
    font-weight: 400;
}
.body + .body {
    margin-top: 16px;
}

/* feature grid */
.feat {
    padding: 60px 0;
}
.feat > h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 44px;
    margin-bottom: 40px;
}
.fgrid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.f {
    background: var(--card);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid rgba(60, 44, 33, 0.06);
}
.dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}
.dot svg {
    display: block;
}
.p-golf .dot {
    background: color-mix(in srgb, var(--sage) 18%, transparent);
    color: var(--sage);
}
.p-rankem .dot {
    background: color-mix(in srgb, var(--clay) 15%, transparent);
    color: var(--clay);
}
.p-spell .dot {
    background: color-mix(in srgb, var(--plum) 14%, transparent);
    color: var(--plum);
}
.f h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 8px;
}
.f p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--mute);
    font-weight: 400;
}

/* guardians (Spellbreaker) */
.guardians {
    padding: 64px 0 4px;
    text-align: center;
}
.guardians > h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 44px;
}
.gsub {
    font-size: 17px;
    color: var(--mute);
    font-weight: 400;
    margin-top: 8px;
}
.gwrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 10px;
    row-gap: 42px;
    margin-top: 46px;
}
.g {
    width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.g img {
    width: 96px;
    filter: drop-shadow(0 8px 14px rgba(60, 44, 33, 0.16));
}
.g h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 19px;
    margin-top: 14px;
}
.g p {
    font-size: 13px;
    line-height: 1.45;
    color: var(--mute);
    font-weight: 400;
    margin-top: 3px;
    max-width: 170px;
}
.gnote {
    font-size: 14px;
    color: var(--mute);
    font-weight: 400;
    font-style: italic;
    font-family: var(--serif);
    margin-top: 40px;
}

/* privacy */
.priv {
    background: var(--card);
    border-radius: 28px;
    padding: 52px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 50px;
    border: 1px solid rgba(60, 44, 33, 0.06);
}
.priv h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 18px;
}

/* footer ---------------------------------------------------------- */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 48px;
    margin-top: 44px;
    border-top: 1px solid rgba(60, 44, 33, 0.12);
    font-size: 15px;
    color: var(--mute);
    font-weight: 500;
}

/* mobile variant */
@media (max-width: 600px) {
    .page {
        padding: 0;
    }

    /* header */
    header {
        padding: 22px 20px 0;
    }
    .wm {
        font-size: 26px;
    }

    /* hero */
    .hero {
        background: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 56px 20px 20px;
        margin-top: 0;
    }
    .hero .ic {
        width: 88px;
        height: 88px;
        box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.3);
    }
    .hero h1 {
        font-size: 44px;
        line-height: 1.03;
    }
    .hero .tag {
        font-size: 18px;
        line-height: 1.35;
        margin-top: 8px;
    }
    .cta {
        margin-top: 24px;
    }
    .cta img {
        height: 50px;
    }

    /* screenshots */
    .gallery {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 14px;
        padding: 24px 20px 34px;
        margin: 6px 0 14px;
        perspective: none;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        align-items: center;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .gallery::-webkit-scrollbar {
        display: none;
    }
    .shot {
        width: 64%;
        flex: 0 0 auto;
        transform: none !important;
        position: static;
        scroll-snap-align: center;
        border-radius: 22px;
        box-shadow: 0 14px 30px -14px rgba(60, 44, 33, 0.5);
    }

    /* story */
    .story {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 22px;
        border-radius: 20px;
        margin: 0 20px 14px;
    }
    .story h2 {
        font-size: 22px;
        line-height: 1.22;
        margin-bottom: 8px;
    }
    .body {
        font-size: 15px;
        line-height: 1.6;
    }

    /* features */
    .feat {
        padding: 26px 20px 34px;
    }
    .feat > h2 {
        font-size: 30px;
        margin-bottom: 10px;
    }
    .fgrid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .f {
        background: none;
        border: none;
        border-radius: 0;
        padding: 24px 0;
        border-top: 1px solid rgba(60, 44, 33, 0.12);
    }
    .f:first-child {
        border-top: none;
        padding-top: 6px;
    }

    /* privacy */
    .priv {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 22px;
        border-radius: 20px;
        margin: 0 20px;
    }
    .priv h2 {
        font-size: 22px;
        line-height: 1.22;
        margin-bottom: 12px;
    }

    /* homepage */
    .apps {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 56px;
        padding: 0 20px;
    }
    .app {
        padding: 40px 28px 34px;
        border-radius: 24px;
    }
    .app .chip {
        white-space: normal;
    }
    .app h3 {
        font-size: 34px;
    }
    .app.gm p,
    .app.re p,
    .app.wide p {
        white-space: normal;
    }
    .cast img {
        width: 46px;
    }
    .cast img:nth-child(3) {
        width: 58px;
    }

    /* footer */
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        margin: 32px 20px 0;
        padding: 18px 0 40px;
        font-size: 14px;
    }

    /* No hover effects on touch */
    .app:hover {
        transform: none;
        box-shadow:
            0 2px 0 rgba(255, 255, 255, 0.7) inset,
            0 22px 44px -30px rgba(60, 44, 33, 0.5);
    }
    .app:hover .go {
        transform: none;
    }
    .cta a:hover,
    .cta a:active {
        transform: none;
        filter: none;
    }

    /* guardians */
    .guardians {
        padding: 30px 0 0;
        text-align: left;
    }
    .guardians > h2 {
        font-size: 30px;
        padding: 0 20px;
    }
    .gsub {
        font-size: 15px;
        margin-top: 4px;
        padding: 0 20px;
    }
    .gwrap {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        column-gap: 6px;
        margin-top: 14px;
        padding: 12px 14px 20px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .gwrap::-webkit-scrollbar {
        display: none;
    }
    .g {
        flex: 0 0 146px;
        scroll-snap-align: center;
    }
    .g img {
        width: 84px;
        filter: none;
    }
    .gnote {
        margin-top: 6px;
        padding: 0 20px;
        text-align: center;
    }
}
