/* Pascal App - Website Styles
   Matching the iOS app's aerospace telemetry aesthetic
   International Orange only. No glow. No shadows. Same instrument.
*/

:root {
    /* International Orange Color System - matching PressureUI.swift */
    --io-primary: #FF4F00;
    --io-muted: rgba(255, 79, 0, 0.6);
    --io-dim: rgba(255, 79, 0, 0.15);
    --io-bright: #FF6A26;

    /* Background - matching TelemetryColors */
    --bg-primary: #0B0D10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-hover: rgba(255, 255, 255, 0.06);

    /* Text hierarchy - improved contrast */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.5);

    /* Grid */
    --grid-line: rgba(255, 255, 255, 0.08);

    /* Monospace font stack */
    --font-mono: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
}

/* Override default layout for Pascal pages */
body.pascal {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

/* Subtle grid background - aerospace telemetry aesthetic */
body.pascal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

/* Hide default nav on Pascal pages */
body.pascal nav {
    display: none;
}

/* Pascal header */
.pascal-header {
    text-align: center;
    padding: 80px 0 60px;
}

.pascal-header .system-label {
    font-size: 10px;
    letter-spacing: 6px;
    color: var(--text-dim);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.pascal-header h1 {
    font-size: clamp(48px, 12vw, 80px);
    font-weight: 200;
    letter-spacing: 12px;
    color: var(--io-primary);
    margin-bottom: 12px;
}

.pascal-header .tagline {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Status badge - like app calibration badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--io-dim);
    border: 1px solid var(--io-muted);
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--io-primary);
    margin-top: 32px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--io-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* App Store button */
.app-store-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: var(--io-primary);
    color: #000;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 6px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.app-store-btn:hover {
    background: var(--io-bright);
    color: #000;
    transform: translateY(-1px);
}

/* Screenshots area */
.screenshots {
    margin: 60px 0;
    padding: 40px 0;
    text-align: center;
}

.screenshots img {
    max-width: 100%;
    height: auto;
    margin: 0 16px;
}

.device-mockups {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

.device-mockups .iphone {
    max-height: 520px;
}

.device-mockups.three-up {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.screenshot-item .iphone {
    max-height: 420px;
}

.screenshot-item .watch {
    max-height: 200px;
    border-radius: 40px;
}

.screenshot-item .widget {
    max-height: 160px;
    border-radius: 24px;
}

.screenshot-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--io-muted);
}

/* Section headers - matching app's section style */
.section-header {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--io-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header::before {
    content: '//';
    color: var(--text-dim);
}

/* Cards - matching app's card style */
.card {
    background: var(--bg-card);
    border: 1px solid var(--grid-line);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.card p + p {
    margin-top: 12px;
}

.card code {
    background: var(--io-dim);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: var(--io-primary);
}

/* Feature grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--grid-line);
    border-radius: 6px;
    padding: 20px;
}

.feature-icon {
    font-size: 20px;
    margin-bottom: 12px;
}

/* Icon frame - instrument dial container */
.icon-frame {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255, 69, 0, 0.12) 0%, transparent 70%);
    position: relative;
    margin-bottom: 12px;
}

.icon-frame svg {
    width: 24px;
    height: 24px;
}

/* Outer dashed ring - instrument dial tick vibe */
.icon-frame::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 69, 0, 0.08);
}

.feature h3 {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Specs table - matching app's data display */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.specs-table tr {
    border-bottom: 1px solid var(--grid-line);
}

.specs-table td {
    padding: 14px 0;
    font-size: 13px;
}

.specs-table td:first-child {
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.specs-table td:last-child {
    text-align: right;
    color: var(--io-primary);
    font-weight: 500;
}

/* Badge list - calibration badges */
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--grid-line);
    border-radius: 4px;
    font-size: 10px;
}

.badge-label {
    color: var(--io-primary);
    font-weight: 500;
}

.badge-desc {
    color: var(--text-dim);
}

/* Pascal footer */
.pascal-footer {
    text-align: center;
    padding: 60px 0 40px;
    border-top: 1px solid var(--grid-line);
    margin-top: 80px;
}

.pascal-footer .links {
    margin-bottom: 24px;
}

.pascal-footer .links a {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--io-muted);
    text-decoration: none;
    margin: 0 20px;
    transition: color 0.15s ease;
}

.pascal-footer .links a:hover {
    color: var(--io-primary);
}

.pascal-footer .copyright {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.pascal-footer .copyright span {
    color: var(--io-primary);
}

/* Content sections */
section {
    margin: 60px 0;
}

/* Narrow container override for Pascal */
body.pascal .container {
    max-width: 800px;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 40px;
}

.back-link:hover {
    color: var(--io-primary);
}

/* Privacy policy specific styles */
.privacy-content h2 {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--io-primary);
    margin: 40px 0 16px;
}

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

.privacy-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 16px;
}

.privacy-content ul {
    list-style: none;
    margin: 16px 0;
}

.privacy-content li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.8;
}

.privacy-content li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--io-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .pascal-header h1 {
        letter-spacing: 6px;
    }

    .pascal-header {
        padding: 60px 0 40px;
    }

    body.pascal .container {
        padding: 0 20px;
    }

    .device-mockups {
        flex-direction: column;
        align-items: center;
    }

    .device-mockups .iphone {
        max-height: 400px;
    }

    .screenshot-item .iphone {
        max-height: 320px;
    }

    .device-mockups.three-up {
        gap: 16px;
    }

    .pascal-footer .links a {
        display: block;
        margin: 12px 0;
    }
}
