@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --ink: #161822;
    --muted: #4f586f;
    --surface: rgba(255, 255, 255, 0.78);
    --panel: rgba(255, 255, 255, 0.9);
    --line: rgba(24, 31, 52, 0.12);
    --accent: #ff6b3d;
    --accent-strong: #ec3f0b;
    --sky: #dff5ff;
    --mint: #d2ffd8;
}

body {
    font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(125deg, #f8fffc 0%, #ebf8ff 44%, #ffe9d9 100%);
    overflow: auto;
    position: relative;
}

.home-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    gap: 22px;
    padding: 36px 20px 56px;
    position: relative;
    z-index: 2;
}

.hero-card,
.example-card {
    width: min(920px, 94vw);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px 28px;
    box-shadow: 0 18px 45px rgba(23, 33, 58, 0.12);
    backdrop-filter: blur(8px);
}

.hero-card h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.02em;
    text-wrap: balance;
}

.search-row {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

#postcode {
    width: min(440px, 76vw);
    border: 1px solid rgba(17, 21, 35, 0.18);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 160ms ease, border-color 160ms ease;
    background: rgba(255, 255, 255, 0.92);
}

#postcode:focus {
    border-color: rgba(39, 124, 255, 0.62);
    box-shadow: 0 0 0 4px rgba(39, 124, 255, 0.18);
}

button {
    border: none;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 12px 20px;
    box-shadow: 0 8px 18px rgba(236, 63, 11, 0.26);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(236, 63, 11, 0.3);
}

.slogan {
    text-align: center;
    margin: 16px auto 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: 1.05rem;
}

#error {
    margin-top: 12px;
    min-height: 1.2em;
    text-align: center;
    color: #b00020;
    position: static;
}

.example-card h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

#exampleStatus {
    margin: 10px 0 14px;
    text-align: center;
    color: var(--muted);
}

.preview-wrap {
    height: min(420px, 52vh);
    width: 100%;
    box-sizing: border-box;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 14px;
}

#exampleChart {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.bg-orb {
    position: fixed;
    width: 42vmax;
    aspect-ratio: 1;
    border-radius: 999px;
    z-index: 1;
    filter: blur(42px);
    opacity: 0.55;
    pointer-events: none;
}

.bg-orb-a {
    background: radial-gradient(circle at 35% 35%, var(--sky), rgba(223, 245, 255, 0));
    top: -18vmax;
    left: -14vmax;
}

.bg-orb-b {
    background: radial-gradient(circle at 35% 35%, var(--mint), rgba(210, 255, 216, 0));
    bottom: -20vmax;
    right: -12vmax;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(rgba(31, 41, 68, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 41, 68, 0.045) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

@media (max-width: 700px) {
    .hero-card,
    .example-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .preview-wrap {
        height: 320px;
        padding: 10px;
    }
}
