/* SpecForma — specforma.app
   Matches the app's design language: cool gray, blue accent, clean minimal. */

:root {
    --bg:       #f8f9fa;
    --sf:       #ffffff;
    --sa:       #f1f3f5;
    --bd:       #dee2e6;
    --tx:       #212529;
    --tm:       #868e96;
    --ac:       #228be6;
    --ac-hover: #1c7ed6;
    --ac-soft:  rgba(34, 139, 230, 0.08);

    --font: 'Figtree', -apple-system, system-ui, sans-serif;

    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  3rem;
    --space-2xl: 6rem;
}

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

html {
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.6;
    color: var(--tx);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }
a { color: inherit; }


/* ── NAV ── */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
}

.wordmark {
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    letter-spacing: -0.01em;
    color: var(--tx);
}

.wordmark span {
    color: var(--ac);
}

.nav-cta {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--ac);
    text-decoration: none;
    padding: 0.4rem 0.875rem;
    border: 1.5px solid var(--bd);
    border-radius: 6px;
    transition: all 0.15s ease-out;
}

.nav-cta:hover {
    border-color: var(--ac);
    background: var(--ac-soft);
}


/* ── HERO ── */

.hero {
    max-width: 64rem;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    width: 100%;
}

.hero-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ac);
    margin-bottom: var(--space-md);
}

.hero h1 {
    font-weight: 700;
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--tx);
    max-width: 40rem;
    margin-bottom: var(--space-lg);
}

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--tm);
    max-width: 36rem;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    background: var(--ac);
    text-decoration: none;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    transition: background 0.15s ease-out;
}

.btn-primary:hover {
    background: var(--ac-hover);
}

.btn-ghost {
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--tm);
    text-decoration: none;
    padding: 0.625rem 0.5rem;
    transition: color 0.15s ease-out;
}

.btn-ghost:hover {
    color: var(--tx);
}


/* ── FEATURES ── */

.features {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-xl);
    width: 100%;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.feature-list li {
    font-size: 0.875rem;
    color: var(--tm);
    line-height: 1.55;
}

.feature-list strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--tx);
    margin-bottom: 0.25rem;
}


/* ── TIERS ── */

.tiers {
    max-width: 64rem;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl) var(--space-2xl);
    width: 100%;
}

.tiers h2 {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.015em;
    margin-bottom: var(--space-sm);
    color: var(--tx);
}

.tiers-sub {
    font-size: 0.9375rem;
    color: var(--tm);
    margin-bottom: var(--space-xl);
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.tier-card {
    padding: var(--space-lg) var(--space-lg);
    border-radius: 8px;
    background: var(--sf);
    border: 1px solid var(--bd);
}

.tier-featured {
    border-color: var(--ac);
    box-shadow: 0 0 0 1px var(--ac);
}

.tier-badge {
    display: inline-block;
    font-weight: 600;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: var(--space-md);
    background: var(--ac-soft);
    color: var(--ac);
}

.tier-card h3 {
    font-weight: 700;
    font-size: 1.1875rem;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-xs);
    color: var(--tx);
}

.tier-desc {
    font-size: 0.875rem;
    color: var(--tm);
    line-height: 1.55;
    margin-bottom: var(--space-lg);
}

.tier-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tier-card li {
    font-size: 0.875rem;
    color: var(--tx);
    padding-left: 1.125rem;
    position: relative;
    line-height: 1.45;
}

.tier-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bd);
}

.tier-featured li::before {
    background: var(--ac);
    opacity: 0.5;
}


/* ── BUILT BY ── */

.built-by {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 var(--space-xl) var(--space-2xl);
    width: 100%;
}

.built-by p {
    font-size: 0.9375rem;
    color: var(--tm);
    max-width: 40rem;
    line-height: 1.6;
}

.built-by strong {
    color: var(--tx);
    font-weight: 600;
}


/* ── FOOTER ── */

footer {
    border-top: 1px solid var(--bd);
}

.footer-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    width: 100%;
}

footer p {
    font-size: 0.8125rem;
    color: var(--tm);
}

footer a {
    color: var(--ac);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.75rem;
}


/* ── RESPONSIVE ── */

@media (max-width: 640px) {
    nav { padding: var(--space-md); }
    .hero { padding: var(--space-xl) var(--space-md); }
    .tiers { padding: var(--space-lg) var(--space-md) var(--space-xl); }
    .features { padding: 0 var(--space-md) var(--space-xl); }

    .footer-inner {
        padding: var(--space-lg) var(--space-md);
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
