/* Inkra website. One stylesheet for every page: the landing page and the
   legal pages (privacy, terms, delete-account). Dark base and layout from
   zenmotion.app (web/style.css + legal.css), Inkra's Iris accent (#9D8DF1,
   docs/decisions/2026-11-18-accent-colour-iris-9d8df1.md). */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #151519;
    --color-surface: rgba(255, 255, 255, 0.06);
    --color-border: rgba(255, 255, 255, 0.12);
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-text-dim: rgba(255, 255, 255, 0.55);
    --color-accent: #9D8DF1;
    --color-accent-hover: #b4a8f5;
    --color-on-accent: #16112E;
    --radius: 12px;
    --max-width: 1080px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

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

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

/* ---------- Header and footer ---------- */

header {
    border-bottom: 1px solid var(--color-border);
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

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

footer {
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--color-text-dim);
    text-decoration: none;
}

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

/* ---------- Landing page ---------- */

.hero {
    padding: 88px 0 64px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(157, 141, 241, 0.18), transparent 60%);
}

.hero img {
    width: 112px;
    height: 112px;
    border-radius: 26px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero p {
    color: var(--color-text-muted);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 32px;
}

.store-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* A store badge. A <span> while the listing doesn't exist ("Coming soon",
   dimmed, not clickable); an <a class="store-badge" href="…"> once it does. */
.store-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 150px;
    padding: 10px 20px;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.25;
}

span.store-badge {
    border-style: dashed;
    cursor: default;
}

span.store-badge .store-badge-name {
    color: var(--color-text-muted);
}

a.store-badge:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.store-badge-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.store-badge-note {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    background: var(--color-accent-hover);
    color: var(--color-on-accent);
}

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

.hero .store-note {
    margin: 16px auto 0;
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.screens {
    padding: 8px 0 72px;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.screen-grid figure {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.screen-grid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: #16161B;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.screen-grid figcaption {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    text-align: center;
}

.features {
    padding: 32px 0 80px;
}

.features h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
}

.feature h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

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

.contact {
    padding: 0 0 80px;
    text-align: center;
    color: var(--color-text-muted);
}

/* ---------- Legal pages ---------- */

.legal {
    padding: 56px 0 80px;
}

.legal .container {
    max-width: 760px;
}

.legal h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.last-updated {
    color: var(--color-text-dim);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal section {
    margin-bottom: 36px;
}

.legal h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.legal p,
.legal ul {
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.legal ul {
    padding-left: 24px;
}

.legal li {
    margin-bottom: 8px;
}

.legal strong {
    color: var(--color-text);
}

/* Embed mode: an app opening a legal page in a web view adds ?embed=1;
   embed.js sets html.embed and the site header goes away (the app's own
   navigation bar is enough). Same as zenmotion.app. */
html.embed header,
html.embed footer {
    display: none;
}

html.embed .legal {
    padding-top: 24px;
}

@media (max-width: 900px) {
    .screen-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones: the screenshots scroll sideways instead of stacking four tall images. */
@media (max-width: 560px) {
    .hero {
        padding: 56px 0 48px;
    }

    .screen-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -24px;
        padding: 0 24px 12px;
    }

    .screen-grid figure {
        flex: 0 0 72%;
        scroll-snap-align: center;
    }

    .nav-links {
        gap: 14px;
    }

    .legal h1 {
        font-size: 2rem;
    }
}

/* ---------- 404 ---------- */

.not-found {
    min-height: 60vh;
}
