/* Landing page styles - uses existing CSS variables from variables.css */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  background: var(--input-bg);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-decoration: none;
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  border: none;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--info), var(--secondary));
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #334155;
  border-color: #cbd5e1;
}

.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-color: #94a3b8;
  color: #334155;
}

[data-theme="dark"] .btn-secondary {
  background: linear-gradient(135deg, #334155, #1e293b);
  color: #f8fafc;
  border-color: #475569;
}

[data-theme="dark"] .btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, #475569, #334155);
  border-color: #94a3b8;
  color: #f8fafc;
}
.btn-lg {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--card-bg);
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Site header */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}
.nav-brand .brand-link:hover {
    text-decoration: none;
}

.beta-badge {
    background: var(--primary);
    color: var(--card-bg);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Desktop: hide mobile nav elements */
.mobile-nav-toggle,
.mobile-nav-overlay,
.mobile-nav-panel {
    display: none;
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
}
.lang-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 3px;
}
.lang-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    text-decoration: none;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--text-muted);
}
.theme-toggle:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}
[data-theme="light"] .theme-icon-light { display: none; }

[data-theme="dark"] .theme-icon-dark { display: none; }
/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Outline button variant */
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
    text-decoration: none;
}

/* Trust signals bar */
.trust-signals {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1rem;
}
.trust-signals-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.trust-icon {
    font-size: 1.2rem;
}

/* Features section */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}
.features h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 2rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    transition: box-shadow 0.2s;
}
.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
.feature-card h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* How it works section */
.how-it-works {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}
.how-it-works h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 2rem;
}
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--card-bg);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.step h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.step-connector {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin-top: 24px;
    flex-shrink: 0;
}

/* Blog previews section */
.blog-previews {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}
.blog-previews h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 2rem;
}
.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
.blog-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
}

/* Site footer */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 2rem 1rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section li {
    margin-bottom: 0.4rem;
}
.footer-section a {
    text-decoration: none;
    color: var(--text-muted);
    display: inline-block;
    padding: 4px 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-section a:hover {
    color: var(--text);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Ad slots */
.ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    background: rgba(148, 163, 184, 0.05);
    border: 1px dashed var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.ad-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}
.ad-slot--sidebar {
    min-height: 250px;
}
.ad-slot--inline {
    min-height: 90px;
}

/* Feedback form */
.hp-field {
    position: absolute;
    left: -9999px;
    overflow: hidden;
}
.feedback-success {
    padding: 2rem;
    text-align: center;
}
.feedback-error {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--primary);
    border-radius: 12px;
}
.feedback-form .form-group {
    margin-bottom: 1.5rem;
}
.feedback-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.feedback-form .required {
    color: var(--primary);
}
.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    background: var(--input-bg);
    color: var(--text);
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.feedback-form .btn[type="submit"] {
    margin-top: 1rem;
}
.feedback-form input[type="text"]:focus,
.feedback-form input[type="email"]:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Page header (used by resources, about, feedback, etc.) */
.page-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.page-header h1 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Content section and container */
.content-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.content-container {
    max-width: 760px;
    margin: 0 auto;
}

/* Legal-page prose styling (privacy, terms, etc.) */
.prose {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}
.prose > p:first-child {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.prose h2 {
    font-size: 1.35rem;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border);
}
.prose h2:first-of-type {
    margin-top: 0;
}
.prose p {
    margin-bottom: 1rem;
}
.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.prose a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:hover {
    color: var(--secondary-dark);
}

/* Resources page */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.resource-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.resource-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
.resource-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.resource-card h2 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.resource-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.resource-card .btn {
    margin-top: auto;
}

/* Email signup section */
.email-signup-section {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
}
.email-signup-section h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.email-signup-section p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* Inline form group (email + button side by side) */
.form-group-inline {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}
.form-group-inline input[type="email"] {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group-inline input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}
.form-group-inline .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

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

@media (max-width: 768px) {
    .nav-container {
        position: relative;
        padding: 0.75rem 1rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .mobile-nav-toggle .hamburger-bar {
        width: 100%;
        height: 3px;
        background-color: var(--text);
        border-radius: 2px;
        transition: all var(--transition-speed) var(--transition-easing);
    }
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-speed) var(--transition-easing);
        z-index: var(--z-index-overlay);
    }
    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-nav-panel {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--card-bg);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed) var(--transition-easing);
        z-index: var(--z-index-mobile-nav);
        box-shadow: 0 4px 12px var(--shadow);
    }
    .mobile-nav-panel.open {
        max-height: 350px;
    }
    .mobile-nav-link {
        display: block;
        padding: 12px 20px;
        color: var(--text);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9em;
        border: none;
        background: none;
        text-align: left;
        cursor: pointer;
        width: 100%;
        transition: background 0.2s;
    }
    .mobile-nav-link:hover {
        background: var(--bg);
        color: var(--primary);
        text-decoration: none;
    }
    .mobile-lang-switcher {
        display: flex;
        gap: 4px;
        padding: 8px 20px;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .blog-cards {
        grid-template-columns: 1fr;
    }
    .trust-signals-inner {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .steps {
        flex-direction: column;
        align-items: center;
    }
    .step-connector {
        width: 2px;
        height: 24px;
        margin-top: 0;
    }
    .resources-grid {
        grid-template-columns: 1fr;
    }
    .form-group-inline {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav-brand .brand-link {
        font-size: 0.95rem;
    }
    .nav-links {
        gap: 0.75rem;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
}

/* Partner invitation page */
.beta-notice {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.partner-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.partner-section:last-of-type {
    border-bottom: none;
}

.partner-section h2 {
    margin-bottom: 1rem;
    color: var(--text);
}

.partner-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.partner-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .partner-section {
        padding-bottom: 1.5rem;
    }
}
