/* =========================================================================
   Weekr landing — minimal, editorial.
   ========================================================================= */

:root {
    --bg: #faf8f4;
    --ink: #15161d;
    --ink-2: #2a2c38;
    --muted: #7a7d8c;
    --rule: rgba(20, 22, 33, 0.10);
    --surface: #ffffff;

    /* The app icon's gradient (extended-srgb: 0, 0.53, 1) */
    --icon-start: #0066ff;
    --icon-end:   #0088ff;

    --accent-start: #15213e;  /* Midnight (app default header theme) */
    --accent-end:   #2742a5;
    --accent-soft:  rgba(39, 66, 165, 0.12);

    /* Apple's San Francisco family — uses SF Pro on macOS/iOS/iPadOS; falls
       back to comparable system sans elsewhere. */
    --sans-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                    "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --sans-text:    -apple-system, BlinkMacSystemFont, "SF Pro Text",
                    "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

    --shadow-quiet: 0 1px 2px rgba(15,16,24,0.06), 0 18px 60px rgba(15,16,24,0.10);
    --shadow-icon: 0 12px 40px rgba(0, 100, 255, 0.30), 0 4px 14px rgba(0, 100, 255, 0.18);
}

/* Dark mode follows the browser/system preference automatically.
   No manual toggle — by design. */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c0d13;
        --ink: #f0f1f7;
        --ink-2: #cdd0db;
        --muted: #8c90a3;
        --rule: rgba(255, 255, 255, 0.12);
        --surface: #15171f;
        --accent-soft: rgba(80, 110, 220, 0.22);
        --shadow-quiet: 0 1px 2px rgba(0,0,0,0.4), 0 22px 60px rgba(0,0,0,0.55);
        --shadow-icon: 0 18px 50px rgba(0, 110, 255, 0.45), 0 6px 18px rgba(0, 110, 255, 0.30);
    }
    /* Apple's black-lockup badge needs a touch of breathing room on a dark
       canvas — invert isn't right (would tint the Apple logo), so we just
       lift the opacity slightly. */
    .store-badge.disabled { opacity: 0.55; }
    .store-badge.disabled:hover { opacity: 0.7; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
    font-family: var(--sans-text);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity .15s ease, color .15s ease; }
a:hover { opacity: 0.7; }

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

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.centered { text-align: center; }

/* ===== HERO STACK ======================================================== */
main { flex: 1; }
.hero-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 64px;
}
.stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
}

/* ===== LOGO ============================================================= */
.brand-logo {
    display: inline-block;
    line-height: 0;
}
.brand-logo img {
    width: 132px;
    height: auto;
    display: block;
}
@media (max-width: 520px) {
    .brand-logo img { width: 108px; }
    .hero-stack { padding: 56px 0 48px; }
}

/* ===== STANZAS =========================================================== */
.stanzas {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 620px;
}
.stanza {
    font-family: var(--sans-display);
    font-weight: 400;
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    line-height: 1.45;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.018em;
}
.stanza em {
    font-style: normal;
    color: var(--accent-end);
    font-weight: 700;
}
.stanza .ul {
    text-decoration: underline;
    text-decoration-color: var(--accent-end);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}
.strike {
    text-decoration: line-through;
    text-decoration-color: var(--muted);
    color: var(--muted);
}

/* ===== STORE BADGES ====================================================== */
.store-badges {
    display: flex;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.store-badge {
    position: relative;
    display: block;
    line-height: 0;
    border-radius: 10px;
    cursor: not-allowed;
}
.store-badge img,
.store-badge svg {
    height: 54px;
    width: auto;
    display: block;
}
.store-badge.disabled {
    filter: grayscale(1) brightness(1.1);
    opacity: 0.45;
    pointer-events: auto;          /* keep hover for tooltip */
    user-select: none;
}
.store-badge.disabled:hover { opacity: 0.55; }

/* Tooltip is the native browser one via the `title` attribute — no custom
   styling needed. */

/* ===== BETA FORM ========================================================= */
.beta-form {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.beta-form label {
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}
.beta-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 999px;
    padding: 6px;
    box-shadow: var(--shadow-quiet);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.beta-row:focus-within {
    border-color: var(--accent-end);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.beta-row input[type="email"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font: inherit;
    color: var(--ink);
    outline: none;
    min-width: 0;
}
.beta-row input[type="email"]::placeholder { color: var(--muted); }
.beta-row button {
    border: none;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    font-weight: 600;
    font-size: 0.96rem;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
    white-space: nowrap;
}
.beta-row button:hover { transform: translateY(-1px); }
.beta-row button:disabled { opacity: 0.6; cursor: progress; transform: none; }

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin: 0;
    min-height: 1.4em;
    font-size: 0.92rem;
    text-align: center;
}
.form-status.error { color: #b3261e; }
.form-status.success { color: #1f6f3b; }

@media (max-width: 520px) {
    .beta-row { flex-wrap: wrap; padding: 6px; border-radius: 18px; }
    .beta-row input[type="email"] { padding: 12px 14px; }
    .beta-row button { width: 100%; }
}

/* ===== FOOTER ============================================================ */
.site-footer {
    border-top: 1px solid var(--rule);
    padding: 24px 0;
    color: var(--muted);
    font-size: 0.88rem;
}
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 22px; }

/* ===== CONTACT / PRIVACY PAGES =========================================== */
.page-intro {
    max-width: 560px;
    text-align: center;
}
.page-intro h1 {
    font-family: var(--sans-display);
    font-weight: 600;
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.024em;
    margin: 0 0 12px;
    color: var(--ink);
}
.page-intro .lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
}

/* Contact form — centred card matching the landing's beta capsule. */
.form-card {
    width: 100%;
    max-width: 520px;
    display: grid;
    gap: 18px;
    text-align: left;
}
.form-card label {
    display: grid;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.form-card input,
.form-card textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--rule);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--sans-text);
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    box-shadow: var(--shadow-quiet);
}
.form-card textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.55;
}
.form-card input:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--accent-end);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-card button[type="submit"] {
    justify-self: center;
    border: none;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    font-family: var(--sans-text);
    font-weight: 600;
    font-size: 1rem;
    padding: 11px 28px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
    margin-top: 6px;
}
.form-card button[type="submit"]:hover { transform: translateY(-1px); }
.form-card button[type="submit"]:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* Privacy prose — short, centred, with subtle small headings. */
.prose {
    width: 100%;
    max-width: 560px;
    text-align: left;
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.7;
}
.prose h3 {
    font-family: var(--sans-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    margin: 22px 0 4px;
    letter-spacing: -0.005em;
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 4px; }
.prose a {
    color: var(--accent-end);
    border-bottom: 1px solid var(--accent-soft);
}
.prose a:hover { opacity: 1; border-bottom-color: var(--accent-end); }
