/* Bloobu site. No external requests: system fonts, inline SVG, one script. */

:root {
    color-scheme: light dark;
    --blob: #7C8CFF;
    --bg: #F7F6FF;
    --ink: #17131F;
    --muted: #5B5870;
    --card: rgba(255, 255, 255, 0.74);
    --line: rgba(23, 19, 31, 0.09);
    --screen-top: #ffffff;
    --shadow: 0 40px 80px -36px rgba(40, 30, 100, 0.45);
    --radius: 24px;
    --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0D0E1A;
        --ink: #F2F1FA;
        --muted: #A8A5C0;
        --card: rgba(255, 255, 255, 0.06);
        --line: rgba(255, 255, 255, 0.11);
        --screen-top: #000000;
        --shadow: 0 40px 90px -36px rgba(0, 0, 0, 0.85);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(900px 620px at 10% 6%, color-mix(in srgb, var(--blob) 24%, transparent), transparent 70%),
        radial-gradient(720px 520px at 96% 42%, color-mix(in srgb, var(--blob) 13%, transparent), transparent 70%),
        var(--bg);
    transition: background-color 0.4s ease;
}

main { flex: 1; width: 100%; }
.topbar, .hero, .section, .doc, .footer__inner { width: 100%; }

img, svg { max-width: 100%; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--blob) 75%, #000); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 12px; }

/* Top bar */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1120px; margin: 0 auto; padding: 18px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 9px; }
.topbar__nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; color: var(--muted); }
.topbar__nav a { text-decoration: none; }
.topbar__nav a:hover { color: var(--ink); }
.topbar__tag { opacity: 0.8; }
@media (max-width: 520px) { .topbar__tag { display: none; } }

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(28px, 6vw, 80px);
    max-width: 1120px; margin: 0 auto;
    padding: clamp(16px, 4vw, 56px) 24px 56px;
}
.hero__icon { display: block; border-radius: 17px; box-shadow: 0 14px 30px -14px rgba(40, 30, 100, 0.5); margin-bottom: 22px; }
.eyebrow { margin: 0 0 6px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(3.4rem, 10vw, 6rem); font-weight: 780; letter-spacing: -0.025em; line-height: 1; }
.lede { margin: 18px 0 0; max-width: 30ch; font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 650; line-height: 1.3; color: var(--muted); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 24px; border-radius: 16px;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.button:active { transform: scale(0.98); }
.button--primary { background: var(--ink); color: var(--bg); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.6); }
.button--primary:hover { transform: translateY(-1px); }
.button--soon { background: var(--card); border: 1px solid var(--line); color: var(--muted); cursor: default; }
.button--ghost { border: 1px solid var(--line); background: transparent; }
.button--ghost:hover { background: var(--card); }

.swatches { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.swatches__label { font-size: 0.9rem; color: var(--muted); margin-right: 4px; }
.swatch {
    width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 3px solid transparent;
    background: var(--swatch, var(--blob)); cursor: pointer; box-shadow: 0 0 0 1px var(--line);
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-color: var(--bg); box-shadow: 0 0 0 2px var(--ink); }

@media (max-width: 880px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero__icon { margin-inline: auto; }
    .lede { margin-inline: auto; }
    .cta, .swatches { justify-content: center; }
}

/* Phone mockup */
.phone {
    position: relative;
    width: min(300px, 76vw); aspect-ratio: 9 / 19;
    margin: 0 auto; padding: 10px;
    border-radius: 50px;
    background: linear-gradient(150deg, #34343f, #0a0a0e);
    box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}
.phone__island { position: absolute; z-index: 3; top: 21px; left: 50%; width: 31%; height: 24px; transform: translateX(-50%); border-radius: 99px; background: #000; }
.phone__screen {
    position: relative; height: 100%; overflow: hidden; border-radius: 41px;
    background: linear-gradient(180deg, var(--screen-top) 0%, color-mix(in srgb, var(--blob) 24%, var(--screen-top)) 100%);
    display: flex; flex-direction: column; align-items: center;
}
.phone__status { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0; font-size: 0.72rem; font-weight: 700; font-family: system-ui, -apple-system, sans-serif; }
.phone__gear { width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, transparent); position: relative; }
.phone__gear::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 55%, transparent); }

.bubble {
    position: relative; margin-top: 34px; min-height: 58px; max-width: 80%;
    padding: 14px 18px; border-radius: 20px; text-align: center;
    background: color-mix(in srgb, var(--screen-top) 82%, var(--blob) 18%);
    border: 1px solid color-mix(in srgb, var(--blob) 40%, transparent);
    box-shadow: 0 12px 22px -16px rgba(40, 30, 100, 0.6);
    font-weight: 700; font-size: 0.98rem; line-height: 1.25;
    display: flex; align-items: center; justify-content: center;
}
.bubble::after {
    content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg);
    background: inherit; border-right: 1px solid color-mix(in srgb, var(--blob) 40%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--blob) 40%, transparent);
}
.bubble__text { color: var(--ink); }

.phone__blob { width: 78%; margin-top: auto; margin-bottom: auto; }
.phone__caption { margin: 0 0 22px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }

/* Blob drawing */
.blob-svg { display: block; width: 100%; height: auto; overflow: visible; }
.blob-stop--a { stop-color: var(--blob); stop-opacity: 0.98; }
.blob-stop--b { stop-color: var(--blob); stop-opacity: 0.66; }
.blob-body { filter: drop-shadow(0 24px 30px color-mix(in srgb, var(--blob) 38%, transparent)); }
.blob-rim { stroke: rgba(255, 255, 255, 0.6); stroke-width: 9; stroke-linejoin: round; }
.blob-shadow { fill: rgba(23, 19, 31, 0.14); }
@media (prefers-color-scheme: dark) { .blob-shadow { fill: rgba(0, 0, 0, 0.4); } }

.face { opacity: 0; transition: opacity 0.35s ease; }
.face.is-active { opacity: 1; }
.face .ink, .face .ink-fill, .face .ink * { fill: #17131F; fill-opacity: 0.9; }
.face .ink-fill { fill: #17131F; }
.face .shine { fill: #fff; fill-opacity: 0.88; }
.face .mouth { fill: none; stroke: #17131F; stroke-opacity: 0.9; stroke-width: 25; stroke-linecap: round; }
.face .mouth--thin { stroke-width: 17; }
.face .mouth--eye { stroke-width: 20; }
.face .blush { fill: #FF8DB3; fill-opacity: 0.6; }
.face .tongue { fill: #FF8DB3; }
.face .zzz text { font: 800 64px var(--font); fill: var(--ink); opacity: 0.7; }
.face.is-active .zzz__a { animation: zzz 2.4s ease-in-out infinite; }
.face.is-active .zzz__b { animation: zzz 2.4s ease-in-out 0.5s infinite; }

@keyframes zzz { 0%, 100% { transform: translateY(0); opacity: 0.2; } 50% { transform: translateY(-18px); opacity: 0.85; } }
@keyframes float { 0%, 100% { transform: translateY(8px) scale(0.985); } 50% { transform: translateY(-8px) scale(1.015); } }
.blob-float { animation: float 4.4s ease-in-out infinite; }

/* Hats */
.hat__cone { fill: #FF8DB3; stroke: rgba(255, 255, 255, 0.55); stroke-width: 6; stroke-linejoin: round; }
.hat__stripe--a { fill: #FFC857; }
.hat__stripe--b { fill: #7C8CFF; }
.hat__pom { fill: #FFC857; stroke: rgba(255, 255, 255, 0.6); stroke-width: 5; }
.hat__crown { fill: #25222E; }
.hat__band { fill: #FF8DB3; }
.hat__brim { fill: #17131F; }

/* Sections */
.section { max-width: 1120px; margin: 0 auto; padding: 40px 24px; }
.section__title { margin: 0 0 24px; text-align: center; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
.section__title--left { text-align: left; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* Plus */
.plus__panel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center;
    padding: clamp(24px, 5vw, 48px); border-radius: 32px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--blob) 20%, transparent), color-mix(in srgb, #FF8DB3 14%, transparent)),
        var(--card);
    border: 1px solid var(--line);
}
.plus__copy .section__title { margin-bottom: 18px; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-size: 1.05rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--blob); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 4px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.plus__price { margin: 0 0 8px; font-size: 1.05rem; color: var(--muted); }
.plus__amount { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.fineprint { margin: 0; font-size: 0.82rem; color: var(--muted); max-width: 46ch; }

.plus__show { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plus__blob { margin: 0; text-align: center; }
.plus__blob .blob-svg { filter: none; }
.plus__blob figcaption { margin-top: 6px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.plus__blob--pink { --blob: #FF8DB3; }
.plus__blob--mint { --blob: #68D6C5; }
.plus__blob:first-child { --blob: #B38CFF; }

@media (max-width: 880px) { .plus__panel { grid-template-columns: 1fr; } .section__title--left { text-align: center; } .plus__copy { text-align: center; } .ticks { justify-items: start; max-width: 340px; margin-inline: auto; } .fineprint { margin-inline: auto; } }

.note { text-align: center; padding-bottom: 72px; }
.note__text { max-width: 60ch; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }

/* Footer */
.footer { padding: 24px; font-size: 0.88rem; color: var(--muted); }
.footer__inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
.footer__sep { opacity: 0.5; }

/* Legal / support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 24px 72px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 8px; }
.doc__meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { margin: 36px 0 8px; font-size: 1.3rem; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 86%, transparent); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 6px 0; }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font-size: 0.92em; }
.doc .callout { padding: 16px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
