/* Pengu — an ice-world palette, carried over from the page this grew out of.
   Light only on purpose: the whole thing is set in the snow. */

:root {
    --ice-0: #f7fbff;
    --ice-1: #eaf4fb;
    --ice-2: #d6e9f7;
    --line: #dce7f0;
    --line-soft: #eef3f7;

    --accent: #ff8fab;
    --accent-deep: #f4708f;
    --sun: #f5a623;

    --ink: #2b2b38;
    --ink-soft: #5b6472;
    --ink-faint: #8b95a3;

    --ok: #1f8a5f;
    --bad: #c2334d;

    --radius: 20px;
    --radius-lg: 26px;
    --shadow: 0 2px 4px rgba(43, 43, 56, .05), 0 18px 45px rgba(43, 43, 56, .13);
    --shadow-sm: 0 1px 2px rgba(43, 43, 56, .05), 0 6px 18px rgba(43, 43, 56, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(170deg, var(--ice-0) 0%, var(--ice-1) 45%, var(--ice-2) 100%);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    line-height: 1.55;
}

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 2.4rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--accent-deep); }

.muted { color: var(--ink-faint); }
.small { font-size: .84rem; }
.center { text-align: center; }

/* ── shell ───────────────────────────────────────────────────────────── */

.shell { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 36rem; }

.nav {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 0;
}
.nav .brand {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none;
}
.nav .brand svg { width: 30px; }
.nav .spacer { flex: 1; }
.nav a.link { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav a.link:hover { color: var(--accent-deep); }

.foot {
    margin-top: auto; padding: 3rem 0 2rem;
    color: var(--ink-faint); font-size: .82rem;
}
.foot a { color: var(--ink-faint); }

/* ── surfaces ────────────────────────────────────────────────────────── */

.card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2.25rem 2rem;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.4rem 1.5rem;
}

.sign {
    display: inline-block;
    background: #fff7e0;
    border: 2px dashed var(--sun);
    color: #a86a00;
    border-radius: 12px;
    padding: .4rem 1rem;
    font-size: .76rem;
    font-weight: 800;
    transform: rotate(-2deg);
}

/* ── buttons ─────────────────────────────────────────────────────────── */

.btn {
    display: inline-block; border: none; cursor: pointer;
    padding: .85rem 1.7rem; border-radius: 9999px;
    background: var(--accent); color: #fff;
    font: inherit; font-weight: 700; font-size: .97rem; text-decoration: none;
    box-shadow: 0 5px 16px rgba(244, 112, 143, .35);
    transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(244, 112, 143, .5); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.ghost {
    background: #fff; color: var(--ink); border: 1.5px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

/* ── forms ───────────────────────────────────────────────────────────── */

.field { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 700; }
.field input, .field select {
    border: 1.5px solid var(--line); border-radius: 12px;
    padding: .65rem .8rem; font-size: .95rem; font-family: inherit;
    background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus {
    outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}

.drop {
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    border: 2.5px dashed #c3ddf0; border-radius: var(--radius);
    padding: 2.1rem 1rem; cursor: pointer; text-align: center; background: #fbfdff;
    transition: border-color .18s, background .18s, transform .18s;
}
.drop:hover { border-color: var(--accent); background: #fff7f9; transform: translateY(-2px); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-title { font-weight: 700; font-size: 1rem; }
.drop-hint { font-size: .8rem; color: var(--ink-faint); }

.error { color: var(--bad); font-size: .9rem; margin-top: 1rem; }
.notes {
    list-style: disc outside; margin: 1.4rem 0 0; padding-left: 1.3rem;
    color: var(--ink-faint); font-size: .84rem; line-height: 1.75;
}

/* ── pricing ─────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; height: 100%; }
.plan.best { border-color: var(--accent); box-shadow: 0 10px 30px rgba(244, 112, 143, .18); }
.plan .tag {
    position: absolute; top: -.7rem; right: 1rem;
    background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800;
    padding: .2rem .6rem; border-radius: 9999px; letter-spacing: .03em;
}
.plan .price { font-size: 2rem; font-weight: 800; margin: .3rem 0 0; }
.plan .per { font-size: .84rem; color: var(--ink-faint); margin-bottom: .8rem; }
.plan .save { color: var(--ok); font-weight: 700; font-size: .8rem; }
.plan ul { list-style: none; margin: 1rem 0 1.4rem; padding: 0; font-size: .88rem; }
.plan li { padding: .3rem 0; color: var(--ink-soft); }
.plan li::before { content: "🐧 "; }
.plan .foot-btn { margin-top: auto; }

/* ── meter ───────────────────────────────────────────────────────────── */

.meter { height: 8px; border-radius: 9999px; background: var(--ice-2); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 9999px; }

/* ── status ──────────────────────────────────────────────────────────── */

.status { font-weight: 700; margin: 0 0 .35rem; font-size: 1.02rem; }
.big { font-size: 2.1rem; font-weight: 800; margin: .3rem 0 .2rem; }
.party { font-size: 2rem; animation: pop .6s ease-out; }
@keyframes pop {
    0%   { transform: scale(.4); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.decks {
    margin: 1.3rem 0 0; padding: 0; list-style: none; text-align: left;
    max-height: 11rem; overflow-y: auto; border-top: 1px solid var(--line-soft);
    font-size: .82rem; color: var(--ink-faint);
}
.decks li { padding: .35rem 0; border-bottom: 1px solid var(--line-soft); }
.decks li::before { content: "🐧 "; }

/* rotating encouragement, CSS-only so there is no timer to leak */
.cheer { position: relative; height: 1.4rem; margin-top: .9rem; }
.cheer span {
    position: absolute; inset: 0;
    font-size: .88rem; color: var(--accent-deep); font-weight: 600;
    opacity: 0; animation: cheer 24s infinite;
}
.cheer span:nth-child(1) { animation-delay: 0s; }
.cheer span:nth-child(2) { animation-delay: 6s; }
.cheer span:nth-child(3) { animation-delay: 12s; }
.cheer span:nth-child(4) { animation-delay: 18s; }
@keyframes cheer {
    0%, 2%    { opacity: 0; transform: translateY(6px); }
    6%, 22%   { opacity: 1; transform: translateY(0); }
    26%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* ── penguins ────────────────────────────────────────────────────────── */

.peek {
    position: absolute; top: -46px; right: 30px; width: 62px;
    animation: peek 4.5s ease-in-out infinite; transform-origin: bottom center;
}
@keyframes peek {
    0%, 70%, 100% { transform: translateY(0) rotate(0deg); }
    80%           { transform: translateY(-6px) rotate(-7deg); }
    90%           { transform: translateY(-6px) rotate(7deg); }
}

.waddler {
    width: 84px; margin: .2rem auto 1.2rem; display: block;
    animation: waddle 1.1s ease-in-out infinite; transform-origin: bottom center;
}
@keyframes waddle {
    0%, 100% { transform: rotate(-7deg) translateY(0); }
    50%      { transform: rotate(7deg) translateY(-5px); }
}

.flake { position: fixed; top: -40px; color: #b9d9ef; opacity: .7; animation: fall linear infinite; z-index: 0; }
.flake-lg { color: #cbe4f6; opacity: .55; }
@keyframes fall {
    0%   { transform: translateY(-20px) rotate(0deg); }
    100% { transform: translateY(105vh) rotate(360deg); }
}

.ice-floor { position: fixed; left: 0; right: 0; bottom: 0; height: 26px; background: #fff; opacity: .75; z-index: 0; }
.parade { position: fixed; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; z-index: 1; }
/* backwards fill-mode keeps each one off-screen during its delay, instead of parking them
   all on top of each other at the left edge. */
.parade .walker { position: absolute; bottom: 16px; width: 52px; animation: cross linear infinite backwards; }
.parade .walker svg { animation: waddle .7s ease-in-out infinite; transform-origin: bottom center; }
.parade .w1 { animation-duration: 26s; animation-delay: 0s; }
.parade .w2 { animation-duration: 33s; animation-delay: 4s; width: 40px; }
.parade .w3 { animation-duration: 29s; animation-delay: 9s; width: 60px; }
.parade .w4 { animation-duration: 38s; animation-delay: 14s; width: 34px; }
.parade .w5 { animation-duration: 23s; animation-delay: 19s; width: 48px; }
.parade .w6 { animation-duration: 31s; animation-delay: 25s; width: 56px; }
/* slightly different waddles, so the line does not march in lockstep */
.parade .w2 svg { animation-duration: .58s; }
.parade .w4 svg { animation-duration: .82s; }
.parade .w5 svg { animation-duration: .66s; }
.parade .w6 svg { animation-duration: .75s; }
@keyframes cross {
    from { transform: translateX(-90px); }
    to   { transform: translateX(calc(100vw + 90px)); }
}

/* ── sign in ─────────────────────────────────────────────────────────── */

.providers { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.4rem; }
.provider {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
    background: #fff; color: var(--ink); font-weight: 700; font-size: .93rem;
    text-decoration: none; transition: border-color .15s, transform .15s;
}
.provider:hover { border-color: var(--accent); transform: translateY(-1px); }
.provider svg { width: 18px; height: 18px; }

/* ── layout helpers ──────────────────────────────────────────────────── */

.hero { padding: 3rem 0 1rem; }
.hero p.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 34rem; }
.section { padding: 2.5rem 0; }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.pad-b { padding-bottom: 6rem; }

@media (max-width: 760px) {
    h1 { font-size: 1.85rem; }
    .plans, .grid-3 { grid-template-columns: 1fr; }
    .card { padding: 1.8rem 1.35rem; }
    .nav a.link.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .flake, .parade, .peek, .waddler, .cheer span, .party { animation: none !important; }
    .flake, .parade { display: none; }
    .cheer span:nth-child(1) { opacity: 1; }
}

/* ── billing interval toggle ──────────────────────────────────────────── */

.toggle {
    display: inline-flex; gap: .25rem; margin: 1.2rem 0 .5rem;
    background: #fff; border: 1px solid var(--line); border-radius: 9999px; padding: .25rem;
    box-shadow: var(--shadow-sm);
}
.toggle a {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem 1.1rem; border-radius: 9999px;
    font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--ink-soft);
}
.toggle a.on { background: var(--accent); color: #fff; }
.toggle .pill {
    background: rgba(255, 255, 255, .25); color: inherit;
    border-radius: 9999px; padding: .05rem .45rem; font-size: .72rem; font-weight: 800;
}
.toggle a:not(.on) .pill { background: #eefaf3; color: var(--ok); }

.plan .price .unit { font-size: .95rem; font-weight: 700; color: var(--ink-faint); }
