/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Selah App Colors - From Figma Design */
    --primary-color: #4f8375;
    --accent-color: #6f4525;
    --accent-light: #8c674b;
    --accent-lightest: #ad7e56;
    --text-color: #684022;
    --secondary-text: #8c674b;
    --background: #f8f3ee;
    --card-background: #fbf7f4;
    --border-color: #f1e1d5;
    --shadow-color: rgba(111, 69, 37, 0.08);
    --divider-color: #f1e1d5;
    --buttons-secondary: #cfb39c;

    /* Gradients */
    --gradient-bg: linear-gradient(135deg, #f8f3ee 0%, #f1e1d5 100%);
    --card-gradient: linear-gradient(135deg, #fbf7f4 0%, #f8f3ee 100%);
    --hero-gradient: radial-gradient(
        circle at 50% 30%,
        rgba(79, 131, 117, 0.06) 0%,
        transparent 70%
    );

    /* Typography */
    --font-body:
        "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    --font-display:
        "Gambarino", "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;

    /* Spacing */
    --spacing-small: 8px;
    --spacing-medium: 16px;
    --spacing-large: 24px;
    --spacing-xl: 32px;

    /* Border radius */
    --border-radius: 12px;
    --border-radius-large: 16px;
    --border-radius-xl: 20px;

    /* Shadows */
    --shadow-light:
        0 1px 3px rgba(111, 69, 37, 0.06), 0 1px 2px rgba(111, 69, 37, 0.08);
    --shadow-medium:
        0 4px 8px rgba(111, 69, 37, 0.06), 0 2px 4px rgba(111, 69, 37, 0.08);
    --shadow-strong:
        0 10px 20px rgba(111, 69, 37, 0.08), 0 4px 8px rgba(111, 69, 37, 0.12);
    --shadow-hover:
        0 8px 25px rgba(111, 69, 37, 0.08), 0 3px 10px rgba(111, 69, 37, 0.12);

    --max-width: 1200px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4f8375;
        --accent-color: #dcc8b7;
        --accent-light: #c8b6a7;
        --accent-lightest: #a28a76;
        --text-color: #e1d0c1;
        --secondary-text: #c8b6a7;
        --background: #2f261e;
        --card-background: #2c231c;
        --border-color: #4e3f32;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --divider-color: #4e3f32;
        --buttons-secondary: #89715d;

        --gradient-bg: linear-gradient(135deg, #2f261e 0%, #4e3f32 100%);
        --card-gradient: linear-gradient(135deg, #2c231c 0%, #2f261e 100%);
    }
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--gradient-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
nav {
    background: var(--card-background);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-large) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-light);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover .logo-image {
    transform: scale(1.02);
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: var(--spacing-small) var(--spacing-medium);
    border-radius: var(--border-radius);
}

.nav-links a:hover {
    color: var(--accent-color);
    background: rgba(79, 131, 117, 0.08);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-gradient);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-image: url("images/background-olive-tree.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-large);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.hero-icon:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 400;
    margin-bottom: var(--spacing-large);
    color: var(--primary-color);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: var(--spacing-large);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.description {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    color: var(--secondary-text);
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: calc(var(--spacing-medium) * 1.2) calc(var(--spacing-xl) * 1.4);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    background: var(--accent-light);
    letter-spacing: 0.3px;
}

.mac-app-store-badge {
    display: inline-block;
    margin-top: var(--spacing-large);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mac-app-store-badge:hover {
    transform: translateY(-2px);
}

.mac-app-store-badge img {
    height: 40px;
    width: auto;
}

.availability {
    margin-top: var(--spacing-medium);
    color: var(--secondary-text);
    font-style: italic;
    font-size: 14px;
}

/* Features Section */
.features {
    padding: 80px 0 100px;
    background: var(--card-background);
}

.features h2 {
    font-family: var(--font-display);
    text-align: center;
    font-size: 38px;
    font-weight: 400;
    margin-bottom: var(--spacing-large);
    color: var(--primary-color);
    letter-spacing: -0.005em;
}

.features-intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.feature-number {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-large);
    box-shadow: var(--shadow-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-xl) * 1.5);
    max-width: 1100px;
    margin: 0 auto;
}

.feature {
    padding: calc(var(--spacing-xl) * 1.2);
    background: var(--card-gradient);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-lightest);
}

.feature h3 {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-medium);
    color: var(--primary-color);
    letter-spacing: 0.1px;
}

.feature p {
    color: var(--secondary-text);
    line-height: 1.6;
}

/* App Preview Section */
.app-preview {
    padding: 80px 0 100px;
    background: var(--card-background);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-preview::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-image: url("images/background-olive-tree.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}

.app-preview .container {
    position: relative;
    z-index: 2;
}

.app-preview h2 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    margin-bottom: 60px;
    color: var(--primary-color);
    letter-spacing: -0.005em;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-medium);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.screenshot-item img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.screenshot-caption {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-text);
    text-align: center;
    margin: 0;
}

/* Origin Story Section */
.origin-story {
    padding: 80px 0;
    background: var(--card-background);
}

.origin-story h2 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    letter-spacing: -0.005em;
}

.story-intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--secondary-text);
    max-width: 800px;
    margin: 0 auto var(--spacing-large);
    text-align: center;
}

.solution-highlight {
    background: var(--card-gradient);
    padding: calc(var(--spacing-xl) * 1.5);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    margin: 40px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.solution-highlight h3 {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-large);
    text-align: center;
}

.coaching-examples {
    margin: var(--spacing-xl) 0;
}

.coaching-note {
    background: rgba(79, 131, 117, 0.08);
    padding: var(--spacing-large);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-medium);
    border-left: 4px solid var(--primary-color);
}

.coaching-note strong {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: var(--spacing-small);
}

.coaching-note span {
    color: var(--secondary-text);
    font-style: italic;
    font-size: 14px;
}

.solution-result {
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* Wisdom & Science Grid */
.wisdom-science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin: 40px 0;
}

.wisdom-card,
.science-card {
    background: var(--card-gradient);
    padding: calc(var(--spacing-xl) * 1.2);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    text-align: left;
}

.wisdom-card h3,
.science-card h3 {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-medium);
}

.science-benefits {
    list-style: none;
    padding: 0;
}

.science-benefits li {
    margin-bottom: var(--spacing-medium);
    color: var(--secondary-text);
    line-height: 1.6;
}

.science-benefits strong {
    color: var(--text-color);
    font-weight: 600;
}

.scripture-reference {
    background: rgba(79, 131, 117, 0.06);
    padding: var(--spacing-medium);
    border-radius: var(--border-radius);
    margin-top: var(--spacing-medium);
    border-left: 3px solid var(--accent-light);
}

.section-conclusion {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
    font-weight: 500;
}

/* Impact Section */
.impact-section {
    padding: 80px 0;
    background: var(--gradient-bg);
}

.impact-section h2 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    letter-spacing: -0.005em;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.impact-item {
    background: var(--card-gradient);
    padding: calc(var(--spacing-xl) * 1.2);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.impact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.impact-item h3 {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-medium);
}

.impact-item p {
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Story Page Styles */
.story-page {
    padding: 0 0 80px 0;
    background: var(--gradient-bg);
    min-height: calc(100vh - 200px);
}

.story-header {
    text-align: center;
    padding: 60px 0 80px 0;
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
}

.story-header h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: var(--spacing-large);
    letter-spacing: -0.01em;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.story-subtitle {
    font-size: 20px;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
    font-style: italic;
}

.story-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-large);
    font-size: 14px;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px var(--spacing-large) 0;
}

.story-intro {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
    text-align: center;
}

.story-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: var(--primary-color);
    margin: 60px 0 var(--spacing-large) 0;
    letter-spacing: -0.005em;
    line-height: 1.3;
}

.story-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-large);
}

.story-examples {
    background: var(--card-gradient);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    margin: var(--spacing-xl) 0;
}

.example-item {
    margin-bottom: var(--spacing-large);
    padding: var(--spacing-medium);
    background: rgba(79, 131, 117, 0.06);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.example-item:last-child {
    margin-bottom: 0;
}

.example-item strong {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: var(--spacing-small);
}

.example-item span {
    color: var(--secondary-text);
    font-style: italic;
    font-size: 16px;
}

.story-features {
    background: var(--card-gradient);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    margin: var(--spacing-xl) 0;
}

.story-features li {
    color: var(--secondary-text);
    margin-bottom: var(--spacing-medium);
    line-height: 1.6;
}

.story-features li:last-child {
    margin-bottom: 0;
}

.story-emphasis {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-large);
    background: var(--card-gradient);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
}

.scripture-quote {
    background: var(--card-gradient);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    margin: var(--spacing-xl) 0;
    border-left: 4px solid var(--accent-light);
}

.scripture-quote p {
    font-size: 18px;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: var(--spacing-medium);
}

.scripture-quote cite {
    display: block;
    text-align: right;
    font-size: 14px;
    color: var(--secondary-text);
    font-style: normal;
    font-weight: 600;
}

.story-cta {
    background: var(--card-gradient);
    color: var(--text-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    margin: 60px 0 0 0;
    text-align: left;
    box-shadow: var(--shadow-light);
}

.story-cta p {
    color: var(--secondary-text);
    margin: 0 0 var(--spacing-large) 0;
}

.story-cta a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.story-cta a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.story-footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px var(--spacing-large) 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    background: transparent;
}

.story-footer h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0 0 var(--spacing-xl) 0;
    letter-spacing: -0.005em;
}

.references {
    background: var(--card-gradient);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    text-align: left;
}

.references p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--secondary-text);
    margin-bottom: var(--spacing-medium);
    padding-left: var(--spacing-medium);
    text-indent: calc(var(--spacing-medium) * -1);
}

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

.references a {
    color: var(--accent-color);
    text-decoration: none;
}

.references a:hover {
    text-decoration: underline;
}

/* Footnote Styles */
.footnote-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 2px;
}

.footnote-link:hover {
    text-decoration: underline;
}

.footnote-link sup {
    font-size: 0.75em;
    font-weight: 600;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: var(--spacing-small);
    font-size: 16px;
}

.back-link:hover {
    text-decoration: underline;
}

.references p {
    position: relative;
    scroll-margin-top: 80px;
}

.story-content p {
    scroll-margin-top: 80px;
}

/* Newsletter Form Styles */
.newsletter-form {
    margin-top: var(--spacing-large);
}

.newsletter-form h3 {
    color: var(--primary-color);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 var(--spacing-medium) 0;
    text-align: left;
}

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

.form-group label {
    display: block;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-small);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="email"] {
    width: 100%;
    padding: var(--spacing-medium);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--card-background);
    color: var(--text-color);
    font-size: 16px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-background);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.form-group input[type="email"]::placeholder {
    color: var(--secondary-text);
}

.checkbox-group {
    margin-bottom: var(--spacing-xl);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-small);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background: var(--card-background);
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: "✓";
    display: block;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    line-height: 14px;
}

.checkbox-text {
    color: var(--secondary-text);
    font-size: 14px;
    line-height: 1.5;
}

.newsletter-submit {
    width: 100%;
    padding: var(--spacing-medium) var(--spacing-large);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-light);
}

.newsletter-submit:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.newsletter-submit:active {
    transform: translateY(0);
}

/* Form Error States */
.form-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: var(--spacing-small);
    display: none;
}

.form-error.show {
    display: block;
}

.form-group input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 1px #dc3545;
}

/* Form Success States */
.form-success {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: var(--spacing-small);
    display: none;
}

.form-success.show {
    display: block;
}

/* Newsletter Consent Styles */
.newsletter-consent {
    text-align: center;
    margin-top: var(--spacing-large);
}

.newsletter-enable-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: var(--spacing-medium) var(--spacing-large);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-enable-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.newsletter-enable-btn:focus {
    outline: none;
    box-shadow:
        0 0 0 2px white,
        0 0 0 4px var(--primary-color);
}

.newsletter-enable-btn:active {
    transform: translateY(0);
}

.consent-description {
    font-size: 12px;
    color: var(--secondary-text);
    margin-top: var(--spacing-medium);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.newsletter-form-container {
    margin-top: var(--spacing-large);
    padding: var(--spacing-large);
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.consent-notice {
    margin-bottom: var(--spacing-large);
    padding: var(--spacing-medium);
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.consent-notice p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

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

.consent-notice a:hover {
    text-decoration: underline;
}

.newsletter-cancel-btn {
    display: block;
    margin: var(--spacing-medium) auto 0;
    padding: var(--spacing-small) var(--spacing-medium);
    background: transparent;
    color: var(--secondary-text);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-cancel-btn:hover {
    background: var(--background-color);
    color: var(--text-color);
}

.newsletter-cancel-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Screen Reader Only Content */
.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;
}

/* Fieldset Styling */
fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-large);
    margin-bottom: var(--spacing-large);
}

fieldset legend {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 var(--spacing-small);
}

/* Confirmation Page Styles */
.confirmation-page {
    padding: 60px 0 80px 0;
    background: var(--gradient-bg);
    min-height: calc(100vh - 200px);
}

.confirmation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-icon {
    margin-bottom: var(--spacing-xl);
}

.confirmation-icon img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

.confirmation-page h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: var(--spacing-large);
    letter-spacing: -0.01em;
}

.confirmation-message {
    font-size: 18px;
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 60px;
}

.next-steps {
    margin-bottom: 60px;
}

.next-steps h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 40px;
    letter-spacing: -0.005em;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: 40px;
}

.step-item {
    background: var(--card-gradient);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

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

.step-item h3 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 var(--spacing-small) 0;
}

.step-item p {
    color: var(--secondary-text);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.confirmation-actions {
    display: flex;
    gap: var(--spacing-medium);
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    padding: var(--spacing-medium) var(--spacing-large);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    display: inline-block;
}

.primary-button {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.primary-button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.secondary-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.social-share {
    background: var(--card-gradient);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.social-share h3 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 var(--spacing-small) 0;
}

.social-share p {
    color: var(--secondary-text);
    font-size: 14px;
    margin: 0 0 var(--spacing-large) 0;
}

.share-buttons {
    display: flex;
    gap: var(--spacing-medium);
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    padding: var(--spacing-small) var(--spacing-medium);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.share-button.twitter {
    background: #1da1f2;
    color: white;
}

.share-button.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-1px);
}

.share-button.linkedin {
    background: #0077b5;
    color: white;
}

.share-button.linkedin:hover {
    background: #006396;
    transform: translateY(-1px);
}

/* About Section */
.about-section {
    padding: 80px 0 100px;
    background: var(--gradient-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-image: url("images/background-olive-tree.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-section h2 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    letter-spacing: -0.005em;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto var(--spacing-large);
    font-size: 18px;
    color: var(--secondary-text);
    line-height: 1.7;
}

/* Content Pages */
.content-page {
    padding: 60px 0 100px;
    min-height: calc(100vh - 200px);
    background: var(--gradient-bg);
}

.content-page h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    letter-spacing: -0.005em;
}

.content-page h2 {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 var(--spacing-large);
    color: var(--primary-color);
    letter-spacing: -0.002em;
}

.content-page h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 var(--spacing-medium);
    color: var(--accent-color);
}

.content-page h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 var(--spacing-small);
    color: var(--text-color);
}

.content-page p {
    margin-bottom: var(--spacing-medium);
    line-height: 1.7;
    color: var(--secondary-text);
}

.content-page ul,
.content-page ol {
    margin: var(--spacing-medium) 0 var(--spacing-medium) 30px;
    color: var(--secondary-text);
}

.content-page li {
    margin-bottom: var(--spacing-small);
    line-height: 1.6;
}

.content-page a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.content-page a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.last-updated {
    color: var(--secondary-text);
    font-style: italic;
    font-size: 14px;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-small) var(--spacing-medium);
    background: var(--card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: inline-block;
}

/* Card Components */
.contact-box {
    background: var(--card-gradient);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    margin: var(--spacing-xl) 0;
}

.contact-box h2 {
    color: var(--primary-color);
    margin: 0 0 var(--spacing-medium) 0;
}

.contact-box p {
    color: var(--text-color);
}

/* FAQ Items */
.faq-item {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-large);
    background: var(--card-gradient);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.faq-item h4 {
    color: var(--primary-color);
    margin: 0 0 var(--spacing-medium) 0;
}

.faq-item p,
.faq-item ul,
.faq-item ol {
    color: var(--text-color);
}

/* About Page Specific */
.about-intro {
    background: var(--card-gradient);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-xl);
}

.about-intro h2 {
    color: var(--primary-color);
    margin: 0 0 var(--spacing-large) 0;
}

.about-intro p {
    color: var(--text-color);
}

.story-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    margin-top: var(--spacing-small);
    padding: var(--spacing-small) var(--spacing-medium);
    background: rgba(79, 131, 117, 0.08);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.story-link:hover {
    background: rgba(79, 131, 117, 0.12);
    transform: translateX(2px);
}

.philosophy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.philosophy-item {
    padding: calc(var(--spacing-xl) * 1.2);
    background: var(--card-gradient);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.philosophy-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.philosophy-item h3 {
    color: var(--primary-color);
    margin: 0 0 var(--spacing-medium) 0;
    font-size: 22px;
    font-weight: 600;
}

.philosophy-item p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin: 0;
}

.contact-developer {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-large);
    margin: var(--spacing-xl) 0;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.contact-developer h2 {
    color: white;
    margin: 0 0 var(--spacing-medium) 0;
}

.contact-developer p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-developer a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.contact-developer a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin-top: auto;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-large);
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: var(--spacing-small) var(--spacing-medium);
    border-radius: var(--border-radius);
}

.footer-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-medium);
    }

    .hero h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 21px;
    }

    .nav-links {
        gap: var(--spacing-medium);
    }

    .nav-links a {
        padding: var(--spacing-small);
        font-size: 14px;
    }

    .logo-image {
        height: 36px;
    }

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

    .philosophy-points {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-large);
    }

    .wisdom-science-grid {
        grid-template-columns: 1fr;
    }

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

    .origin-story,
    .impact-section {
        padding: 60px 0;
    }

    .hero-icon {
        width: 64px;
        height: 64px;
    }

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

    .hero {
        padding: 60px 0 80px;
        min-height: 70vh;
    }

    .hero::after {
        opacity: 0.12;
    }

    .about-section::before {
        opacity: 0.06;
    }

    .app-preview::after {
        opacity: 0.04;
    }

    .features,
    .about-section {
        padding: 60px 0 80px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 30px;
    }

    .subtitle {
        font-size: 19px;
    }

    .description {
        font-size: 16px;
    }

    .content-page h1 {
        font-size: 28px;
    }

    .content-page h2 {
        font-size: 24px;
    }

    .feature,
    .faq-item,
    .contact-box,
    .about-intro {
        padding: var(--spacing-large);
    }

    .hero-icon {
        width: 56px;
        height: 56px;
    }

    .app-preview {
        padding: 60px 0 80px;
    }

    .app-preview h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .origin-story h2,
    .impact-section h2 {
        font-size: 32px;
    }

    .solution-highlight,
    .wisdom-card,
    .science-card,
    .impact-item {
        padding: var(--spacing-large);
    }

    .coaching-note {
        padding: var(--spacing-medium);
    }

    .story-header h1 {
        font-size: 34px;
    }

    .story-subtitle {
        font-size: 18px;
    }

    .story-content h2 {
        font-size: 28px;
    }

    .story-meta {
        flex-direction: column;
        gap: var(--spacing-small);
    }

    .story-examples,
    .story-features,
    .story-emphasis,
    .scripture-quote,
    .story-cta,
    .references {
        padding: var(--spacing-large);
    }

    .example-item {
        padding: var(--spacing-medium);
    }

    .hero::after,
    .about-section::before,
    .app-preview::after {
        opacity: 0.08;
    }

    .hero {
        min-height: 60vh;
    }

    .logo-image {
        height: 32px;
    }

    .story-header h1 {
        font-size: 28px;
    }

    .story-intro {
        font-size: 20px;
    }

    .story-content {
        padding: 40px var(--spacing-medium) 0;
    }

    .story-footer {
        padding: 40px var(--spacing-medium) 0;
    }

    .story-content h2 {
        font-size: 24px;
        margin: 40px 0 var(--spacing-medium) 0;
    }

    .confirmation-page h1 {
        font-size: 32px;
    }

    .next-steps h2 {
        font-size: 28px;
    }

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

    .confirmation-actions {
        flex-direction: column;
        align-items: center;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-button {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip Navigation Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 1px var(--accent-color);
}

/* High contrast focus for critical elements */
.cta-button:focus,
.newsletter-submit:focus,
.primary-button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    box-shadow:
        0 0 0 1px #ffffff,
        0 0 0 4px var(--accent-color);
}

/* Focus visible for modern browsers */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    footer {
        display: none;
    }

    .hero {
        background: none;
        padding: 20px 0;
    }

    .content-page {
        padding: 0;
    }

    a {
        text-decoration: underline;
    }
}
