/*
 * Stub marketing site styles (stub.chickaloonapps.com, Stub-e35n).
 *
 * Stub is a business tool, so the site reads like one: system sans-serif,
 * plain sections, no animation, no decoration that doesn't carry a fact
 * (Nathan, 2026-10-19). Colours come from the app itself:
 *   --accent       AccentOnTint (Assets.xcassets), the app's pink set dark
 *                  enough to read as text on a light background
 *   --accent-fill  the app's AccentColor pink, for the one button
 *   --wash / text  the App Store screenshots' pale pink and plum
 *                  (scripts/screenshots/composite.sh)
 * Each colour is redefined for dark mode, as the app does.
 */

:root {
    --bg: #FFFFFF;
    --wash: #FFE3F6;
    --surface: #FBF3F8;
    --text-primary: #2B0F24;
    --text-secondary: #6E4A64;
    --text-tertiary: #9A7F92;
    --divider: #EAD7E4;
    --accent: #A62083;
    --accent-soft: #F1C6E4;
    --accent-fill: #A62083;
    --on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #160911;
        --wash: #261321;
        --surface: #1F0F1A;
        --text-primary: #F7E9F2;
        --text-secondary: #C9A9BE;
        --text-tertiary: #977C8E;
        --divider: #3A2433;
        --accent: #FF83DF;
        --accent-soft: #5A2A4D;
        --accent-fill: #FF83DF;
        --on-accent: #2B0F24;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

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

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid var(--divider);
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1em;
    border-bottom: none;
}

.site-header .brand img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.site-header nav {
    display: flex;
    gap: 20px;
    font-size: 0.95em;
}

.site-header nav a {
    color: var(--text-secondary);
    border-bottom: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
    color: var(--text-primary);
}

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

.hero {
    padding: 56px 0 40px;
}

.hero h1 {
    font-size: 2.3em;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 0.4em;
}

.hero .positioning {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin: 0 0 1.4em;
    max-width: 34em;
}

.hero .platforms {
    color: var(--text-secondary);
    font-size: 0.95em;
    margin: 1em 0 0;
}

/* ---------- Screenshots ---------- */

/* The Mac window carries its own rounded corners (the capture has
   transparent corners); the phone captures are square, so round them to
   read as a screen. Both sit on the screenshots' pale pink. */
.shot-mac {
    margin: 0 0 48px;
    padding: 28px;
    background: var(--wash);
    border-radius: 14px;
}

.shot-mac img {
    display: block;
}

.shot-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0 0;
    padding: 28px;
    background: var(--wash);
    border-radius: 14px;
}

.shot-pair figure {
    margin: 0;
}

.shot-pair img {
    display: block;
    border-radius: 9% / 4.2%;
}

figcaption {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-top: 10px;
    text-align: center;
}

/* ---------- Sections ---------- */

.section {
    margin: 0 0 48px;
    padding-top: 40px;
    border-top: 1px solid var(--divider);
}

.section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.section h2 {
    font-size: 1.35em;
    font-weight: 650;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}

.section h3 {
    font-size: 1em;
    font-weight: 600;
    margin: 1.6em 0 0.4em;
}

.section p {
    margin: 0 0 0.9em;
}

.section p:last-child {
    margin-bottom: 0;
}

.section ul {
    margin: 0 0 0.9em;
    padding-left: 1.25em;
}

.section li {
    margin: 0 0 0.45em;
}

.section ul:last-child {
    margin-bottom: 0;
}

.note {
    color: var(--text-secondary);
    font-size: 0.92em;
}

code {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 4px;
    padding: 1px 5px;
}

/* ---------- Page heading (help, privacy, releases) ---------- */

.page-title {
    padding: 48px 0 32px;
}

.page-title h1 {
    font-size: 1.9em;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 0.3em;
}

.page-title p {
    color: var(--text-secondary);
    margin: 0;
}

/* ---------- Help / FAQ ---------- */

.faq dt {
    font-weight: 600;
    margin-top: 1.6em;
    margin-bottom: 0.35em;
}

.faq dt:first-child {
    margin-top: 0;
}

.faq dd {
    margin: 0;
}

.faq dd > p {
    margin: 0 0 0.6em;
}

.faq dd > p:last-child {
    margin-bottom: 0;
}

.faq dd ul {
    margin: 0.3em 0 0.6em;
    padding-left: 1.3em;
}

/* ---------- Release notes ---------- */

.release h2 {
    font-size: 1.15em;
}

/* ---------- Download ---------- */

.download {
    text-align: center;
}

.download .app-icon {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.2em;
    border-radius: 16px;
}

.cta {
    display: inline-block;
    padding: 0.65em 1.6em;
    background: var(--accent-fill);
    color: var(--on-accent);
    border-radius: 999px;
    font-weight: 600;
    border-bottom: none;
}

.cta:hover {
    opacity: 0.9;
    border-bottom: none;
}

/* ---------- Links ---------- */

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-soft);
}

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

/* ---------- Footer ---------- */

footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--divider);
    color: var(--text-secondary);
    font-size: 0.88em;
    text-align: center;
}

footer a {
    color: var(--text-secondary);
    border-bottom: none;
}

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

footer span {
    margin: 0 0.6em;
    color: var(--text-tertiary);
}

footer p {
    margin: 0.6em 0 0;
}

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

@media (max-width: 520px) {
    html, body {
        font-size: 16px;
    }
    main {
        padding: 0 16px 64px;
    }
    .hero h1 {
        font-size: 1.9em;
    }
    .shot-mac,
    .shot-pair {
        padding: 14px;
    }
    .shot-pair {
        gap: 12px;
    }
}
