/* Playgama Wrap — page tokens.
   Mockup: Figma WRAP, node 85:334 (white page, flat green sheet).
   --bg          page background (also fills the cut-corner wedge)
   --sheet-green the sheet
   --ink         primary text / button
   --feature-ink dark-green text (#102618), matches recolored social icons
   --ink-soft    muted text, rgba of --feature-ink
   --purple      Playgama Purple/400, STEP chips
   --k           corner-composition scale: 1 while the sheet is ≥720px wide,
                 proportional below (fold + logo + sheet radius all follow it). */
:root {
    --bg: #fff;
    --sheet-green: #10e963;
    --ink: #000;
    --ink-soft: rgba(16, 38, 24, 0.54);
    --feature-ink: #102618;
    --purple: #9747ff;
    --k: min(1, calc((100vw - 40px) / 720px));
}
@supports not (scale: calc(100vw / 720px)) {
    :root {
        --k: 1;
    }
    @media (max-width: 760px) {
        :root {
            --k: 0.75;
        }
    }
    @media (max-width: 580px) {
        :root {
            --k: 0.55;
        }
    }
    @media (max-width: 440px) {
        :root {
            --k: 0.45;
        }
    }
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "DM Sans", system-ui, sans-serif;
    font-variation-settings: "opsz" 14;
}

/* The sheet: fills the view with a 20px inset on every side and grows with
   the content. Its top-right corner is square — fully covered by the
   fixed-size cut block. */
.sheet {
    position: relative;
    margin: 20px;
    min-height: calc(100vh - 40px);
    min-height: calc(100dvh - 40px);
    background: var(--sheet-green);
    border-radius: calc(110px * var(--k));
    border-top-right-radius: 0;
    corner-shape: squircle;
}

/* Cut corner + folded flap + logo: one composition, geometry from the mockup.
   Fixed on desktop (k=1); on narrow views the whole block scales from the
   top-right corner — internal proportions never change. */
.corner-scale {
    position: absolute;
    top: 0;
    right: 0;
    width: 329px;
    height: 203px;
    transform-origin: top right;
    transform: scale(var(--k));
}
.corner {
    position: absolute;
    inset: 0;
}
.corner .wedge {
    position: absolute;
    inset: 0;
    background: var(--bg);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.corner .shadow {
    position: absolute;
    top: 0.6px;
    right: 1.8px;
    width: 328px;
    height: 211px;
    mix-blend-mode: multiply;
}
.corner .flap {
    position: absolute;
    top: 0.6px;
    right: 0.8px;
    width: 328px;
    height: 202px;
}

.logo {
    position: absolute;
    top: 17px;
    right: 4px;
    width: 258px;
    height: 140px;
}
.logo .playgama {
    position: absolute;
    left: 0;
    top: 0;
    width: 161px;
    height: 47px;
}
.logo .wrap {
    position: absolute;
    left: 0;
    top: 47px;
    width: 258px;
    height: 93px;
}

/* Content */
.content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.hero h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    color: var(--feature-ink);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 16px 22px 16px 24px;
    box-sizing: border-box;
    background: var(--ink);
    color: #fff;
    border-radius: 1000px;
    text-decoration: none;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.divider {
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.35);
}

.steps {
    display: flex;
    gap: 6px;
    width: 100%;
}
.step {
    flex: 1;
    min-width: 1px;
    height: 180px;
    padding: 40px 20px 20px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 96px;
    corner-shape: squircle;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.step-chip {
    background: var(--purple);
    color: #fff;
    border-radius: 24px;
    padding: 4px 8px;
    font-family: "DM Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.7px;
    line-height: 1;
    text-transform: uppercase;
}
.step p {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
}

.features-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}
.features {
    display: flex;
    gap: 8px;
    width: 100%;
}
.features .col {
    flex: 1;
    min-width: 1px;
    display: flex;
    flex-direction: column;
}
.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
}
.feature img {
    width: 20px;
    height: 20px;
}
.feature p {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    color: var(--feature-ink);
    white-space: nowrap;
}

.footnote {
    margin: 0;
    text-align: center;
    font-size: 20px;
    line-height: 1.2;
    color: var(--feature-ink);
}
.footnote .soft {
    color: var(--ink-soft);
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding-top: 64px;
}
.email {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    color: var(--feature-ink);
    text-decoration: none;
}
.social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.social img {
    display: block;
    width: 24px;
    height: 24px;
}
.legal {
    margin: 0;
    max-width: min(448px, 100%);
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    color: var(--ink-soft);
}
.legal a {
    color: inherit;
}

@media (max-width: 700px) {
    :root {
        --k: min(1, calc((100vw - 16px) / 720px));
    }
    .sheet {
        margin: 12px 8px;
        min-height: calc(100vh - 24px);
        min-height: calc(100dvh - 24px);
    }
    .content {
        padding: 72px 16px 96px;
    }
    .hero h1 {
        font-size: 22px;
        line-height: 1.1;
        text-wrap: balance;
    }
    .hero h1 br {
        display: none;
    }
    .steps {
        flex-direction: column;
    }
    .step {
        height: auto;
        min-height: 120px;
        padding: 32px 20px;
    }
    .features {
        flex-direction: column;
        gap: 0;
    }
    .feature p {
        white-space: normal;
    }
}
