/* WallZooki's main page (platform-home.html). Standalone: it does not use the dashboard's stylesheet. */

:root {
    --blue-900: #124a7c;
    --blue-700: #1b6fb5;
    --blue-500: #2196f3;
    --blue-100: #e3f2fd;
    --ink: #1d2733;
    --muted: #546273;
    --line: #d9e0e8;
    --paper: #ffffff;
    --wash: #f4f7fa;
    --orange: #f59a23;
    --red: #e5533d;
    --green: #43a047;
    --yellow: #f6c23e;
    --teal: #26a69a;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
}

a {
    color: var(--blue-700);
}

a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- language picker (in the header, beside the sign-in button) ---- */

.lang-select {
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--blue-700);
    border-radius: 8px;
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b6fb5' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E") no-repeat 10px center / 18px 18px;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    max-width: 150px;
}

[dir="rtl"] .lang-select {
    padding: 8px 34px 8px 12px;
    background-position: right 10px center;
}

/* ---- header ---- */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.brand img {
    display: block;
    height: 56px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav a:not(.btn) {
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav a:not(.btn):hover {
    color: var(--blue-700);
}

/* ---- buttons ---- */

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--blue-500);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid var(--blue-500);
}

.btn:hover {
    background: #1976d2;
    border-color: #1976d2;
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn.ghost {
    background: transparent;
    color: var(--blue-700);
    border-color: var(--blue-700);
}

.btn.ghost:hover {
    background: var(--blue-100);
}

.btn.light {
    background: #fff;
    color: var(--blue-900);
    border-color: #fff;
}

.btn.light:hover {
    background: var(--blue-100);
    border-color: var(--blue-100);
}

/* ---- hero ---- */

.hero {
    background: linear-gradient(180deg, var(--blue-100) 0%, var(--paper) 100%);
    padding: 56px 0 64px;
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-700);
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.1;
    color: var(--blue-900);
}

.lead {
    margin: 0 0 28px;
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 34em;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-note {
    margin: 14px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---- the illustration of a board (decorative) ---- */

.board {
    display: grid;
    grid-template-columns: 1fr 30%;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(100deg, var(--blue-500) 0%, var(--blue-500) 60%, var(--blue-100) 100%);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(18, 74, 124, 0.25);
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.cell {
    position: relative;
    aspect-ratio: 1;
    border-radius: 9px;
    overflow: hidden;
}

.cell svg {
    position: absolute;
    inset: 22%;
    width: 56%;
    height: 56%;
    fill: rgba(255, 255, 255, 0.92);
}

.cell.open {
    background: rgba(255, 255, 255, 0.34);
}

.sky { background: linear-gradient(160deg, #6ec6ff, #1976d2); }
.sun { background: linear-gradient(160deg, #ffd54f, #f57c00); }
.leaf { background: linear-gradient(160deg, #a5d6a7, #2e7d32); }
.rose { background: linear-gradient(160deg, #ff8a80, #c62828); }
.lilac { background: linear-gradient(160deg, #ce93d8, #6a1b9a); }
.sea { background: linear-gradient(160deg, #80cbc4, #00695c); }

.side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: center;
}

.side .t {
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--blue-900);
}

.side .s {
    font-size: 0.62rem;
    line-height: 1.25;
    color: var(--muted);
}

.side .qr {
    margin-top: auto;
    width: 100%;
    aspect-ratio: 1;
}

.side .scan {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--blue-700);
}

/* ---- sections ---- */

section {
    padding: 64px 0;
}

section.wash {
    background: var(--wash);
}

h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    color: var(--blue-900);
}

.section-lead {
    margin: 0 0 36px;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 40em;
}

.steps {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
}

.steps h3,
.features h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--ink);
}

.steps p,
.features p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.features {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0;
    list-style: none;
}

.features li {
    padding: 20px 22px;
    border-inline-start: 5px solid var(--blue-500);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 1px 3px rgba(18, 74, 124, 0.1);
}

.features li:nth-child(4n + 2) { border-inline-start-color: var(--orange); }
.features li:nth-child(4n + 3) { border-inline-start-color: var(--green); }
.features li:nth-child(4n + 4) { border-inline-start-color: var(--red); }

/* ---- the two kinds of board ---- */

.kinds {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

.kind {
    padding: 18px 18px 22px;
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 1px 3px rgba(18, 74, 124, 0.12), 0 12px 28px rgba(18, 74, 124, 0.08);
}

.kind h3 {
    margin: 18px 4px 6px;
    font-size: 1.25rem;
    color: var(--ink);
}

.kind p {
    margin: 0 4px;
    color: var(--muted);
    font-size: 0.97rem;
}

/* A small picture of the board, as it looks on the big screen: the two colors behind rounded tiles. */
.kind-art {
    display: grid;
    gap: 5px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(100deg, var(--blue-500) 0%, var(--blue-500) 60%, var(--blue-100) 100%);
    direction: ltr;
}

.kind-art.classic {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    aspect-ratio: 5 / 3;
}

.kind-art.showcase {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 1fr);
    aspect-ratio: 5 / 3;
}

.tile {
    position: relative;
    display: block;
    border-radius: 9px;
    overflow: hidden;
}

.tile svg {
    position: absolute;
    inset: 24%;
    width: 52%;
    height: 52%;
    fill: rgba(255, 255, 255, 0.92);
}

.tile.open {
    background: rgba(255, 255, 255, 0.34);
}

/* the showcase's cells of different sizes (the "Spotlight" layout) */
.tile.big { grid-column: 1 / 4; grid-row: 1 / 4; }
.tile.mid { grid-column: 4 / 6; grid-row: 1 / 3; }
.tile.s1 { grid-column: 6; grid-row: 1; }
.tile.s2 { grid-column: 6; grid-row: 2; }
.tile.s3 { grid-column: 4; grid-row: 3; }
.tile.s4 { grid-column: 5; grid-row: 3; }
.tile.s5 { grid-column: 6; grid-row: 3; }
.tile.big svg { inset: 30%; width: 40%; height: 40%; }

/* ---- fundraising ---- */

.fund {
    background: linear-gradient(180deg, var(--paper) 0%, var(--blue-100) 100%);
}

/* squares with a price on them: the open ones with their price, claimed ones with a picture, one premium */
.fund-art {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    padding: 12px;
    margin: 26px 0 30px;
    border-radius: 14px;
    background: linear-gradient(100deg, var(--blue-500) 0%, var(--blue-500) 60%, var(--blue-100) 100%);
    box-shadow: 0 14px 32px rgba(18, 74, 124, 0.18);
    direction: ltr;
}

.price {
    position: relative;
    font-style: normal;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 9px;
    overflow: hidden;
}

.price b {
    font-size: clamp(0.6rem, 1.7vw, 1rem);
    font-weight: 800;
    color: var(--blue-900);
}

.price.open {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.price.premium {
    background: #f3e5f5;
    box-shadow: inset 0 0 0 2px #7b1fa2;
}

.price.premium b {
    color: #7b1fa2;
}

.price svg {
    position: absolute;
    inset: 24%;
    width: 52%;
    height: 52%;
    fill: rgba(255, 255, 255, 0.92);
}

.fund-cards {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0;
    list-style: none;
}

.fund-cards li {
    padding: 22px 22px 24px;
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 1px 3px rgba(18, 74, 124, 0.1), 0 10px 24px rgba(18, 74, 124, 0.07);
}

.fund-cards h3 {
    margin: 14px 0 6px;
    font-size: 1.1rem;
    color: var(--ink);
}

.fund-cards p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

/* a round icon, in a color of the page's palette */
.ico {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--blue-500);
}

.ico svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.fund-cards li:nth-child(6n + 2) .ico { background: var(--orange); }
.fund-cards li:nth-child(6n + 3) .ico { background: var(--green); }
.fund-cards li:nth-child(6n + 4) .ico { background: var(--red); }
.fund-cards li:nth-child(6n + 5) .ico { background: var(--teal); }
.fund-cards li:nth-child(6n + 6) .ico { background: var(--blue-700); }

/* "not fundraising? keep it free": the other half of what the product is for */
.fun {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding: 20px 24px;
    border: 1px solid #f6d58b;
    border-radius: 14px;
    background: #fff8e6;
}

.fun .ico {
    background: var(--orange);
}

.fun h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: var(--ink);
}

.fun p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.ideas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 28px;
}

.ideas-label {
    font-weight: 800;
    color: var(--blue-900);
}

.ideas ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ideas li {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.9rem;
    color: var(--ink);
}

.cta-row.center {
    justify-content: center;
    margin-top: 32px;
}

@media (min-width: 720px) {
    .fund-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .fund-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .fun {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- coming soon (while new accounts are closed; see platform-coming-soon.js) ---- */

/* the label above the main headline */
.soon-pill {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* the launch waitlist, right under the top of the main page */
.notify {
    padding: 0 0 48px;
}

.notify-box {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px 28px 22px;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(18, 74, 124, 0.16);
    text-align: center;
}

.notify-box p {
    margin: 0 0 18px;
    color: var(--muted);
}

.notify-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 12px;
}

.notify-form input[type="email"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
}

.notify-form input[type="email"]:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 1px;
}

.notify-box .notify-message {
    font-weight: 600;
    color: var(--red);
}

.notify-box .notify-message.ok {
    color: var(--green);
}

.notify-box .notify-privacy {
    margin: 0;
    font-size: 0.85rem;
}

/* for robots only: kept out of sight and out of reach (see the waitlist form) */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* read out by screen readers, not shown */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---- closing call to action ---- */

.closing {
    background: var(--blue-900);
    color: #fff;
    text-align: center;
}

.closing h2 {
    color: #fff;
}

.closing p {
    margin: 0 auto 26px;
    max-width: 34em;
    color: #cfe3f5;
    font-size: 1.05rem;
}

/* ---- footer ---- */

.site-footer {
    padding: 28px 0 36px;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
}

/* ---- wider screens ---- */

@media (min-width: 720px) {
    .steps,
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 720px) {
    .kinds {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero .wrap {
        grid-template-columns: 1.05fr 1fr;
    }
    .hero {
        padding: 80px 0 88px;
    }
}

/* Medium widths: the three section links would wrap onto several lines, so drop them (the page is one scroll anyway). */
@media (max-width: 900px) {
    .nav a.hide-small {
        display: none;
    }
}

@media (max-width: 520px) {
    /* The long sign-in button would wrap to three lines up here; the one in the first section does the job. */
    .nav .btn.small {
        display: none;
    }
    .nav {
        gap: 8px;
    }
    .lang-select {
        max-width: 112px;
        padding-inline-end: 6px;
    }
    .brand img {
        height: 46px;
    }
}

/* The illustration of a board keeps its left-to-right layout in right-to-left languages. */
.board {
    direction: ltr;
}
