/* ==========================================================================
   SimpleSubMeter Marketing Website Styles
   Inspired by Con Edison's utility company aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Con Edison inspired palette */
    --primary: #0099D8;
    --primary-dark: #007AB8;
    --primary-light: #E6F4FA;
    --secondary: #003057;
    --text: #333333;
    --text-muted: #666666;
    --background: #ffffff;
    --background-alt: #F5F5F5;
    --border: #DDDDDD;
    --success: #00843D;
    --orange-accent: #FF6B00;

    /* Typography - Helvetica-based stack */
    --font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-pill: 50px;

    /* Container */
    --container-max: 1200px;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

section {
    padding: var(--spacing-xxl) 0;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: -0.02em;
}

.logo-text {
    font-size: 1.25rem;
    color: var(--secondary);
}

.nav {
    display: flex;
    gap: var(--spacing-xl);
}

.nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding-top: calc(70px + var(--spacing-xxl));
    padding-bottom: var(--spacing-xxl);
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--background) 100%);
}

.hero .container {
    max-width: 900px;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: var(--secondary);
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.1875rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Benefits Section
   -------------------------------------------------------------------------- */
.benefits {
    background: var(--background);
}

.benefits h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.benefit-card {
    padding: var(--spacing-lg);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s ease;
}

.benefit-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--spacing-md);
    background: var(--primary-light);
    border-radius: 50%;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

.benefit-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works {
    background: var(--background-alt);
}

.how-it-works h2 {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-xl);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.step {
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    background: var(--primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
}

.step h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

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

.step-arrow {
    display: none;
}

/* --------------------------------------------------------------------------
   Trust Section
   -------------------------------------------------------------------------- */
.trust {
    background: var(--secondary);
    color: white;
}

.trust h2 {
    text-align: center;
    color: white;
    margin-bottom: var(--spacing-xl);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.trust-item {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.trust-item h3 {
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.trust-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.pricing {
    background: var(--background);
}

.pricing h2 {
    text-align: center;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.pricing-card {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-pill);
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.pricing-desc {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-size: 0.875rem;
}

.price {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.price-amount {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--secondary);
}

.price-period {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: var(--spacing-lg);
}

.pricing-features li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.pricing-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

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

.pricing-card .btn {
    width: 100%;
}

.pricing-hardware {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--background-alt);
    border-radius: var(--radius-sm);
    text-align: center;
}

.pricing-hardware.hardware-free {
    color: var(--success);
    background: #E8F5E9;
    font-weight: 600;
}

.pricing-guarantee {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 0.875rem;
}


/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq {
    background: var(--background);
}

.faq h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

.faq-item p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: var(--primary-light);
}

.contact h2 {
    text-align: center;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--background);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 153, 216, 0.15);
}

.contact-form .btn {
    width: 100%;
    margin-top: var(--spacing-sm);
}

.contact-note {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.contact-note a {
    font-weight: 600;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--secondary);
    color: white;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-brand .logo-icon {
    background: var(--primary);
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-xxl);
}

.footer-column h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xs) 0;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    .benefits-grid,
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: var(--spacing-xl) 0;
    }

    .header .container {
        height: auto;
        padding: var(--spacing-md);
    }

    .nav {
        display: none;
    }

    .hero {
        padding-top: calc(80px + var(--spacing-xl));
    }

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

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

    .benefits-grid,
    .pricing-cards,
    .steps {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
}

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

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 9999;
}

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