/* Taskschmiede SaaS Website */

:root {
    --color-bg: #fff;
    --color-card: #f2f2f2;
    --color-text: #2d2d2d;
    --color-text-secondary: #5a5a5a;
    --color-border: #999;
    --color-border-light: #ddd;
    --color-code-bg: #f2f2f2;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-shipped: #16a34a;
    --color-shipped-bg: #dcfce7;
    --color-planned: #2563eb;
    --color-planned-bg: #dbeafe;
    --color-future: #6b7280;
    --color-future-bg: #f3f4f6;
}

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

html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-wrap: break-word;
}

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

a:hover {
    color: var(--color-text-secondary);
}

/* Navigation */

.nav {
    border-bottom: 1px solid var(--color-border-light);
    padding: 0 1.5rem;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--color-text);
}

.nav-brand:hover {
    color: var(--color-text-secondary);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-family: inherit;
    color: var(--color-text);
}

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

.nav-links a {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

.nav-links a.active {
    font-weight: 700;
}

/* Main content */

.content {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero */

.hero {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-pitch {
    max-width: 640px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */

.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border: 2px solid var(--color-text);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: var(--color-text-secondary);
    border-color: var(--color-text-secondary);
    color: var(--color-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-card);
    color: var(--color-text);
}

/* Forms */

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--color-border-light);
    background: var(--color-bg);
    color: var(--color-text);
    box-sizing: border-box;
}

.form-group select.select-lg {
    font-size: 1rem;
    padding: 0.6rem 0.7rem;
    min-height: 2.8rem;
}

.form-group textarea {
    resize: vertical;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    border: 1px solid #2d6a4f;
    background: #f0fdf4;
    color: #2d6a4f;
}

.contact-form {
    max-width: 75%;
    margin: 0 auto;
}

.alert-error {
    border: 1px solid #9b2c2c;
    background: #fff5f5;
    color: #9b2c2c;
}

/* Sections */

.section {
    margin-bottom: 2.5rem;
}

.section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.section h2:first-child {
    margin-top: 0;
}

.section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.section p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.section ul,
.section ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.section li {
    margin-bottom: 0.35rem;
}

/* Card grid */

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.card {
    background: var(--color-card);
    border: 1px solid var(--color-border-light);
    padding: 1.25rem;
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.card a {
    color: var(--color-text-secondary);
}

/* Steps */

.steps {
    margin: 1.5rem 0;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    background: var(--color-text);
    color: var(--color-bg);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.step p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Pricing tiers */

.tier {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-light);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.tier-highlight {
    border: 2px solid var(--color-text);
}

.tier h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.tier-price {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tier-price-annual {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.tier ul {
    flex: 1;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

.tier li {
    margin-bottom: 0.3rem;
}

.tier .btn {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

.btn-disabled {
    background: var(--color-border-light);
    color: var(--color-text-secondary);
    cursor: default;
    border: 1px solid var(--color-border-light);
}

.btn-disabled:hover {
    background: var(--color-border-light);
}

.tier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tier-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.tier-note {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: 0.75rem;
}

/* Roadmap */

.roadmap-items {
    margin: 1rem 0;
}

.roadmap-item {
    border: 1px solid var(--color-border-light);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.roadmap-item h3 {
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

.roadmap-item p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.roadmap-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-shipped {
    background: var(--color-shipped-bg);
    color: var(--color-shipped);
}

.badge-planned {
    background: var(--color-planned-bg);
    color: var(--color-planned);
}

.badge-future {
    background: var(--color-future-bg);
    color: var(--color-future);
}

/* Call to action */

.cta {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-link {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Code blocks */

pre {
    background: var(--color-code-bg);
    border: 1px solid var(--color-border-light);
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

pre code {
    font-size: inherit;
}

p code,
li code {
    background: var(--color-code-bg);
    padding: 0.1rem 0.3rem;
    border: 1px solid var(--color-border-light);
    word-break: break-all;
}

/* Etymology */

.etymology {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* 404 */

.section-404 {
    text-align: center;
    padding-top: 4rem;
}

.section-404 h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

/* Maintenance */

.section-maintenance {
    text-align: center;
    padding-top: 4rem;
}

.section-maintenance h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-maintenance p {
    max-width: 480px;
    margin: 0 auto 0.75rem;
}

/* Footer */

.footer {
    border-top: 1px solid var(--color-border-light);
    padding: 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.footer-inner > * {
    flex: 1;
}

.footer-coded {
    text-align: right;
    color: var(--color-text-secondary);
}

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

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

/* Responsive: tablet */

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        z-index: 100;
    }

    .nav-open .nav-links {
        display: flex;
    }

    .nav {
        position: relative;
    }

    .card-grid,
    .tier-grid,
    .tier-grid-3 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

}

/* Responsive: phone */

@media (max-width: 480px) {
    html {
        font-size: 13px;
        -webkit-text-size-adjust: 100%;
    }

    .content {
        padding: 1.25rem 0.75rem;
        min-width: 0;
    }

    .nav {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 1.5rem 0 1.25rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .hero-pitch {
        font-size: 0.85rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    pre {
        font-size: 0.6rem;
        padding: 0.5rem;
    }

    .section h1 {
        font-size: 1.3rem;
    }

    .section h2 {
        font-size: 1rem;
    }

    .section p,
    .section li {
        font-size: 0.85rem;
    }

    .card h3 {
        font-size: 0.9rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    .card {
        padding: 0.75rem;
    }

    .step {
        gap: 0.75rem;
    }

    .step-num {
        min-width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }

    .tier {
        padding: 1rem;
    }

    .tier-price {
        font-size: 1.1rem;
    }

    .footer {
        padding: 0.75rem;
    }

    .footer-inner {
        font-size: 0.7rem;
    }

    .section-404 h1 {
        font-size: 2.5rem;
    }
}

/* Print */

@media print {
    .nav,
    .nav-toggle {
        display: none;
    }

    body {
        background: white;
    }

    .card {
        border: 1px solid #ccc;
        background: white;
    }

    .footer {
        border-top: 1px solid #ccc;
    }
}
