/* ============================================================
   Pebble Peak: the game's own look. Misty mountain colours: dusk blue, sunset terracotta, river-stone grey and lantern gold.
   Same layout as the other KK Studio game pages; only tokens differ.
   ============================================================ */

:root {
    --paper: #F8F5EF;
    --card: #FFFFFF;
    --hairline: #E4DED2;
    --ink: #26303A;
    --muted-text: #5A6672;
    --pond: #3F8F7B;
    --pond-deep: #2A4A5E;
    --pond-text: #2B6F5E;
    --pond-tint: #E1EFEA;
    --blossom: #E8804F;
    --blossom-text: #B3491C;
    --blossom-tint: #FCE8DD;
    --gold: #F2A93B;
    --gold-tint: #FBEFD3;
    --gold-text: #8A5A05;
    --lotus: #4E9E6B;
    --lotus-text: #2F7048;
    --lotus-tint: #E0F0E5;
    --night: #1B1E4A;
    --band: #EEEAE2;
    --on-ink: #FFFFFF;
    --shadow: 0 1px 2px rgba(38, 48, 58, .05), 0 12px 32px rgba(38, 48, 58, .10);
    --radius-card: 22px;
    --head: 'Fraunces';
    --hero-1: #3F5F9E;
    --hero-2: #6C5AA5;
    --hero-3: #A5566B;
    --hero-glow: rgba(255, 190, 140, .30);
    --hero-shadow: rgba(30, 30, 70, .35);
    --eyebrow: #FFE3B0;
    --hl: #FFC86B;
    --btn: #F08A4B;
    --btn-ink: #2B1400;
    --btn-edge: #A8541F;
    --nav-glow: rgba(63, 143, 123, .3);
    --w1a: #4E8F80;
    --w1b: #2B6262;
    --w2a: #6A88C8;
    --w2b: #3F55A0;
    --w3a: #4B4C9A;
    --w3b: #1B1E4A;
    --cta-1: #3F5F9E;
    --cta-2: #7A4A78;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #12181F;
        --card: #1B242D;
        --hairline: #2A3540;
        --ink: #EEF1F4;
        --muted-text: #A7B3BF;
        --pond-text: #7FD1BC;
        --pond-tint: #17332C;
        --blossom-text: #F5A57A;
        --blossom-tint: #3A2418;
        --gold-tint: #3A2E14;
        --gold-text: #F2A93B;
        --lotus-text: #6FCB8C;
        --lotus-tint: #17301F;
        --band: #161E26;
        --on-ink: #12181F;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .4);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo-text {
    font-family: var(--head), 'Nunito', -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -.005em;
}
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pond-text); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Nav */
#navbar {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
#navbar.scrolled { border-bottom-color: var(--hairline); box-shadow: 0 4px 20px rgba(16, 50, 58, .06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.nav-left { display: flex; align-items: center; gap: 6px; }
.nav-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted-text); }
.nav-back:hover { background: var(--pond-tint); color: var(--pond-text); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-icon { border-radius: 9px; }
.logo-text { font-size: 1.25rem; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--pond-text); }
.nav-links .nav-cta {
    background: var(--pond); color: #fff; padding: 9px 18px; border-radius: 999px;
    box-shadow: 0 6px 16px var(--nav-glow);
}
.nav-links .nav-cta:hover { color: #fff; background: var(--pond-deep); }
.mobile-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.mobile-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }

/* Hero: the pond itself */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(ellipse 60% 50% at 78% 30%, rgba(255, 255, 255, .22), transparent 70%),
        radial-gradient(ellipse 50% 40% at 15% 85%, var(--hero-glow), transparent 70%),
        linear-gradient(170deg, var(--hero-1) 0%, var(--hero-2) 42%, var(--hero-3) 100%);
    padding: 72px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--eyebrow); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-shadow: 0 3px 0 var(--hero-shadow); }
.hero h1 .hl { color: var(--hl); display: block; }
.hero-sub { font-size: 1.2rem; max-width: 34em; margin: 20px 0 28px; color: #E9FAF8; }
.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    font-weight: 800; font-size: 1.05rem; padding: 14px 26px; border-radius: 999px;
    background: var(--btn); color: var(--btn-ink); box-shadow: 0 5px 0 var(--btn-edge), 0 12px 24px rgba(0, 0, 0, .2);
    transition: transform .12s, box-shadow .12s;
}
.btn:hover { color: var(--btn-ink); transform: translateY(2px); box-shadow: 0 3px 0 var(--btn-edge), 0 8px 18px rgba(0, 0, 0, .2); }
.btn.ghost { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255, 255, 255, .26); }
.cta-note { font-size: .95rem; color: #D5F1EE; }
.hero-art { position: relative; display: flex; justify-content: center; }
.device {
    width: min(300px, 72vw); border-radius: 38px; padding: 8px; background: #141D22;
    box-shadow: 0 30px 60px rgba(4, 30, 40, .45); transform: rotate(3deg);
}
.device img { border-radius: 30px; }
.petal { position: absolute; width: 34px; height: 34px; opacity: .9; }
.petal svg { width: 100%; height: 100%; }
.petal.p1 { top: 4%; left: 6%; transform: rotate(-24deg); }
.petal.p2 { bottom: 12%; right: 2%; width: 26px; height: 26px; transform: rotate(40deg); }
.petal.p3 { top: 40%; left: -2%; width: 22px; height: 22px; transform: rotate(10deg); }

/* Numbers */
.numbers { padding: 0; margin-top: -34px; position: relative; z-index: 2; }
.numbers-grid {
    list-style: none; margin: 0; padding: 22px 12px; display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); text-align: center;
}
.numbers-grid b { display: block; font-family: var(--head), sans-serif; font-size: 2.1rem; line-height: 1.1; color: var(--pond-text); }
.numbers-grid span { font-size: .9rem; color: var(--muted-text); font-weight: 600; }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-tag { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--blossom-text); margin-bottom: 10px; }
.section-head h2, .panel h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--muted-text); }

/* Worlds */
.worlds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.world {
    border-radius: var(--radius-card); padding: 28px; color: #fff; position: relative; overflow: hidden;
    box-shadow: var(--shadow); min-height: 250px;
}
.world .wn { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.world h3 { font-size: 1.7rem; margin: 6px 0 10px; }
.world p { margin: 0; font-size: 1rem; }
.world.w1 { background: linear-gradient(160deg, var(--w1a), var(--w1b)); }
.world.w2 { background: linear-gradient(160deg, var(--w2a), var(--w2b)); }
.world.w3 { background: linear-gradient(160deg, var(--w3a), var(--w3b)); }
.world .ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; margin-bottom: 16px; }
.world .ico svg { width: 26px; height: 26px; }
.soon-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.soon { padding: 8px 16px; border-radius: 999px; background: var(--band); color: var(--muted-text); font-weight: 700; font-size: .92rem; border: 1px dashed var(--hairline); }

/* Features */
.features { background: var(--band); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.feature p { margin: 0; color: var(--muted-text); font-size: 1rem; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }
.ico.pond { background: var(--pond-tint); color: var(--pond-text); }
.ico.blossom { background: var(--blossom-tint); color: var(--blossom-text); }
.ico.gold { background: var(--gold-tint); color: var(--gold-text); }
.ico.lotus { background: var(--lotus-tint); color: var(--lotus-text); }

/* Lotus + koi */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.duo p { color: var(--muted-text); }
.lotus-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.lotus-list li { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); font-weight: 700; }
.lotus-list .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blossom-tint); color: var(--blossom-text); display: grid; place-items: center; font-family: var(--head), sans-serif; font-size: 1.1rem; }
.koi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.koi { background: var(--card); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.koi b { display: block; font-family: var(--head), sans-serif; font-size: 1.15rem; }
.koi span { color: var(--muted-text); font-size: .92rem; }
.koi.rare { background: var(--gold-tint); }
.koi.rare span { color: var(--gold-text); }

/* Screens */
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; scrollbar-width: thin; }
.shot { flex: 0 0 min(248px, 66vw); margin: 0; scroll-snap-align: start; }
.shot img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; }
.scroll-btn {
    position: absolute; top: 45%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center;
}
.scroll-btn.prev { left: -14px; } .scroll-btn.next { right: -14px; }
.scroll-btn:disabled { opacity: 0; pointer-events: none; }

/* Twin panels */
.twin { padding-top: 0; }
.twin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--card); border-radius: var(--radius-card); padding: 36px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.8rem; }
.panel > p { color: var(--muted-text); }
.checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--muted-text); }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--lotus) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks b { color: var(--ink); }
.text-link { font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Free / Full Pond */
.compare { max-width: 760px; margin: 0 auto; background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 20px; border-top: 1px solid var(--hairline); text-align: left; }
.compare thead th { border-top: 0; background: var(--pond-deep); color: #fff; font-family: var(--head), sans-serif; font-size: 1.05rem; }
.compare tbody th { font-weight: 600; }
.compare td { text-align: center; width: 24%; font-weight: 700; font-size: .95rem; }
.compare thead th:not(:first-child) { text-align: center; }
.yes { color: var(--lotus-text); } .no { color: var(--muted-text); font-weight: 600; } .part { color: var(--gold-text); }
.plans { text-align: center; color: var(--muted-text); max-width: 640px; margin: 22px auto 0; }

/* CTA */
.cta { background: linear-gradient(170deg, var(--cta-1), var(--cta-2)); color: #fff; text-align: center; }
.cta-icon { margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 12px; }
.cta p { max-width: 34em; margin: 0 auto 26px; color: #DDF5F2; }
.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Footer */
footer { background: var(--band); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--head), sans-serif; font-weight: 700; font-size: 1.1rem; }
.footer-logo img { border-radius: 7px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted-text); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--pond-text); }
.footer-copy { width: 100%; margin: 0; color: var(--muted-text); font-size: .9rem; }
.footer-copy a { color: inherit; }

/* Reveal */
.js [data-animate] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js [data-animate].visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-animate] { opacity: 1; transform: none; transition: none; }
    .btn { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .device { animation: bob 7s ease-in-out infinite; }
    @keyframes bob { 50% { transform: rotate(3deg) translateY(-8px); } }
}

@media (max-width: 1000px) {
    .feature-grid, .worlds-grid { grid-template-columns: 1fr 1fr; }
    .numbers-grid { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
}
@media (max-width: 860px) {
    section { padding: 64px 0; }
    .hero-grid, .duo, .twin-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 72px; }
    .hero-art { order: -1; }
    .mobile-toggle { display: flex; }
    .nav-links {
        display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch;
        gap: 0; background: var(--paper); border-bottom: 1px solid var(--hairline); padding: 8px 16px 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 4px; }
    .nav-links .nav-cta { text-align: center; margin-top: 8px; }
    .scroll-btn { display: none; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .feature-grid, .worlds-grid, .koi-grid { grid-template-columns: 1fr; }
    .numbers-grid { grid-template-columns: 1fr 1fr; }
    .panel { padding: 26px; }
    .compare th, .compare td { padding: 12px 12px; font-size: .9rem; }
    .btn { width: 100%; justify-content: center; }
}

.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { opacity: .9; }
@media (max-width: 600px) { .store-badge { width: auto; } }
