/* /proposals login and proposal pages */
:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #374151;
    --border-subtle: #1f2937;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-subtle: #6b7280;
    --accent: #83d8f5;
    --error: #f7b6b9;
    --gradient: linear-gradient(90deg, #83d8f5 0%, #e89ad6 32%, #f7b6b9 65%, #fbcb81 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

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

.card {
    position: relative;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 30px 60px -30px rgba(131, 216, 245, 0.25);
}
/* Gradient hairline border */
.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    pointer-events: none;
}

.logo { display: inline-block; }
.logo img { display: block; height: 22px; width: auto; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.25rem;
    border: 0;
    border-radius: 12px;
    background: var(--gradient);
    color: #0a0a0a;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.foot {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.8rem;
}
.foot a { color: var(--text-muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Login */
.gate {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gate-title { font-size: 1.6rem; font-weight: 700; margin-top: 1.75rem; }
.gate-text { color: var(--text-muted); font-size: 0.95rem; margin: 0.25rem 0 1.5rem; }
.gate-form { display: flex; flex-direction: column; gap: 0.75rem; }
.gate-form input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font: inherit;
}
.gate-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gate-error { color: var(--error); font-size: 0.9rem; }

/* Proposal */
.proposal {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
    flex: 1;
}
.proposal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.proposal-title { font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 700; line-height: 1.2; margin: 0.5rem 0 0.75rem; }
.proposal-lede { color: var(--text-muted); font-size: 1.05rem; }

.section { margin-top: 2.75rem; }
.section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.section p, .section li { color: var(--text-muted); }
.section ul, .section ol { padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.section strong { color: var(--text); font-weight: 600; }

.split { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.split .card { padding: 1.25rem; border-radius: 16px; }
.split h3 { font-size: 1rem; margin-bottom: 0.5rem; }

.terms { width: 100%; border-collapse: collapse; }
.terms th, .terms td { text-align: left; padding: 0.75rem 0; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.terms th { width: 40%; padding-right: 1rem; font-weight: 600; }
.terms td { color: var(--text-muted); }

.cta { margin-top: 1.25rem; }

/* Optional proposal blocks */
.mt { margin-top: 0.75rem; }

.callout {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent);
    background: var(--surface);
}
.section .callout p { color: var(--text); }

.plan-list { display: grid; gap: 1rem; }
.plan { padding: 1.5rem 1.25rem; border-radius: 16px; }
.plan-num {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.plan h3 { font-size: 1.15rem; margin-top: 0.25rem; }
.section .plan-sub { color: var(--text); margin-bottom: 0.75rem; }
.plan-get { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); }

.tag {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
}
.section .tag { color: #0a0a0a; }
.tag-soon { background: var(--border); }
.section .tag-soon { color: var(--text); }

.sub-head { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.25rem; }
.section .note { font-size: 0.9rem; color: var(--text-subtle); margin-top: 0.75rem; }

/* Comparison tables scroll inside their box on narrow screens instead of widening the page */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grid-table { width: 100%; border-collapse: collapse; }
.grid-table th, .grid-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
    vertical-align: top;
}
.grid-table thead th { font-weight: 600; }
.grid-table tbody th { font-weight: 600; padding-left: 0; }
.grid-table tbody td { color: var(--text-muted); }
.grid-table .featured { background: rgba(131, 216, 245, 0.06); }
.grid-table .total th, .grid-table .total td { color: var(--text); font-weight: 700; border-bottom: 0; }
.badge {
    display: block;
    width: max-content;
    margin-top: 0.25rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--gradient);
    color: #0a0a0a;
    font-size: 0.7rem;
    font-weight: 600;
}
@media (max-width: 480px) {
    .grid-table { font-size: 0.85rem; }
    .grid-table th, .grid-table td { padding: 0.6rem 0.25rem; }
    .badge { font-size: 0.6rem; padding: 0.05rem 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
}
