/* SeedBridge VC: light, notepad-style chat UI */
:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --soft: #f1efe9;
    --text: #1d1d1b;
    --muted: #8a877f;
    --line: #e4e1d9;
    --accent: #0b7f75;
    --accent-ink: #ffffff;
    --accent-soft: rgba(11, 127, 117, 0.08);
    --danger: #c2413a;
    --gutter: 16px;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius-btn: 8px;
    --lock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='11' rx='2.5'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3Ccircle cx='12' cy='16' r='1.2' fill='black'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #151515;
        --surface: #1c1c1c;
        --soft: #232323;
        --text: #e8e6e1;
        --muted: #8b8881;
        --line: #2d2d2d;
        --accent: #4ae5d7;
        --accent-ink: #0d1f1d;
        --accent-soft: rgba(74, 229, 215, 0.1);
        --danger: #ff7a70;
    }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    max-width: 760px; margin: 0 auto; padding: 12px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 46px; height: auto; }
/* The logo has more empty space below it than above, so line the text up with what's visible. */
.brand span { transform: translateY(-2px); }
.nav-links { display: flex; gap: 18px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

.site-footer {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
    width: 100%; max-width: 760px; margin: 0 auto; padding: 20px var(--gutter) 28px;
    font-size: 12px; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Intro */
.intro { padding: 44px 0 8px; }
.intro h1 { margin: 0 0 10px; font-size: clamp(26px, 4.4vw, 34px); line-height: 1.2; letter-spacing: -0.01em; }
.intro p { margin: 0; max-width: 720px; color: var(--muted); font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.facts li::before { content: "✓ "; color: var(--accent); }

/* Home: headline and message box centered on screen, like a chat app's empty state */
.home-stage { min-height: calc(100vh - 150px); min-height: calc(100dvh - 150px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 6vh; }
.home .intro { padding: 0; text-align: center; }
.home .intro p { margin: 0 auto; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 22px; padding: 30px 0 18px; }
.chat:empty { padding: 10px 0 0; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg .avatar {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface);
    display: grid; place-items: center; overflow: hidden;
}
.msg .avatar img { width: 22px; height: auto; }
.msg .body { min-width: 0; flex: 1; padding-top: 4px; }
.msg .body > p { margin: 0 0 10px; }
.msg .body > p:last-child { margin-bottom: 0; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble {
    max-width: 85%;
    padding: 10px 16px;
    border-radius: 18px 18px 4px 18px;
    background: var(--soft);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.bubble .file { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* Thinking */
.thinking { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.thinking .dots { display: inline-flex; gap: 4px; }
.thinking .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pulse 1.2s infinite ease-in-out; }
.thinking .dots i:nth-child(2) { animation-delay: 0.15s; }
.thinking .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
.steps-done { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.steps-done li::before { content: "✓ "; color: var(--accent); }
.error-text { color: var(--danger); }

/* Composer */
.composer-wrap { position: sticky; bottom: 0; padding: 8px 0 16px; background: linear-gradient(to bottom, transparent, var(--bg) 18px); }
.composer {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.composer:focus-within { border-color: var(--muted); }
.composer textarea {
    display: block; width: 100%; min-height: 56px; max-height: 260px;
    padding: 16px 18px 6px; border: 0; outline: none; resize: none;
    background: transparent; color: var(--text); font: inherit;
}
.composer textarea::placeholder { color: var(--muted); }
.composer-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px 10px; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; min-width: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-btn);
    background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: var(--soft); }
.icon-btn svg { width: 18px; height: 18px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; max-width: 60%;
    padding: 4px 6px 4px 12px; border-radius: 14px; background: var(--soft); font-size: 13px;
}
.chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; }
.send-btn {
    margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: var(--text); color: var(--bg); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.send-btn svg { width: 18px; height: 18px; }
.send-btn:disabled { opacity: 0.3; cursor: default; }
.composer-note { margin: 8px 4px 0; font-size: 12px; color: var(--muted); text-align: center; }
.composer-error { margin: 8px 4px 0; font-size: 14px; color: var(--danger); text-align: center; }

/* Results */
.profile { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.tag { padding: 2px 10px; border-radius: 12px; background: var(--soft); font-size: 13px; color: var(--text); }
.tag b { font-weight: 500; color: var(--muted); }
.matches { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.match { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.match:first-child { border-top: 0; }
.match .rank { color: var(--muted); font-size: 14px; padding-top: 1px; }
.match .name { font-weight: 600; overflow-wrap: anywhere; }
.match .name a { color: var(--text); text-decoration: none; }
.match .name a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.match .why { font-size: 13px; color: var(--muted); }
.match .contact { grid-column: 2; font-size: 14px; overflow-wrap: anywhere; }
.match .contact a { margin-right: 12px; }
.locked-line { color: var(--muted); }
.locked-line { display: inline-flex; align-items: center; gap: 6px; }
.locked-line::before {
    content: ""; flex-shrink: 0; width: 13px; height: 13px; background-color: currentColor;
    -webkit-mask: var(--lock-icon) center / contain no-repeat; mask: var(--lock-icon) center / contain no-repeat;
}
.match.locked .name { color: var(--muted); filter: blur(4px); user-select: none; }
.free-tag { margin-left: 8px; padding: 1px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 500; vertical-align: 2px; }

/* Unlock */
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 12px 0 16px; }
.size { position: relative; cursor: pointer; }
.size input { position: absolute; opacity: 0; }
.size span {
    display: block; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); font-size: 14px; transition: border-color 0.15s, background 0.15s;
}
.size b { display: block; font-size: 17px; }
.size small { color: var(--muted); }
.size:hover span { border-color: var(--muted); }
.size input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.size input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-box { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.terms-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.terms-row input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border: 0; border-radius: var(--radius-btn); background: var(--accent); color: var(--accent-ink);
    font: 600 15px var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.secondary { background: var(--soft); color: var(--text); }
.pay-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }

/* Forms (contact) */
.form { display: grid; gap: 16px; margin-top: 22px; max-width: 520px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field input, .field textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); color: var(--text); font: 16px/1.5 var(--sans);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--muted); }
.form .btn { justify-self: start; }
.notice { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--text); }

/* Contact page */
.contact-page { max-width: none; }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.page .lede { margin: 0; max-width: 560px; color: var(--muted); font-size: 16px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start; margin-top: 28px; }
.panel {
    padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.03);
}
.panel .form { margin-top: 0; max-width: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field > span { color: var(--text); font-weight: 500; }
.field input, .field textarea { border-radius: 8px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.form-foot small { color: var(--muted); font-size: 12px; max-width: 300px; line-height: 1.5; }
.contact-aside { display: grid; gap: 22px; font-size: 14px; }
.contact-aside h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.contact-aside p { margin: 0; color: var(--muted); }
.contact-aside ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.contact-aside li { margin: 0 0 4px; padding-left: 14px; position: relative; }
.contact-aside li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 1px; background: var(--muted); }
.contact-aside section + section { padding-top: 22px; border-top: 1px solid var(--line); }
.notice { border-radius: 8px; border: 1px solid var(--accent-soft); }
@media (max-width: 700px) {
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .panel { padding: 18px; }
}

/* Legal pages */
.legal .effective { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.legal h2 { scroll-margin-top: 16px; }
.legal p, .legal li { font-size: 15px; }
.legal .caps { text-transform: uppercase; font-size: 13.5px; letter-spacing: 0.01em; }

/* Plain pages */
.page { padding: 40px 0 10px; max-width: 680px; }
.page h1 { margin: 0 0 14px; font-size: 28px; line-height: 1.25; }
.page h2 { margin: 28px 0 8px; font-size: 18px; }
.page p, .page li { color: var(--text); }
.page ol { padding-left: 1.3em; }
.page li { margin-bottom: 8px; }

/* FAQ */
.faq-list { margin-top: 8px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-right: 4px;
    border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg) translateY(-2px); transition: transform 0.15s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-list details p { margin: 0 0 16px; color: var(--muted); }
.faq-cta { margin-top: 28px; color: var(--muted); }

/* Blog */
.eyebrow a { color: inherit; text-decoration: none; }
.post-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-list a { color: var(--text); text-decoration: none; }
.post-list a:hover h2 { color: var(--accent); }
.post-list h2 { margin: 0 0 4px; }
.post-list p { margin: 0 0 6px; }
.blog-post > .muted { margin: 0; }
.promo { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--accent-soft); }
.promo p { margin: 0 0 10px; }
.promo .promo-label { font-weight: 600; }
.promo-actions, .list-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-actions { margin-top: 14px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.list-head h2 { margin: 0; text-transform: capitalize; }
.list-actions .btn { padding: 8px 14px; font-size: 14px; }
.item-list { margin: 16px 0 0; columns: 2; column-gap: 32px; }
.item-list li { break-inside: avoid; margin-bottom: 6px; }
.item-list a { color: var(--text); text-decoration: none; font-family: var(--mono); font-size: 14px; }
.item-list a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 480px) { .item-list { columns: 1; } }

@media (max-width: 560px) {
    .nav-row { flex-wrap: wrap; row-gap: 6px; }
    .nav-links { width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
    .intro { padding-top: 28px; }
    .msg .avatar { width: 28px; height: 28px; }
    .msg.user .bubble { max-width: 92%; }
    .nav-links { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .thinking .dots i { animation: none; opacity: 0.6; }
}
