/* Roboto, self-hosted. One variable file (wght 100-900, latin subset) straight
   from Google Fonts' own CDN, Apache 2.0. Self-hosted so the first paint does not
   wait on a third-party DNS lookup, TLS handshake and stylesheet, and so no
   visitor is announced to Google just by opening the site. */
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 100%;
    font-display: swap;
    src: url("/fonts/roboto-latin.woff2") format("woff2");
}

:root {
    --accent: #ff7a18;
    --bg: #0b0210;
    --panel: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f4eef8;
    --muted: rgba(244, 238, 248, 0.68);
    /* Raised from 0.45, which was about 3.7:1 on --bg and under the 4.5:1 AA
       floor for body text. 0.6 is about 6:1 and still reads as secondary. */
    --faint: rgba(244, 238, 248, 0.6);
    --max: 980px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image: radial-gradient(ellipse 1200px 700px at 50% -10%, #3a0f56, transparent 70%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
}

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

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
}

header {
    padding: 48px 0 16px;
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    flex-wrap: wrap;
}

.masthead img {
    width: 340px;
    max-width: 78vw;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 36px rgba(255, 140, 50, 0.55));
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 20px;
    font-size: 0.95rem;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.hero {
    text-align: center;
    padding: 56px 0 8px;
}

h1 {
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    line-height: 1.15;
    margin: 0.4em 0 0.3em;
}

h2 {
    font-size: 1.35rem;
    margin: 2.2rem 0 0.8rem;
}

.lede {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 56ch;
    margin: 0 auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0 8px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 28px 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
}

.card picture,
.app-head picture {
    display: block;
    flex: 0 0 auto;
}

.card img {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.card h3 {
    margin: 4px 0 0;
    font-size: 1.25rem;
}

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

.app-head {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.app-head img {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.app-head h1 {
    margin: 0 0 6px;
}

.app-head .tagline {
    color: var(--muted);
    margin: 0;
    font-size: 1.1rem;
}

.meta {
    color: var(--faint);
    font-size: 0.85rem;
    margin-top: 10px;
}

ul.features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 24px;
}

ul.features li {
    position: relative;
    padding-left: 26px;
    color: var(--muted);
}

ul.features li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.shots {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.shots img {
    height: 420px;
    width: auto;
    border-radius: 14px;
    border: 1px solid var(--border);
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #150018;
    background: var(--accent);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.button:hover {
    transform: scale(1.04);
}

.button.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.prose {
    max-width: 70ch;
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose h2 {
    color: var(--text);
}

footer {
    margin-top: 140px;
    padding: 28px 0 40px;
    border-top: 1px solid var(--border);
    color: var(--faint);
    font-size: 0.9rem;
    display: flex;
    justify-content: flex-end;
    text-align: right;
    gap: 12px 20px;
    flex-wrap: wrap;
}

footer a {
    color: inherit;
    text-decoration: none;
}

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

@media (max-width: 640px) {
    header {
        padding: 32px 0 8px;
    }

    .masthead img {
        width: 260px;
    }

    footer {
        margin-top: 96px;
    }

    .shots img {
        height: 320px;
    }

    .app-head img {
        width: 104px;
        height: 104px;
        border-radius: 24px;
    }
}

/* ---- Forms (account deletion) ---------------------------------------- */

.form {
    max-width: 48ch;
    margin-top: 28px;
}

.form > div {
    margin-bottom: 20px;
}

.form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form textarea {
    resize: vertical;
}

.form .help-text {
    margin: 6px 0 0;
    font-size: 0.86rem;
    color: var(--muted);
}

.form ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    font-size: 0.9rem;
    color: #ff9db5;
}

.form button.button {
    border: 0;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

/* The honeypot. Hidden from people, left in the DOM for the bots. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    max-width: 70ch;
    margin: 24px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--panel);
}

.notice-bad {
    border-color: rgba(255, 92, 138, 0.5);
    color: #ffc2d1;
}

.notice-good {
    border-color: rgba(76, 224, 166, 0.5);
    color: #b9f3dc;
}

/* ---- Press kit -------------------------------------------------------- */

.presskit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 28px 0 8px;
}

.presskit-app {
    padding: 22px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    background: var(--panel);
}

.presskit-app h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.presskit-app .tagline {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.presskit-app ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    font-size: 0.92rem;
}

.presskit-app li {
    margin-bottom: 6px;
    color: var(--muted);
}
