/* PrivateClaw */
:root {
    --bg: #09090b;
    --bg-card: #111113;
    --fg: #fafafa;
    --fg-muted: #a1a1aa;
    --accent: #3fb950;
    --border: #27272a;
    --font-sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
}

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

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Landing page — centered hero, full viewport */
.landing {
    max-width: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

.hero-centered {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-centered h1 {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 5vw, 2.75rem);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero-centered .prompt {
    color: var(--fg-muted);
    margin-right: 0.3em;
}

.hero-centered .cursor {
    animation: blink 1s step-end infinite;
}

.tagline {
    color: var(--fg-muted);
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.landing-footer {
    text-align: center;
    padding: 2rem;
    border-top: none;
    font-size: 0.85rem;
    color: var(--fg-muted);
}

.landing-footer a {
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.landing-footer a:hover {
    color: var(--fg);
}

/* Copy button */
.copy-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--fg-muted);
    font-size: 0.6em;
    cursor: pointer;
    padding: 0.15em 0.4em;
    vertical-align: middle;
    font-family: var(--font-mono);
    transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Nav */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

nav .wordmark {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: -0.01em;
}

nav .nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

nav .nav-links a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

nav .nav-links a:hover {
    color: var(--fg);
}

/* Main content */
main {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

@media (min-width: 768px) {
    main {
        padding: 4rem 2.5rem 5rem;
    }
}

/* Prose / article */
article {
    max-width: 680px;
}

article h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

article h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

article h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

article p {
    color: var(--fg-muted);
    margin-bottom: 1rem;
}

article ul,
article ol {
    padding-left: 1.5rem;
    color: var(--fg-muted);
    margin-bottom: 1rem;
}

article li {
    margin-bottom: 0.35rem;
}

article strong {
    color: var(--fg);
    font-weight: 600;
}

article a {
    color: var(--fg-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

article a:hover {
    color: var(--fg);
}

article code {
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.15rem 0.4rem;
    font-size: 0.875em;
    border-radius: 4px;
}

/* Diagram */
article .diagram {
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--fg-muted);
    margin: 1rem 0;
    border-radius: 4px;
}

article pre:not(.diagram) {
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 0.8rem;
    margin: 0.5rem 0 1rem;
    overflow-x: auto;
    font-size: 0.875em;
    border-radius: 4px;
    color: var(--fg-muted);
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--fg);
}

/* Success page */
.success h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.success p {
    color: var(--fg-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--fg-muted);
    letter-spacing: 0.04em;
}

@media (min-width: 768px) {
    footer {
        padding: 2rem 2.5rem;
    }
}

footer a {
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.15s;
}

footer a:hover {
    color: var(--fg);
}

footer .social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

footer .social svg {
    width: 16px;
    height: 16px;
    fill: var(--fg-muted);
    transition: fill 0.15s;
}

footer .social a:hover svg {
    fill: var(--fg);
}

/* Pricing page */
.pricing-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.pricing-page h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--fg-muted);
    margin-bottom: 2.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-card.featured {
    border-color: var(--accent);
}

.tier-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
    margin-bottom: 0.75rem;
}

.pricing-card.featured .tier-name {
    color: var(--accent);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.price-period {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--fg-muted);
}

.features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    width: 100%;
    text-align: left;
    color: var(--fg-muted);
    font-size: 0.875rem;
}

.features li {
    padding: 0.4rem 0;
    border-top: 1px solid var(--border);
}

.features li:last-child {
    border-bottom: 1px solid var(--border);
}

.feature-value {
    color: var(--fg);
    font-weight: 600;
}

.pricing-cta {
    display: inline-block;
    margin-top: auto;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--fg);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.15s, color 0.15s;
}

.pricing-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pricing-card.featured .pricing-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.pricing-card.featured .pricing-cta:hover {
    opacity: 0.9;
}

.pricing-note {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.875rem;
}

.pricing-note code {
    font-family: var(--font-mono);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.15rem 0.4rem;
    font-size: 0.875em;
    border-radius: 4px;
}

/* Tooltip */
.tooltip-trigger {
    position: relative;
    border-bottom: 1px dotted var(--fg-muted);
    cursor: help;
}

.tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    color: var(--fg-muted);
    z-index: 10;
    pointer-events: none;
}

.tooltip-trigger:hover .tooltip {
    display: block;
}
