/* Punchlist.it — Public Website Styles */

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

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --navy: #0f172a;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --text: var(--gray-800);
    --text-secondary: var(--gray-500);
    --border: var(--gray-200);
    --nav-bg: rgba(255,255,255,0.85);
    --card-bg: var(--white);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
    --nav-bg: rgba(15,23,42,0.85);
    --card-bg: #1e293b;
    --primary: #3b82f6;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal; font-style: normal;
    font-size: inherit; line-height: 1;
    letter-spacing: normal; text-transform: none;
    display: inline-block; white-space: nowrap;
    word-wrap: normal; direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

/* Theme logo switching */
.logo-dark  { display: none; }
html.dark .logo-light { display: none; }
html.dark .logo-dark  { display: block; }

/* ── Typography ───────────────────────────────── */
.h-xl  { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.h-lg  { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.h-md  { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.h-sm  { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
.t-lg  { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.6; color: var(--text-secondary); }
.t-md  { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); }
.t-sm  { font-size: 0.875rem; line-height: 1.5; color: var(--text-secondary); }
.label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }

/* ── Layout ───────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section   { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.text-center { text-align: center; }

/* ── Navigation ───────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.nav-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo-wrap { display: flex; align-items: center; }
.nav-logo-wrap img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    font-size: 0.875rem; font-weight: 600;
    padding: 8px 20px; border-radius: 8px;
    background: var(--primary); color: var(--white) !important;
    transition: all var(--transition);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* Theme toggle */
.theme-toggle {
    background: none; border: 1px solid var(--border); border-radius: 8px;
    cursor: pointer; padding: 6px 8px; display: flex; align-items: center;
    justify-content: center; color: var(--text-secondary);
    transition: all var(--transition); font-size: 1rem; line-height: 1;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-secondary); }
.theme-toggle .icon-moon  { display: inline; }
.theme-toggle .icon-sun   { display: none; }
html.dark .theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun  { display: inline; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 64px; left: 0; right: 0; background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 24px; gap: 20px;
    }
    .nav-links.open { display: flex; }
}

/* ── Hero ─────────────────────────────────────── */
.hero {
    min-height: 100vh; display: flex; align-items: flex-start;
    padding-top: 120px; padding-bottom: 80px;
}
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: 24px; }
.hero p { margin-bottom: 48px; }

/* ── Buttons ──────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 12px;
    font-size: 1rem; font-weight: 600;
    transition: all var(--transition); border: none; cursor: pointer;
    font-family: var(--font);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text); }
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; border-radius: 10px; }

/* ── Feature Cards ────────────────────────────── */
.feature-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px; margin-top: 64px;
}
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
    padding: 36px; border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
html.dark .feature-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.5rem;
    background: rgba(37,99,235,0.1); color: var(--primary);
}
html.dark .feature-icon {
    background: rgba(59,130,246,0.15);
}
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* Icon color variants */
.fi-green  { background: rgba(34,197,94,0.1); color: var(--success); }
.fi-purple { background: rgba(139,92,246,0.1); color: var(--purple); }
.fi-warning { background: rgba(234,179,8,0.1); color: var(--warning); }
.fi-danger { background: rgba(239,68,68,0.1); color: var(--danger); }

/* ── How It Works ─────────────────────────────── */
.steps {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; margin-top: 64px;
    counter-reset: step;
}
@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .steps { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}
.step {
    text-align: center;
    counter-increment: step;
    padding: 40px 28px 36px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition);
}
.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(37,99,235,0.1);
}
html.dark .step:hover {
    box-shadow: 0 16px 48px rgba(59,130,246,0.1);
}
.step-icon {
    width: 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.75rem;
    position: relative;
}
.step-icon::after {
    content: ''; position: absolute; inset: -4px;
    border-radius: 50%; border: 2px dashed;
    opacity: 0.3;
}
.step:nth-child(1) .step-icon { background: rgba(37,99,235,0.1); color: var(--primary); }
.step:nth-child(1) .step-icon::after { border-color: var(--primary); }
.step:nth-child(2) .step-icon { background: rgba(139,92,246,0.1); color: var(--purple); }
.step:nth-child(2) .step-icon::after { border-color: var(--purple); }
.step:nth-child(3) .step-icon { background: rgba(234,179,8,0.1); color: var(--warning); }
.step:nth-child(3) .step-icon::after { border-color: var(--warning); }
.step:nth-child(4) .step-icon { background: rgba(34,197,94,0.1); color: var(--success); }
.step:nth-child(4) .step-icon::after { border-color: var(--success); }
html.dark .step:nth-child(1) .step-icon { background: rgba(59,130,246,0.15); }
html.dark .step:nth-child(2) .step-icon { background: rgba(139,92,246,0.15); }
html.dark .step:nth-child(3) .step-icon { background: rgba(234,179,8,0.15); }
html.dark .step:nth-child(4) .step-icon { background: rgba(34,197,94,0.15); }
.step-number {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    background: var(--primary); color: var(--white);
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.step:nth-child(2) .step-number { background: var(--purple); box-shadow: 0 2px 8px rgba(139,92,246,0.3); }
.step:nth-child(3) .step-number { background: var(--warning); color: var(--navy); box-shadow: 0 2px 8px rgba(234,179,8,0.3); }
.step:nth-child(4) .step-number { background: var(--success); box-shadow: 0 2px 8px rgba(34,197,94,0.3); }
.step h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* Connector arrows between steps */
.steps-connector { display: none; }
@media (min-width: 901px) {
    .steps { position: relative; }
    .step:not(:last-child)::before {
        content: '\2192'; position: absolute;
        right: -18px; top: 50%; transform: translateY(-50%);
        font-size: 1.25rem; color: var(--gray-400);
        z-index: 1;
    }
}

/* ── Audience / Use Case Cards ────────────────── */
.audience-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 64px;
}
@media (max-width: 768px) {
    .audience-grid { grid-template-columns: 1fr; }
}
.audience-card {
    padding: 40px 32px; border-radius: 16px;
    border: 1px solid var(--border); background: var(--card-bg);
    transition: all var(--transition);
    position: relative; overflow: hidden;
}
.audience-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--primary);
    transition: height var(--transition);
}
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.audience-card:hover::before { height: 4px; }
html.dark .audience-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.audience-card .audience-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 1.5rem;
    background: rgba(37,99,235,0.1); color: var(--primary);
}
html.dark .audience-card .audience-icon {
    background: rgba(59,130,246,0.15);
}

/* Per-card color variants */
.audience-card:nth-child(1)::before { background: var(--primary); }
.audience-card:nth-child(1) .audience-icon { background: rgba(37,99,235,0.1); color: var(--primary); }
html.dark .audience-card:nth-child(1) .audience-icon { background: rgba(59,130,246,0.15); color: var(--primary); }

.audience-card:nth-child(2)::before { background: var(--purple); }
.audience-card:nth-child(2) .audience-icon { background: rgba(139,92,246,0.1); color: var(--purple); }
html.dark .audience-card:nth-child(2) .audience-icon { background: rgba(139,92,246,0.15); color: var(--purple); }
.audience-card:nth-child(2):hover { box-shadow: 0 12px 40px rgba(139,92,246,0.1); }
html.dark .audience-card:nth-child(2):hover { box-shadow: 0 12px 40px rgba(139,92,246,0.15); }

.audience-card:nth-child(3)::before { background: var(--success); }
.audience-card:nth-child(3) .audience-icon { background: rgba(34,197,94,0.1); color: var(--success); }
html.dark .audience-card:nth-child(3) .audience-icon { background: rgba(34,197,94,0.15); color: var(--success); }
.audience-card:nth-child(3):hover { box-shadow: 0 12px 40px rgba(34,197,94,0.1); }
html.dark .audience-card:nth-child(3):hover { box-shadow: 0 12px 40px rgba(34,197,94,0.15); }
.audience-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; }
.audience-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* ── CTA Section ──────────────────────────────── */
.cta-section {
    padding: 120px 0;
    text-align: center;
}
.cta-box {
    max-width: 720px; margin: 0 auto;
    padding: 80px 48px; border-radius: 24px;
    background: var(--primary);
    color: var(--white);
}
.cta-box h2 { margin-bottom: 16px; color: var(--white); }
.cta-box p { margin-bottom: 40px; color: rgba(255,255,255,0.8); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Footer ───────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 40px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
.footer-brand img { height: 24px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.footer-col h4 {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 16px;
}
.footer-col a {
    display: block; font-size: 0.875rem; color: var(--text-secondary);
    padding: 4px 0; transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
    font-size: 0.8125rem; color: var(--text-secondary);
    display: flex; justify-content: space-between; align-items: center;
}
@media (max-width: 480px) {
    .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ── Placeholder / Coming Soon ────────────────── */
.placeholder-page {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; padding-top: 96px; padding-bottom: 32px; text-align: center;
}
.placeholder-content { max-width: 520px; }
.placeholder-content h1 { margin-bottom: 16px; }
.placeholder-content p { margin-bottom: 32px; }
.placeholder-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(37,99,235,0.1); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary); margin: 0 auto 32px;
}
html.dark .placeholder-icon {
    background: rgba(59,130,246,0.15);
}

/* ── Hero Graphic ────────────────────────────── */
.hero-graphic {
    position: relative;
    width: 240px; height: 240px;
    margin: 0 auto 44px;
}

/* Floating orbs */
.hero-orb {
    position: absolute; border-radius: 50%;
    will-change: transform, opacity;
}
.orb-1 {
    width: 48px; height: 48px;
    background: var(--primary); opacity: 0.25;
    top: -8px; left: 6px;
    animation: orbFloat1 5s ease-in-out infinite;
}
.orb-2 {
    width: 32px; height: 32px;
    background: var(--success); opacity: 0.35;
    top: 8px; right: -6px;
    animation: orbFloat2 6s ease-in-out infinite;
}
.orb-3 {
    width: 22px; height: 22px;
    background: var(--purple); opacity: 0.3;
    bottom: 32px; left: -16px;
    animation: orbFloat3 7s ease-in-out infinite;
}
.orb-4 {
    width: 36px; height: 36px;
    background: var(--warning); opacity: 0.25;
    bottom: -4px; right: 4px;
    animation: orbFloat1 5.5s ease-in-out infinite 0.5s;
}
.orb-5 {
    width: 18px; height: 18px;
    background: var(--danger); opacity: 0.3;
    top: 60px; left: -20px;
    animation: orbFloat2 4.5s ease-in-out infinite 1s;
}
.orb-6 {
    width: 24px; height: 24px;
    background: var(--primary-light); opacity: 0.2;
    top: 0; right: -18px;
    animation: orbFloat3 5s ease-in-out infinite 0.8s;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.15); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6px, -10px) scale(1.1); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-8px, -12px) scale(1.2); }
}

/* Clipboard */
.hero-clipboard {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 148px;
    animation: clipboardEntry 0.8s ease-out both, clipboardBob 4s ease-in-out 0.8s infinite;
}
@keyframes clipboardEntry {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.8); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes clipboardBob {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -52%) rotate(1deg); }
}

.clipboard-clip {
    width: 48px; height: 14px;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    margin: 0 auto;
    position: relative; z-index: 1;
}
.clipboard-clip::before {
    content: '';
    position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 14px;
    border: 3px solid var(--primary);
    border-radius: 6px 6px 0 0;
    border-bottom: none;
    background: var(--bg);
}

.clipboard-body {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 24px 16px 20px;
    margin-top: -2px;
    display: flex; flex-direction: column; gap: 12px;
    box-shadow: 0 8px 32px rgba(37,99,235,0.1);
}
html.dark .clipboard-body {
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.clipboard-row {
    display: flex; align-items: center; gap: 6px;
}
.cb-check {
    width: 18px; height: 18px; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0;
    background: var(--success); color: var(--white);
}
.cb-dot {
    width: 18px; height: 18px; border-radius: 5px;
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.cb-line {
    height: 8px; flex: 1; border-radius: 4px;
    background: var(--border);
}
.cb-line.short { width: 60%; flex: none; }

/* Active row pulse */
.row-active .cb-dot {
    border-color: var(--primary);
    animation: dotPulse 2s ease-in-out infinite;
}
.row-active .cb-line {
    background: var(--primary); opacity: 0.25;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.3); }
    50% { box-shadow: 0 0 0 4px rgba(37,99,235,0); }
}

/* Row stagger entrance */
.hero-graphic .clipboard-row {
    opacity: 0; animation: rowSlide 0.4s ease-out forwards;
}
.hero-graphic .clipboard-row:nth-child(1) { animation-delay: 0.9s; }
.hero-graphic .clipboard-row:nth-child(2) { animation-delay: 1.1s; }
.hero-graphic .clipboard-row:nth-child(3) { animation-delay: 1.3s; }
.hero-graphic .clipboard-row:nth-child(4) { animation-delay: 1.5s; }
@keyframes rowSlide {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Animations ───────────────────────────────── */
.fade-in {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ── Stats Row ────────────────────────────────── */
.stats-row {
    display: flex; justify-content: center; gap: 64px;
    margin-top: 64px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
    color: var(--primary); line-height: 1.1; margin-bottom: 4px;
}
.stat-label { font-size: 0.875rem; color: var(--text-secondary); }
