/*
 * Companion Pipeline — marketing landing page
 * -------------------------------------------
 * Palette, fonts, radii, and shadows come from the CP design tokens
 * (resources/css/tokens.css §1–§4). Type scale is a marketing-canvas
 * ramp over the same families — the app's dense 13px UI scale is not
 * appropriate for a landing page.
 */

:root {
    /* Palette — verbatim from tokens.css */
    --bg: #faf8f4;
    --bg-card: #ffffff;
    --bg-subtle: #f3f0ea;
    --bg-subtle-deeper: #ebe6da;
    --border: #e8e3d8;
    --border-strong: #d4cdbf;
    --text-primary: #1c1a15;
    --text-secondary: #6b6457;
    --text-tertiary: #9a9285;

    --accent: #cc785c;
    --accent-hover: #b8654a;
    --accent-deep: #8a4f3d;
    --accent-subtle: #f5e8e2;
    --success: #5a7d5f;
    --success-subtle: #e8efe9;
    --danger: #a04a3d;
    --danger-subtle: #f3dcd6;
    --celebrate: #a67950;
    --info: #5e7a8a;

    --pipeline-fc: var(--info);
    --pipeline-wh: #a89875;
    --pipeline-bs: #a67950;
    --pipeline-disc: #8a7355;

    --shadow-card: 0 1px 2px rgba(28, 26, 21, 0.04), 0 1px 3px rgba(28, 26, 21, 0.06);
    --shadow-card-hover: 0 2px 4px rgba(28, 26, 21, 0.06), 0 4px 12px rgba(28, 26, 21, 0.08);
    --shadow-pop: 0 4px 16px rgba(28, 26, 21, 0.12), 0 2px 6px rgba(28, 26, 21, 0.08);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    --radius-sm: 5px;
    --radius-md: 7px;
    --radius-lg: 11px;
    --radius-pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }
a { color: var(--accent-deep); }

.shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ------------------------------ Top bar ------------------------------ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 60px;
}

.wordmark {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}
.wordmark span { color: var(--accent); }
.wordmark { white-space: nowrap; }

.topnav {
    display: flex;
    align-items: center;
    gap: 22px;
}
.topnav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}
.topnav a:hover { color: var(--text-primary); }
.topnav-cta {
    color: var(--accent-deep) !important;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 7px 16px;
    background: var(--bg-card);
}
.topnav-cta:hover { border-color: var(--accent); }

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

.hero { padding: 72px 0 64px; }

.hero-inner {
    max-width: 820px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(38px, 6.5vw, 58px);
    margin-bottom: 20px;
}

.subheadline {
    font-size: clamp(18px, 2.6vw, 21px);
    color: var(--text-secondary);
    max-width: 46em;
    margin: 0 auto 30px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 46px;
}

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    padding: 13px 26px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-card);
    font-size: 17px;
    padding: 15px 32px;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 22px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-deep); }

/* Journey strip */

.journey {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    margin: 0 auto 44px;
    padding: 14px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    width: fit-content;
    box-shadow: var(--shadow-card);
}

.journey-step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.journey-arrow {
    color: var(--text-tertiary);
    font-size: 13px;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot-fc   { background: var(--pipeline-fc); }
.dot-wh   { background: var(--pipeline-wh); }
.dot-bs   { background: var(--pipeline-bs); }
.dot-nb   { background: var(--celebrate); }
.dot-disc { background: var(--pipeline-disc); }

.hero-body {
    max-width: 44em;
    margin: 0 auto;
    text-align: left;
    color: var(--text-secondary);
    font-size: 17.5px;
}
.hero-body p:last-child { margin-bottom: 0; }

/* ---------------------------- Value props ----------------------------- */

.props { padding: 26px 0 70px; }

.props-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.prop {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 32px 26px;
    box-shadow: var(--shadow-card);
}

.prop-wide { grid-column: 1 / -1; }

.prop h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.prop p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.pipeline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 5px 13px;
}

/* ----------------------------- Beta form ------------------------------ */

.beta {
    padding: 10px 0 74px;
    scroll-margin-top: 80px;
}

.beta-inner { max-width: 760px; }

.beta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 40px 44px 38px;
    box-shadow: var(--shadow-pop);
}

.beta-card h2 { font-size: 30px; }

.beta-lede {
    color: var(--text-secondary);
    margin-bottom: 26px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin-bottom: 18px;
}

.field { display: block; }
.field-wide { grid-column: 1 / -1; }

.field span {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.field input,
.notify-form input[type="email"] {
    width: 100%;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 11px 13px;
}

.field input:focus,
.notify-form input[type="email"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

/* Honeypot — off-canvas, never display:none (some bots skip hidden fields) */
.hp-wrap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    border-radius: var(--radius-md);
    padding: 12px 15px;
    font-size: 15px;
    margin-bottom: 16px;
}
.form-note.ok {
    background: var(--success-subtle);
    color: var(--success);
    border: 1px solid var(--success);
}
.form-note.err {
    background: var(--danger-subtle);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* --------------------------- Family section --------------------------- */

.family {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: 64px 0 68px;
}

.family-inner {
    max-width: 720px;
    text-align: center;
}

.family h2 { font-size: 30px; }
.family > .shell > p { color: var(--text-secondary); }

.notify {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--border-strong);
}

.notify h3 {
    font-size: 21px;
    margin-bottom: 16px;
}

.notify-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.notify-form input[type="email"] {
    flex: 1 1 240px;
    background: var(--bg-card);
}

.notify-form .btn { padding: 12px 22px; font-size: 15px; }

.notify-form .form-note {
    flex-basis: 100%;
    margin: 6px 0 0;
}

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

.footer {
    border-top: 1px solid var(--border);
    padding: 26px 0 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text-tertiary);
}
.footer a { color: var(--text-secondary); }

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 720px) {
    .hero { padding: 48px 0 44px; }
    .wordmark { font-size: 17px; }
    .topnav { gap: 12px; }
    .topnav a { font-size: 13.5px; white-space: nowrap; }
    .topnav-cta { padding: 6px 12px; }
}

@media (max-width: 480px) {
    .topnav a:not(.topnav-cta) { display: none; }
    .props-grid { grid-template-columns: 1fr; }
    .field-grid { grid-template-columns: 1fr; }
    .beta-card { padding: 28px 22px 26px; }
    .journey-arrow { display: none; }
    .journey { border-radius: var(--radius-lg); }
}
