/* Grabbr landing — single-viewport, no scroll, cream editorial. */

:root {
    --bg: #f6f3ef;
    --surface: #ffffff;
    --ink: #10141c;
    --ink-2: #3b414c;
    --ink-3: #737b8a;
    --accent: #6f64e5;
    --border: #e1ded9;
}

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

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.45;
    height: 100%;
    overflow: hidden;
}
body { display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }

/* Stage */
main.stage {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 32px 48px 80px;
    position: relative;
}

.copy {
    max-width: 640px;
}
.copy h1 {
    font-style: italic;
    font-weight: 700;
    font-size: clamp(48px, 8vw, 112px);
    letter-spacing: -0.025em;
    line-height: 1.02;
    margin-bottom: 24px;
    color: var(--ink);
}
.copy h1 .accent {
    color: var(--accent);
    font-weight: 800;
}
.copy .lede {
    font-size: clamp(18px, 2vw, 26px);
    color: var(--ink-2);
    margin-bottom: 36px;
    max-width: 520px;
}
.cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.badge {
    display: inline-block;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.badge:hover { opacity: 0.88; }
.badge:active { transform: translateY(1px); }
.badge img {
    width: clamp(150px, 16vw, 200px);
    height: auto;
    display: block;
}
.btn-mac {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: #fff;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 600;
    padding: 15px 28px;
    border-radius: 999px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-mac:hover { opacity: 0.88; }
.btn-mac:active { transform: translateY(1px); }
.btn-mac svg { margin-top: -2px; }

/* iOS — coming soon: the App Store badge dimmed, non-clickable, with a tag. */
.badge-soon {
    position: relative;
    display: inline-flex;
    opacity: 0.5;
    filter: grayscale(0.35);
    pointer-events: none;
}
.badge-soon img {
    width: clamp(150px, 16vw, 200px);
    height: auto;
    display: block;
}
.soon-tag {
    position: absolute;
    top: -7px;
    right: -6px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: 0 2px 8px -2px rgba(111, 100, 229, 0.5);
}

/* Device — MacBook (Mac app is the live product) */
.device {
    flex-shrink: 0;
    width: clamp(440px, 52vw, 800px);
    position: relative;
}
.laptop-screen {
    background: #15181f;
    border-radius: 16px 16px 6px 6px;
    padding: 11px 11px 12px;
    box-shadow: 0 30px 70px -25px rgba(16, 20, 28, 0.40),
                0 8px 24px -8px rgba(16, 20, 28, 0.20);
}
.laptop-screen img {
    width: 100%;
    display: block;
    border-radius: 7px;
    background: var(--bg);
}
/* Aluminium base + hinge groove */
.laptop-base {
    position: relative;
    height: 16px;
    width: 114%;
    margin-left: -7%;
    background: linear-gradient(180deg, #e4e7ea 0%, #c4c9d0 55%, #aab0b8 100%);
    border-radius: 0 0 13px 13px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.laptop-base::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18%;
    height: 7px;
    background: #9aa1aa;
    border-radius: 0 0 9px 9px;
}

/* Footer */
footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--ink-3);
    font-size: 13px;
    padding: 0 16px;
}
footer a:hover { color: var(--ink); }
footer .dot {
    margin: 0 8px;
    opacity: 0.55;
}

/* Mobile */
@media (max-width: 860px) {
    html, body { height: auto; overflow-y: auto; }
    body { min-height: 100vh; }
    main.stage {
        flex-direction: column;
        gap: 36px;
        padding: 40px 24px 32px;
        text-align: left;
    }
    .copy { width: 100%; max-width: 100%; }
    .copy h1 {
        font-size: clamp(32px, 9vw, 56px);
        line-height: 1.05;
        word-break: break-word;
    }
    .copy .lede { font-size: 16px; }
    .device { width: 100%; max-width: 520px; align-self: center; }
    footer {
        position: static;
        margin-top: 16px;
        padding-bottom: 24px;
    }
}

/* Privacy / doc page opt-out — restore scroll. The landing page locks
   html+body height to 100% with overflow:hidden; on the doc page we have
   to unlock BOTH elements, hence :has(). */
html:has(body.doc-page),
body.doc-page {
    height: auto;
    overflow: visible;
}
body.doc-page {
    display: block;
}
.doc {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}
.doc .crumb {
    display: inline-block;
    font-size: 13px;
    color: var(--ink-3);
    margin-bottom: 24px;
}
.doc .crumb:hover { color: var(--ink); }
.doc h1 {
    font-style: italic;
    font-weight: 700;
    font-size: clamp(36px, 5vw, 52px);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 12px;
}
.doc h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 36px 0 10px;
    color: var(--ink);
}
.doc p, .doc li {
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 12px;
}
.doc ul { padding-left: 22px; }
.doc .updated {
    color: var(--ink-3);
    font-size: 13px;
    margin-bottom: 28px;
}
