/* QuietMinds — quietminds.app
   Plain CSS, no build step. Inter is self-hosted (SIL OFL, see assets/fonts/OFL.txt),
   the same file buckblock.app uses. */

@font-face {
    font-family: "Inter";
    src: url("assets/fonts/inter-latin-opsz.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0d1222;
    --ink-2: #161c31;
    --ink-line: rgba(255, 255, 255, 0.1);
    --paper: #f7f6f2;
    --tint: #efede7;
    --card: #ffffff;
    --line: #e4e1da;
    --text: #0d1222;
    --muted: #596074;
    --muted-ink: #a7adc2;
    --accent: #4f46e5;
    --accent-2: #7c3aed;
    --accent-soft: #eceefe;
    --live: #16a34a;

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius: 20px;
    --wrap: 1120px;
    --gutter: 24px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.6rem, 2rem + 3.6vw, 4.6rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
}

h2 {
    font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
    letter-spacing: -0.035em;
    max-width: 20ch;
}

h3 {
    font-size: 1.15rem;
    letter-spacing: -0.015em;
    line-height: 1.3;
    text-wrap: pretty;
}

p {
    margin: 0;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    padding: 8px 14px;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    z-index: 100;
}

.skip:focus {
    left: 8px;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Shared pieces ---------- */

.eyebrow {
    margin-bottom: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.lede {
    margin-top: 22px;
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.55;
    color: var(--muted);
    max-width: 34em;
}

.lede--narrow {
    max-width: 40em;
}

.fineprint {
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 46em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--ink-2);
}

.button--small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 0.9rem;
}

.button--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.button--ghost:hover {
    background: var(--card);
}

.button--light {
    background: #fff;
    color: var(--ink);
}

.button--light:hover {
    background: #eef0ff;
}

.button--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.button--outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.card {
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.card p {
    margin-top: 10px;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 18px;
    margin-top: 44px;
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.section {
    padding: clamp(72px, 9vw, 120px) 0;
}

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

.section--ink {
    background: var(--ink);
    color: #fff;
}

.section--ink .eyebrow {
    color: #a5b4fc;
}

.section--ink .lede {
    color: var(--muted-ink);
}

/* ---------- Brand + nav ---------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 650;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand__mark {
    width: 28px;
    height: 28px;
}

.brand__dot {
    fill: var(--accent);
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 246, 242, 0.86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(13, 18, 34, 0.06);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}

.nav__links {
    display: flex;
    gap: 26px;
    margin-left: auto;
}

.nav__links a {
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 500;
    text-decoration: none;
}

.nav__links a:hover {
    color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
    padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 12px 0 24px;
}

.hero__visual::before {
    content: "";
    position: absolute;
    inset: 4% 4% 0;
    background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), rgba(79, 70, 229, 0.08) 60%, transparent);
    filter: blur(8px);
}

.station {
    position: absolute;
    left: 2%;
    bottom: 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #e9e7f8);
    color: var(--accent);
    box-shadow: 0 18px 40px rgba(13, 18, 34, 0.18), inset 0 0 0 1px rgba(79, 70, 229, 0.12);
}

.station svg {
    width: 34px;
    height: 34px;
}

.station span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Phone frames, shared by every screenshot and concept skin. */
.phone {
    position: relative;
    width: 250px;
    aspect-ratio: 804 / 1748;
    padding: 9px;
    border-radius: 42px;
    background: #0b0d14;
    box-shadow: 0 30px 60px rgba(13, 18, 34, 0.28), inset 0 0 0 1.5px #2a2f3f;
}

.phone > img,
.phone > .skin {
    width: 100%;
    height: 100%;
    border-radius: 34px;
    object-fit: cover;
}

.phone--hero {
    width: min(290px, 70vw);
    transform: rotate(3deg);
}

.phone--small {
    width: 100%;
    padding: 6px;
    border-radius: 30px;
}

.phone--small > img {
    border-radius: 25px;
}

/* ---------- Proof strip ---------- */

.proof {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 56px 0 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.proof__item {
    padding: 24px 28px;
}

.proof__item + .proof__item {
    border-left: 1px solid var(--line);
}

.proof dt {
    font-size: 0.85rem;
    color: var(--muted);
}

.proof dd {
    margin: 6px 0 0;
    font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.proof dd.proof__word {
    font-size: 1.25rem;
    letter-spacing: -0.015em;
    padding-top: 0.45rem;
}

.proof__note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--muted);
}

.live-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

/* ---------- How it works ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}

.step {
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.step__num {
    display: block;
    margin-bottom: 26px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.step p {
    margin-top: 10px;
    color: var(--muted);
}

/* ---------- Platform ---------- */

.phones {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 48px);
    margin-top: 56px;
}

.phone-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.phone-card .phone {
    width: 230px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px #2a2f3f;
}

.phone-card figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--ink-line);
    font-size: 0.78rem;
    color: var(--muted-ink);
}

.tag--live {
    border-color: rgba(74, 222, 128, 0.35);
    color: #86efac;
}

.fineprint--ink {
    margin: 36px auto 0;
    text-align: center;
    color: var(--muted-ink);
}

/* Concept skins: the locked screen re-themed for a venue. */
.skin {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 16px 18px;
    color: #fff;
    overflow: hidden;
}

.skin--cafe {
    --skin-accent: #f3d9b1;
    background: radial-gradient(120% 60% at 80% 0%, rgba(243, 217, 177, 0.22), transparent 60%),
        linear-gradient(165deg, #3b2619, #6b4429 55%, #24160f);
}

.skin--gym {
    --skin-accent: #5eead4;
    background: radial-gradient(120% 60% at 80% 0%, rgba(94, 234, 212, 0.2), transparent 60%),
        linear-gradient(165deg, #062521, #0e4d45 55%, #031513);
}

.skin__pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.skin__led {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f87171;
}

.skin__ring {
    --p: 0.5;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 138px;
    height: 138px;
    margin-top: 30px;
}

/* The progress ring: a conic fill masked down to a 5px band. */
.skin__ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--skin-accent) calc(var(--p) * 360deg), rgba(255, 255, 255, 0.14) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
}

.skin__icon,
.skin__time {
    position: relative;
}

.skin__icon {
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--skin-accent);
}

.skin__time {
    font-size: 1.35rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.skin__title {
    margin-top: 26px;
    font-size: 1.05rem;
    font-weight: 650;
}

.skin__sub {
    margin-top: 4px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
}

.skin__apps {
    display: flex;
    gap: 5px;
    margin-top: 14px;
}

/* Stand-ins for the blocked apps' icons. */
.skin__apps span {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.skin__apps span:nth-child(odd) {
    background: rgba(255, 255, 255, 0.24);
}

.skin__button {
    margin-top: auto;
    width: 100%;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.66rem;
    font-weight: 600;
    text-align: center;
}

/* ---------- Sectors ---------- */

.sectors {
    columns: 3 300px;
    column-gap: 18px;
    margin-top: 44px;
}

.sector-group {
    break-inside: avoid;
    margin-bottom: 18px;
    padding: 26px 28px 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sector-group h3 {
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.sector-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sector-group li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.sector-group li:first-child {
    border-top: 0;
}

.sector-group li span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- Progress ---------- */

.progress {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

.checks {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.checks li {
    position: relative;
    padding: 14px 0 14px 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.checks li:first-child {
    border-top: 0;
}

.checks li strong {
    color: var(--text);
    font-weight: 600;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%234f46e5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.screens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.screens .phone:nth-child(2) {
    margin-top: 36px;
}

/* ---------- Roadmap ---------- */

.roadmap ul {
    margin: 18px 0 0;
    padding: 0 0 0 18px;
    color: var(--muted);
}

.roadmap li + li {
    margin-top: 8px;
}

.phase {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--tint);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.phase--now {
    background: var(--accent);
    color: #fff;
}

/* ---------- Team ---------- */

.team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 40px;
    max-width: 760px;
}

.person {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.person__avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 650;
}

.person p {
    color: var(--muted);
    font-size: 0.95rem;
}

.person__link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* A founder photo in place of the initials. */
img.person__avatar {
    object-fit: cover;
}

/* ---------- Contact + footer ---------- */

.contact__inner {
    text-align: center;
}

.contact__inner h2,
.contact__inner .lede {
    margin-left: auto;
    margin-right: auto;
}

.contact__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.contact__support {
    margin-top: 22px;
    font-size: 0.95rem;
    color: var(--muted-ink);
}

.contact__support a {
    color: #c7d2fe;
}

.footer {
    padding: 34px 0 40px;
    background: var(--ink);
    color: var(--muted-ink);
    border-top: 1px solid var(--ink-line);
    font-size: 0.9rem;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
}

.footer a {
    color: #c7d2fe;
}

.brand--footer {
    color: #fff;
}

.brand--footer .brand__dot {
    fill: #a5b4fc;
}

/* ---------- Small screens ---------- */

@media (max-width: 920px) {
    .nav__links {
        display: none;
    }

    .nav .button--small {
        margin-left: auto;
    }

    .hero__inner,
    .progress {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        margin-top: 8px;
    }

    .grid--3,
    .steps {
        grid-template-columns: 1fr;
    }

    .proof {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof__item:nth-child(3) {
        border-left: 0;
    }

    .proof__item:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    /* The three phones scroll sideways instead of shrinking past legibility. */
    .phones {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-left: calc(-1 * var(--gutter));
        margin-right: calc(-1 * var(--gutter));
        padding: 0 var(--gutter) 12px;
    }

    .phone-card {
        flex: none;
        scroll-snap-align: center;
    }

    .phone-card .phone {
        width: 210px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
    }

    :root {
        --gutter: 16px;
    }

    .card,
    .step {
        padding: 22px;
    }

    .proof__item {
        padding: 18px 20px;
    }

    .station {
        width: 88px;
        height: 88px;
    }

    .station svg {
        width: 26px;
        height: 26px;
    }
}

/* Station landing page (station.html): shown when someone taps a station tag without
   the app. Paths are absolute there because it's served at /s/<venue>/<station>. */
.tap-page {
    min-height: 100vh;
    background: var(--paper);
}

.tap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 16px 56px;
}

.tap__brand {
    align-self: flex-start;
}

.tap__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 40px 28px 32px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.tap__card h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
}

.tap__card .lede {
    margin-top: 14px;
}

.tap__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.tap__icon svg {
    width: 30px;
    height: 30px;
}

.tap__button {
    margin-top: 26px;
}

.tap__note {
    margin-top: 14px;
    font-size: 0.92rem;
    color: var(--muted);
}

.tap__note + .tap__note {
    margin-top: 6px;
}
