/**
 * SiteRecord Marketing Surface Stylesheet
 * 
 * DESIGN PRINCIPLES:
 * - Authoritative, not flashy
 * - Calm, not sterile
 * - Modern, not trendy
 * - Confident, not salesy
 * 
 * VISUAL LANGUAGE:
 * - Monochrome palette with subtle warm accents
 * - Strong typographic contrast and hierarchy
 * - Ledger-like structures, ruled lines, document metaphors
 * - Generous whitespace signaling seriousness
 * - No gradients, no feature-card grids, no SaaS sameness
 */

@import url('./fonts.css');

/* ============================================================================
   DESIGN TOKENS
   ============================================================================ */

:root {
    /* Monochrome palette */
    --m-ink: #0a0a0a;
    --m-ink-soft: #1a1a1a;
    --m-text: #2a2a2a;
    --m-text-secondary: #5a5a5a;
    --m-text-muted: #8a8a8a;
    --m-rule: #d0d0d0;
    --m-rule-light: #e8e8e8;
    --m-surface: #f4f3f0;
    --m-paper: #faf9f7;
    
    /* Subtle accent - warm gray, not blue */
    --m-accent: #4a4a4a;
    --m-accent-hover: #2a2a2a;
    
    /* Typography scale - deliberate contrast */
    --m-font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --m-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Sizes - restrained, not oversized */
    --m-size-display: 2.75rem;      /* 44px - declarative, not shouting */
    --m-size-heading: 1.5rem;       /* 24px */
    --m-size-subheading: 1.125rem;  /* 18px */
    --m-size-body: 1rem;            /* 16px */
    --m-size-small: 0.875rem;       /* 14px */
    --m-size-caption: 0.75rem;      /* 12px */
    
    /* Spacing - generous, calm rhythm */
    --m-space-xs: 0.5rem;
    --m-space-sm: 1rem;
    --m-space-md: 1.5rem;
    --m-space-lg: 2.5rem;
    --m-space-xl: 4rem;
    --m-space-2xl: 6rem;
    --m-space-3xl: 8rem;
    
    /* Layout */
    --m-content-width: 680px;
    --m-page-width: 960px;
}

/* ============================================================================
   BASE RESET FOR MARKETING PAGES
   ============================================================================ */

.marketing-page {
    margin: 0;
    padding: 0;
    background: var(--m-paper);
    color: var(--m-text);
    font-family: var(--m-font-body);
    font-size: var(--m-size-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.marketing-page * {
    box-sizing: border-box;
}

/* ============================================================================
   HERO ZONE - Canvas positioning context
   ============================================================================ */

.m-hero-zone {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    background: radial-gradient(ellipse at 50% 40%, #faf9f7 60%, #f1efe8 100%);
}

/* ============================================================================
   HEADER - Minimal, institutional
   ============================================================================ */

.m-header {
    position: relative;
    z-index: 2;
    background: var(--m-paper);
    padding: var(--m-space-md) var(--m-space-lg);
    border-bottom: 1px solid var(--m-rule-light);
}

.m-header-inner {
    max-width: var(--m-page-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

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

.m-nav {
    display: flex;
    gap: var(--m-space-lg);
}

.m-nav-link {
    font-size: var(--m-size-small);
    color: var(--m-text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.m-nav-link:hover {
    color: var(--m-ink);
}

/* ============================================================================
   OPENING STATEMENT - Not a hero, a declaration
   ============================================================================ */

.m-opening {
    position: relative;
    z-index: 1;
    max-width: var(--m-content-width);
    margin: 0 auto;
    padding: var(--m-space-3xl) var(--m-space-lg) var(--m-space-2xl);
}

.m-opening-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.m-launch-notice {
    font-size: var(--m-size-caption);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--m-text-muted);
    margin: 0 0 var(--m-space-md) 0;
}

.m-headline {
    font-family: var(--m-font-display);
    font-size: var(--m-size-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--m-ink);
    margin: 0 0 var(--m-space-lg) 0;
}

.m-premise {
    font-size: var(--m-size-subheading);
    line-height: 1.7;
    color: var(--m-text-secondary);
    margin: 0;
    max-width: 560px;
}

/* ============================================================================
   WAITLIST FORM - Understated, confident
   ============================================================================ */

.m-waitlist {
    max-width: var(--m-content-width);
    margin: 0 auto;
    padding: 0 var(--m-space-lg) var(--m-space-2xl);
}

.m-waitlist-form {
    display: flex;
    gap: var(--m-space-sm);
    max-width: 420px;
}

.m-waitlist-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--m-font-body);
    font-size: var(--m-size-body);
    border: 1px solid var(--m-rule);
    background: var(--m-paper);
    color: var(--m-text);
}

.m-waitlist-input::placeholder {
    color: var(--m-text-muted);
}

.m-waitlist-input:focus {
    outline: none;
    border-color: var(--m-ink);
}

.m-waitlist-button {
    padding: 0.75rem 1.5rem;
    font-family: var(--m-font-body);
    font-size: var(--m-size-small);
    font-weight: 500;
    background: var(--m-ink);
    color: var(--m-paper);
    border: 1px solid var(--m-ink);
    cursor: pointer;
    transition: background 0.15s ease;
}

.m-waitlist-button:hover {
    background: var(--m-accent-hover);
}

.m-waitlist-note {
    font-size: var(--m-size-small);
    color: var(--m-text-muted);
    margin: var(--m-space-sm) 0 0 0;
}

.m-waitlist-message {
    margin-top: var(--m-space-sm);
    padding: var(--m-space-sm);
    font-size: var(--m-size-small);
}

.m-waitlist-message.success {
    background: #f0f9f0;
    border-left: 3px solid #2a5a2a;
    color: #2a5a2a;
}

.m-waitlist-message.error {
    background: #fdf0f0;
    border-left: 3px solid #8a2a2a;
    color: #8a2a2a;
}

/* ============================================================================
   RULED DIVIDER - Ledger motif
   ============================================================================ */

.m-rule {
    max-width: var(--m-page-width);
    margin: 0 auto;
    padding: 0 var(--m-space-lg);
}

.m-rule-line {
    border: none;
    border-top: 1px solid var(--m-rule);
    margin: 0;
}

/* ============================================================================
   PROPOSITIONS - Not feature cards, statements of fact
   ============================================================================ */

.m-propositions {
    max-width: var(--m-page-width);
    margin: 0 auto;
    padding: var(--m-space-2xl) var(--m-space-lg);
}

.m-proposition {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--m-space-xl);
    padding: var(--m-space-lg) 0;
    border-bottom: 1px solid var(--m-rule-light);
}

.m-proposition:last-child {
    border-bottom: none;
}

.m-proposition-label {
    font-size: var(--m-size-caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--m-text-muted);
    padding-top: 0.25rem;
    border-left: 2px solid #1a365d;
    padding-left: 0.75rem;
}

.m-proposition-content {
    max-width: 520px;
}

.m-proposition-heading {
    font-family: var(--m-font-display);
    font-size: var(--m-size-heading);
    font-weight: 600;
    color: var(--m-ink);
    margin: 0 0 var(--m-space-sm) 0;
    letter-spacing: -0.01em;
}

.m-proposition-text {
    font-size: var(--m-size-body);
    line-height: 1.7;
    color: var(--m-text-secondary);
    margin: 0;
}

.m-proposition-list {
    list-style: none;
    padding: 0;
    margin: var(--m-space-sm) 0 0 0;
}

.m-proposition-list li {
    padding: 0.5rem 0;
    color: var(--m-text);
    border-bottom: 1px solid var(--m-rule-light);
    font-size: var(--m-size-small);
}

.m-proposition-list li:last-child {
    border-bottom: none;
}

/* ============================================================================
   GOVERNANCE TIERS - Not pricing cards, levels of accountability
   ============================================================================ */

.m-tiers {
    background: var(--m-surface);
    border-top: 1px solid var(--m-rule);
    border-bottom: 1px solid var(--m-rule);
}

.m-tiers-inner {
    max-width: var(--m-page-width);
    margin: 0 auto;
    padding: var(--m-space-2xl) var(--m-space-lg);
}

.m-tiers-header {
    margin-bottom: var(--m-space-xl);
}

.m-tiers-title {
    font-family: var(--m-font-display);
    font-size: var(--m-size-heading);
    font-weight: 600;
    color: var(--m-ink);
    margin: 0 0 var(--m-space-xs) 0;
}

.m-tiers-subtitle {
    font-size: var(--m-size-body);
    color: var(--m-text-secondary);
    margin: 0;
    max-width: 560px;
}

.m-tiers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--m-rule);
    border: 1px solid var(--m-rule);
}

.m-tier {
    background: var(--m-paper);
    padding: var(--m-space-lg);
}

.m-tier:not(.featured) {
    border-left: 1px solid var(--m-rule);
}

.m-tier-name {
    font-size: var(--m-size-caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--m-text-muted);
    margin: 0 0 var(--m-space-sm) 0;
}

.m-tier-price {
    font-family: var(--m-font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--m-ink);
    margin: 0 0 var(--m-space-xs) 0;
}

.m-tier-price-period {
    font-size: var(--m-size-small);
    font-weight: 400;
    color: var(--m-text-muted);
}

.m-tier-description {
    font-size: var(--m-size-small);
    line-height: 1.6;
    color: var(--m-text-secondary);
    margin: 0 0 var(--m-space-md) 0;
    min-height: 3.2rem;
}

.m-tier-inclusions {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--m-rule-light);
    padding-top: var(--m-space-md);
}

.m-tier-inclusions li {
    font-size: var(--m-size-small);
    color: var(--m-text);
    padding: 0.375rem 0;
}

.m-tier-inclusions li::before {
    content: "-";
    color: var(--m-text-muted);
    margin-right: 0.5rem;
}

.m-tier.featured {
    background: var(--m-ink);
    border-top: 3px solid #2a4a7a;
}

.m-tier.featured .m-tier-name,
.m-tier.featured .m-tier-price-period {
    color: rgba(255, 255, 255, 0.6);
}

.m-tier.featured .m-tier-price {
    color: var(--m-paper);
}

.m-tier.featured .m-tier-description {
    color: rgba(255, 255, 255, 0.8);
}

.m-tier.featured .m-tier-inclusions {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.m-tier.featured .m-tier-inclusions li {
    color: rgba(255, 255, 255, 0.9);
}

.m-tier.featured .m-tier-inclusions li::before {
    color: rgba(255, 255, 255, 0.5);
}

.m-tiers-note {
    font-size: var(--m-size-small);
    color: var(--m-text-muted);
    margin: var(--m-space-lg) 0 0 0;
}

/* ============================================================================
   FOOTER - Institutional, not decorative
   ============================================================================ */

.m-footer {
    max-width: var(--m-page-width);
    margin: 0 auto;
    padding: var(--m-space-xl) var(--m-space-lg);
}

.m-footer-disclaimer {
    font-size: var(--m-size-small);
    line-height: 1.7;
    color: var(--m-text-muted);
    margin: 0 0 var(--m-space-md) 0;
    max-width: 600px;
}

.m-footer-copyright {
    font-size: var(--m-size-caption);
    color: var(--m-text-muted);
    margin: 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 800px) {
    :root {
        --m-size-display: 2rem;
        --m-size-heading: 1.25rem;
    }
    
    .m-proposition {
        grid-template-columns: 1fr;
        gap: var(--m-space-sm);
    }
    
    .m-tiers-grid {
        grid-template-columns: 1fr;
    }
    
    .m-tier.featured {
        order: -1;
    }
}

@media (max-width: 600px) {
    :root {
        --m-size-display: 1.75rem;
    }
    
    .m-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--m-space-sm);
    }
    
    .m-waitlist-form {
        flex-direction: column;
    }
    
    .m-opening {
        padding-top: var(--m-space-2xl);
    }
}

/* ============================================================================
   SCROLL REVEAL & ANIMATIONS
   ============================================================================ */

.m-proposition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.m-proposition.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.m-headline-shimmer {
    position: relative;
    display: inline;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(26, 54, 93, 0.15) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shimmer-sweep 4s ease-in-out infinite;
}

@keyframes shimmer-sweep {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .m-proposition {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .m-headline-shimmer {
        animation: none;
        background: none;
    }

    .m-opening-canvas {
        display: none;
    }
}

/* ============================================================================
   GEO REFERENCE PAGES - Definition-first, extractable
   ============================================================================ */

.geo-page {
    max-width: 740px;
    margin: 0 auto;
    padding: var(--m-space-xl) var(--m-space-lg) var(--m-space-3xl);
}

.geo-page h1 {
    font-family: var(--m-font-display);
    font-size: var(--m-size-display);
    font-weight: 600;
    color: var(--m-ink);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.geo-subheading {
    font-size: var(--m-size-subheading);
    color: var(--m-text-secondary);
    margin: 0 0 var(--m-space-lg) 0;
    line-height: 1.6;
}

.geo-definition {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--m-text);
    background: var(--m-surface);
    border-left: 3px solid #1a365d;
    padding: 1.25rem 1.5rem;
    margin: 0 0 var(--m-space-xl) 0;
}

.geo-definition p {
    margin: 0 0 0.75rem 0;
}

.geo-definition p:last-child {
    margin-bottom: 0;
}

.geo-section {
    margin-bottom: var(--m-space-xl);
}

.geo-section h2 {
    font-family: var(--m-font-display);
    font-size: var(--m-size-heading);
    font-weight: 600;
    color: var(--m-ink);
    margin: 0 0 var(--m-space-sm) 0;
    letter-spacing: -0.01em;
}

.geo-section p {
    font-size: var(--m-size-body);
    line-height: 1.7;
    color: var(--m-text-secondary);
    margin: 0 0 0.75rem 0;
}

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

.geo-section ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.geo-section ul li {
    padding: 0.4rem 0;
    font-size: var(--m-size-body);
    color: var(--m-text);
    border-bottom: 1px solid var(--m-rule-light);
}

.geo-section ul li:last-child {
    border-bottom: none;
}

.geo-section ul li::before {
    content: "—";
    color: var(--m-text-muted);
    margin-right: 0.5rem;
}

.geo-closing {
    font-size: var(--m-size-small);
    color: var(--m-text-muted);
    border-top: 1px solid var(--m-rule-light);
    padding-top: var(--m-space-md);
    margin-top: var(--m-space-xl);
    line-height: 1.7;
}

.geo-related {
    margin-top: var(--m-space-xl);
    padding-top: var(--m-space-md);
    border-top: 1px solid var(--m-rule);
}

.geo-related h3 {
    font-size: var(--m-size-caption);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--m-text-muted);
    margin: 0 0 var(--m-space-sm) 0;
}

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

.geo-related ul li {
    padding: 0.375rem 0;
}

.geo-related ul li a {
    font-size: var(--m-size-small);
    color: var(--m-text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--m-rule-light);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.geo-related ul li a:hover {
    color: var(--m-ink);
    border-color: var(--m-ink);
}

.geo-page a {
    color: var(--m-text);
    text-decoration: none;
    border-bottom: 1px solid var(--m-rule);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.geo-page a:hover {
    color: var(--m-ink);
    border-color: var(--m-ink);
}

.geo-page .geo-related ul li a {
    color: var(--m-text-secondary);
}

/* Learn More section on landing page */
.m-learn-more {
    max-width: var(--m-page-width);
    margin: 0 auto;
    padding: var(--m-space-xl) var(--m-space-lg);
}

.m-learn-more h2 {
    font-family: var(--m-font-display);
    font-size: var(--m-size-heading);
    font-weight: 600;
    color: var(--m-ink);
    margin: 0 0 var(--m-space-md) 0;
}

.m-learn-more ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.m-learn-more ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--m-rule-light);
}

.m-learn-more ul li:last-child {
    border-bottom: none;
}

.m-learn-more ul li a {
    font-size: var(--m-size-body);
    color: var(--m-text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.m-learn-more ul li a:hover {
    color: var(--m-ink);
}

@media (max-width: 600px) {
    .geo-page {
        padding: var(--m-space-lg) var(--m-space-sm);
    }

    .geo-definition {
        padding: 1rem;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .m-waitlist,
    .m-nav {
        display: none;
    }
    
    .m-header {
        border-bottom: 2px solid #000;
    }
    
    .m-tiers-grid {
        grid-template-columns: 1fr;
    }
}
