/* Gumroad Ops - Light Clean theme (Stripe/Notion inspired)
   bg #f6f8fa | card #ffffff | accent #635bff | mint #00d4aa */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f6f8fa;
    color: #1a202c;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Nav */
.nav { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.3em; font-weight: 800; color: #635bff; text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: #4a5568; text-decoration: none; font-size: 0.95em; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: #635bff; }
.nav-user { color: #718096; font-size: 0.9em; }
.nav-upgrade { background: #635bff; color: #fff !important; padding: 6px 16px; border-radius: 20px; font-weight: 600; font-size: 0.88em !important; box-shadow: 0 2px 8px rgba(99, 91, 255, 0.3); transition: transform 0.15s, box-shadow 0.15s; }
.nav-upgrade:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99, 91, 255, 0.4); }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 32px 20px; flex: 1; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.page-head h1 { font-size: 1.8em; letter-spacing: -0.5px; color: #1a202c; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; border: none; cursor: pointer; font-size: 0.95em; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: #635bff; color: #fff; box-shadow: 0 2px 8px rgba(99, 91, 255, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99, 91, 255, 0.4); }
.btn-outline { background: #fff; color: #4a5568; border: 1px solid #e2e8f0; }
.btn-outline:hover { border-color: #635bff; color: #635bff; }
.btn-danger { background: #fff; color: #e53e3e; border: 1px solid #fed7d7; }
.btn-danger:hover { background: #fff5f5; color: #e53e3e; border-color: #e53e3e; }
.btn-sm { padding: 6px 12px; font-size: 0.85em; }
.btn-lg { padding: 14px 28px; font-size: 1.1em; }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero { text-align: center; padding: 70px 0 40px; }
.hero h1 { font-size: 2.8em; line-height: 1.2; max-width: 700px; margin: 0 auto 16px; letter-spacing: -1px; color: #1a202c; }
.hero .accent { background: linear-gradient(135deg, #635bff, #00d4aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: #718096; font-size: 1.15em; max-width: 600px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 40px 0; }
.feature-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 26px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #c3b5fe; }
.feature-icon { font-size: 2em; margin-bottom: 12px; }
.feature-card h3 { color: #1a202c; margin-bottom: 8px; font-size: 1.05em; }
.feature-card p { color: #718096; font-size: 0.92em; line-height: 1.6; }

/* How it works */
.how { text-align: center; margin: 40px 0; }
.how h2 { font-size: 1.8em; margin-bottom: 24px; color: #1a202c; }
.steps { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.step { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; width: 220px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.step-num { display: inline-block; background: linear-gradient(135deg, #635bff, #00d4aa); color: #fff; width: 30px; height: 30px; border-radius: 50%; line-height: 30px; margin-bottom: 10px; font-weight: 700; }
.step h4 { color: #1a202c; margin-bottom: 6px; }
.step p { color: #718096; font-size: 0.88em; }

/* Cards */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.card h2 { color: #635bff; font-size: 1.2em; margin-bottom: 14px; letter-spacing: -0.3px; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: box-shadow 0.2s, border-color 0.2s; }
.stat-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #c3b5fe; }
.stat-label { color: #718096; font-size: 0.85em; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.8em; font-weight: 700; color: #1a202c; letter-spacing: -0.5px; }

/* Product grid */
.section-title { margin-bottom: 16px; font-size: 1.3em; letter-spacing: -0.3px; color: #1a202c; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #c3b5fe; }
.product-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.product-card h3 { font-size: 1.1em; margin-bottom: 8px; }
.product-card h3 a { color: #1a202c; text-decoration: none; }
.product-card h3 a:hover { color: #635bff; }
.product-desc { color: #718096; font-size: 0.88em; line-height: 1.5; margin-bottom: 12px; }
.product-meta { display: flex; gap: 16px; color: #a0aec0; font-size: 0.85em; margin-bottom: 14px; }
.product-actions { display: flex; gap: 8px; }
.product-price { color: #059669; font-weight: 700; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.78em; font-weight: 600; background: #edf2f7; color: #4a5568; }
.badge-published { background: #d1fae5; color: #059669; }
.badge-draft { background: #fef3c7; color: #b7791f; }
.badge-completed { background: #d1fae5; color: #059669; }
.badge-refunded { background: #fed7d7; color: #c53030; }
.badge-income { background: #d1fae5; color: #059669; }

/* Forms */
.form-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 26px; max-width: 700px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: #4a5568; font-size: 0.9em; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; color: #1a202c; font-size: 0.95em; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #635bff; outline: none; box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline-row { display: flex; gap: 8px; margin-bottom: 12px; }
.inline-row input, .inline-row select { flex: 1; padding: 8px 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; color: #1a202c; }
.inline-row input:first-child { flex: 2; }
.stack-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.stack-form input, .stack-form textarea { padding: 8px 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; color: #1a202c; font-family: inherit; }
.inline-form { display: inline; }

/* Auth */
.auth-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 36px; max-width: 400px; margin: 60px auto; box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.auth-card h2 { margin-bottom: 20px; letter-spacing: -0.5px; color: #1a202c; }
.auth-link { margin-top: 16px; color: #718096; font-size: 0.9em; }
.auth-link a { color: #635bff; font-weight: 600; }

/* Alerts */
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9em; }
.alert-error { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }
.alert-success { background: #f0fdf4; color: #059669; border: 1px solid #bbf7d0; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.table th { text-align: left; color: #718096; font-weight: 600; padding: 8px; border-bottom: 1px solid #e2e8f0; }
.table td { padding: 8px; border-bottom: 1px solid #f1f5f9; }

/* Lists */
.version-list { list-style: none; }
.version-list li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.92em; }
.faq-item { margin-bottom: 10px; }
.faq-item summary { cursor: pointer; color: #4a5568; font-weight: 600; padding: 8px; background: #f8fafc; border-radius: 8px; }
.faq-item p { padding: 8px; color: #718096; font-size: 0.9em; }
.history-list { list-style: none; }
.history-list li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.history-content { color: #718096; font-size: 0.85em; margin-top: 4px; }
.import-details { margin-bottom: 14px; }
.import-details summary { cursor: pointer; color: #635bff; font-weight: 600; font-size: 0.92em; padding: 8px 0; }
.import-details textarea { background: #f8fafc; }

/* Result */
.result-card pre { white-space: pre-wrap; background: #f8fafc; padding: 16px; border-radius: 10px; color: #2d3748; font-size: 0.92em; line-height: 1.6; border: 1px solid #e2e8f0; }
.result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.result-actions { margin-top: 12px; }
.deliver-link { background: #f8fafc; padding: 12px; border-radius: 10px; margin: 12px 0; border: 1px solid #e2e8f0; }
.deliver-link a { color: #059669; font-weight: 600; word-break: break-all; }

/* Detail grid */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }

/* Product head */
.product-head-info { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.product-desc-lg { color: #4a5568; line-height: 1.6; margin-bottom: 24px; }

/* Delivery page */
.delivery-body { background: #f6f8fa; }
.delivery-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 40px 0; text-align: center; }
.delivery-header h1 { color: #635bff; margin-bottom: 8px; }
.delivery-header p { color: #718096; }
.delivery-main { max-width: 760px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 700px; }
.pricing-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.pricing-featured { border: 2px solid #635bff; position: relative; box-shadow: 0 8px 30px rgba(99, 91, 255, 0.12); }
.pricing-featured::before { content: "RECOMMENDED"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #635bff; color: #fff; font-size: 0.7em; font-weight: 700; padding: 3px 12px; border-radius: 12px; letter-spacing: 1px; }
.pricing-name { font-size: 1.1em; font-weight: 700; color: #1a202c; margin-bottom: 8px; }
.pricing-price { font-size: 2.2em; font-weight: 800; color: #1a202c; margin-bottom: 18px; letter-spacing: -1px; }
.pricing-per { font-size: 0.4em; color: #718096; font-weight: 400; }
.pricing-features { list-style: none; margin-bottom: 22px; }
.pricing-features li { padding: 6px 0; color: #4a5568; font-size: 0.92em; }
.pricing-current { text-align: center; color: #059669; font-weight: 700; padding: 10px; border: 1px solid #bbf7d0; border-radius: 8px; background: #f0fdf4; }

/* Misc */
.muted { color: #a0aec0; font-size: 0.88em; }
.empty-state { text-align: center; padding: 60px 20px; color: #718096; }
.empty-state p { margin-bottom: 16px; }
.footer { border-top: 1px solid #e2e8f0; padding: 20px 0; color: #a0aec0; font-size: 0.85em; background: #fff; }
