/* Days in State - Website Styles */

/* ========== CSS Variables ========== */
:root {
    --color-primary: #0A84FF;
    --color-primary-dark: #0066CC;
    --color-secondary: #0A84FF;
    --color-success: #34C759;
    --color-warning: #FF9500;
    --color-error: #FF3B30;

    --color-bg: #FFFFFF;
    --color-bg-secondary: #F5F5F7;
    --color-bg-tertiary: #E8E8ED;

    --color-text: #1F1F1F;
    --color-text-secondary: #6E6E73;
    --color-text-tertiary: #86868B;

    --color-border: #D2D2D7;

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --max-width: 1200px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-dark);
}

/* ========== Layout ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.25rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), #5AC8FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: #333;
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
}

.apple-icon {
    width: 20px;
    height: 20px;
}

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

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-text);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-cta {
    background: var(--color-text);
    color: var(--color-bg) !important;
    padding: 8px 20px;
    border-radius: var(--radius-xl);
}

.nav-cta:hover {
    background: #333;
}

/* Hamburger Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 8px;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ========== Hero Section ========== */
.hero {
    padding: 140px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

/* App Screenshot */
.hero-screenshot {
    width: 300px;
    height: auto;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
}

/* Phone Mockup (legacy) */
.phone-mockup {
    width: 280px;
    height: 580px;
    background: #1D1D1F;
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    border-radius: 36px;
    overflow: hidden;
}

.app-preview {
    padding: 60px 20px 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-weight: 600;
}

.current-state {
    font-size: 0.875rem;
    color: var(--color-success);
}

.preview-states {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.state-row {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 12px;
}

.state-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.state-bar {
    height: 8px;
    background: var(--color-bg-tertiary);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.state-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--width);
    background: linear-gradient(90deg, var(--color-primary), #5AC8FA);
    border-radius: 4px;
}

/* Logo icon styling */
.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.state-days {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-align: right;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-screenshot {
        width: 240px;
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
    }
}

/* ========== Trust Bar ========== */
.trust-bar {
    background: var(--color-bg-secondary);
    padding: 24px 0;
}

.trust-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.trust-icon {
    font-size: 1.25rem;
}

/* ========== Problem Section ========== */
.problem {
    background: var(--color-bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.problem-card {
    text-align: center;
    padding: 32px 24px;
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.problem-card h3 {
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Features Section ========== */
.features {
    background: var(--color-bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--color-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Privacy Section ========== */
.privacy {
    background: var(--color-text);
    color: var(--color-bg);
}

.privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.privacy h2 {
    text-align: left;
    color: var(--color-bg);
}

.privacy p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}

.privacy-list {
    list-style: none;
    margin-bottom: 24px;
}

.privacy-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
}

.check {
    color: var(--color-success);
    font-weight: bold;
}

.privacy-link {
    color: var(--color-primary);
    font-weight: 500;
}

.privacy-diagram {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.device-box {
    background: rgba(255,255,255,0.1);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    width: 200px;
}

.device-box span {
    font-size: 1.125rem;
    font-weight: 500;
}

.data-label {
    font-size: 0.75rem;
    color: var(--color-success);
    margin-top: 8px;
}

.sync-arrow {
    font-size: 1.5rem;
    color: var(--color-success);
}

.blocked-box {
    background: rgba(255,59,48,0.2);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    width: 200px;
    margin-top: 16px;
}

.blocked-box .data-label {
    color: var(--color-error);
}

@media (max-width: 900px) {
    .privacy-content {
        grid-template-columns: 1fr;
    }

    .privacy h2 {
        text-align: center;
    }

    .privacy p {
        text-align: center;
    }

    .privacy-list {
        max-width: 400px;
        margin: 0 auto 24px;
    }

    .privacy-link {
        display: block;
        text-align: center;
    }
}

/* ========== Pricing Section ========== */
.pricing {
    background: var(--color-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 {
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.pricing-note {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9375rem;
}

.pricing-features li.disabled {
    color: var(--color-text-tertiary);
}

.pricing-card .btn {
    width: 100%;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }
}

/* ========== Download Section ========== */
.download {
    background: var(--color-bg-secondary);
    text-align: center;
}

.app-store-badge {
    display: inline-block;
    margin: 24px 0;
}

.app-store-badge img {
    height: 54px;
}

.download-note {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* ========== Footer ========== */
.footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .logo-icon {
    font-size: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.footer-brand p {
    font-size: 0.875rem;
    max-width: 280px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    padding: 6px 0;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}
