:root {
    --bg: #0f1115;
    --surface: #161922;
    --border: #262b38;
    --text: #e7eaf0;
    --muted: #8a92a4;
    --accent: #4ade80;
    --accent-dim: #166534;
    --warn: #f59e0b;
    --danger: #ef4444;
    --primary: #6366f1;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

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

header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
}

header .logo { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
header .logo span { color: var(--accent); }
header nav a { margin-left: 1.5rem; color: var(--muted); }
header nav a:hover { color: var(--text); }

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.4rem; margin: 2rem 0 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.muted { color: var(--muted); }

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn:hover { border-color: var(--primary); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #4f51d4; }
.btn-success { background: var(--accent-dim); border-color: var(--accent); }
.btn-danger  { background: transparent; border-color: var(--danger); color: var(--danger); }

.hero {
    text-align: center;
    padding: 4rem 0;
}
.hero h1 { font-size: 3rem; }
.hero p { font-size: 1.25rem; color: var(--muted); max-width: 600px; margin: 1rem auto; }

.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.pricing .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}
.pricing .card.recommended { border-color: var(--accent); }
.pricing .price-tag { font-size: 2.5rem; font-weight: 700; margin: 1rem 0; }
.pricing ul { list-style: none; text-align: left; margin: 1rem 0; }
.pricing li { padding: 0.4rem 0; color: var(--muted); }
.pricing li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.item-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.item-card:hover { border-color: var(--primary); }
.item-card a { color: inherit; text-decoration: none; }
.item-card img {
    width: 100%; height: 180px; object-fit: cover; display: block;
    background: var(--bg);
}
.item-card .body { padding: 0.8rem 1rem; }
.item-card h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.item-card .price { color: var(--accent); font-weight: 600; }
.item-card .status { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.item-card .status.listed { color: var(--accent); }
.item-card .status.sold   { color: var(--warn); }

.item-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.item-detail img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.item-detail .field { margin-bottom: 1rem; }
.item-detail .field label { color: var(--muted); font-size: 0.85rem; display: block; margin-bottom: 0.25rem; }
.item-detail input,
.item-detail textarea {
    width: 100%;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
}
.item-detail .price-recommendation {
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}
.item-detail .price-recommendation .price {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
}

.comps-list {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.comps-list .row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.banner {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    color: var(--text);
}
.banner.warn { background: #663d12; border-color: var(--warn); }
.banner-action {
    margin-left: 0.75rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
}

/* ============== Landing page (marketing) ============== */

header nav .btn-link {
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    margin-left: 1.5rem;
}
header nav .btn-link:hover {
    border-color: var(--primary);
    text-decoration: none;
}

main > section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}
main > section:first-child {
    border-top: none;
}

.center { text-align: center; }
.accent { color: var(--accent); }

.hero {
    text-align: center;
    padding: 5rem 0 4rem !important;
    border-top: none !important;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.lede {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.cta-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0 1.5rem;
}

.btn-lg {
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
}
.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Comparison */
.comparison h2 {
    text-align: center;
    font-size: 2rem;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.compare-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
}
.compare-card.bad ol li {
    color: var(--muted);
    text-decoration: line-through;
}
.compare-card.bad h3 { color: var(--danger); }
.compare-card.good { border-color: var(--accent); }
.compare-card.good h3 { color: var(--accent); }
.compare-card ol {
    margin-left: 1.25rem;
    margin-top: 1rem;
}
.compare-card ol li {
    padding: 0.3rem 0;
}
.time-cost {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--danger);
}
.time-cost.good { color: var(--accent); }

/* How it works */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.how-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
}
.step-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.how-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.how-step p {
    color: var(--muted);
}

/* Value props */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.value {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
}
.value-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.value h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.value p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Pricing */
#pricing h2 {
    text-align: center;
}
.pricing .card {
    position: relative;
}
.pricing .card.recommended {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}
.pricing .card .badge {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
}
.pricing .card-sub {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.pricing .price-tag .muted {
    font-size: 1rem;
    font-weight: 400;
}
.fine-print {
    font-size: 0.85rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ */
#faq {
    max-width: 720px;
    margin: 0 auto;
}
#faq h2 {
    text-align: center;
}
.faq {
    margin-top: 2rem;
}
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s;
}
.faq details[open] {
    border-color: var(--primary);
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
    margin-top: 0.75rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 5rem 0 !important;
}
.final-cta h2 {
    font-size: 2.4rem;
}
.final-cta .lede {
    margin-bottom: 2rem;
}

/* Site footer */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 2rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}
.site-footer a {
    color: var(--muted);
}
.site-footer a:hover {
    color: var(--text);
}

@media (max-width: 700px) {
    .item-detail { grid-template-columns: 1fr; }
    main { padding: 1rem; }
    header { padding: 1rem; }
    .compare-grid { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 2rem !important; }
    main > section { padding: 3rem 0; }
}

/* Legal pages (privacy.html, terms.html) */
.legal {
    max-width: 760px;
    margin: 3rem auto;
    padding: 0 1.25rem;
    line-height: 1.65;
}
.legal h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.legal h2 {
    font-size: 1.35rem;
    margin-top: 2.2rem;
    margin-bottom: 0.6rem;
}
.legal h3 {
    font-size: 1.1rem;
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
}
.legal p,
.legal li {
    font-size: 1rem;
}
.legal ul,
.legal ol {
    padding-left: 1.4rem;
    margin: 0.6rem 0 1rem;
}
.legal li {
    margin-bottom: 0.4rem;
}
.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.6rem;
    font-size: 0.95rem;
}
.legal th,
.legal td {
    text-align: left;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e2e2e2;
    vertical-align: top;
}
.legal th {
    background: #f7f7f7;
    font-weight: 600;
}

/* Updated site footer */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 1.25rem 2rem;
    border-top: 1px solid #ececec;
    font-size: 0.92rem;
    color: #555;
    text-align: center;
}
.site-footer > div {
    margin-bottom: 0.5rem;
}
.site-footer a {
    color: #555;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}
.footer-disclaimer {
    max-width: 760px;
    margin: 0.75rem auto 0;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
}

/* Monthly/annual cadence toggle on the pricing surfaces */
.cadence-toggle {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.cadence-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.cadence-btn:hover {
    color: var(--text);
}
.cadence-btn.active {
    background: var(--primary);
    color: #fff;
}
.cadence-save {
    font-size: 0.75em;
    opacity: 0.8;
    font-weight: 500;
    margin-left: 0.25rem;
}
.founding-note {
    margin: -0.5rem 0 1rem;
    color: var(--muted);
}
.founding-note b {
    color: var(--accent);
    font-weight: 600;
}
/* Price-tag suffix (/mo, /yr) renders smaller than the headline number */
.price-tag .muted {
    font-size: 1rem;
}
.billing-actions {
    margin-top: 1.5rem;
}
