/* State Zero — Styles
   Performance-first, minimal CSS */

/* Design Tokens */
:root {
    --accent: #2a5f8f;
    --accent-hover: #1e4d7a;
    --accent-light: #edf2f7;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f8f8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    color: #111;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

p {
    color: #444;
}

a {
    color: #1a1a1a;
    text-decoration: none;
}

/* Hidden (for honeypot) */
.hidden {
    display: none;
}

/* Header */
.site-header {
    padding: 1.5rem 0;
    background: #f8f8f8;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-size: 0.875rem;
    color: #555;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #111;
}

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

.nav-active {
    color: #111 !important;
}

.nav-cta.nav-active {
    color: #fff !important;
}

.nav-cta.nav-active:hover {
    color: #fff !important;
}

/* Hero */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: 1.125rem;
    max-width: 580px;
    margin: 0 auto 2rem;
    color: #555;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-secondary {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.cta-secondary:hover {
    opacity: 0.7;
}

.value-chips {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    font-size: 0.8125rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-weight: 500;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: var(--accent-hover);
    color: #fff;
}

.cta-button-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: calc(0.875rem - 2px) calc(2rem - 2px);
    transition: background 0.2s ease, color 0.2s ease;
}

.cta-button-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: #fff;
}

.section-intro {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    color: #555;
}

/* "Built for" Section */
.section-for {
    background: #fff;
}

.for-list {
    list-style: none;
    display: grid;
    gap: 0.875rem;
}

.for-list li {
    font-size: 0.9375rem;
    color: #444;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.for-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* What We Build - Cards */
.section-build h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.build-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.build-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 2rem;
    transition: border-color 0.2s ease;
}

.build-card:hover {
    border-color: var(--accent);
}

.build-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.build-card > p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.build-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.build-card li {
    font-size: 0.875rem;
    color: #444;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.375rem;
}

.build-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.card-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--accent);
    transition: opacity 0.2s ease;
}

.card-link:hover {
    opacity: 0.7;
}

/* How It Works - Process Steps */
.section-process {
    background: #fff;
}

.section-process h2 {
    text-align: center;
}

.process-intro {
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

.process-note {
    text-align: center;
    font-size: 0.8125rem;
    color: #888;
    margin-top: 2rem;
    font-style: italic;
}

/* Trust Strip */
.trust-strip {
    background: var(--accent-light);
    padding: 1.25rem 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
}

.trust-sep {
    color: var(--accent);
    opacity: 0.4;
}

/* Pricing */
.section-pricing h2 {
    text-align: center;
}

.section-pricing .section-intro {
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

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

.pricing-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

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

.pricing-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.price {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-card li {
    font-size: 0.875rem;
    color: #444;
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
}

.pricing-card .cta-button,
.pricing-card .cta-button-outline {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

/* What We Don't Do */
.section-dont {
    background: #fff;
}

.dont-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.dont-list li {
    font-size: 0.9375rem;
    color: #444;
    padding-left: 1.5rem;
    position: relative;
}

.dont-list li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: #999;
}

.dont-list strong {
    color: #1a1a1a;
}

/* Contact / Intake Form */
.section-contact {
    background: #fff;
}

.form-preamble {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.intake-form {
    max-width: 540px;
}

.form-section {
    border: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.form-section legend {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding: 0;
}

.radio-group,
.checkbox-group {
    display: grid;
    gap: 0.625rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.5;
}

.radio-option input,
.checkbox-option input {
    margin-top: 0.25rem;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.radio-option span,
.checkbox-option span {
    flex: 1;
}

.form-section-contact {
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}

.form-group .optional {
    font-weight: 400;
    color: #888;
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.intake-form .cta-button {
    margin-top: 1.5rem;
}

.contact-alt {
    margin-top: 2rem;
    font-size: 0.9375rem;
    color: #666;
}

.contact-alt a {
    color: #1a1a1a;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.2s ease;
}

.contact-alt a:hover {
    border-color: #1a1a1a;
}

/* Homepage CTA Section */
.section-cta {
    text-align: center;
    padding: 5rem 0 4rem;
}

.cta-intro {
    font-size: 1.0625rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.section-cta .cta-button {
    margin-bottom: 1.5rem;
}

.cta-question {
    font-size: 0.9375rem;
    color: #666;
}

.cta-question a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    transition: opacity 0.2s ease;
}

.cta-question a:hover {
    opacity: 0.7;
}

/* Quick Question Section */
.section-question {
    background: #fff;
}

.question-intro {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 2rem;
}

.question-form {
    max-width: 480px;
}

.question-form .cta-button {
    margin-top: 0.5rem;
}

/* Contact Page Form Section */
.section-form {
    background: #f8f8f8;
    padding-top: 0;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    font-weight: 600;
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.6;
}

.site-footer h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
    display: block;
    font-size: 0.875rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 0.875rem;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .build-cards {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1.25rem;
    }

    .hero {
        padding: 3.5rem 0 3rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 8px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* Work Page */
.page-header {
    padding: 5rem 0 3rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-intro {
    font-size: 1.125rem;
    color: #555;
    max-width: 540px;
}

/* Projects */
.projects {
    display: grid;
    gap: 4rem;
}

.project {
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e5e5;
}

.project:last-child {
    border-bottom: none;
}

.project-name {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.project-context {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
}

.project-focus {
    list-style: none;
    display: grid;
    gap: 0.375rem;
}

.project-focus li {
    font-size: 0.9375rem;
    color: #444;
    padding-left: 1.25rem;
    position: relative;
}

.project-focus li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.project-outcome {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.project-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.project-link:hover {
    opacity: 0.7;
}

/* Work page closing elements */
.work-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #fff;
    border-left: 3px solid var(--accent);
}

.work-note p {
    font-size: 0.9375rem;
    color: #666;
    font-style: italic;
}

.work-cta {
    margin-top: 3rem;
    text-align: center;
}

/* About Page */
.about-page {
    line-height: 1.75;
}

.about-section p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    max-width: 600px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-emphasis {
    font-weight: 500;
    color: #1a1a1a;
}

.about-list {
    list-style: none;
    margin: 1rem 0 1.5rem;
}

.about-list li {
    font-size: 0.9375rem;
    color: #444;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.375rem;
}

.about-list li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: #999;
}

.about-cta {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.about-cta a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    transition: opacity 0.2s ease;
}

.about-cta a:hover {
    opacity: 0.7;
}

.about-cta .cta-button {
    margin-top: 1.5rem;
    border-bottom: none;
    color: #fff;
}

.about-cta .cta-button:hover {
    color: #fff;
    opacity: 1;
}

/* Thanks Page */
.thanks-page {
    padding: 6rem 0;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.thanks-page .container {
    width: 100%;
}

.thanks-page h1 {
    margin-bottom: 1rem;
}

.thanks-message {
    font-size: 1.0625rem;
    color: #555;
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.thanks-link {
    font-size: 0.9375rem;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    transition: opacity 0.2s ease;
}

.thanks-link:hover {
    opacity: 0.7;
}
