/* Shared brand styles for MCP-served pages (landing, consent).
   Tokens and type follow sales-sites/distill/_default/styles.css exactly:
   Geist on cool paper, black pill buttons with inset highlight. */

:root {
    --paper:       #F7F8FA;
    --paper-deep:  #EDEFF3;
    --surface:     #FFFFFF;
    --ink:         #1C1E21;
    --ink-soft:    #63676E;
    --line:        #E2E5E9;
    --primary:     #2563eb;
    --primary-dark:#1D4ED8;
    --white:       #ffffff;

    --font-display: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-body:    'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono:    'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(28,30,33,.05), 0 20px 54px -26px rgba(28,30,33,.30);
    --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    font-size: 17px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* -- shared page container -- */
.page {
    width: 100%;
    max-width: 480px;
    padding: 0 24px;
    text-align: center;
}

/* -- wordmark (matches .wordmark in the sales site) -- */
.wordmark {
    font-size: 2.25rem;
    line-height: 1;
}
/* The SVG is cropped to the glyphs, which span .874em of Geist Pixel's em box */
.wordmark img {
    display: block;
    height: .874em;
    width: auto;
    margin: 0 auto;
}

/* -- black pill buttons (exact copy from the sales site) -- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-body);
    font-weight: 600; font-size: .875rem; line-height: 30px;
    padding: 2px 14px 4px;
    border: 1px solid #000; border-radius: 999px; cursor: pointer;
    transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: #000; color: var(--white);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,.35);
}
.btn-primary:hover {
    background: #1c1c1c; color: var(--white); transform: translateY(-1px);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--surface); color: var(--ink);
    border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink-soft); }

/* ================================================================
   LANDING PAGE
   ================================================================ */

.tagline {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.5;
    text-wrap: balance;
}
/* One sentence per line; balance only evens out lines inside a block */
.tagline span { display: block; }

.section {
    margin-top: 2.5rem;
    text-align: left;
}

.section-title {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .75rem;
}

/* Copy sits in the corner, as in the sales site's .install box, so the prompt keeps the full width */
.connect-url {
    position: relative;
    padding: .75rem 5rem .75rem .9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: .8rem;
    line-height: 1.6;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.connect-url code { font-family: inherit; }

.connect-url button {
    position: absolute;
    top: .6rem;
    right: .6rem;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .18s var(--ease);
}
.connect-url button:hover { border-color: var(--ink-soft); color: var(--ink); }

.instructions {
    margin-top: .75rem;
    font-size: .95rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

.links {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: .875rem;
    color: var(--ink-soft);
    text-align: center;
}

/* ================================================================
   CONSENT PAGE
   ================================================================ */

.consent-card {
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 2rem 1.75rem;
    box-shadow: var(--shadow);
    text-align: left;
}

.consent-status {
    font-size: .95rem;
    color: var(--ink-soft);
    text-align: center;
}

.consent-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .4rem;
}

.consent-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    text-wrap: balance;
}

.consent-intro {
    margin: .4rem 0 1.5rem;
    font-size: .95rem;
    color: var(--ink-soft);
}

.consent-redirect {
    font-size: .78rem;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    padding: .5rem .7rem;
    background: var(--paper);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    word-break: break-all;
}

.consent-scopes {
    font-size: .95rem;
    color: var(--ink);
}

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

.consent-verified {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: var(--radius-sm);
    padding: .5rem .75rem;
    margin-bottom: 1.25rem;
    font-size: .85rem;
    color: #065f46;
    text-align: center;
}
.consent-check { color: #059669; font-weight: 600; margin-right: 4px; }

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.consent-actions[hidden] { display: none; }
.consent-actions .btn { gap: .5rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 480px) {
    body { font-size: 16px; }
    .wordmark { font-size: 1.7rem; }
    .consent-card { padding: 1.5rem; }
}
