/* OpticoBot Minimalist Design - Shared Styles */

:root {
    --color-ink: #1a1a1a;
    --color-gray-900: #2a2a2a;
    --color-gray-700: #4a4a4a;
    --color-gray-500: #7a7a7a;
    --color-gray-300: #d0d0d0;
    --color-gray-100: #f5f5f5;
    --color-white: #ffffff;
    --color-accent: #2a5caa;

    --font-serif: 'Crimson Pro', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-ink);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-gray-100);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav-link {
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 400;
    transition: color 0.3s var(--ease-out);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-ink);
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 400;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-gray-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-ink);
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--color-ink);
    margin-bottom: 3rem;
}

/* Content Container */
.content-container {
    max-width: 1000px;
    margin: 8rem auto 4rem;
    padding: 0 3rem;
}

/* Footer */
.footer {
    padding: 4rem 3rem;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-100);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 300;
    transition: color 0.3s var(--ease-out);
}

.footer-links a:hover {
    color: var(--color-ink);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1.5rem 2rem;
        gap: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }

    .content-container {
        margin: 6rem auto 3rem;
        padding: 0 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .content-container {
        margin: 5rem auto 2rem;
        padding: 0 1.5rem;
    }
}

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

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-ink);
    outline-offset: 4px;
}

/* Sticky nav buttons - hidden by default until JS determines visibility */
#nav-cta-btn,
#nav-install-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ============================================
   Homepage (index.html) Specific Styles
   ============================================ */

/* Hero Section */
.hero {
    padding: 12rem 3rem 8rem;
    background: var(--color-white);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-ink);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.2s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    font-weight: 300;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.4s forwards;
}

.desktop-only {
    display: inline;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.6s forwards;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--color-gray-300);
}

/* Only animate the hero CTA button, not the nav button */
#hero-cta-btn {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.8s forwards;
}

/* Benefits Section */
.benefits {
    padding: 8rem 3rem;
    background: var(--color-gray-100);
}

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

.benefit {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) forwards;
}

.benefit:nth-child(1) { animation-delay: 0.1s; }
.benefit:nth-child(2) { animation-delay: 0.2s; }
.benefit:nth-child(3) { animation-delay: 0.3s; }

.benefit-number {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    color: var(--color-gray-300);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.benefit-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.benefit-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    font-weight: 300;
}

/* Video Section */
.video-section {
    padding: 8rem 3rem;
    background: var(--color-white);
}

.video-container-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-embed {
    border: 1px solid var(--color-gray-300);
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
}

.video-embed:hover {
    border-color: var(--color-gray-500);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* Testimonial Section */
.testimonial-section {
    padding: 8rem 3rem;
    background: var(--color-gray-100);
}

.testimonial-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-ink);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.testimonial-author {
    margin-bottom: 1rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-ink);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    font-weight: 300;
}

.testimonial-rating {
    font-size: 1.25rem;
    color: var(--color-ink);
    letter-spacing: 0.2em;
}

/* CTA Section */
.cta-section {
    padding: 10rem 3rem;
    background: var(--color-white);
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    font-weight: 300;
    margin-bottom: 3rem;
}

.cta-note {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    font-weight: 300;
}

/* Responsive Design - Homepage */
@media (max-width: 768px) {
    .hero {
        padding: 8rem 2rem 6rem;
    }

    .desktop-only {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .benefits,
    .video-section,
    .testimonial-section,
    .cta-section {
        padding: 6rem 2rem;
    }

    .benefits-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testimonial-quote {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 7rem 1.5rem 5rem;
    }

    .benefits,
    .video-section,
    .testimonial-section,
    .cta-section {
        padding: 5rem 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* ============================================
   Getting Started (gettingstarted.html) Styles
   ============================================ */

.step {
    margin-bottom: 6rem;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }
.step:nth-child(6) { animation-delay: 0.6s; }

.step-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    color: var(--color-gray-300);
    line-height: 1;
    letter-spacing: -0.02em;
    min-width: auto;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    line-height: 1.2;
}

.step-content {
    margin-left: 4.5rem;
}

.step-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    font-weight: 300;
    margin-bottom: 2rem;
}

.step-description a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gray-300);
    transition: border-color 0.3s var(--ease-out);
}

.step-description a:hover {
    border-color: var(--color-accent);
}

.step-note {
    color: #c14545;
    font-size: 0.938rem;
    margin-top: 1rem;
    font-weight: 400;
}

.step-image {
    margin-top: 2rem;
    border: 1px solid var(--color-gray-300);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s var(--ease-out);
}

.step-image:hover {
    border-color: var(--color-gray-500);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.step-image img {
    display: block;
    width: 100%;
    height: auto;
}

.step-image + .step-image {
    margin-top: 3rem;
}

.cta-wrapper {
    text-align: center;
    margin-top: 4rem;
}

/* Modal (shared across pages) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal.open {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: var(--color-white);
    cursor: pointer;
    font-weight: 300;
    z-index: 10000;
    background: none;
    border: none;
    line-height: 1;
}

.modal-caption {
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    max-width: 90vw;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.modal img {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

/* Responsive - Getting Started */
@media (max-width: 768px) {
    .step {
        margin-bottom: 4rem;
    }

    .step-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-content {
        margin-left: 0;
    }

    .modal-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }
}

/* ============================================
   Tips (tips.html) Styles
   ============================================ */

.intro-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    font-weight: 300;
    text-align: center;
    margin-bottom: 6rem;
}

.intro-text a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gray-300);
    transition: border-color 0.3s var(--ease-out);
}

.intro-text a:hover {
    border-color: var(--color-accent);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 6rem;
    margin-bottom: 4rem;
}

.tip-section {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.tip-section:nth-child(1) { animation-delay: 0.1s; }
.tip-section:nth-child(2) { animation-delay: 0.2s; }

.tip-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tip-number {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    color: var(--color-gray-300);
    line-height: 1;
    letter-spacing: -0.02em;
}

.tip-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    line-height: 1.2;
}

.tip-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.tip-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    font-weight: 300;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.tip-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-gray-500);
    font-size: 1.5rem;
    line-height: 1.4;
}

.tip-image {
    border: 1px solid var(--color-gray-300);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s var(--ease-out);
}

.tip-image:hover {
    border-color: var(--color-gray-500);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.tip-image img {
    display: block;
    width: 100%;
    height: auto;
}

.tip-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Responsive - Tips */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* ============================================
   Plan Comparison (plancomparison.html) Styles
   ============================================ */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-gray-100);
}

.comparison-table thead th {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-ink);
    text-align: center;
    border-bottom: 1px solid var(--color-gray-300);
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.feature-name {
    font-size: 1rem;
    color: var(--color-ink);
    font-weight: 400;
}

.feature-note {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    font-weight: 300;
    margin-top: 0.25rem;
    font-style: italic;
}

.comparison-table td {
    text-align: center;
    font-size: 1rem;
    color: var(--color-gray-700);
}

.comparison-table td:first-child {
    text-align: left;
}

.check {
    color: #2d7a3e;
    font-size: 1.5rem;
    font-weight: 300;
}

.cross {
    color: #c14545;
    font-size: 1.5rem;
    font-weight: 300;
}

.note-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    font-weight: 300;
    margin-bottom: 3rem;
}

.note-text strong {
    font-weight: 500;
    color: var(--color-ink);
}

/* Responsive - Plan Comparison */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.75rem;
    }

    .comparison-table thead th {
        font-size: 1rem;
    }
}

/* ============================================
   Privacy (privacy.html) Styles
   ============================================ */

.privacy-section {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.privacy-section:nth-child(1) { animation-delay: 0.1s; }
.privacy-section:nth-child(2) { animation-delay: 0.2s; }
.privacy-section:nth-child(3) { animation-delay: 0.3s; }
.privacy-section:nth-child(4) { animation-delay: 0.4s; }
.privacy-section:nth-child(5) { animation-delay: 0.5s; }
.privacy-section:nth-child(6) { animation-delay: 0.6s; }
.privacy-section:nth-child(7) { animation-delay: 0.7s; }
.privacy-section:nth-child(8) { animation-delay: 0.8s; }

.privacy-section h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.privacy-section p,
.privacy-section li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    font-weight: 300;
    margin-bottom: 1rem;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-section li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.privacy-section li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-gray-500);
    font-size: 1.5rem;
    line-height: 1.4;
}

.privacy-section strong {
    font-weight: 500;
    color: var(--color-ink);
}

.privacy-section a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--color-gray-300);
    transition: border-color 0.3s var(--ease-out);
}

.privacy-section a:hover {
    border-color: var(--color-accent);
}

.last-updated {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    font-weight: 300;
    margin: 4rem 0 2rem;
}
