@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* APPLE DESIGN SYSTEM - LIGHT THEME */
:root {
    --bg-white: #FFFFFF;
    --bg-light: #FFFAFA;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --accent-blue: #0071E3;
    --accent-blue-hover: #0077ED;
    --accent-green: #30D158;
    --accent-red: #FF3B30;
    --accent-dark-green: #15803d;
    --shadow-apple: 0 4px 10px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0em;
}

/* UTILITIES */
.container { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 700px; }
.bg-white { background-color: var(--bg-white); }
.bg-grey { background-color: var(--bg-grey); }
.bg-light { background-color: var(--bg-light); }
.center-text { text-align: center; }
.overflow-hidden { overflow: hidden; }

/* TYPOGRAPHY */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; }
p { color: var(--text-secondary); font-size: 19px; font-weight: 400; line-height: 1.4; letter-spacing: 0em; }

.section-title { font-size: 54px; margin-bottom: 16px; text-align: center; letter-spacing: -0.03em; }

.section-desc { font-size: 21px; max-width: 640px; margin: 0 auto 40px; text-align: center;letter-spacing: -0.02em;}

/* CINEMATIC TEXT STYLES */
.cinematic-section {
    position: relative;
    /* overflow: hidden; Removed to allow text to zoom freely */
}

.cinematic-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100vh; /* Force full viewport height for centering */
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through if needed, though usually pinned */
    overflow: visible;
}

.cinematic-text {
    font-size: 4rem; /* Initial size matching JS */
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    width: max-content;
    white-space: nowrap;
    max-width: none;
    padding: 0 20px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    opacity: 0; /* Hidden by default, handled by GSAP */
    transform-origin: center center;
}

/* Ensure content is hidden initially for the reveal */
.section-content {
    opacity: 0;
}

/* NAVIGATION */
.nav-bar {
    position: fixed; top: 0; width: 100%; height: 52px;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-content {
    max-width: 1024px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.nav-logo { font-weight: 600; font-size: 20px; color: var(--text-primary); text-decoration: none; }
.nav-links a {
    font-size: 12px; color: var(--text-secondary); text-decoration: none; margin: 0 16px;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--accent-blue); }
.nav-btn {
    background: var(--text-primary); color: #fff; padding: 4px 14px; border-radius: 99px;
    font-size: 12px; text-decoration: none; transition: opacity 0.2s;
    letter-spacing: 0.02em;
}
.nav-btn:hover { opacity: 0.8; }
.nav-back {
    font-size: 14px; color: var(--text-secondary); text-decoration: none;
    transition: color 0.2s;
}
.nav-back:hover { color: var(--text-primary); }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    text-align: center;
    background: var(--bg-grey);
}

.section { padding: 120px 0; }

.intro-section {
    padding-top: 280px;
    padding-bottom: 40px;
    background: var(--bg-grey);
    text-align: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    line-height: 0;
    pointer-events: none;
}

.hero-visual video {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-content {
    width: 100%;
    z-index: 2;
}

.hero-headline {
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

@media(max-width: 500px){
    .hero-subtext {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 24px;
}
}
@media(min-width: 501px) and (max-width: 1200px){
    .hero-subtext {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 24px;
}
}
@media(min-width: 1201px){
    .hero-subtext {
    font-size: 22px;
    max-width: 700px;
    margin: 0 auto 24px;
}
}
.hero-credibility {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-visual-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.visual-reveal-section {
    padding: 80px 0 120px;
    background: var(--bg-grey);
}

.hero-mockup {
    width: 800px; height: 500px; background: #fff;
    border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    width: 800px; height: 500px; background: #FFFFFF;
    border-radius: 24px; box-shadow: var(--shadow-apple);
    border: 1px solid rgba(0,0,0,0.05); overflow: hidden; position: relative;
}

.screen-content { padding: 40px; height: 100%; display: flex; flex-direction: column; }

.ui-header { font-size: 24px; font-weight: 600; margin-bottom: 40px; text-align: center; }

.widget-progress-container {
    flex: 1;
    width: 100%;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}
.widget-progress-svg {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.ui-caption {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.ui-stats { display: flex; gap: 20px; }

.ui-stat-box {
    flex: 1; background: var(--bg-grey); padding: 20px; border-radius: 16px; text-align: center;
    flex: 1; background: #F5F5F7; padding: 20px; border-radius: 16px; text-align: center;
}
.ui-stat-box span { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.ui-stat-box strong { font-size: 28px; font-weight: 600; }

.section-transition {
    font-size: 19px;
    color: var(--text-primary);
    margin-top: 20px;
    font-weight: 500;
}

/* PROBLEM GRID */
.grid-3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px;
}
.info-tile {
    background: var(--bg-white); padding: 40px 30px; border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); text-align: center;
    background: #FFFFFF; padding: 40px 30px; border-radius: 24px;
    box-shadow: var(--shadow-apple); text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-tile:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.info-tile:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(0,0,0,0.12); }
.tile-icon { font-size: 40px; margin-bottom: 20px; }
.info-tile h3 { font-size: 24px; margin-bottom: 12px; }
.info-tile p { font-size: 17px; }

/* Solution Section */
.row-layout { display: flex; align-items: center; gap: 80px; }
.content-side { flex: 1; text-align: center; }
.visual-side { flex: 1; display: flex; justify-content: center; }
.feature-list { list-style: none; margin-top: 30px; display: inline-block; text-align: left; }
.feature-list li {
    font-size: 19px; color: var(--text-primary); margin-bottom: 12px;
    padding-left: 24px; position: relative;
}
.feature-list li::before {
    content: "•"; color: var(--accent-blue); position: absolute; left: 0; font-weight: bold;
}

.abstract-ui-panel {
    width: 360px; height: 460px; background: var(--bg-white);
    border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.12); padding: 30px;
    width: 360px; height: 460px; background: #FFFFFF;
    border-radius: 24px; box-shadow: var(--shadow-apple); padding: 30px;
    display: flex; flex-direction: column;
}
.panel-header { font-weight: 600; margin-bottom: 20px; text-align: center; }

.widget-insight-split {
    display: flex;
    flex: 1;
    gap: 20px;
}

.insight-col { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.insight-col.left { border-right: 1px solid #000000; padding-right: 20px; }
.insight-col.right { padding-left: 10px; }

.insight-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.insight-bar-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.insight-bar-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.insight-bar { height: 6px; background: var(--bg-grey); border-radius: 3px; width: 100%; overflow: hidden; }
.bar-fill { height: 100%; background: #8E8E93; border-radius: 3px; }

.insight-status { font-size: 14px; color: var(--text-secondary); font-weight: 500; margin-top: auto; }
.insight-status.optimistic { color: var(--accent-green); }

.insight-curve-svg { width: 100%; height: 100px; }
.insight-curve-path { stroke-dasharray: 200; stroke-dashoffset: 200; }

/* Features Section */
.clarity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}
.clarity-card {
    background: #FFFFFF; border-radius: 28px; padding: 40px;
    position: relative; overflow: hidden; box-shadow: var(--shadow-apple);
    display: flex; flex-direction: column;
}
.clarity-card:hover { box-shadow: 0 25px 50px rgba(0,0,0,0.12); }
.clarity-card.large { grid-column: span 3; }
.clarity-card.medium { grid-column: span 2; }
.clarity-card.small { grid-column: span 1; }

.card-header { margin-bottom: 24px; }
.card-header h3 { font-size: 24px; margin-bottom: 6px; }
.card-header p { font-size: 15px; color: var(--text-secondary); }

/* Widget 2: Task Completion Rate */
.task-header { font-weight: 700; font-size: 18px; color: #1D1D1F; margin-bottom: 20px; text-align: left; }
.task-main { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 20px; gap: 16px; }
.task-text-block { font-size: 15px; color: #4B5563; font-weight: 500; text-align: center; }
.task-chart-block { position: relative; width: 120px; height: 120px; }
.task-donut-svg { width: 100%; height: 100%; }
.task-center-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.task-percent { font-size: 28px; font-weight: 700; color: #1D1D1F; line-height: 1; }
.task-label { font-size: 12px; font-weight: 500; color: #1E3A8A; }
.task-footer { margin-top: auto; }
.task-divider { height: 1px; background-color: #E5E7EB; width: 100%; margin-bottom: 12px; }
.task-footer-text { font-size: 13px; color: #9CA3AF; text-align: left; }

/* Widget: Growth Over Weeks */
.widget-growth-weeks {
    background: linear-gradient(to bottom right, #F0F9FF, #FFFFFF); /* Light blue-gray gradient hint */
}
.growth-header { font-weight: 700; font-size: 24px; color: #1D1D1F; margin-bottom: 30px; text-align: left; }
.growth-chart-area { width: 100%; height: 250px; margin-bottom: 30px; }
.growth-chart-svg { width: 100%; height: 100%; overflow: visible; }
.growth-label { font-size: 12px; fill: #6B7280; font-weight: 500; }
.growth-stats-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.growth-stat-block { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: center; }
.stat-icon {
    width: 40px; height: 40px; background-color: #DBEAFE; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #1E3A8A;
}
.stat-text { display: flex; flex-direction: column; align-items: flex-start; }
.stat-label { font-size: 12px; color: #6B7280; font-weight: 500; }
.stat-value { font-size: 20px; font-weight: 700; color: #1D1D1F; }
.stat-divider { width: 1px; height: 40px; background-color: #E5E7EB; }
.growth-footer { text-align: center; font-size: 14px; color: #9CA3AF; margin-top: 20px; }

/* Responsive adjustments for Growth Widget */
@media (max-width: 768px) {
    .growth-stats-row { flex-direction: column; gap: 20px; align-items: flex-start; }
    .growth-stat-block { justify-content: flex-start; width: 100%; }
    .stat-divider { display: none; }
}

/* Widget 3: Time vs Improvement */
.widget-scatter { flex: 1; position: relative; min-height: 200px; display: flex; flex-direction: column; }
.scatter-svg { flex: 1; width: 100%; }
.scatter-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-top: 10px; }

/* Widget 4: Weekly Review */
.widget-review { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.review-btn { background: var(--text-primary); color: #fff; border: none; padding: 10px; border-radius: 12px; font-size: 14px; cursor: pointer; }
.review-checklist { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); opacity: 0; transform: translateX(-10px); }
.check-icon { color: var(--accent-green); font-weight: bold; }
.review-date { font-size: 12px; color: var(--text-secondary); margin-top: auto; }

/* Widget 5: Weekly Hours */
.widget-weekly-hours { flex: 1; display: flex; align-items: flex-end; }
.hours-chart { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; height: 150px; position: relative; }
.hour-bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; height: 100%; justify-content: flex-end; }
.hour-bar { width: 8px; background: linear-gradient(to top, #4DA3FF, #30D158); border-radius: 4px; transform: scaleY(0); transform-origin: bottom; }
.hour-bar-col span { font-size: 12px; color: var(--text-secondary); }
.goal-line { position: absolute; top: 30%; width: 100%; height: 1px; border-top: 1px dashed #D1D1D6; opacity: 0; }

/* Widget 6: Morning Focus */
.widget-focus-check { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.focus-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.focus-pill { background: var(--bg-grey); padding: 6px 12px; border-radius: 99px; font-size: 13px; opacity: 0; }
.focus-slider-track { height: 4px; background: var(--bg-grey); border-radius: 2px; position: relative; margin: 10px 0; }
.focus-slider-thumb { width: 16px; height: 16px; background: var(--accent-blue); border-radius: 50%; position: absolute; top: 50%; left: 0; transform: translate(0, -50%); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.focus-log-btn { background: transparent; border: 1px solid var(--text-primary); color: var(--text-primary); padding: 8px; border-radius: 12px; font-size: 13px; cursor: pointer; }

/* Widget 7: Completion Rate */
.widget-completion { display: flex; gap: 20px; align-items: center; flex: 1; }
.completion-bars { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.comp-bar-track { height: 6px; background: var(--bg-grey); border-radius: 3px; width: 100%; overflow: hidden; }
.comp-bar-fill { height: 100%; background: var(--accent-blue); border-radius: 3px; width: 0; }
.completion-circle { width: 60px; height: 60px; position: relative; display: flex; align-items: center; justify-content: center; }
.completion-circle svg { width: 100%; height: 100%; position: absolute; }
.comp-val { font-size: 14px; font-weight: 600; }

/* Widget 8: Growth Summary */
.widget-summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    padding: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(48, 209, 88, 0.16), transparent 34%),
        linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
    border: 1px solid rgba(17, 24, 39, 0.06);
}
.summary-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.summary-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 8px;
}
.summary-score-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}
.summary-score {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #111827;
}
.summary-score-unit {
    font-size: 16px;
    font-weight: 600;
    color: #9CA3AF;
}
.summary-trend-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(48, 209, 88, 0.12);
    color: #15803D;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.summary-segment-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.sum-seg {
    height: 10px;
    width: 0;
    border-radius: 999px;
    opacity: 1;
}
.sum-seg.s1 { background: linear-gradient(90deg, #0F62FE, #60A5FA); }
.sum-seg.s2 { background: linear-gradient(90deg, #16A34A, #4ADE80); }
.sum-seg.s3 { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.summary-breakdown {
    display: grid;
    gap: 12px;
}
.summary-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}
.summary-metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.summary-metric-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.summary-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.summary-dot.s1 { background: #3B82F6; }
.summary-dot.s2 { background: #22C55E; }
.summary-dot.s3 { background: #F59E0B; }
.summary-metric-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.summary-metric-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}
.summary-highlight {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}
.summary-highlight-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 6px;
}
.summary-highlight strong {
    display: block;
    font-size: 18px;
    color: #111827;
    margin-bottom: 4px;
}
.summary-highlight p {
    font-size: 13px;
    line-height: 1.5;
    color: #6B7280;
}
.summary-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: auto;
}

/* Performance Section */
.performance-showcase { text-align: center; }

/* Screenshots Section */
.ui-showcase-row {
    display: flex; justify-content: center; gap: 40px; height: 400px; align-items: center;
}
.ui-card-float {
    width: 300px; height: 500px; background: #fff; border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.05);
    width: 300px; height: 500px; background: #FFFFFF; border-radius: 24px;
    box-shadow: var(--shadow-apple); border: 1px solid rgba(0,0,0,0.05);
}
.ui-card-float.center { transform: scale(1.1); z-index: 2; }
.ui-card-float.left, .ui-card-float.right { transform: scale(0.95); opacity: 0.8; }

/* FAQ Section */
.faq-list { margin-top: 40px; border-top: 1px solid rgba(0,0,0,0.1); }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.faq-question {
    width: 100%; text-align: center; background: none; border: none;
    padding: 24px 0; font-size: 21px; font-weight: 500; color: var(--text-primary);
    cursor: pointer; display: flex; justify-content: center; gap: 10px;
}
.faq-question::after { content: "+"; font-weight: 300; font-size: 24px; }
.faq-item.active .faq-question::after { content: "−"; }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease; text-align: center;
}
.faq-answer p { padding-bottom: 24px; font-size: 17px; }

/* CTA */
.cta-box {
    text-align: center; max-width: 600px; margin: 0 auto;
}
.cta-title { font-size: 56px; margin-bottom: 20px; letter-spacing: -0.035em; }
.cta-text { margin-bottom: 40px; }

.cta-reassurance {
    margin-top: 20px;
    font-size: 15px;
    color: var(--text-secondary);
}

/* Footer */
footer { padding: 160px 0 60px; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--text-secondary);
    letter-spacing: 0.01em;
}
.footer-links a { color: var(--text-secondary); text-decoration: none; margin-left: 20px; }
.footer-links a:hover { text-decoration: underline; }

/* Buttons */
.hero-actions { display: flex; justify-content: center; gap: 20px; margin-bottom: 60px; }
.btn {
    padding: 12px 28px; border-radius: 99px; font-size: 17px; font-weight: 500;
    border: none; cursor: pointer; transition: transform 0.2s, background 0.2s;
    text-decoration: none; display: inline-block;
    letter-spacing: 0.02em;
}
.btn-primary { background: var(--accent-blue); color: #fff; }
.btn-primary:hover { background: var(--accent-blue-hover); }
.btn-link { background: transparent; color: var(--accent-blue); padding: 12px 10px; }
.btn-link:hover { text-decoration: underline; }

/* AUTH PAGE */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-grey);
    padding: 100px 20px 40px;
}
.auth-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-apple);
    text-align: center;
}
.auth-header { margin-bottom: 30px; }
.auth-title { font-size: 32px; margin-bottom: 10px; letter-spacing: -0.025em; }
.auth-subtitle { font-size: 17px; color: var(--text-secondary); }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { text-align: left; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text-primary); letter-spacing: 0.02em; }
.form-input {
    width: 100%;
    padding: 13px;
    border: 1px solid #D2D2D7;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}
.auth-button { width: 100%; margin-top: 10px; }
.auth-footer-text {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}
.auth-link { color: var(--accent-blue); text-decoration: none; font-weight: 500; }
.auth-link:hover { text-decoration: underline; }

/* PRICING PAGE */
.pricing-section {
    padding-top: 120px;
    background: var(--bg-grey);
    min-height: 100vh;
    padding-bottom: 80px;
}
.pricing-header { text-align: center; margin-bottom: 30px; }
.pricing-toggles {
    display: flex; justify-content: center; gap: 20px;
    margin-bottom: 50px;
    position: sticky;
    top: 52px; /* Height of nav-bar */
    z-index: 900;
    padding: 16px 0;
    background-color: rgba(255, 245, 245, 0.85); /* Matches bg-grey with opacity */
    backdrop-filter: saturate(180%) blur(20px);
    transition: box-shadow 0.3s ease;
}
.pricing-toggles.sticky-active {
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.toggle-group {
    background: #E5E5E7; padding: 4px; border-radius: 99px;
    display: inline-flex; position: relative;
}
.toggle-btn {
    padding: 8px 20px; border-radius: 99px; border: none; background: transparent;
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    cursor: pointer; transition: all 0.3s ease;
}
.toggle-btn.active {
    background: #FFFFFF; color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.plan-group-title {
    text-align: center; font-size: 20px; font-weight: 600;
    margin-bottom: 24px; color: var(--text-secondary);
}
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 800px; margin: 0 auto 60px;
}
.pricing-grid.single-col { max-width: 400px; }
.pricing-card {
    background: #FFFFFF; border-radius: 24px; padding: 40px;
    box-shadow: var(--shadow-apple); display: flex; flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-4px); box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}
.plan-name { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.plan-original-price {
    font-size: 15px;
    color: #8E8E93;
    text-decoration: line-through;
    min-height: 24px;
    margin-bottom: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.plan-original-price.visible { opacity: 1; }
.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 5px;
}
.plan-price {
    font-size: 42px; font-weight: 700; margin-bottom: 0; color: var(--text-primary);
}
.plan-period { font-size: 20px; color: var(--text-secondary); margin-bottom: 0; font-weight: 500; }
.plan-savings {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 22px;
    min-height: 24px;
}
.plan-features { list-style: none; margin-bottom: 40px; flex: 1; text-align: left; }
.plan-features li {
    margin-bottom: 12px; font-size: 15px; color: var(--text-secondary);
    padding-left: 24px; position: relative;
}
.plan-features li::before {
    content: "✓"; position: absolute; left: 0; color: var(--accent-blue); font-weight: bold;
}
.full-width { width: 100%; text-align: center; }
.cancel-text {
    text-align: center; font-size: 13px; color: var(--text-secondary);
    margin-top: 12px; margin-bottom: 0;
}
.trust-section {
    text-align: center; max-width: 600px; margin: 0 auto;
    padding: 40px 20px 0; border-top: 1px solid rgba(0,0,0,0.05);
}
.trust-section h3 { font-size: 21px; margin-bottom: 16px; }
.trust-text { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

/* SIGNUP PAGE SPECIFIC */
.nav-simple { padding: 20px 40px; display: flex; align-items: center; }

.signup-container {
    max-width: 1000px;
    margin: 100px auto 40px;
    padding: 20px;
    min-height: 600px;
    position: relative;
}

.header-center { text-align: center; margin-bottom: 50px; }
.header-center h1 { font-size: 3rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.header-center p { color: var(--text-secondary); font-size: 1.2rem; }

.form-wrapper {
    display: block;
    max-width: 540px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.08);
}

.signup-container .form-group {
    margin-bottom: 23px;
}

.back-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--text-secondary); cursor: pointer;
    margin-bottom: 20px; font-size: 0.9rem;
    background: none; border: none; padding: 0;
}
.back-link:hover { color: var(--accent-blue); }

.auth-options { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.btn-social {
    padding: 12px; border: 1px solid #d2d2d7; border-radius: 12px;
    background: white; cursor: pointer; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background 0.2s;
}
.btn-social:hover { background: #f5f5f7; }

.divider { text-align: center; margin: 30px 0; color: var(--text-secondary); font-size: 0.85rem; position: relative; }
.divider::before, .divider::after {
    content: ""; position: absolute; top: 50%; width: 28%; height: 1px; background: #e5e5e5;
}
.divider::before { left: 0; } .divider::after { right: 0; }

/* Signup Button Override */
.signup-container .btn-primary {
    width: 100%; padding: 16px; background: var(--accent-blue); color: white;
    border: none; border-radius: 12px; font-size: 1.05rem; font-weight: 600;
    cursor: pointer; margin-top: 10px; transition: opacity 0.2s;
    display: block;
}
.signup-container .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.signup-container .btn-primary:hover:not(:disabled) { opacity: 0.9; }

.hidden { display: none; }
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   RESPONSIVE SYSTEM
   Desktop First: Overrides for smaller screens
   ========================================= */

/* Tablet & Small Laptop (≤1024px) */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    
    /* Fluid Hero Mockup */
    .hero-mockup {
        max-width: 100%;
        height: auto;
        aspect-ratio: 800/500;
    }
    
    /* Tablet Hero Video Sizing */
    .hero-visual { max-width: 100%; }

    /* Adjust Row Layouts */
    .row-layout { gap: 40px; }
    
    /* Pricing Grid - Ensure it wraps if needed */
    .pricing-grid { padding: 0 20px; }
}

/* Tablet Portrait & Large Mobile (≤900px) */
@media (max-width: 900px) {
    /* Stack Solution Section */
    .row-layout { flex-direction: column; }
    .visual-side { width: 100%; }
    
    /* Fluid Abstract Panel */
    .abstract-ui-panel {
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 460px;
    }

    /* Stack Clarity Grid */
    .clarity-grid { grid-template-columns: 1fr; }
    .clarity-card.large, 
    .clarity-card.medium, 
    .clarity-card.small { grid-column: span 1; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    /* Typography Scaling */
    .hero-headline { font-size: 42px; }
    .section-title { font-size: 34px; }
    .cinematic-text { font-size: 2.25rem; white-space: normal; }
    
    /* Layout Stacking */
    .grid-3 { grid-template-columns: 1fr; }
    
    /* UI Showcase Stacking */
    .ui-showcase-row {
        flex-direction: column;
        height: auto;
        gap: 30px;
        padding: 40px 0;
    }
    .ui-card-float {
        width: 100%;
        max-width: 320px;
        height: 400px;
    }
    .ui-card-float.center { transform: none; }
    .ui-card-float.left, .ui-card-float.right { transform: none; opacity: 1; }

    /* Navigation */
    .nav-links { display: none; }
    .nav-content { padding: 0 20px; }
    
    /* Forms & Auth Containers */
    .signup-container { margin-top: 80px; padding: 16px; }
    .form-wrapper, .auth-card { padding: 24px; max-width: 100%; }
    .header-center h1 { font-size: 2.2rem; }
    .auth-section { padding-top: 80px; }
    
    /* Pricing Toggles */
    .pricing-toggles { top: 52px; flex-wrap: wrap; justify-content: center; }

    .summary-topline {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .hero-headline { font-size: 36px; }
    .hero-subtext { font-size: 18px; }
    .cinematic-text { font-size: 2rem; }
    
    /* Full Width Buttons & Inputs */
    .btn, .form-input { width: 100%; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .btn-link { text-align: center; }
    
    /* Stack Auth Options */
    .auth-options { grid-template-columns: 1fr; }
    
    /* Footer Stacking */
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links a { margin: 0 10px; }
}
