/* jr-styles.css — the only stylesheet for johnryles.com (static site).
   All classes use the jr- prefix. Palette and rules: see AGENTS.md. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Homepage Theme */
:root {
    --jr-ink: #2c3e50;
    --jr-muted: #555;
    --jr-paper: #f8f9fa;
    --jr-line: #e9ecef;
    --jr-voice: #47775b;
    --jr-sensory: #456e88;
    --jr-card-radius: 24px;
}

.jr-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.jr-home {
    background: var(--jr-paper);
    -webkit-font-smoothing: antialiased;
}

a:focus-visible {
    outline: 3px solid #477e9c;
    box-shadow: 0 0 0 6px white;
    outline-offset: 5px;
}

/* Hero Section */
.jr-hero {
    background: radial-gradient(ellipse at 85% 0%, #34495e, transparent 65%), #223446;
    color: white;
    padding: 76px 0;
    border-bottom: 4px solid #a6bdc5;
}

.jr-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.jr-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
    margin-bottom: 14px;
    font-weight: 750;
}

.jr-hero .tagline {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #d4dfe7;
    font-weight: 400;
    max-width: 28ch;
}

.jr-profile-image {
    display: block;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.25);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    object-fit: cover;
    flex-shrink: 0;
}

/* Section Styling */
.jr-section {
    padding: 64px 0;
}

.jr-section h2 {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
    color: var(--jr-ink);
}

.jr-about-content {
    max-width: 85ch;
    font-size: 1.08rem;
    line-height: 1.85;
}

.jr-about-content p {
    margin-bottom: 20px;
    color: var(--jr-muted);
}

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

.jr-about-content strong {
    color: var(--jr-ink);
    font-weight: 650;
}

/* Apps Section */
.jr-apps {
    padding-top: 12px;
}

.jr-apps > .jr-container > h2 {
    margin-bottom: 28px;
}

.jr-app-card {
    --jr-accent: var(--jr-voice);
    background: white;
    border-radius: var(--jr-card-radius);
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 8px 28px rgba(44,62,80,0.045);
    border: 1px solid var(--jr-line);
    border-top: 4px solid var(--jr-accent);
}

.jr-app-card-sensory {
    --jr-accent: var(--jr-sensory);
}

.jr-app-card:last-child {
    margin-bottom: 0;
}

.jr-app-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}

.jr-app-icon {
    width: 84px;
    height: 84px;
    border-radius: 19px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.jr-app-title-section {
    min-width: 0;
    overflow-wrap: anywhere;
}

.jr-app-title-section h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: var(--jr-ink);
    margin-bottom: 6px;
}

.jr-app-subtitle {
    color: var(--jr-muted);
    font-size: 0.95rem;
}

.jr-app-description {
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--jr-muted);
    margin-bottom: 24px;
    max-width: 85ch;
}

.jr-app-description strong {
    color: var(--jr-ink);
    font-weight: 650;
}

.jr-app-features {
    background: var(--jr-paper);
    border-radius: 14px;
    padding: 24px;
    margin: 24px 0;
}

.jr-app-features h4 {
    color: var(--jr-ink);
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 700;
}

.jr-app-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 12px;
}

.jr-app-scenes ul {
    grid-template-columns: 1fr;
}

.jr-app-features li {
    color: var(--jr-muted);
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
    line-height: 1.65;
}

.jr-app-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--jr-accent);
    font-weight: 700;
}

.jr-app-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 24px;
    margin-top: 28px;
    border-top: 1px solid var(--jr-line);
    align-items: center;
}

.jr-app-links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.jr-app-store-badge {
    display: block;
    height: 50px;
    width: auto;
    transition: opacity 0.2s ease;
}

.jr-app-store-badge:hover {
    opacity: 0.8;
}

.jr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.jr-btn-primary:hover {
    background: #34495e;
}

.jr-btn-secondary,
.jr-btn-special {
    border: 1px solid #ccd5dc;
    background: white;
    color: var(--jr-ink);
}

.jr-btn-secondary:hover {
    background: var(--jr-ink);
    border-color: var(--jr-ink);
    color: white;
}

/* Contact Section */
.jr-contact {
    background: #223446;
    color: white;
    text-align: center;
}

.jr-contact h2 {
    color: white;
    margin-bottom: 16px;
}

.jr-contact-intro {
    color: #d4dfe7;
    font-size: 1.05rem;
}

.jr-contact-methods {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.jr-contact-item a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 14px 20px;
    transition: background 0.2s ease;
}

.jr-contact-item a:hover {
    background: rgba(255,255,255,0.08);
}

.jr-contact-icon {
    font-size: 1.1rem;
    color: #c1d6df;
}

/* Privacy/Support Page Styles */
.jr-header {
    background: #2c3e50;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.jr-header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.jr-header .meta {
    font-size: 1em;
    opacity: 0.9;
}

.jr-content-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.jr-summary-box {
    background: #f8f9fa;
    border-left: 4px solid #2c3e50;
    padding: 25px;
    margin: 40px 0;
    border-radius: 4px;
}

.jr-summary-box h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.jr-summary-box p {
    font-size: 1.1em;
    color: #555;
    margin: 0;
}

.jr-content-container h2 {
    color: #2c3e50;
    margin: 50px 0 25px 0;
    font-size: 2em;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.jr-content-container h3 {
    color: #34495e;
    margin: 30px 0 15px 0;
    font-size: 1.5em;
}

.jr-content-container p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05em;
}

.jr-content-container ul,
.jr-content-container ol {
    margin: 20px 0 20px 30px;
}

.jr-content-container li {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.7;
}

.jr-content-container strong {
    color: #2c3e50;
    font-weight: 600;
}

.jr-content-container a {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.jr-content-container a:hover {
    border-bottom: 1px solid #2c3e50;
}

.jr-no-collect {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.jr-no-collect ul {
    margin: 10px 0 0 20px;
}

.jr-no-collect li {
    color: #856404;
    font-weight: 500;
}

.jr-back-link {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 30px;
    background: #2c3e50;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jr-back-link:hover {
    background: #34495e;
    transform: translateY(-2px);
    border-bottom: none;
}

.jr-content-container .jr-btn {
    margin-bottom: 40px;
    display: inline-block;
}

.jr-contact-box {
    background: #2c3e50;
    color: white;
    border-radius: 8px;
    padding: 40px;
    margin: 50px 0;
    text-align: left;
}

.jr-contact-box h3 {
    color: white;
    margin: 0 0 20px 0;
    text-align: center;
}

.jr-contact-box strong {
    color: white;
}

.jr-contact-box p {
    color: white;
    opacity: 0.95;
    margin-bottom: 10px;
}

.jr-contact-box a {
    color: white;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.jr-contact-box a:hover {
    border-bottom: 2px solid white;
}

.jr-note-box {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.jr-note-box strong {
    color: #856404;
}

/* Support Page Specific */
.jr-intro-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.jr-intro-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.jr-intro-box p {
    font-size: 1.1em;
    color: #555;
    margin: 0;
}

.jr-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.jr-feature-card {
    background: #f8f9fa;
    border-left: 4px solid #2c3e50;
    padding: 25px;
    border-radius: 4px;
}

.jr-feature-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.jr-feature-card ul {
    margin: 10px 0 0 20px;
}

.jr-feature-card li {
    font-size: 0.95em;
    margin-bottom: 8px;
}

.jr-faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.jr-faq-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.jr-faq-question {
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 12px;
}

.jr-faq-answer {
    color: #555;
    line-height: 1.7;
}

.jr-faq-answer ol,
.jr-faq-answer ul {
    margin: 15px 0 15px 25px;
}

.jr-faq-answer li {
    margin-bottom: 8px;
}

code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .jr-hero {
        padding: 48px 0;
        text-align: center;
    }
    .jr-hero-content {
        flex-direction: column;
        gap: 24px;
    }
    .jr-profile-image {
        width: 128px;
        height: 128px;
    }
    .jr-hero .tagline {
        font-size: 1.1rem;
        margin: 0 auto;
    }
    .jr-section {
        padding: 44px 0;
    }
    .jr-apps {
        padding-top: 0;
    }
    .jr-section h2 {
        font-size: 1.75rem;
    }
    .jr-app-header {
        align-items: flex-start;
        gap: 16px;
    }
    .jr-app-icon {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }
    .jr-app-title-section h3 {
        font-size: 1.45rem;
    }
    .jr-app-card {
        padding: 28px 20px;
        border-radius: 18px;
    }
    .jr-app-features {
        padding: 20px;
    }
    .jr-app-features ul {
        grid-template-columns: 1fr;
    }
    .jr-contact-methods {
        gap: 12px;
    }
    .jr-contact-item a {
        overflow-wrap: anywhere;
    }
    .jr-header h1 {
        font-size: 2em;
    }
    
    .jr-content-container {
        padding: 40px 20px;
    }
    
    .jr-content-container h2 {
        font-size: 1.6em;
    }
    
    .jr-feature-grid {
        grid-template-columns: 1fr;
    }
}

.jr-content-container p {
    overflow: visible !important;
}

/* FREE FOREVER Banner */

.jr-free-banner {
    text-align: center;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 3px solid #28a745;
    border-radius: 12px;
    padding: 25px;
    margin: 24px 0;
}

.jr-free-badge {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 750;
    color: #155724;
    letter-spacing: 0.04em;
}

.jr-free-banner p {
    color: #155724;
    margin: 10px 0 0 0;
    font-size: 1.1em;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jr-free-badge {
        font-size: 1.4rem;
    }
    
    .jr-free-banner {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .jr-app-header {
        flex-direction: column;
    }
    .jr-contact-item a {
        padding: 14px;
    }
}
