:root {
    --ink: #1B1340;
    --paper: #EFEAFF;
    --white: #FFFFFF;
    --orange: #FF8C00;   /* brand orange from the logo */
    --pink: #FF6FAE;
    --mint: #3DDBB0;
    --sky: #58C8F5;
    --sun: #FFD23F;

    --font-display: 'Bagel Fat One', 'Trebuchet MS', system-ui, sans-serif;
    --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
    --border: 3px solid var(--ink);
    --shadow: 6px 6px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: 0.005em; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 10; height: 68px;
    display: flex; align-items: center;
    background: var(--paper);
    border-bottom: var(--border);
}
nav { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.logo img { border-radius: 10px; border: 2px solid var(--ink); }
nav ul { display: flex; gap: 8px; }
nav ul a { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 700; color: var(--ink); text-decoration: none; }
nav ul a:hover { background: var(--sun); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 28px;
    background: var(--orange); color: var(--ink);
    border: var(--border); border-radius: 999px;
    font-weight: 700; font-size: 1.0625rem; text-decoration: none;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn-ghost { background: var(--white); }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 6.5vw, 5rem); max-width: 12ch; margin-bottom: 24px; }
.hero-copy p { max-width: 42ch; font-size: 1.25rem; margin-bottom: 36px; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.sticker {
    width: min(320px, 78%); aspect-ratio: 1; padding: 16px;
    background: var(--white); border: var(--border); border-radius: 36px;
    box-shadow: 10px 10px 0 var(--ink); transform: rotate(-5deg);
}
.sticker img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.shape { position: absolute; border: var(--border); }
.s1 { width: 88px; height: 88px; background: var(--pink); border-radius: 50%; top: 6%; right: 6%; }
.s2 { width: 72px; height: 72px; background: var(--sky); border-radius: 18px; bottom: 8%; left: 4%; transform: rotate(14deg); }
.s3 { width: 56px; height: 56px; background: var(--sun); border-radius: 50%; bottom: 14%; right: 12%; }

/* One page-load moment: the sticker pops in */
@media (prefers-reduced-motion: no-preference) {
    .sticker { animation: pop 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
}
@keyframes pop { from { opacity: 0; transform: rotate(-16deg) scale(0.8); } to { opacity: 1; transform: rotate(-5deg) scale(1); } }

/* Apps */
.apps { padding: 32px 0 88px; }
.apps h2, .contact h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 28px; }
.grid-title { margin-top: 64px; }

.card {
    --accent: var(--sky);
    display: flex; flex-direction: column;
    background: var(--white); border: var(--border); border-radius: 24px;
    box-shadow: var(--shadow); overflow: hidden;
}
.card-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 24px; background: var(--accent); border-bottom: var(--border);
}
.card-top img, .placeholder { width: 72px; height: 72px; border: var(--border); border-radius: 18px; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 24px; }
.card h3 { font-size: 1.75rem; margin-bottom: 6px; }
.tagline { font-weight: 700; margin-bottom: 12px; }
.description { margin-bottom: 24px; flex-grow: 1; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.link-text { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.link-text:hover { background: var(--sun); }

.badge {
    padding: 2px 14px; background: var(--sun); border: var(--border); border-radius: 999px;
    font-weight: 700; font-size: 0.875rem; transform: rotate(3deg);
}

.card.featured { --accent: var(--orange); flex-direction: row; }
.featured .card-top { flex-direction: column; align-items: flex-start; justify-content: space-between; width: 36%; padding: 32px; border-bottom: 0; border-right: var(--border); }
.featured .card-top img { width: 140px; height: 140px; border-radius: 32px; }
.featured .card-body { padding: 40px; justify-content: center; }
.featured h3 { font-size: clamp(2rem, 4vw, 3rem); }
.featured .tagline { font-size: 1.25rem; }
.featured .description { max-width: 46ch; flex-grow: 0; font-size: 1.125rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.grid > .card:nth-child(4n+1) { --accent: var(--mint); }
.grid > .card:nth-child(4n+2) { --accent: var(--pink); }
.grid > .card:nth-child(4n+3) { --accent: var(--sky); }
.grid > .card:nth-child(4n+4) { --accent: var(--sun); }

.wallios-bg { background-color: #FFFFFF; }
.vidios-bg { background-color: #010101; }
.checkers-bg { background-color: #1A1A2E; }

/* Coming soon */
.card.soon { background: transparent; border-style: dashed; box-shadow: none; }
.soon .card-top { background: transparent; border-bottom-style: dashed; }
.placeholder { display: grid; place-items: center; border-style: dashed; font-family: var(--font-display); font-size: 2rem; }

/* Contact */
.contact { padding: 0 0 88px; }
.contact-card { padding: 56px; background: var(--pink); border: var(--border); border-radius: 32px; box-shadow: 10px 10px 0 var(--ink); }
.contact-card p { max-width: 44ch; margin-bottom: 20px; font-size: 1.125rem; }
.email-link { display: inline-block; margin-bottom: 32px; font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 2.75rem); color: var(--ink); text-underline-offset: 8px; text-decoration-thickness: 4px; word-break: break-all; }
.email-link:hover { background: var(--sun); }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* Footer */
footer { padding: 32px 0 48px; border-top: var(--border); font-size: 0.9375rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
footer a:hover { background: var(--sun); }

/* Responsive */
@media (max-width: 860px) {
    .hero { padding: 48px 0 32px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-art { min-height: 280px; }
    .card.featured { flex-direction: column; }
    .featured .card-top { width: auto; flex-direction: row; align-items: center; border-right: 0; border-bottom: var(--border); padding: 24px; }
    .featured .card-top img { width: 96px; height: 96px; border-radius: 24px; }
    .featured .card-body { padding: 24px; }
    .contact-card { padding: 32px 24px; }
}
