/* Shared styles for the pages in pages/web. Colors, fonts and radii follow the app's theme (app/lib/theme.dart). */

:root {
    --amber: #FFBF00;
    --charcoal: #1C1D21;
    --cream: #F7F5F0;

    --surface: var(--cream);
    --on-surface: var(--charcoal);
    --muted: #5F666C;
    --raised: #EDE9E1;
    --hairline: #E6DFD3;
    --link: #1565C0;

    --radius: 8px;
    --button-radius: 6px;
    --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --surface: var(--charcoal);
        --on-surface: var(--cream);
        --muted: #8F969C;
        --raised: #26272C;
        --hairline: #2A2B31;
        --link: #2196F3;
    }
}

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

body {
    font-family: var(--body);
    color: var(--on-surface);
    background: var(--surface);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */

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

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.wordmark {
    font-family: var(--condensed);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 3px;
    line-height: 1;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 24px;
}

.site-nav a {
    font-family: var(--condensed);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
}

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

/* Over the hero photo, the header is always light on dark */
.site-header.on-photo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    border-bottom: none;
    color: var(--cream);
}

.site-header.on-photo .site-nav a {
    color: rgba(247, 245, 240, 0.75);
}

.site-header.on-photo .site-nav a:hover {
    color: var(--cream);
}

/* Type */

.label {
    font-family: var(--condensed);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

h1, h2, h3 {
    font-family: var(--condensed);
    font-weight: 700;
    line-height: 1.05;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 20px;
    border-radius: var(--button-radius);
    background: var(--amber);
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s;
}

.button:hover {
    transform: translateY(-2px);
}

.button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

.button .small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.button .big {
    display: block;
    font-family: var(--condensed);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
}

.button.outlined {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Phone frame around a screenshot (1206 x 2622) */

.phone {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1206 / 2622;
    padding: 9px;
    border-radius: 46px;
    background: #0E0F11;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.phone img {
    width: 100%;
    height: 100%;
    border-radius: 38px;
    object-fit: cover;
}

/* Footer */

.site-footer {
    margin-top: auto;
    background: var(--charcoal);
    color: var(--cream);
    padding: 40px 0;
}

@media (prefers-color-scheme: dark) {
    .site-footer {
        background: #141518;
    }
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(247, 245, 240, 0.8);
    text-decoration: none;
}

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

/* Text pages (privacy policy, terms, contact) */

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

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

.page h1 {
    font-size: clamp(40px, 7vw, 56px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.page .date {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 32px;
}

.page h3 {
    font-size: 24px;
    margin: 40px 0 12px;
}

.page p,
.page li {
    font-size: 17px;
}

.page p {
    margin-bottom: 16px;
}

.page ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

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

.page li::marker {
    color: var(--muted);
}

.page hr {
    border: none;
    border-top: 1px solid var(--hairline);
    margin: 32px 0;
}

.card {
    background: var(--raised);
    border-radius: var(--radius);
    padding: 20px 24px;
}

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

@media (max-width: 640px) {
    .site-nav {
        display: none;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .page {
        padding: 40px 0 64px;
    }

    /* Side by side, sharing the full width (equal where they fit), so the pair doesn't leave a ragged edge.
       Tighter than on desktop so they fit next to each other on a 375px phone; narrower ones stack. */
    .store-buttons {
        gap: 8px;
        width: 100%;
    }

    .store-buttons .button {
        flex: 1 1 0;
        min-width: max-content;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
    }

    .store-buttons .button .small {
        font-size: 10px;
        letter-spacing: 0.3px;
    }
}
